Example #1
0
 public static bool IsCustom(this UIBaseStyle style)
 {
     return(style.Name.IsCustom());
 }
Example #2
0
 public void SetStyle(UIBaseStyle style)
 {
     Item?.SetStyle(style);
 }
Example #3
0
 public virtual void SetStyle(UIBaseStyle style)
 {
 }
Example #4
0
        public virtual UIBaseStyle Init(Color color, UIStyle style, Color reverseColor, Color foreColor)
        {
            Name = style;

            FillDisableColor = Color.FromArgb(244, 244, 244);
            RectDisableColor = Color.FromArgb(173, 178, 181);
            ForeDisableColor = Color.FromArgb(109, 109, 103);
            ForeColor        = foreColor;

            PrimaryColor = color;
            RectColor    = color;
            Color[] colors  = Color.White.GradientColors(PrimaryColor, 16);
            Color[] colors1 = PrimaryColor.GradientColors(Color.Black, 16);

            PlainColor     = colors[1];
            SecondaryColor = colors[5];
            RegularColor   = colors[10];

            SplitContainerArrowColor = PrimaryColor;

            GridSelectedColor     = colors[3];
            GridSelectedForeColor = foreColor;
            GridStripeEvenColor   = colors[0];
            GridStripeOddColor    = PlainColor;
            GridLineColor         = colors[13];
            GridTitleColor        = PrimaryColor;
            GridTitleForeColor    = reverseColor;
            GridForeColor         = foreColor;
            GridBarFillColor      = PlainColor;
            GridBarForeColor      = PrimaryColor;

            FormTitleColor                    = PrimaryColor;
            FormTitleForeColor                = reverseColor;
            FormForeColor                     = foreColor;
            FormRectColor                     = PrimaryColor;
            FormControlBoxFillHoverColor      = colors[12];
            FormControlBoxCloseFillHoverColor = UIColor.Red;
            FormBackColor                     = PlainColor;
            FormControlBoxForeColor           = Color.White;

            PanelForeColor      = foreColor;
            PanelRectColor      = PrimaryColor;
            PanelFillColor      = PlainColor;
            PanelFillColor2     = PlainColor;
            PanelTitleColor     = PrimaryColor;
            PanelTitleForeColor = reverseColor;

            ButtonFillColor         = PrimaryColor;
            ButtonFillHoverColor    = colors[12];
            ButtonFillPressColor    = colors1[3];
            ButtonFillSelectedColor = colors1[3];
            ButtonFillColor2        = ButtonFillColor;
            ButtonFillLightColor    = PlainColor;
            ButtonForeLightColor    = PrimaryColor;

            ButtonForeColor         = reverseColor;
            ButtonForeHoverColor    = reverseColor;
            ButtonForePressColor    = reverseColor;
            ButtonForeSelectedColor = reverseColor;

            ButtonRectColor         = PrimaryColor;
            ButtonRectHoverColor    = colors[12];
            ButtonRectSelectedColor = colors1[3];
            ButtonRectPressColor    = colors1[3];

            BatteryFillColor = PlainColor;

            BreadcrumbUnSelectedColor = colors[6];

            AvatarFillColor = Color.Silver;
            AvatarForeColor = PrimaryColor;

            ImageButtonForeColor = foreColor;

            CheckBoxColor     = PrimaryColor;
            CheckBoxForeColor = foreColor;

            LogoForeColor = foreColor;
            LogoFillColor = PrimaryColor;

            LineForeColor = foreColor;
            LineFillColor = PlainColor;
            LineRectColor = PrimaryColor;

            TrackBarFillColor = PlainColor;
            TrackBarForeColor = PrimaryColor;
            TrackBarRectColor = PrimaryColor;
            TrackDisableColor = Color.Silver;

            SwitchActiveColor      = PrimaryColor;
            SwitchInActiveColor    = Color.Gray;
            SwitchFillColor        = Color.White;
            SwitchRectDisableColor = RectDisableColor;

            LabelForeColor = foreColor;

            LabelRotateFrameColor = ButtonRectColor;
            LabelRotateForeColor  = foreColor;

            ColorWheelFrameColor = ButtonRectColor;
            ColorWheelBackColor  = PlainColor;

            ContextMenuColor         = PlainColor;
            ContextMenuSelectedColor = PrimaryColor;
            ContextMenuForeColor     = foreColor;

            ScrollBarFillColor      = PlainColor;
            ScrollBarForeColor      = PrimaryColor;
            ScrollBarFillHoverColor = ButtonFillHoverColor;
            ScrollBarFillPressColor = ButtonFillPressColor;

            ProcessBarFillColor = PlainColor;
            ProcessBarForeColor = PrimaryColor;
            ProcessBackColor    = colors[6];

            SmoothLabelForeColor = ButtonForeColor;
            SmoothLabelRectColor = ButtonRectColor;

            ScrollingTextFillColor = PlainColor;
            ScrollingTextForeColor = PrimaryColor;

            LedLabelForeColor  = PrimaryColor;
            MarkLabelForeColor = PrimaryColor;

            PageBackColor      = PlainColor;
            PageRectColor      = PrimaryColor;
            PageForeColor      = foreColor;
            PageTitleFillColor = Color.FromArgb(76, 76, 76);
            PageTitleForeColor = Color.White;

            ProgressIndicatorColor = PrimaryColor;

            NavBarMenuSelectedColor = PrimaryColor;

            TabControlTabSelectedColor = PrimaryColor;
            TabControlBackColor        = PlainColor;

            DropDownControlColor   = foreColor;
            DropDownPanelFillColor = PlainColor;
            DropDownPanelForeColor = foreColor;

            ListItemSelectBackColor = PrimaryColor;
            ListItemSelectForeColor = PlainColor;
            ListItemHoverColor      = colors[3];
            ListBarFillColor        = PlainColor;
            ListBarForeColor        = PrimaryColor;
            ListBackColor           = Color.White;
            ListForeColor           = foreColor;

            TreeViewSelectedColor = PrimaryColor;
            TreeViewHoverColor    = colors[3];
            TreeViewBarFillColor  = PlainColor;
            TreeViewBarForeColor  = PrimaryColor;
            TreeViewForeColor     = foreColor;
            TreeViewBackColor     = Color.White;
            TreeViewLineColor     = foreColor;

            EditorBackColor = UIColor.White;

            NavMenuMenuSelectedColor = PrimaryColor;

            DataGridViewFooterForeColor = foreColor;

            PaginationForeColor = PrimaryColor;

            FlowLayoutPanelBarFillColor = PlainColor;
            FlowLayoutPanelBarForeColor = PrimaryColor;

            DropDownStyle = this;

            return(this);
        }
Example #5
0
 public override void SetStyleColor(UIBaseStyle uiColor)
 {
     base.SetStyleColor(uiColor);
     foreColor = uiColor.ProgressIndicatorColor;
     ClearImage();
 }
Example #6
0
 public static bool IsValid(this UIBaseStyle style)
 {
     return(!style.IsCustom());
 }