/// <summary>Initializes a new instance of the <see cref="VisualTabPage" /> class.</summary> public VisualTabPage() { // This call is required by the Windows.Forms Form Designer. InitializeComponent(); UpdateStyles(); StyleManager _styleManager = new StyleManager(Settings.DefaultValue.DefaultStyle); _textSelected = Color.FromArgb(217, 220, 227); _textLineAlignment = StringAlignment.Center; _textAlignment = StringAlignment.Center; BackColor = _styleManager.Theme.BackgroundSettings.Type4; ForeColor = Color.FromArgb(174, 181, 187); Font = _styleManager.Theme.TextSetting.Font; _border = new Shape { Visible = false, Type = ShapeType.Rectangle }; _textImageRelation = TextImageRelations.Text; _image = null; _imageSize = new Size(16, 16); _headerImage = null; _tabNormal = _styleManager.Theme.OtherSettings.TabPageEnabled; _tabSelected = _styleManager.Theme.OtherSettings.TabPageSelected; _tabHover = _styleManager.Theme.OtherSettings.TabPageHover; }
/// <summary>Initializes a new instance of the <see cref="VisualTabPage" /> class.</summary> public VisualTabPage() { InitializeComponent(); UpdateStyles(); _textLineAlignment = StringAlignment.Center; _textAlignment = StringAlignment.Center; Theme theme = new Theme(Settings.DefaultValue.DefaultStyle); BackColor = theme.ColorPalette.ControlEnabled; ForeColor = Color.FromArgb(174, 181, 187); _textSelected = Color.FromArgb(217, 220, 227); _border = new Shape { Visible = false, Type = ShapeTypes.Rectangle }; _textImageRelation = TextImageRelations.Text; _image = null; _imageSize = new Size(16, 16); _headerImage = null; _tabNormal = theme.ColorPalette.TabPageEnabled; _tabSelected = theme.ColorPalette.TabPageSelected; _tabHover = theme.ColorPalette.TabPageHover; }