We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3aa897 commit a2d9957Copy full SHA for a2d9957
Flow.Launcher.Core/Resource/Theme.cs
@@ -384,7 +384,12 @@ private string GetThemePath(string themeName)
384
public ThemeData GetCurrentTheme()
385
{
386
var themes = GetAvailableThemes();
387
- return themes.FirstOrDefault(t => t.FileNameWithoutExtension == _settings.Theme) ?? themes.FirstOrDefault();
+ var matchingTheme = themes.FirstOrDefault(t => t.FileNameWithoutExtension == _settings.Theme);
388
+ if (matchingTheme == null)
389
+ {
390
+ Log.Warn($"No matching theme found for '{_settings.Theme}'. Falling back to the first available theme.");
391
+ }
392
+ return matchingTheme ?? themes.FirstOrDefault();
393
}
394
395
public List<ThemeData> GetAvailableThemes()
0 commit comments