fix: respect zenMode preference default

zio/stable
patak 2023-05-02 14:13:53 +02:00
parent c54aed62fb
commit d0ede35e89
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ export default defineNuxtPlugin(() => {
html.style.setProperty('--font-size', fontSize ? (oldFontSizeMap[fontSize as OldFontSize] ?? fontSize) : DEFAULT_FONT_SIZE) html.style.setProperty('--font-size', fontSize ? (oldFontSizeMap[fontSize as OldFontSize] ?? fontSize) : DEFAULT_FONT_SIZE)
}) })
watchEffect(() => { watchEffect(() => {
html.classList.toggle('zen', userSettings.value.preferences.zenMode) html.classList.toggle('zen', getPreferences(userSettings.value, 'zenMode'))
}) })
watchEffect(() => { watchEffect(() => {
Object.entries(userSettings.value.themeColors || {}).forEach(([k, v]) => html.style.setProperty(k, v)) Object.entries(userSettings.value.themeColors || {}).forEach(([k, v]) => html.style.setProperty(k, v))