From 0192d5952492672c9e5b1348f501f7580b01d50c Mon Sep 17 00:00:00 2001 From: Serge <5920850+seerge@users.noreply.github.com> Date: Sat, 31 Aug 2024 11:06:42 +0200 Subject: [PATCH] UI Tweaks --- app/UI/RButton.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/UI/RButton.cs b/app/UI/RButton.cs index 4250c900..ffc30a7c 100644 --- a/app/UI/RButton.cs +++ b/app/UI/RButton.cs @@ -114,8 +114,7 @@ protected override void OnPaint(PaintEventArgs pevent) using (Brush brush = new SolidBrush(borderColor)) { var radius = ratio * 10; - var padding = ratio * 10; - pevent.Graphics.FillEllipse(brush, rectSurface.Width - padding - (2 * radius), padding, radius + radius, radius + radius); + pevent.Graphics.FillEllipse(brush, rectSurface.Width - rectSurface.Height / 2 - radius, rectSurface.Height / 2 - radius, radius + radius, radius + radius); } }