예제 #1
0
        public TabStyleVS2010Provider(TabControlExtra tabControl) : base(tabControl)
        {
            this.Radius        = 3;
            this.ShowTabCloser = true;

            this.CloserColorFocused           = Color.FromArgb(117, 99, 61);
            this.CloserColorFocusedActive     = Color.Black;
            this.CloserColorSelected          = Color.FromArgb(95, 102, 115);
            this.CloserColorSelectedActive    = Color.Black;
            this.CloserColorHighlighted       = Color.FromArgb(206, 212, 221);
            this.CloserColorHighlightedActive = Color.Black;
            this.CloserColorUnselected        = Color.Empty;

            this.CloserButtonFillColorFocused           = Color.Empty;
            this.CloserButtonFillColorFocusedActive     = Color.White;
            this.CloserButtonFillColorSelected          = Color.Empty;
            this.CloserButtonFillColorSelectedActive    = Color.White;
            this.CloserButtonFillColorHighlighted       = Color.Empty;
            this.CloserButtonFillColorHighlightedActive = Color.White;
            this.CloserButtonFillColorUnselected        = Color.Empty;

            this.CloserButtonOutlineColorFocused           = Color.Empty;
            this.CloserButtonOutlineColorFocusedActive     = Color.FromArgb(229, 195, 101);
            this.CloserButtonOutlineColorSelected          = Color.Empty;
            this.CloserButtonOutlineColorSelectedActive    = Color.FromArgb(229, 195, 101);
            this.CloserButtonOutlineColorHighlighted       = Color.Empty;
            this.CloserButtonOutlineColorHighlightedActive = Color.FromArgb(229, 195, 101);
            this.CloserButtonOutlineColorUnselected        = Color.Empty;

            this.TextColorUnselected    = Color.White;
            this.TextColorDisabled      = Color.WhiteSmoke;
            this.BorderColorDisabled    = Color.FromArgb(41, 57, 85);
            this.BorderColorFocused     = Color.FromArgb(255, 243, 205);
            this.BorderColorHighlighted = Color.FromArgb(155, 167, 183);
            this.BorderColorSelected    = Color.FromArgb(206, 212, 223);
            this.BorderColorUnselected  = Color.FromArgb(41, 57, 85);

            this.PageBackgroundColorDisabled    = Color.FromArgb(41, 57, 85);
            this.PageBackgroundColorFocused     = Color.FromArgb(255, 243, 205);
            this.PageBackgroundColorHighlighted = Color.FromArgb(75, 92, 116);
            this.PageBackgroundColorSelected    = Color.FromArgb(206, 212, 223);
            this.PageBackgroundColorUnselected  = Color.FromArgb(41, 57, 85);

            this.TabColorDisabled1    = this.PageBackgroundColorDisabled;
            this.TabColorDisabled2    = this.TabColorDisabled1;
            this.TabColorFocused1     = this.PageBackgroundColorFocused;
            this.TabColorFocused2     = this.TabColorFocused1;
            this.TabColorHighLighted1 = this.PageBackgroundColorHighlighted;
            this.TabColorHighLighted2 = this.TabColorHighLighted1;
            this.TabColorSelected1    = this.PageBackgroundColorSelected;
            this.TabColorSelected2    = this.TabColorSelected1;
            this.TabColorUnSelected1  = this.PageBackgroundColorUnselected;
            this.TabColorUnSelected1  = this.TabColorUnSelected1;

            //	Must set after the _Radius as this is used in the calculations of the actual padding
            this.Padding = new Point(6, 5);

            this.TabPageMargin = new Padding(0, 4, 0, 4);
            this.TabPageRadius = 2;
        }
예제 #2
0
        private void editortabs_MouseClick(object sender, MouseEventArgs e)
        {
            Control fromTabs = sender as Control;

            OpenTab.TAB_SIDE side = OpenTab.TAB_SIDE.None;
            TabControlExtra  Tab  = null;

            switch (fromTabs.Name)
            {
            case "editortabsleft":
                side = OpenTab.TAB_SIDE.Left;
                Tab  = editortabsleft;
                break;

            case "editortabsright":
                side = OpenTab.TAB_SIDE.Right;
                Tab  = editortabsright;
                break;
            }

            if (e.Button == MouseButtons.Right)
            {
                for (int ix = 0; ix < Tab.TabCount; ++ix)
                {
                    if (Tab.GetTabRect(ix).Contains(e.Location))
                    {
                        RightClickedTab = new OpenTab(side, ix);
                        toolstabrightclick.Show(Cursor.Position);
                        break;
                    }
                }
            }
        }
