diff --git a/apps/dashboard/src/lib/features/app/app-mode-watcher.svelte b/apps/dashboard/src/lib/features/app/app-mode-watcher.svelte new file mode 100644 index 00000000..8e4fdcfb --- /dev/null +++ b/apps/dashboard/src/lib/features/app/app-mode-watcher.svelte @@ -0,0 +1,37 @@ + + + + + {@html initialModeScript} + + + diff --git a/apps/dashboard/src/lib/features/ui/sidebar/footer/theme-toggle.svelte b/apps/dashboard/src/lib/features/ui/sidebar/footer/theme-toggle.svelte index 30b8301b..070b6448 100644 --- a/apps/dashboard/src/lib/features/ui/sidebar/footer/theme-toggle.svelte +++ b/apps/dashboard/src/lib/features/ui/sidebar/footer/theme-toggle.svelte @@ -1,29 +1,31 @@
@@ -31,11 +33,13 @@
{#each themes as theme (theme.mode)} - {@const isActive = userPrefersMode.current === theme.mode || userPrefersMode.current === undefined}