mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00:00
FIX: Support dark mode in filament picker
- Applied dark theme styling to filament picker dialog - Fixed color picker background not updating on theme switch jira: STUDIO-12935 Change-Id: I9c7dcc518e7b0bd2c330f477ee42f4c61ea9fd4b (cherry picked from commit 66ae7a02b945ff603b2dc699c93e55589481379e)
This commit is contained in:
@@ -52,6 +52,12 @@ void StaticBox::SetCornerRadius(double radius)
|
||||
Refresh();
|
||||
}
|
||||
|
||||
void StaticBox::SetBorderStyle(wxPenStyle style)
|
||||
{
|
||||
border_style = style;
|
||||
Refresh();
|
||||
}
|
||||
|
||||
void StaticBox::SetBorderWidth(int width)
|
||||
{
|
||||
border_width = width;
|
||||
@@ -197,7 +203,7 @@ void StaticBox::doRender(wxDC& dc)
|
||||
rc.y += d;
|
||||
rc.height -= d;
|
||||
}
|
||||
dc.SetPen(wxPen(border_color.colorForStates(states), border_width));
|
||||
dc.SetPen(wxPen(border_color.colorForStates(states), border_width, border_style));
|
||||
} else {
|
||||
dc.SetPen(wxPen(background_color.colorForStates(states)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user