예제 #3
0
        public TabStyleRoundedProvider(TabControlExtra tabControl) : base(tabControl)
        {
            this.Radius = 10;
            this.SelectedTabIsLarger = false;

            this.Padding = new Point(6, 3);
        }
        public TabStyleChromeProvider(TabControlExtra tabControl) : base(tabControl)
        {
            this.Overlap = 16;
            //this.Radius = 16;
            this.ShowTabCloser = true;

            this.CloserColorFocused           = Color.Black;
            this.CloserColorFocusedActive     = Color.White;
            this.CloserColorSelected          = Color.Black;
            this.CloserColorSelectedActive    = Color.White;
            this.CloserColorHighlighted       = Color.Black;
            this.CloserColorHighlightedActive = Color.White;
            this.CloserColorUnselected        = Color.Empty;

            this.CloserButtonFillColorFocused           = Color.Empty;
            this.CloserButtonFillColorFocusedActive     = Color.FromArgb(244, 159, 148);
            this.CloserButtonFillColorSelected          = Color.Empty;
            this.CloserButtonFillColorSelectedActive    = Color.FromArgb(244, 159, 148);
            this.CloserButtonFillColorHighlighted       = Color.Empty;
            this.CloserButtonFillColorHighlightedActive = Color.FromArgb(244, 159, 148);
            this.CloserButtonFillColorUnselected        = Color.Empty;

            this.CloserButtonOutlineColorFocused           = Color.Empty;
            this.CloserButtonOutlineColorFocusedActive     = Color.FromArgb(209, 106, 94);
            this.CloserButtonOutlineColorSelected          = Color.Empty;
            this.CloserButtonOutlineColorSelectedActive    = Color.FromArgb(209, 106, 94);
            this.CloserButtonOutlineColorHighlighted       = Color.Empty;
            this.CloserButtonOutlineColorHighlightedActive = Color.FromArgb(209, 106, 94);
            this.CloserButtonOutlineColorUnselected        = Color.Empty;


            //	Must set after the _Radius as this is used in the calculations of the actual padding
            this.Padding = new Point(16, 5);
        }
        public TabStyleVisualStudioProvider(TabControlExtra tabControl) : base(tabControl)
        {
            this.ImageAlign = ContentAlignment.MiddleRight;
            this.Overlap    = 7;

            //	Must set after the _Radius as this is used in the calculations of the actual padding
            this.Padding = new Point(16, 1);
        }
