diff --git a/ShareX.HelpersLib/Controls/SplitContainerCustomSplitter.cs b/ShareX.HelpersLib/Controls/SplitContainerCustomSplitter.cs index 0c7b849f8..0dbd38e17 100644 --- a/ShareX.HelpersLib/Controls/SplitContainerCustomSplitter.cs +++ b/ShareX.HelpersLib/Controls/SplitContainerCustomSplitter.cs @@ -23,7 +23,6 @@ You should have received a copy of the GNU General Public License #endregion License Information (GPL v3) -using System.ComponentModel; using System.Drawing; using System.Windows.Forms; @@ -31,15 +30,12 @@ namespace ShareX.HelpersLib { public class SplitContainerCustomSplitter : SplitContainer { - [DefaultValue(typeof(Color), "Black")] - public Color SplitterColor { get; set; } = Color.Black; - protected override void OnPaint(PaintEventArgs pevent) { Graphics g = pevent.Graphics; Rectangle rect = SplitterRectangle; - using (Pen pen = new Pen(SplitterColor)) + using (Pen pen = new Pen(ProfessionalColors.SeparatorDark)) { if (Orientation == Orientation.Horizontal) { diff --git a/ShareX.HelpersLib/Controls/ToolStripBorderRight.cs b/ShareX.HelpersLib/Controls/ToolStripBorderRight.cs index 55d717e84..9a89f8820 100644 --- a/ShareX.HelpersLib/Controls/ToolStripBorderRight.cs +++ b/ShareX.HelpersLib/Controls/ToolStripBorderRight.cs @@ -34,7 +34,10 @@ protected override void OnPaint(PaintEventArgs e) { base.OnPaint(e); - e.Graphics.DrawLine(Pens.DarkGray, new Point(ClientSize.Width - 1, 0), new Point(ClientSize.Width - 1, ClientSize.Height - 1)); + using (Pen pen = new Pen(ProfessionalColors.SeparatorDark)) + { + e.Graphics.DrawLine(pen, new Point(ClientSize.Width - 1, 0), new Point(ClientSize.Width - 1, ClientSize.Height - 1)); + } } protected override void OnPaintBackground(PaintEventArgs e) diff --git a/ShareX.HistoryLib/HistoryForm.Designer.cs b/ShareX.HistoryLib/HistoryForm.Designer.cs index 73500e84b..3bf109669 100644 --- a/ShareX.HistoryLib/HistoryForm.Designer.cs +++ b/ShareX.HistoryLib/HistoryForm.Designer.cs @@ -74,7 +74,6 @@ private void InitializeComponent() // scMain.Panel2 // this.scMain.Panel2.Controls.Add(this.panel1); - this.scMain.SplitterColor = System.Drawing.Color.DarkGray; this.scMain.SplitterMoved += new System.Windows.Forms.SplitterEventHandler(this.scMain_SplitterMoved); // // lvHistory diff --git a/ShareX/Forms/MainForm.Designer.cs b/ShareX/Forms/MainForm.Designer.cs index 1c130ccc2..7d0b0e842 100644 --- a/ShareX/Forms/MainForm.Designer.cs +++ b/ShareX/Forms/MainForm.Designer.cs @@ -294,7 +294,6 @@ private void InitializeComponent() // scMain.Panel2 // this.scMain.Panel2.Controls.Add(this.pbPreview); - this.scMain.SplitterColor = System.Drawing.Color.DarkGray; this.scMain.SplitterMoved += new System.Windows.Forms.SplitterEventHandler(this.scMain_SplitterMoved); // // lblMainFormTip