load theme name for single mode themes
continuous-integration/drone/pr Build was killed Details

This commit is contained in:
Dan Ballard 2024-02-13 23:38:42 -08:00
parent ff55f70bd4
commit 273613a8b8
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 {