Skip to content

Commit ced9dac

Browse files
committed
Fixes #962
1 parent c0eca71 commit ced9dac

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

PluginCore/DockPanelSuite/Docking/DockPane.SplitterControl.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,11 @@ protected override void OnPaint(PaintEventArgs e)
5151

5252
Graphics g = e.Graphics;
5353
Rectangle rect = ClientRectangle;
54+
Pen pen = new Pen(PluginCore.PluginBase.MainForm.GetThemeColor("DockWindow.BorderColor", SystemColors.ControlDark));
5455
if (Alignment == DockAlignment.Top || Alignment == DockAlignment.Bottom)
55-
g.DrawLine(SystemPens.ControlDark, rect.Left, rect.Bottom - 1, rect.Right, rect.Bottom - 1);
56+
g.DrawLine(pen, rect.Left, rect.Bottom - 1, rect.Right, rect.Bottom - 1);
5657
else if (Alignment == DockAlignment.Left || Alignment == DockAlignment.Right)
57-
g.DrawLine(SystemPens.ControlDarkDark, rect.Right - 1, rect.Top, rect.Right - 1, rect.Bottom);
58+
g.DrawLine(pen, rect.Right - 1, rect.Top, rect.Right - 1, rect.Bottom);
5859
}
5960

6061
protected override void OnMouseDown(MouseEventArgs e)

0 commit comments

Comments
 (0)