minor ui change

This commit is contained in:
arabcoders 2025-04-08 23:30:08 +03:00
parent 33397db6ae
commit 817e7d2e37

View file

@ -205,6 +205,10 @@ onMounted(async () => {
watch(selectedTheme, value => {
try {
if ('auto' === value) {
applyPreferredColorScheme(window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light')
return
}
applyPreferredColorScheme(value)
} catch (e) { }
})