minor ui change
This commit is contained in:
parent
33397db6ae
commit
817e7d2e37
1 changed files with 4 additions and 0 deletions
|
|
@ -205,6 +205,10 @@ onMounted(async () => {
|
||||||
|
|
||||||
watch(selectedTheme, value => {
|
watch(selectedTheme, value => {
|
||||||
try {
|
try {
|
||||||
|
if ('auto' === value) {
|
||||||
|
applyPreferredColorScheme(window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light')
|
||||||
|
return
|
||||||
|
}
|
||||||
applyPreferredColorScheme(value)
|
applyPreferredColorScheme(value)
|
||||||
} catch (e) { }
|
} catch (e) { }
|
||||||
})
|
})
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue