From 2ac6234277cdd430e2dec7d5b7099469ebb07a4b Mon Sep 17 00:00:00 2001 From: miku-666 <74728189+NessieHax@users.noreply.github.com> Date: Thu, 29 Jun 2023 19:35:39 +0200 Subject: [PATCH] CustomTabControl - Changed size and position of close button --- PCK-Studio/Controls/CustomTabControl.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/PCK-Studio/Controls/CustomTabControl.cs b/PCK-Studio/Controls/CustomTabControl.cs index 62cb410f..029d1104 100644 --- a/PCK-Studio/Controls/CustomTabControl.cs +++ b/PCK-Studio/Controls/CustomTabControl.cs @@ -14,7 +14,7 @@ namespace PckStudio.Controls internal class CustomTabControl : MetroTabControl { private const string CloseChar = "×"; - private Size CloseButtonSize = new Size(8, 8); + private Size CloseButtonSize = new Size(7, 7); private const int StartIndex = 1; [Browsable(true)] @@ -30,7 +30,7 @@ namespace PckStudio.Controls var closeBtnSz = CloseButtonSize; var closeBtnPt = new Point( tabArea.Right - closeBtnSz.Width, - tabArea.Top + (tabArea.Height - closeBtnSz.Height) / 2); + tabArea.Top + 2 + (tabArea.Height - closeBtnSz.Height) / 2); return new Rectangle(closeBtnPt, closeBtnSz); } @@ -69,8 +69,8 @@ namespace PckStudio.Controls CloseChar, Font, new SolidBrush(MetroPaint.ForeColor.Title(Theme)), - buttonArea.Right - buttonArea.Width - 1, buttonArea.Top - 3); + buttonArea.Right - buttonArea.Width - 2, buttonArea.Top - 4); } } } -} +} \ No newline at end of file