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); }
public FormThemeBase() { // about theme ThemeName = "Base Default Theme"; // form shape SideResizeWidth = 6; BorderWidth = 5; CaptionHeight = 36; 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 = false; 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 }