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)
This commit is contained in:
Eli Bosley
2025-11-19 19:43:45 -05:00
committed by GitHub
parent c71b0487ad
commit dc9a036c73

View File

@@ -341,6 +341,7 @@ export const useThemeStore = defineStore(
afterHydrate: (ctx) => {
const store = ctx.store as ReturnType<typeof useThemeStore>;
store.setTheme(store.theme);
store.setCssVars();
},
},
}