From 8e34db4a6725907d724db908ca71fde90bef3765 Mon Sep 17 00:00:00 2001 From: Alphons Joseph <93847055+Crazypersonalph@users.noreply.github.com> Date: Tue, 18 Mar 2025 18:45:09 +0800 Subject: [PATCH] feat: synchronise settingstate and theme properly --- src/interface/components/themes/ThemeSelector.svelte | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/interface/components/themes/ThemeSelector.svelte b/src/interface/components/themes/ThemeSelector.svelte index ab7217f5..c43696d2 100644 --- a/src/interface/components/themes/ThemeSelector.svelte +++ b/src/interface/components/themes/ThemeSelector.svelte @@ -23,10 +23,9 @@ if (theme.id === themes?.selectedTheme) { await disableTheme(); themes.selectedTheme = ''; - settingsState.selectedColor = settingsState.originalSelectedColor; } else { await setTheme(theme.id); - settingsState.selectedColor = theme.defaultColour; + settingsState.selectedColor = theme.defaultColour; // settingsState and the theme need to be synchronised. if (!themes) return; themes.selectedTheme = theme.id; }