示例#1
0
        public ThemeFormVS2013()
            : base()
        {
            ThemeName = "A VS2013 Look";

            BorderWidth      = 1;
            CaptionHeight    = 38;
            IconSize         = new Size(22, 22);
            CloseBoxSize     = MaxBoxSize = MinBoxSize = new Size(34, 27);
            ControlBoxOffset = new Point(1, 1);
            ControlBoxSpace  = 1;
            SideResizeWidth  = 6;
            UseDefaultTopRoundingFormRegion = false;

            CaptionBackColorBottom = CaptionBackColorTop = Color.FromArgb(214, 219, 233);

            RoundedStyle = RoundStyle.None;

            FormBorderOutterColor = Color.FromArgb(0, 0, 0);
            SetClientInset        = false;

            CaptionTextColor = Color.FromArgb(0, 0, 0);
            FormBackColor    = Color.FromArgb(42, 58, 86);

            CloseBoxColor = ButtonColorTable.GetColorTableVs2013Theme();
            MaxBoxColor   = MinBoxColor = CloseBoxColor;
        }
        private ButtonColorTable GetColorTable()
        {
            ButtonColorTable table = new ButtonColorTable();

            table.BackColorNormal  = Color.FromArgb(55, 58, 61);
            table.BackColorHover   = Color.Black;
            table.BackColorPressed = Color.FromArgb(130, 130, 130);
            return(table);
        }
        private ButtonColorTable GetColorTable()
        {
            ButtonColorTable table = new ButtonColorTable();

            table.BackColorNormal  = Color.White;
            table.BackColorHover   = Color.FromArgb(230, 230, 230);
            table.BackColorPressed = Color.FromArgb(220, 220, 220);
            return(table);
        }
示例#4
0
        private ButtonColorTable MdlBtnColor()
        {
            ButtonColorTable table = new ButtonColorTable();

            table.BackColorNormal  = Color.FromArgb(208, 209, 215);
            table.BackColorHover   = Color.FromArgb(136, 136, 136);
            table.BackColorPressed = Color.FromArgb(106, 106, 106);

            return(table);
        }
示例#5
0
        private ButtonColorTable GetMiddleButtonColorTable()
        {
            ButtonColorTable table = new ButtonColorTable();

            table.BackColorNormal  = Color.FromArgb(117, 117, 117);
            table.BackColorHover   = Color.FromArgb(129, 129, 129);
            table.BackColorPressed = Color.FromArgb(140, 140, 140);

            return(table);
        }
示例#6
0
        public static ButtonColorTable GetColorTableVs2013Theme()
        {
            ButtonColorTable table = new ButtonColorTable();

            table.ForeColorNormal  = table.ForeColorHover = table.ForeColorPressed = Color.Black;
            table.BackColorHover   = Color.FromArgb(255, 252, 244);
            table.BackColorPressed = Color.FromArgb(255, 232, 166);
            table.BorderColorHover = table.BorderColorPressed = Color.FromArgb(229, 195, 101);

            return(table);
        }
示例#7
0
        public static ButtonColorTable GetDevWhiteThemeCloseBtnColor()
        {
            ButtonColorTable closeTable = new ButtonColorTable();

            closeTable.ForeColorNormal = closeTable.ForeColorHover = closeTable.ForeColorPressed
                                                                         = ColorHelper.GetDarkerColor(Color.White, 5);
            closeTable.BackColorNormal  = Color.FromArgb(199, 80, 80);
            closeTable.BackColorHover   = Color.FromArgb(224, 67, 67);
            closeTable.BackColorPressed = Color.FromArgb(153, 61, 61);
            return(closeTable);
        }
示例#8
0
        private ButtonColorTable SideBtnColor()
        {
            ButtonColorTable table = new ButtonColorTable();

            table.ForeColorNormal   = Color.FromArgb(134, 137, 153);
            table.ForeColorHover    = Color.FromArgb(28, 151, 234);
            table.ForeColorPressed  = Color.FromArgb(0, 122, 204);
            table.ForeColorDisabled = Color.LightGray;

            return(table);
        }
示例#9
0
        private ButtonColorTable GetSideButtonColorTable()
        {
            ButtonColorTable table = new ButtonColorTable();

            table.ForeColorNormal   = Color.FromArgb(120, 120, 120);
            table.ForeColorHover    = Color.FromArgb(140, 140, 140);
            table.ForeColorPressed  = Color.FromArgb(160, 160, 160);
            table.ForeColorDisabled = Color.FromArgb(89, 89, 89);

            return(table);
        }
        protected virtual ButtonColorTable DefaultThumbColor()
        {
            ButtonColorTable table = new ButtonColorTable();

            table.BorderColorNormal = table.BorderColorHover = table.BorderColorPressed =
                Color.FromArgb(0, 114, 198);
            table.BackColorNormal  = Color.White;
            table.BackColorHover   = Color.FromArgb(177, 214, 240);
            table.BackColorPressed = ColorHelper.GetDarkerColor(table.BackColorHover, 16);
            return(table);
        }
