aboutsummaryrefslogtreecommitdiff
path: root/source/ShiftUI/Theming
diff options
context:
space:
mode:
Diffstat (limited to 'source/ShiftUI/Theming')
-rw-r--r--source/ShiftUI/Theming/ShiftOS.cs2
-rw-r--r--source/ShiftUI/Theming/ThemeSkinnable.cs2
2 files changed, 3 insertions, 1 deletions
diff --git a/source/ShiftUI/Theming/ShiftOS.cs b/source/ShiftUI/Theming/ShiftOS.cs
index 1cc00e1..1004a45 100644
--- a/source/ShiftUI/Theming/ShiftOS.cs
+++ b/source/ShiftUI/Theming/ShiftOS.cs
@@ -18,6 +18,8 @@ namespace ShiftUI.ShiftOS
#region Global
public string DefaultFont = "Microsoft Sans Serif";
+ public Color VisualStyleBorderColor = Color.Black;
+ public int VisualStyleBorderWidth = 2;
public int DefaultFontSize = 9;
public FontStyle DefaultFontStyle = FontStyle.Regular;
public Color WindowBackColor = Color.Gray;
diff --git a/source/ShiftUI/Theming/ThemeSkinnable.cs b/source/ShiftUI/Theming/ThemeSkinnable.cs
index bf8b56f..ede3aa9 100644
--- a/source/ShiftUI/Theming/ThemeSkinnable.cs
+++ b/source/ShiftUI/Theming/ThemeSkinnable.cs
@@ -7935,7 +7935,7 @@ namespace ShiftUI
public override void CPDrawVisualStyleBorder(Graphics graphics, Rectangle bounds)
{
- graphics.DrawRectangle(SystemPens.ControlDarkDark, bounds);
+ graphics.DrawRectangle(new System.Drawing.Pen(new SolidBrush(Application.CurrentSkin.VisualStyleBorderColor), Application.CurrentSkin.VisualStyleBorderWidth), bounds);
}
private static void DrawBorderInternal(Graphics graphics, int startX, int startY, int endX, int endY,