diff --git a/ui-svelte/src/App.svelte b/ui-svelte/src/App.svelte index 6ea0606c..b251258a 100644 --- a/ui-svelte/src/App.svelte +++ b/ui-svelte/src/App.svelte @@ -9,7 +9,7 @@ import Playground from "./routes/Playground.svelte"; import PlaygroundStub from "./routes/PlaygroundStub.svelte"; import { enableAPIEvents } from "./stores/api"; - import { initScreenWidth, isDarkMode, appTitle, connectionState } from "./stores/theme"; + import { initScreenWidth, initSystemThemeListener, isDarkMode, appTitle, connectionState } from "./stores/theme"; import { currentRoute } from "./stores/route"; const routes = { @@ -37,10 +37,12 @@ onMount(() => { const cleanupScreenWidth = initScreenWidth(); + const cleanupSystemTheme = initSystemThemeListener(); enableAPIEvents(true); return () => { cleanupScreenWidth(); + cleanupSystemTheme(); enableAPIEvents(false); }; }); diff --git a/ui-svelte/src/components/Header.svelte b/ui-svelte/src/components/Header.svelte index 08bbe5f2..10665e8e 100644 --- a/ui-svelte/src/components/Header.svelte +++ b/ui-svelte/src/components/Header.svelte @@ -1,6 +1,6 @@