Esempio n. 1
0
        public static void ChangeAppAccent(AppAccent newAppAccent)
        {
            ThemeManager.ChangeAppStyle(Application.Current,
                                        ThemeManager.GetAccent(SettingsHandler.ConvertAppAccentToString(newAppAccent)),
                                        ThemeManager.GetAppTheme(SettingsHandler.GetAppThemeAsString()));

            Application.Current.MainWindow.Icon = new BitmapImage(
                new Uri(String.Format("pack://application:,,,/Assets/Icons/{0}.ico", newAppAccent.ToString())));
        }
Esempio n. 2
0
 public static string ConvertAppAccentToString(AppAccent appAccent)
 {
     return(appAccent.ToString());
 }