fix: theme fallback issue

This commit is contained in:
pa
2026-01-05 20:35:16 +09:00
committed by Natsumi
parent c80562c623
commit 61813da917
3 changed files with 6 additions and 16 deletions

View File

@@ -78,6 +78,8 @@ function changeAppThemeStyle(themeMode) {
// load system theme as fallback
themeMode = systemIsDarkMode() ? 'dark' : 'light';
themeConfig = THEME_CONFIG[themeMode];
const appSettingsStore = useAppearanceSettingsStore();
appSettingsStore.setThemeMode(themeMode);
}
const cssFiles = Array.isArray(themeConfig.cssFiles)