load theme name for single mode themes #832

Merged
sarah merged 1 commits from fixThemes into trunk 2024-02-14 08:12:34 +00:00
1 changed files with 1 additions and 1 deletions

View File

@ -352,7 +352,7 @@ class _GlobalSettingsAppearanceViewState extends State<GlobalSettingsAppearanceV
case "juniper":
return "Juniper"; // Juniper is a noun, and doesn't get subject to translation...
}
return settings.themeloader.themes[theme]?[settings.theme.mode]?.theme ?? theme;
return settings.themeloader.themes[theme]?[mode_light]?.theme ?? settings.themeloader.themes[theme]?[mode_dark]?.theme ?? theme;
}
void importThemeCheck(BuildContext context, Settings settings, String themesDir, String newThemeDirectory) async {