FIX: StaticBox background color

Change-Id: Ifbb0bc4ac3e0a69675f16dc3234b4190fff698fb
This commit is contained in:
chunmao.guo 2022-09-05 17:24:32 +08:00 committed by Lane.Wei
parent b03a16054b
commit dd0ccfb6e9
2 changed files with 12 additions and 4 deletions

View file

@ -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);
}