예제 #6
0
        public TabStyleDefaultProvider(TabControlExtra tabControl) : base(tabControl)
        {
            this.Radius = 2;

            this.SelectedTabIsLarger = true;

            this.TabColorHighLighted1 = Color.FromArgb(236, 244, 252);
            this.TabColorHighLighted2 = Color.FromArgb(221, 237, 252);

            this.PageBackgroundColorHighlighted = TabColorHighLighted1;
        }
        public TabStyleRectangularProvider(TabControlExtra tabControl) : base(tabControl)
        {
            this.Radius        = 1;
            this.ShowTabCloser = true;

            this.CloserColorFocused           = Color.FromArgb(208, 230, 245);
            this.CloserColorFocusedActive     = Color.White;
            this.CloserColorSelected          = Color.FromArgb(109, 109, 112);
            this.CloserColorSelectedActive    = Color.FromArgb(113, 113, 113);
            this.CloserColorHighlighted       = Color.FromArgb(129, 195, 241);
            this.CloserColorHighlightedActive = Color.White;
            this.CloserColorUnselected        = Color.Empty;

            this.CloserButtonFillColorFocused           = Color.Empty;
            this.CloserButtonFillColorFocusedActive     = Color.FromArgb(28, 151, 234);
            this.CloserButtonFillColorSelected          = Color.Empty;
            this.CloserButtonFillColorSelectedActive    = Color.FromArgb(230, 231, 237);
            this.CloserButtonFillColorHighlighted       = Color.Empty;
            this.CloserButtonFillColorHighlightedActive = Color.FromArgb(82, 176, 239);
            this.CloserButtonFillColorUnselected        = Color.Empty;

            this.CloserButtonOutlineColorFocused           = Color.Empty; //Color.FromArgb(0, 122, 204);
            this.CloserButtonOutlineColorFocusedActive     = Color.Empty;
            this.CloserButtonOutlineColorSelected          = Color.Empty;
            this.CloserButtonOutlineColorSelectedActive    = Color.Empty;
            this.CloserButtonOutlineColorHighlighted       = Color.Empty; //Color.FromArgb(28, 151, 234);
            this.CloserButtonOutlineColorHighlightedActive = Color.Empty;
            this.CloserButtonOutlineColorUnselected        = Color.Empty;

            this.TextColorFocused     = Color.White;
            this.TextColorHighlighted = Color.White;
            this.TextColorSelected    = Color.FromArgb(113, 113, 113);
            this.TextColorUnselected  = Color.Black;

            this.PageBackgroundColorDisabled    = SystemColors.Control;
            this.PageBackgroundColorFocused     = Color.FromArgb(0, 122, 204);
            this.PageBackgroundColorHighlighted = Color.FromArgb(28, 151, 234);
            this.PageBackgroundColorSelected    = Color.FromArgb(204, 206, 219);
            this.PageBackgroundColorUnselected  = Color.FromArgb(239, 239, 242);

            this.BorderColorDisabled    = this.PageBackgroundColorDisabled;
            this.BorderColorFocused     = this.PageBackgroundColorFocused;
            this.BorderColorHighlighted = this.PageBackgroundColorHighlighted;
            this.BorderColorSelected    = this.PageBackgroundColorSelected;
            this.BorderColorUnselected  = this.PageBackgroundColorUnselected;

            this.TabPageRadius = 0;

            //	Must set after the _Radius as this is used in the calculations of the actual padding
            this.Padding = new Point(6, 5);

            this.TabPageMargin = new Padding(0, 2, 0, 2);
        }
 public RenderedServiceForm(ToolStripProgressBar progressBar1, ToolStripLabel toolStripLabel, Button button1, Button button2, Button button3, Button button4, Button button6, TabControlExtra tabControl1)
 {
     InitializeComponent();
     FillCombobox();
     progBar         = progressBar1;
     TlStpLabel      = toolStripLabel;
     btn1            = button1;
     btn2            = button2;
     btn3            = button3;
     btn4            = button4;
     btn6            = button6;
     tabControlExtra = tabControl1;
 }
예제 #9
0
        public TabStyleIE8Provider(TabControlExtra tabControl)
            : base(tabControl)
        {
            this.Radius              = 3;
            this.ShowTabCloser       = true;
            this.SelectedTabIsLarger = true;

            this.CloserColorFocusedActive = Color.Red;
            this.CloserColorFocused       = Color.Black;
            this.CloserColorSelected      = Color.Black;
            this.CloserColorHighlighted   = Color.Black;
            this.CloserColorUnselected    = Color.Empty;

            this.CloserButtonFillColorFocusedActive = Color.White;
            this.CloserButtonFillColorFocused       = Color.Empty;
            this.CloserButtonFillColorSelected      = Color.Empty;
            this.CloserButtonFillColorHighlighted   = Color.Empty;
            this.CloserButtonFillColorUnselected    = Color.Empty;

            this.CloserButtonOutlineColorFocusedActive = SystemColors.ControlDark;
            this.CloserButtonOutlineColorFocused       = Color.Empty;
            this.CloserButtonOutlineColorSelected      = Color.Empty;
            this.CloserButtonOutlineColorHighlighted   = Color.Empty;
            this.CloserButtonOutlineColorUnselected    = Color.Empty;

            this.PageBackgroundColorDisabled    = Color.FromArgb(247, 247, 255);
            this.PageBackgroundColorFocused     = Color.FromArgb(247, 247, 255);
            this.PageBackgroundColorHighlighted = Color.FromArgb(247, 247, 255);
            this.PageBackgroundColorSelected    = Color.FromArgb(247, 247, 255);
            this.PageBackgroundColorUnselected  = Color.FromArgb(198, 223, 255);

            this.TabColorFocused2     = Color.FromArgb(198, 223, 255);
            this.TabColorHighLighted2 = Color.FromArgb(198, 223, 255);
            this.TabColorSelected2    = Color.FromArgb(198, 223, 255);

            this.Padding = new Point(6, 5);

            this.TabPageMargin = new Padding(0, 4, 0, 4);
        }
