diff --git a/packages/client/src/init.ts b/packages/client/src/init.ts index 73ad037af..a84fd1f0b 100644 --- a/packages/client/src/init.ts +++ b/packages/client/src/init.ts @@ -376,13 +376,18 @@ function checkForSplash() { "--modalBgFilter", v ? "blur(4px)" : "none", ); - - const theme = defaultStore.state.darkMode ? ColdDeviceStorage.get("darkTheme") : ColdDeviceStorage.get("lightTheme"); - applyTheme(theme); }, { immediate: true }, ); + watch( + defaultStore.reactiveState.useBlurEffect, + () => { + const theme = defaultStore.state.darkMode ? ColdDeviceStorage.get("darkTheme") : ColdDeviceStorage.get("lightTheme"); + applyTheme(theme); + } + ); + let reloadDialogShowing = false; stream.on("_disconnected_", async () => { if (defaultStore.state.serverDisconnectedBehavior === "reload") {