Esempio n. 1
0
 public static string GetMahAppsBaseColorScheme(this BaseTheme baseTheme)
 {
     return(baseTheme switch
     {
         BaseTheme.Light => ThemeManager.BaseColorLightConst,
         BaseTheme.Dark => ThemeManager.BaseColorDarkConst,
         BaseTheme.Inherit => Theme.GetSystemTheme() switch
         {
             BaseTheme.Dark => ThemeManager.BaseColorDarkConst,
             _ => ThemeManager.BaseColorLightConst
         },