Fixed of the warnings.
+ Some small bug-fixing related to the system colors change on MacOS ("Set..." buttons didn't respect to the system color change)
This commit is contained in:
parent
d3ddb1cfa8
commit
888a5e3084
7 changed files with 16 additions and 27 deletions
|
@ -747,6 +747,10 @@ void ConfigOptionsGroup::sys_color_changed()
|
|||
wxGetApp().UpdateDarkUI(extra_col);
|
||||
}
|
||||
|
||||
if (custom_ctrl)
|
||||
wxGetApp().UpdateDarkUI(custom_ctrl);
|
||||
#endif
|
||||
|
||||
auto update = [](wxSizer* sizer) {
|
||||
for (wxSizerItem* item : sizer->GetChildren())
|
||||
if (item->IsWindow()) {
|
||||
|
@ -768,10 +772,6 @@ void ConfigOptionsGroup::sys_color_changed()
|
|||
update(line.extra_widget_sizer);
|
||||
}
|
||||
|
||||
if (custom_ctrl)
|
||||
wxGetApp().UpdateDarkUI(custom_ctrl);
|
||||
#endif
|
||||
|
||||
// update undo buttons : rescale bitmaps
|
||||
for (const auto& field : m_fields)
|
||||
field.second->sys_color_changed();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue