internal static void ApplyTheme(UIThemeInfo theme) { CurrentTheme = theme; foreach (var control in ThemedControls) { ThemeSpecificControl(control); } }
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); }
static UIThemeManager() { CurrentTheme = UIThemeInfo.Default(); }