예제 #1
0
        public void Apply(ApplicationDesign design)
        {
            try
            {
                design.AccentColor.ApplyTheme();
            }
            catch (Exception)
            {
                design.AccentColor = AccentColors.First(x => x.Name == "Blue");
                design.AccentColor.ApplyTheme();
            }

            try
            {
                design.AppTheme.ApplyTheme();
            }
            catch (Exception)
            {
                design.AppTheme = AppThemes.First();
                design.AppTheme.ApplyTheme();
            }

            if (design.AudioVisualisation != null)
            {
                design.AudioVisualisation.Visualisation.Refresh();
            }
        }
예제 #2
0
 public bool Equals(ApplicationDesign obj)
 {
     return(AccentColor.Equals(obj.AccentColor) && AppTheme.Equals(obj.AppTheme) &&
            ApplicationBackground != null && ApplicationBackground.Equals(obj.ApplicationBackground));
 }