mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-27 00:24:00 -06:00
FIX: StaticBox background color
Change-Id: Ifbb0bc4ac3e0a69675f16dc3234b4190fff698fb
This commit is contained in:
parent
b03a16054b
commit
dd0ccfb6e9
2 changed files with 12 additions and 4 deletions
|
@ -169,7 +169,10 @@ void StaticBox::doRender(wxDC& dc)
|
|||
} else {
|
||||
dc.SetPen(wxPen(background_color.colorForStates(states)));
|
||||
}
|
||||
dc.SetBrush(wxBrush(background_color.colorForStates(states)));
|
||||
if (background_color.count() > 0)
|
||||
dc.SetBrush(wxBrush(background_color.colorForStates(states)));
|
||||
else
|
||||
dc.SetBrush(wxBrush(GetBackgroundColour()));
|
||||
if (radius == 0) {
|
||||
dc.DrawRectangle(rc);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue