1
0
Fork 0
mirror of synced 2024-07-05 22:40:39 +12:00

Ensure nav background colour is properly updated when changing theme

This commit is contained in:
Andrew Kingston 2022-05-10 16:30:13 +01:00
parent 90436a0167
commit 0f200680be

View file

@ -16,8 +16,8 @@
try { try {
const theme = ThemeOptions[e.detail] ?? ThemeOptions[2] const theme = ThemeOptions[e.detail] ?? ThemeOptions[2]
await store.actions.theme.save(theme) await store.actions.theme.save(theme)
await store.actions.customTheme.save({ await store.actions.navigation.save({
...get(store).customTheme, ...get(store).navigation,
navBackground: navBackground:
theme === "spectrum--light" theme === "spectrum--light"
? "var(--spectrum-global-color-gray-50)" ? "var(--spectrum-global-color-gray-50)"