Merge pull request #16063 from silentoplayz/fix-her-theme

fix(frontend): Ensure 'Her' theme is always a light theme
This commit is contained in:
Tim Jaeryang Baek 2025-07-30 13:01:31 +04:00 committed by GitHub
commit 00a00f5162
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1 additions and 2 deletions

View file

@ -56,7 +56,6 @@
document.documentElement.classList.add('light'); document.documentElement.classList.add('light');
metaThemeColorTag.setAttribute('content', '#ffffff'); metaThemeColorTag.setAttribute('content', '#ffffff');
} else if (localStorage.theme === 'her') { } else if (localStorage.theme === 'her') {
document.documentElement.classList.add('dark');
document.documentElement.classList.add('her'); document.documentElement.classList.add('her');
metaThemeColorTag.setAttribute('content', '#983724'); metaThemeColorTag.setAttribute('content', '#983724');
} else { } else {

View file

@ -117,7 +117,7 @@
}); });
const applyTheme = (_theme: string) => { const applyTheme = (_theme: string) => {
let themeToApply = _theme === 'oled-dark' ? 'dark' : _theme; let themeToApply = _theme === 'oled-dark' ? 'dark' : _theme === 'her' ? 'light' : _theme;
if (_theme === 'system') { if (_theme === 'system') {
themeToApply = window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light'; themeToApply = window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';