Beispiel #1
0
        public void ThemeToDark()
        {
            if (Properties.Settings.Default.ThemeSwitch)
            {
                ThemeHandler.ChangeTheme(Properties.Settings.Default.ThemeDark);
            }
            else
            {
                if (Properties.Settings.Default.AppThemeChange.Equals(0))
                {
                    AppTheme(0);
                }
                if (Properties.Settings.Default.SystemThemeChange.Equals(0))
                {
                    SystemTheme(0);
                }
                if (Properties.Settings.Default.WallpaperSwitch)
                {
                    WallpaperHandler.SetBackground(Properties.Settings.Default.WallpaperDark);
                }

                if (Properties.Settings.Default.AccentColor && Properties.Settings.Default.SystemThemeChange.Equals(0))
                {
                    Thread.Sleep(Properties.Settings.Default.AccentColorSwitchTime);
                    ColorPrevalence(1);
                }
            }
            if (Properties.Settings.Default.EdgeThemeChange.Equals(0))
            {
                EdgeTheme(1);
            }
            if (Properties.Settings.Default.OfficeThemeChange.Equals(0))
            {
                OfficeTheme(4);
            }
        }