From dc9a036c73d8ba110029364e0d044dc24c7d0dfa Mon Sep 17 00:00:00 2001 From: Eli Bosley Date: Wed, 19 Nov 2025 19:43:45 -0500 Subject: [PATCH] fix: resolve header flash when background color is set (#1796) ## Summary - rely on the existing Pinia persisted state instead of manual localStorage hydration - reapply CSS variables after persisted hydration so custom header colors show immediately ## Testing - Not run (not requested) ------ [Codex Task](https://chatgpt.com/codex/tasks/task_e_691e5a1d052c8323973847eb5833fbb9) --- web/src/store/theme.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/web/src/store/theme.ts b/web/src/store/theme.ts index 9ecf3807a..36351169e 100644 --- a/web/src/store/theme.ts +++ b/web/src/store/theme.ts @@ -341,6 +341,7 @@ export const useThemeStore = defineStore( afterHydrate: (ctx) => { const store = ctx.store as ReturnType; store.setTheme(store.theme); + store.setCssVars(); }, }, }