예제 #10
0
        private void SetUpPanels()
        {
            editortabs           = new SplitContainer();
            this.editortabsleft  = new TabControlExtra();
            this.editortabsright = new TabControlExtra();
            this.usercontrol     = new TabControlExtra();

            editortabs.Dock = DockStyle.Fill;

            //
            // editortabsleft
            //
            this.editortabsleft.DisplayStyleProvider.TabColorSelected1   = Color.White;
            this.editortabsleft.DisplayStyleProvider.TabColorUnSelected1 = Color.White;
            this.editortabsleft.DisplayStyleProvider.TabColorFocused1    = Color.White;

            this.editortabsleft.DisplayStyleProvider.CloserColorSelectedActive = Color.Black;
            this.editortabsleft.DisplayStyleProvider.ShowTabCloser             = true;
            this.editortabsleft.DisplayStyleProvider.HotTrack = true;
            this.editortabsleft.Dock          = DockStyle.Fill;
            this.editortabsleft.ItemSize      = new Size(0, 20);
            this.editortabsleft.Name          = "editortabsleft";
            this.editortabsleft.SelectedIndex = 0;
            this.editortabsleft.TabIndex      = 0;
            this.editortabsleft.ImageList     = tabImageList;
            this.editortabsleft.MouseClick   += new MouseEventHandler(this.editortabs_MouseClick);
            this.editortabsleft.ControlAdded += Editortabsleft_ControlAdded;
            this.editortabsleft.TabClosed    += Editortabsleft_TabClosed;

            //
            // editortabsright
            //
            this.editortabsright.DisplayStyleProvider.TabColorSelected1   = Color.White;
            this.editortabsright.DisplayStyleProvider.TabColorUnSelected1 = Color.White;
            this.editortabsright.DisplayStyleProvider.TabColorFocused1    = Color.White;

            this.editortabsright.DisplayStyleProvider.CloserColorSelectedActive = Color.Black;
            this.editortabsright.DisplayStyleProvider.ShowTabCloser             = true;
            this.editortabsright.DisplayStyleProvider.HotTrack = true;
            this.editortabsright.Dock          = DockStyle.Fill;
            this.editortabsright.ItemSize      = new Size(0, 20);
            this.editortabsright.Name          = "editortabsright";
            this.editortabsright.SelectedIndex = 0;
            this.editortabsright.TabIndex      = 0;
            this.editortabsright.ImageList     = tabImageList;
            this.editortabsright.MouseClick   += new MouseEventHandler(this.editortabs_MouseClick);
            this.editortabsright.ControlAdded += Editortabsleft_ControlAdded;
            this.editortabsright.TabClosed    += Editortabsleft_TabClosed;

            //
            // usercontrol
            //
            this.usercontrol.DisplayStyleProvider.TabColorSelected1   = Color.White;
            this.usercontrol.DisplayStyleProvider.TabColorUnSelected1 = Color.White;
            this.usercontrol.DisplayStyleProvider.TabColorFocused1    = Color.White;

            this.usercontrol.DisplayStyleProvider.CloserColorSelectedActive = Color.Black;
            this.usercontrol.DisplayStyleProvider.ShowTabCloser             = true;
            this.usercontrol.DisplayStyleProvider.HotTrack = true;
            this.usercontrol.Dock          = DockStyle.Fill;
            this.usercontrol.ItemSize      = new Size(0, 20);
            this.usercontrol.Name          = "usercontrol";
            this.usercontrol.SelectedIndex = 0;
            this.usercontrol.TabIndex      = 0;

            editortabs.Panel1.Controls.Add(editortabsleft);
            editortabs.Panel2.Controls.Add(editortabsright);
            editortabs.Panel2Collapsed = true;

            string side = Program.Config.GetValue("toolbarSide");

            if (side == "Right")
            {
                this.splitContainer1.Panel1.Controls.Add(editortabs);
                this.splitContainer1.Panel2.Controls.Add(usercontrol);
                this.splitContainer1.SplitterDistance = 591;
            }
            else
            {
                this.splitContainer1.Panel1.Controls.Add(usercontrol);
                this.splitContainer1.Panel2.Controls.Add(editortabs);
                this.splitContainer1.SplitterDistance = 166;
            }
        }
예제 #11
0
 public TabStyleNoneProvider(TabControlExtra tabControl) : base(tabControl)
 {
 }