From e3019a313ac273faf760e683ca5b9edcb2fb39b8 Mon Sep 17 00:00:00 2001 From: seerge Date: Thu, 16 Mar 2023 22:59:50 +0100 Subject: [PATCH] UI fixes --- RoundedButton.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/RoundedButton.cs b/RoundedButton.cs index a210a543..f8ecfabf 100644 --- a/RoundedButton.cs +++ b/RoundedButton.cs @@ -66,6 +66,7 @@ namespace CustomControls using (Pen penSurface = new Pen(this.Parent.BackColor, borderSize)) using (Pen penBorder = new Pen(borderDrawColor, borderSize)) { + penBorder.Alignment = PenAlignment.Outset; pevent.Graphics.SmoothingMode = SmoothingMode.AntiAlias; this.Region = new Region(pathSurface); pevent.Graphics.DrawPath(penSurface, pathSurface);