예제 #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);
 }
예제 #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();
        }
예제 #3
0
        private void ApplyColorThemeA(object c0)
        {
            var theme = _topManager.Settings.ColorTheme;

            ColorThemeHelper.ApplyToControlA(c0, theme);
        }