From 2b72cb0b09f7d0f2c2b8a5d895ff25501efc4a1a Mon Sep 17 00:00:00 2001 From: Aylam Date: Sat, 12 Aug 2023 12:16:16 +0300 Subject: [PATCH] Re-apply current theme when blur is toggled --- packages/client/src/init.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/client/src/init.ts b/packages/client/src/init.ts index 227656939..deb8d9679 100644 --- a/packages/client/src/init.ts +++ b/packages/client/src/init.ts @@ -382,6 +382,8 @@ function checkForSplash() { } else { document.documentElement.style.setProperty("--blur", "none"); } + const theme = defaultStore.state.darkMode ? ColdDeviceStorage.get("darkTheme") : ColdDeviceStorage.get("lightTheme"); + applyTheme(theme); }, { immediate: true }, );