Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
        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);
        }
Ejemplo n.º 4
0
        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);
        }
Ejemplo n.º 5
0
 public UtinniContextMenuStripColorTable()
 {
     hoverBackColor = ThemeUtility.ScaleColor(Colors.Secondary(), Colors.HighlightScalar);
 }