Beispiel #1
0
 private void SetColorTheme(string themeid, bool force = false)
 {
     if (_topManager.Settings.ColorThemeId == themeid && !force)
     {
         return;
     }
     _topManager.Settings.ColorThemeId = themeid;
     ColorThemeHelper.ApplyToForm(this, _topManager.Settings.ColorTheme);
     CheckMenuColorTheme();
     ApplyColorThemeA(micbColorTheme);
 }
Beispiel #2
0
        public void UseSystemColors()
        {
            WindowColor          = SystemColors.Window;
            WindowTextColor      = SystemColors.WindowText;
            ControlColor         = SystemColors.Control;
            ControlTextColor     = SystemColors.ControlText;
            ControlColorLight    = SystemColors.ControlLight;
            ControlColorDark     = SystemColors.ControlDark;
            ControlColorDarkDark = SystemColors.ControlDarkDark;
            //MenuHighlight = SystemColors.MenuHighlight;
            MenuHighlight = ColorThemeHelper.ColorBetween(WindowColor, WindowTextColor, 0.2f);

            BorderColor       = ControlColorDarkDark;
            UsingSystemColors = true;
            MakeTables();
        }
Beispiel #3
0
        private void ApplyColorThemeA(object c0)
        {
            var theme = _topManager.Settings.ColorTheme;

            ColorThemeHelper.ApplyToControlA(c0, theme);
        }