Reworked sys_color_changed() functions

Fixed OSX specific bugs:
- toolbar flashing for some mainframe sizes (Retina specific)
- size of mainframe when settings layout in slNew mode

Added missed icons to the "white" folder
This commit is contained in:
YuSanka 2020-05-22 15:23:05 +02:00
parent c09d702045
commit a56bbea140
17 changed files with 135 additions and 11 deletions

View file

@ -568,6 +568,20 @@ void ConfigOptionsGroup::msw_rescale()
}
}
void ConfigOptionsGroup::sys_color_changed()
{
// update bitmaps for near label widgets (like "Set uniform scale" button on settings panel)
if (rescale_near_label_widget)
for (auto near_label_widget : m_near_label_widget_ptrs)
rescale_near_label_widget(near_label_widget);
// update undo buttons : rescale bitmaps
for (const auto& field : m_fields)
field.second->sys_color_changed();
m_grid_sizer->Layout();
}
boost::any ConfigOptionsGroup::config_value(const std::string& opt_key, int opt_index, bool deserialize) {
if (deserialize) {