From ee43edb7e6109880d6bb20855efe738e640f9b31 Mon Sep 17 00:00:00 2001 From: "chunmao.guo" Date: Tue, 9 Aug 2022 18:09:48 +0800 Subject: [PATCH] FIX: TabCtrl: size of indicator Change-Id: Ie8269115485bce6cff3478cfd535831806a94e39 --- src/slic3r/GUI/Widgets/TabCtrl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/Widgets/TabCtrl.cpp b/src/slic3r/GUI/Widgets/TabCtrl.cpp index 71ba2a49e..223038e85 100644 --- a/src/slic3r/GUI/Widgets/TabCtrl.cpp +++ b/src/slic3r/GUI/Widgets/TabCtrl.cpp @@ -284,9 +284,9 @@ void TabCtrl::doRender(wxDC& dc) auto x1 = btns[sel]->GetPosition().x; auto x2 = x1 + btns[sel]->GetSize().x; - const int BS = border_width / 2; const int BS2 = (1 + border_width) / 2; #if 0 + const int BS = border_width / 2; x1 -= TAB_BUTTON_SPACE; x2 += TAB_BUTTON_SPACE; dc.SetPen(wxPen(border_color.colorForStates(states), border_width)); dc.SetBrush(*wxTRANSPARENT_BRUSH); @@ -303,7 +303,7 @@ void TabCtrl::doRender(wxDC& dc) dc.SetPen(wxPen(border_color.colorForStates(states), border_width)); dc.DrawLine(0, size.y - BS2, size.x, size.y - BS2); wxColor c(0x42AE00); - dc.SetPen(wxPen(c, 0)); + dc.SetPen(wxPen(c, 1)); dc.SetBrush(c); dc.DrawRoundedRectangle(x1 - radius, size.y - BS2 - border_width * 3, x2 + radius * 2 - x1, border_width * 3, radius); #endif