Handle auto theme correctly with the manual toggle (#3521)

このコミットが含まれているのは:
Samantaz Fox 2023-03-31 22:43:23 +02:00
コミット 9e82e6fc1b
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: F42821059186176E
1個のファイルの変更3行の追加1行の削除

ファイルの表示

@ -22,9 +22,11 @@ function setTheme(theme) {
if (theme === THEME_DARK) {
toggle_theme.children[0].className = 'icon ion-ios-sunny';
document.body.className = 'dark-theme';
} else {
} else if (theme === THEME_LIGHT) {
toggle_theme.children[0].className = 'icon ion-ios-moon';
document.body.className = 'light-theme';
} else {
document.body.className = 'no-theme';
}
}