diff --git a/src/UI/AllThemesGui.svelte b/src/UI/AllThemesGui.svelte index 11fcdfcf4..cf647a4cc 100644 --- a/src/UI/AllThemesGui.svelte +++ b/src/UI/AllThemesGui.svelte @@ -24,6 +24,7 @@ import { MenuState } from "../Models/MenuState" import { MenuIcon } from "@rgossiaux/svelte-heroicons/solid" import AccordionSingle from "./Flowbite/AccordionSingle.svelte" + import MenuDrawerIndex from "./BigComponents/MenuDrawerIndex.svelte" AndroidPolyfill.init().then(() => console.log("Android polyfill setup completed")) const featureSwitches = new OsmConnectionFeatureSwitches() @@ -156,7 +157,7 @@
- +
diff --git a/src/UI/BigComponents/MenuDrawer.svelte b/src/UI/BigComponents/MenuDrawer.svelte index 5ca7a8fdd..1b639bc7d 100644 --- a/src/UI/BigComponents/MenuDrawer.svelte +++ b/src/UI/BigComponents/MenuDrawer.svelte @@ -1,55 +1,28 @@ -
-
-

- -

- { - pg.menu.set(false) - }} - /> -
- {#if $showHome} - - - {#if Utils.isIframe} - - {:else} - - {/if} - - {/if} - - - - - -
- {#if $userdetails.img} - avatar - {/if} - {$userdetails.name} -
-
- - - - - - - - - - - - {#if $nrOfFailedImages.length > 0 || $failedImagesOpen} - - - - - - - - {/if} - - - {#if state.favourites} - - - - - - -

- -

-
- -

- -

- -
-
- {/if} - {#if $hotkeys.length > 0} -
- - - - - - - -
- {/if} - -
- -
-
- -
+ - {#if state.theme} + + {#if state.theme}

@@ -282,137 +142,39 @@ {/if} {/if} + + - {#if state.mapProperties?.location} - -

- -

+ + {#if state.mapProperties?.location} + +

+ +

- - - - - - - + + + + + + + - - - - - - + + + + + + - - - - -
- {/if} - - - -

- -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {#if !state.theme} - - - - + + + + +
{/if} +
- - - - -
- -

- -

- - - - - - - - {#if state?.theme} - - - - - - - - {/if} - - - - - - - - - - -
- -
- {Constants.vNumber} - {#if $isAndroid} - Android - {/if} -
-

+ diff --git a/src/UI/BigComponents/MenuDrawerIndex.svelte b/src/UI/BigComponents/MenuDrawerIndex.svelte new file mode 100644 index 000000000..b9586844d --- /dev/null +++ b/src/UI/BigComponents/MenuDrawerIndex.svelte @@ -0,0 +1,316 @@ + + +
+
+

+ +

+ { + pg.menu.set(false) + }} + /> +
+ {#if $showHome} + + + {#if Utils.isIframe} + + {:else} + + {/if} + + {/if} + + + + + +
+ {#if $userdetails.img} + avatar + {/if} + {$userdetails.name} +
+
+ + + + + + + + + + + + {#if $nrOfFailedImages.length > 0 || $failedImagesOpen} + + + + + + + + {/if} + + + {#if state.favourites} + + + + + + +

+ +

+
+ +

+ +

+ +
+
+ {/if} + {#if $hotkeys.length > 0} +
+ + + + + + + +
+ {/if} + +
+ +
+
+ +
+ + + + + + + +

+ +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + {#if !state.theme} + + + + + {/if} + + + + + +
+ + +

+ +

+ + + + + + + + {#if state?.theme} + + + + + + + + {/if} + + + + + + + + + + + +
+ +
+ {Constants.vNumber} + {#if $isAndroid} + Android + {/if} +
+