diff --git a/ShareX.HelpersLib/Controls/TabToTreeView.Designer.cs b/ShareX.HelpersLib/Controls/TabToTreeView.Designer.cs index 380ac0be8..e42255876 100644 --- a/ShareX.HelpersLib/Controls/TabToTreeView.Designer.cs +++ b/ShareX.HelpersLib/Controls/TabToTreeView.Designer.cs @@ -30,11 +30,14 @@ private void InitializeComponent() { this.tvMain = new System.Windows.Forms.TreeView(); this.scMain = new System.Windows.Forms.SplitContainer(); + this.pSeparator = new System.Windows.Forms.Panel(); this.tcMain = new ShareX.HelpersLib.TablessControl(); + this.pLeft = new System.Windows.Forms.Panel(); ((System.ComponentModel.ISupportInitialize)(this.scMain)).BeginInit(); this.scMain.Panel1.SuspendLayout(); this.scMain.Panel2.SuspendLayout(); this.scMain.SuspendLayout(); + this.pLeft.SuspendLayout(); this.SuspendLayout(); // // tvMain @@ -65,8 +68,8 @@ private void InitializeComponent() // // scMain.Panel1 // - this.scMain.Panel1.Controls.Add(this.tvMain); - this.scMain.Panel1.Padding = new System.Windows.Forms.Padding(8); + this.scMain.Panel1.Controls.Add(this.pSeparator); + this.scMain.Panel1.Controls.Add(this.pLeft); // // scMain.Panel2 // @@ -76,6 +79,16 @@ private void InitializeComponent() this.scMain.SplitterWidth = 3; this.scMain.TabIndex = 0; // + // pSeparator + // + this.pSeparator.BackColor = System.Drawing.SystemColors.ControlDark; + this.pSeparator.Dock = System.Windows.Forms.DockStyle.Right; + this.pSeparator.Location = new System.Drawing.Point(236, 0); + this.pSeparator.MaximumSize = new System.Drawing.Size(1, 0); + this.pSeparator.Name = "pSeparator"; + this.pSeparator.Size = new System.Drawing.Size(1, 500); + this.pSeparator.TabIndex = 1; + // // tcMain // this.tcMain.Dock = System.Windows.Forms.DockStyle.Fill; @@ -86,6 +99,16 @@ private void InitializeComponent() this.tcMain.TabIndex = 0; this.tcMain.Visible = false; // + // pLeft + // + this.pLeft.Controls.Add(this.tvMain); + this.pLeft.Dock = System.Windows.Forms.DockStyle.Fill; + this.pLeft.Location = new System.Drawing.Point(0, 0); + this.pLeft.Name = "pLeft"; + this.pLeft.Padding = new System.Windows.Forms.Padding(8); + this.pLeft.Size = new System.Drawing.Size(237, 500); + this.pLeft.TabIndex = 2; + // // TabToTreeView // this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F); @@ -98,6 +121,7 @@ private void InitializeComponent() this.scMain.Panel2.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.scMain)).EndInit(); this.scMain.ResumeLayout(false); + this.pLeft.ResumeLayout(false); this.ResumeLayout(false); } @@ -107,5 +131,7 @@ private void InitializeComponent() private System.Windows.Forms.TreeView tvMain; private System.Windows.Forms.SplitContainer scMain; private TablessControl tcMain; + private System.Windows.Forms.Panel pSeparator; + private System.Windows.Forms.Panel pLeft; } } diff --git a/ShareX.HelpersLib/Controls/TabToTreeView.cs b/ShareX.HelpersLib/Controls/TabToTreeView.cs index 1f98ed6b8..8bc2ac81f 100644 --- a/ShareX.HelpersLib/Controls/TabToTreeView.cs +++ b/ShareX.HelpersLib/Controls/TabToTreeView.cs @@ -102,11 +102,23 @@ public Color LeftPanelBackColor } set { - scMain.Panel1.BackColor = value; + pLeft.BackColor = value; tvMain.BackColor = value; } } + public Color SeparatorColor + { + get + { + return pSeparator.BackColor; + } + set + { + pSeparator.BackColor = value; + } + } + [DefaultValue(false)] public bool AutoSelectChild { get; set; } diff --git a/ShareX.HelpersLib/ShareXResources.cs b/ShareX.HelpersLib/ShareXResources.cs index f0b5d9975..e6a63815f 100644 --- a/ShareX.HelpersLib/ShareXResources.cs +++ b/ShareX.HelpersLib/ShareXResources.cs @@ -197,6 +197,7 @@ private static void ApplyCustomThemeToControl(Control control) { case TabToTreeView tttv: tttv.LeftPanelBackColor = Theme.DarkBackgroundColor; + tttv.SeparatorColor = Theme.SeparatorDarkColor; break; } }