From 8b546eba1a703d521c12359f93d00eeaba2cba9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0evgen=20Baida?= Date: Fri, 5 Jan 2024 14:16:19 +0100 Subject: [PATCH] Apply code formatting MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: İevgen Baida --- .../Forms/ThemedControls/ThemedDocumentControlHandler.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/Eto/Forms/ThemedControls/ThemedDocumentControlHandler.cs b/src/Eto/Forms/ThemedControls/ThemedDocumentControlHandler.cs index 891de6b2f..57641bf61 100644 --- a/src/Eto/Forms/ThemedControls/ThemedDocumentControlHandler.cs +++ b/src/Eto/Forms/ThemedControls/ThemedDocumentControlHandler.cs @@ -523,7 +523,7 @@ void Drawable_MouseDown(object sender, MouseEventArgs e) } else SelectedIndex = i; - + break; } } @@ -691,8 +691,7 @@ void DrawTab(Graphics g, ThemedDocumentPageHandler tab, int i) var tabRect = tab.Rect; var textRect = tab.TextRect; var closerect = tab.CloseRect; - var closemargin = closerect.Height / 3; - var size = tabRect.Size; + var closemargin = closerect.Height / 3; var textcolor = Enabled ? TabForegroundColor : DisabledForegroundColor; var backcolor = TabBackgroundColor; @@ -725,7 +724,6 @@ void DrawTab(Graphics g, ThemedDocumentPageHandler tab, int i) g.DrawLine(closeForeground, closerect.X + closemargin, closerect.Y + closemargin, closerect.X + closerect.Width - 1 - closemargin, closerect.Y + closerect.Height - 1 - closemargin); g.DrawLine(closeForeground, closerect.X + closemargin, closerect.Y + closerect.Height - 1 - closemargin, closerect.X + closerect.Width - 1 - closemargin, closerect.Y + closemargin); } - } ///