1
0
Fork 0
mirror of synced 2024-06-26 10:00:41 +12:00

Update reset theme button to use white for light theme

This commit is contained in:
Andrew Kingston 2022-01-13 10:26:05 +00:00
parent 4ba0f0ded0
commit 492ecdc8bc
2 changed files with 14 additions and 1052 deletions

View file

@ -52,7 +52,14 @@
}
const resetTheme = () => {
store.actions.customTheme.save(null)
const theme = get(store).theme
store.actions.customTheme.save({
...defaultTheme,
navBackground:
theme === "spectrum--light"
? "var(--spectrum-global-color-gray-50)"
: "var(--spectrum-global-color-gray-100)",
})
}
</script>

File diff suppressed because it is too large Load diff