add method IsDarkTheme
This commit is contained in:
@@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user