FIX: StaticBox background color

Change-Id: Ifbb0bc4ac3e0a69675f16dc3234b4190fff698fb
This commit is contained in:
chunmao.guo authored and Lane.Wei committed 2022-09-08 21:49:36 +08:00
1 parent b03a16054b
commit dd0ccfb6e9
2 files changed
+12 -4

No files matched your search

+4 -1
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);
}