Try to use PrusaIconTextRenderer(CustomRenderer) for IconText Rendering

+ experiments with button's color
+ removed "strange control part" from topLeft corner of the right panel
This commit is contained in:
YuSanka 2018-09-11 09:51:56 +02:00
parent 9c433f8e08
commit e3bb829e42
5 changed files with 81 additions and 11 deletions

View file

@ -1232,11 +1232,11 @@ void enable_action_buttons(bool enable)
return;
// Update background colour for buttons
// const wxColour bgrd_color = enable ? wxColour(255, 96, 0) : wxColour(204, 204, 204);
const wxColour bgrd_color = enable ? wxColour(224, 224, 224/*255, 96, 0*/) : wxColour(204, 204, 204);
for (auto btn : g_buttons) {
btn->Enable(enable);
// btn->SetBackgroundColour(bgrd_color);
btn->SetBackgroundColour(bgrd_color);
}
}