public void SetBackColors(Color primaryColor) { primaryBrush = new SolidBrush(primaryColor); hoverBackColorHighlightBrush = new SolidBrush(ThemeUtility.ScaleColor(primaryColor, Colors.HighlightScalar)); pressedBackColorBrush = new SolidBrush(ThemeUtility.ScaleColor(primaryColor, Colors.PressedScalar)); disabledBackColorBrush = new SolidBrush(ThemeUtility.ScaleColor(primaryColor, Colors.DisabledScalar)); outlinePen = new Pen(Colors.ControlBorder(), 1); }
public void SetBackColors(Color backColor, Color hoverColor) { primaryBrush = new SolidBrush(backColor); highlightBackColorHighlightBrush = new SolidBrush(ThemeUtility.ScaleColor(hoverColor, Colors.HighlightScalar)); // ToDo this shouldn't use the scale pressedBackColorBrush = new SolidBrush(ThemeUtility.ScaleColor(hoverColor, Colors.PressedScalar)); disabledBackColorBrush = new SolidBrush(ThemeUtility.ScaleColor(hoverColor, Colors.DisabledScalar)); outlinePen = new Pen(Colors.ControlBorder(), 1); }
public void SetBackColors() { Color primaryColor = Colors.PrimaryHighlight(); primaryBrush = new SolidBrush(primaryColor); hoverPrimaryHighlightBrush = new SolidBrush(ThemeUtility.ScaleColor(primaryColor, Colors.HighlightScalar)); pressedPrimaryBrush = new SolidBrush(ThemeUtility.ScaleColor(primaryColor, Colors.PressedScalar)); disabledPrimaryBrush = new SolidBrush(ThemeUtility.ScaleColor(Colors.Primary(), Colors.DisabledScalar)); Color secondaryColor = Colors.Secondary(); secondaryBrush = new SolidBrush(secondaryColor); hoverSecondaryHighlightBrush = new SolidBrush(ThemeUtility.ScaleColor(secondaryColor, Colors.HighlightScalar)); pressedSecondaryBrush = new SolidBrush(ThemeUtility.ScaleColor(secondaryColor, Colors.PressedScalar)); disabledSecondaryBrush = new SolidBrush(ThemeUtility.ScaleColor(secondaryColor, Colors.DisabledScalar)); outlinePen = new Pen(Colors.ControlBorder(), 1); }
protected override void OnEnabledChanged(EventArgs e) { base.OnEnabledChanged(e); if (Enabled) { ForeColor = Colors.Font(); arrowBackgroundBrush = new SolidBrush(Colors.Secondary()); } else { ForeColor = Colors.FontDisabled(); arrowBackgroundBrush = new SolidBrush(ThemeUtility.ScaleColor(Colors.Secondary(), Colors.DisabledScalar)); } fontPen = new Pen(ForeColor, 1); fontBrush = new SolidBrush(ForeColor); }
public UtinniContextMenuStripColorTable() { hoverBackColor = ThemeUtility.ScaleColor(Colors.Secondary(), Colors.HighlightScalar); }