mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-10 16:27:54 -06:00
FIX: TabCtrl: size of indicator
Change-Id: Ie8269115485bce6cff3478cfd535831806a94e39
This commit is contained in:
parent
61d2d47854
commit
ee43edb7e6
1 changed files with 2 additions and 2 deletions
|
@ -284,9 +284,9 @@ void TabCtrl::doRender(wxDC& dc)
|
||||||
|
|
||||||
auto x1 = btns[sel]->GetPosition().x;
|
auto x1 = btns[sel]->GetPosition().x;
|
||||||
auto x2 = x1 + btns[sel]->GetSize().x;
|
auto x2 = x1 + btns[sel]->GetSize().x;
|
||||||
const int BS = border_width / 2;
|
|
||||||
const int BS2 = (1 + border_width) / 2;
|
const int BS2 = (1 + border_width) / 2;
|
||||||
#if 0
|
#if 0
|
||||||
|
const int BS = border_width / 2;
|
||||||
x1 -= TAB_BUTTON_SPACE; x2 += TAB_BUTTON_SPACE;
|
x1 -= TAB_BUTTON_SPACE; x2 += TAB_BUTTON_SPACE;
|
||||||
dc.SetPen(wxPen(border_color.colorForStates(states), border_width));
|
dc.SetPen(wxPen(border_color.colorForStates(states), border_width));
|
||||||
dc.SetBrush(*wxTRANSPARENT_BRUSH);
|
dc.SetBrush(*wxTRANSPARENT_BRUSH);
|
||||||
|
@ -303,7 +303,7 @@ void TabCtrl::doRender(wxDC& dc)
|
||||||
dc.SetPen(wxPen(border_color.colorForStates(states), border_width));
|
dc.SetPen(wxPen(border_color.colorForStates(states), border_width));
|
||||||
dc.DrawLine(0, size.y - BS2, size.x, size.y - BS2);
|
dc.DrawLine(0, size.y - BS2, size.x, size.y - BS2);
|
||||||
wxColor c(0x42AE00);
|
wxColor c(0x42AE00);
|
||||||
dc.SetPen(wxPen(c, 0));
|
dc.SetPen(wxPen(c, 1));
|
||||||
dc.SetBrush(c);
|
dc.SetBrush(c);
|
||||||
dc.DrawRoundedRectangle(x1 - radius, size.y - BS2 - border_width * 3, x2 + radius * 2 - x1, border_width * 3, radius);
|
dc.DrawRoundedRectangle(x1 - radius, size.y - BS2 - border_width * 3, x2 + radius * 2 - x1, border_width * 3, radius);
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue