Пример #1
0
 internal static void ApplyTheme(UIThemeInfo theme)
 {
     CurrentTheme = theme;
     foreach (var control in ThemedControls)
     {
         ThemeSpecificControl(control);
     }
 }
Пример #2
0
        public static UIThemeInfo Default()
        {
            UIThemeInfo theme = new UIThemeInfo();

            theme.BackColor        = Color.FromArgb(28, 28, 28);
            theme.TextColor        = Color.WhiteSmoke;
            theme.AccentColor      = Color.DodgerBlue;
            theme.TitleBarColor    = Color.FromArgb(36, 36, 36);
            theme.ButtonFlatStyle  = FlatStyle.Flat;
            theme.ButtonHoverColor = Color.FromArgb(50, 50, 50);
            theme.LightBackColor   = Color.FromArgb(36, 36, 36);
            theme.ButtonActive     = Color.DodgerBlue;
            theme.TextInactive     = Color.Gray;
            return(theme);
        }
Пример #3
0
 static UIThemeManager()
 {
     CurrentTheme = UIThemeInfo.Default();
 }