add method IsDarkTheme

This commit is contained in:
Pilzinsel64
2024-08-28 11:30:03 +02:00
parent 2dfeab36d0
commit 54fadfbe8d

View File

@@ -27,4 +27,9 @@ public static class ThemeHelper
return themeToUse; return themeToUse;
} }
public static bool IsDarkTheme(ApplicationTheme theme)
{
return theme == ApplicationTheme.Dark || theme == ApplicationTheme.Gray || theme == ApplicationTheme.Auto && !WindowsSettings.AppsUseLightTheme;
}
} }