示例#11
0
        private ButtonColorTable GetColorTable()
        {
            ButtonColorTable table = new ButtonColorTable();

            table.BackColorNormal   = Color.FromArgb(190, 199, 209);
            table.BackColorHover    = Color.FromArgb(163, 176, 189);
            table.BackColorPressed  = Color.FromArgb(146, 162, 178);
            table.BackColorDisabled = Color.FromArgb(210, 210, 210);

            return(table);
        }
示例#12
0
        public static ButtonColorTable GetDevWhiteThemeMinMaxBtnColor()
        {
            ButtonColorTable maxTable = new ButtonColorTable();

            maxTable.ForeColorNormal  = Color.Black;
            maxTable.ForeColorHover   = maxTable.ForeColorPressed = Color.White;
            maxTable.BackColorNormal  = Color.Transparent;
            maxTable.BackColorHover   = Color.FromArgb(54, 101, 179);
            maxTable.BackColorPressed = Color.FromArgb(44, 88, 161);
            return(maxTable);
        }
示例#13
0
        public static ButtonColorTable GetDefaultCloseBtnColor()
        {
            ButtonColorTable table = new ButtonColorTable();

            table.ForeColorNormal  = Color.Black;
            table.ForeColorHover   = table.ForeColorPressed = Color.White;
            table.BackColorNormal  = Color.Transparent;
            table.BackColorHover   = Color.FromArgb(241, 157, 147);
            table.BackColorPressed = Color.FromArgb(217, 98, 98);

            return(table);
        }
示例#14
0
        public static ButtonColorTable DefaultTable()
        {
            ButtonColorTable table = new ButtonColorTable();

            table.ForeColorNormal = table.ForeColorHover = table.ForeColorPressed = Color.Black;

            table.BackColorNormal  = Color.LightPink;
            table.BackColorHover   = Color.HotPink;
            table.BackColorPressed = Color.DeepPink;

            return(table);
        }
示例#15
0
        private ButtonColorTable SideBtnColor()
        {
            ButtonColorTable table = MdlBtnColor();

            table.ForeColorNormal   = Color.FromArgb(73, 73, 73);
            table.ForeColorHover    = Color.FromArgb(32, 106, 145);
            table.ForeColorPressed  = Color.FromArgb(15, 38, 50);
            table.ForeColorDisabled = SystemColors.ControlDarkDark;

            table.BackColorDisabled = SystemColors.ControlDark;

            return(table);
        }
示例#16
0
        private ButtonColorTable GetSideButtonColorTable()
        {
            ButtonColorTable table = new ButtonColorTable();

            table.ForeColorHover    = table.ForeColorNormal = Color.FromArgb(80, 80, 80);
            table.ForeColorPressed  = Color.White;
            table.ForeColorDisabled = Color.FromArgb(163, 163, 163);

            table.BackColorHover   = Color.FromArgb(210, 210, 210);
            table.BackColorPressed = Color.FromArgb(120, 120, 120);

            return(table);
        }
示例#17
0
        private ButtonColorTable MdlBtnColor()
        {
            ButtonColorTable table = new ButtonColorTable();

            table.BorderColorNormal  = Color.FromArgb(151, 151, 151);
            table.BorderColorHover   = Color.FromArgb(53, 111, 155);
            table.BorderColorPressed = Color.FromArgb(60, 127, 177);

            table.BackColorNormal  = Color.FromArgb(217, 218, 219);
            table.BackColorHover   = Color.FromArgb(169, 219, 246);
            table.BackColorPressed = Color.FromArgb(111, 202, 240);

            return(table);
        }
示例#18
0
        private ButtonColorTable GetMiddleButtonColorTable()
        {
            ButtonColorTable table = new ButtonColorTable();

            table.BorderColorNormal  = Color.FromArgb(168, 168, 168);
            table.BorderColorHover   = Color.FromArgb(154, 154, 154);
            table.BorderColorPressed = Color.FromArgb(120, 120, 120);

            table.BackColorNormal  = Color.FromArgb(188, 188, 188);
            table.BackColorHover   = Color.FromArgb(170, 170, 170);
            table.BackColorPressed = Color.FromArgb(141, 141, 141);

            return(table);
        }
