Fix system theme not respecting preferred dark theme. (#1673)

This commit is contained in:
Prospector
2024-04-10 18:30:46 -07:00
committed by GitHub
parent 60727656c9
commit 5b1850e161
3 changed files with 16 additions and 6 deletions

View File

@@ -722,7 +722,9 @@ function toggleBrowseMenu() {
}
function changeTheme() {
updateTheme(
DARK_THEMES.includes(app.$colorMode.value) ? 'light' : cosmetics.value.preferredDarkTheme,
DARK_THEMES.includes(app.$colorMode.value)
? 'light'
: cosmetics.value.preferredDarkTheme ?? 'dark',
true
)
}