示例#19
0
        private ButtonColorTable GetDefaultSideMdlBtnColor()
        {
            ButtonColorTable table = new ButtonColorTable();

            table.BorderColorNormal  = Color.FromArgb(151, 151, 151);
            table.BorderColorHover   = Color.FromArgb(53, 111, 155);
            table.BorderColorPressed = Color.FromArgb(60, 127, 177);

            table.BackColorNormal  = Color.FromArgb(217, 218, 219);
            table.BackColorHover   = Color.FromArgb(169, 219, 246);
            table.BackColorPressed = Color.FromArgb(111, 202, 240);

            table.ForeColorNormal   = Color.FromArgb(73, 73, 73);
            table.ForeColorHover    = Color.FromArgb(32, 106, 145);
            table.ForeColorPressed  = Color.FromArgb(15, 38, 50);
            table.ForeColorDisabled = SystemColors.ControlDarkDark;

            table.BackColorDisabled = SystemColors.ControlDark;

            return(table);
        }
        public ThemeFormBase()
        {
            // about theme
            ThemeName = "Base Default Theme";

            // form shape
            SideResizeWidth  = 6;
            BorderWidth      = 6;
            CaptionHeight    = 28;
            IconLeftMargin   = 2;
            IconSize         = new Size(16, 16);
            TextLeftMargin   = 2;
            ControlBoxOffset = new Point(8, 8);
            CloseBoxSize     = new Size(37, 17);
            MaxBoxSize       = new Size(25, 17);
            MinBoxSize       = new Size(25, 17);
            ControlBoxSpace  = 2;
            Radius           = 8;
            RoundedStyle     = RoundStyle.None;
            UseDefaultTopRoundingFormRegion = true;
            DrawCaptionIcon = true;
            DrawCaptionText = true;

            // form shadow
            ShowShadow        = false;
            ShadowWidth       = 6;
            ShadowColor       = Color.Black;
            ShadowAValueDark  = 80;
            ShadowAValueLight = 0;
            UseShadowToResize = false;

            // form color
            FormBorderInmostColor = FormBorderInnerColor = FormBorderOutterColor
                                                               = ColorHelper.GetLighterColor(Color.FromArgb(75, 159, 216), 10);
            CaptionBackColorBottom             = CaptionBackColorTop
                                               = ColorHelper.GetLighterColor(Color.FromArgb(75, 159, 216), 10);
            CaptionTextColor                   = Color.Black;
            FormBackColor = SystemColors.Control;

            // form other
            SetClientInset    = true;
            CaptionTextCenter = false;

            // control box color
            CloseBoxColor = ButtonColorTable.GetDevWhiteThemeCloseBtnColor();
            MaxBoxColor   = ButtonColorTable.GetDevWhiteThemeMinMaxBtnColor();
            MinBoxColor   = MaxBoxColor;

            #region mdi support

            // bar overall
            Mdi_UseMsgToActivateChild = true;
            Mdi_BarMargin             = new Padding(6, 38, 100, 0);
            Mdi_BarLeftPadding        = 3;
            Mdi_BarRightPadding       = 100;
            Mdi_BarBackColor          = Color.LightSkyBlue;
            Mdi_BarBorderColor        = Color.Red;
            Mdi_DrawBarBackground     = false;
            Mdi_DrawBarBorder         = false;

            // bar bottom region
            Mdi_BarBottomRegionBackColor = Color.White;
            Mdi_BarBottomRegionHeight    = 3;

            // tab
            Mdi_TabHeight       = 26;
            Mdi_TabHeightActive = Mdi_TabHeight;
            Mdi_TabSlopeWidth   = 8;
            Mdi_TabAndTabSpace  = -Mdi_TabSlopeWidth;
            Mdi_TabTopSpace     = 2;
            Mdi_TabMaxWidth     = 360;
            Mdi_TabNormalWidth  = 180;
            Mdi_TabMinWidth     = 90;
            Mdi_ShowTabIcon     = true;

            Mdi_TabActiveBackColorTop      = Color.White;
            Mdi_TabActiveBackColorBottom   = Color.White;
            Mdi_TabDeactiveBackColorTop    = Color.LightGray;
            Mdi_TabDeactiveBackColorBottom = Color.DarkGray;
            Mdi_TabOutterBorderColor       = Color.Gray;
            Mdi_TabInnerBorderColor        = Color.FromArgb(180, Color.White);

            // new tab btn
            Mdi_ShowNewTabBtn        = true;
            Mdi_NewTabBtnBottomSpace = Mdi_BarBottomRegionHeight + 4;
            Mdi_NewTabBtnLeftSpace   = 4;
            Mdi_NewTabBtnSize        = new Size(25, 18);
            Mdi_NewTabBtnColor       = ButtonColorTable.DefaultTable();

            // list all btn
            Mdi_AlwaysShowListAllBtn  = true;
            Mdi_ListAllBtnAlign       = BarButtonAlignmentType.Left;
            Mdi_ListAllBtnBottomSpace = Mdi_BarBottomRegionHeight + 4;
            Mdi_ListAllBtnLeftSpace   = 4;
            Mdi_ListAllBtnSize        = new Size(36, 18);
            Mdi_ListAllBtnColor       = ButtonColorTable.DefaultTable();

            #endregion
        }