mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-14 03:05:53 +08:00
TabSLAMaterial:: Fixed re-scaling and sys color change for "Overrides" page.
(SPE-2322)
This commit is contained in:
parent
0568739577
commit
195c78fc2a
@ -5556,6 +5556,25 @@ void TabSLAMaterial::update_sla_prusa_specific_visibility()
|
||||
}
|
||||
}
|
||||
|
||||
void TabSLAMaterial::msw_rescale()
|
||||
{
|
||||
for (const auto& over_opt : m_overrides_options)
|
||||
if (wxWindow* win = over_opt.second)
|
||||
win->SetInitialSize(win->GetBestSize());
|
||||
Tab::msw_rescale();
|
||||
}
|
||||
|
||||
void TabSLAMaterial::sys_color_changed()
|
||||
{
|
||||
Tab::sys_color_changed();
|
||||
|
||||
for (const auto& over_opt : m_overrides_options)
|
||||
if (wxWindow* check_box = over_opt.second) {
|
||||
wxGetApp().UpdateDarkUI(check_box);
|
||||
CheckBox::SysColorChanged(check_box);
|
||||
}
|
||||
}
|
||||
|
||||
static void add_options_into_line(ConfigOptionsGroupShp &optgroup,
|
||||
const std::vector<SamePair<std::string>> &prefixes,
|
||||
const std::string &optkey,
|
||||
|
@ -584,6 +584,8 @@ public:
|
||||
void toggle_tilt_options(bool is_above);
|
||||
void toggle_options() override;
|
||||
void update() override;
|
||||
void msw_rescale() override;
|
||||
void sys_color_changed() override;
|
||||
bool supports_printer_technology(const PrinterTechnology tech) const override { return tech == ptSLA; }
|
||||
void update_sla_prusa_specific_visibility() override;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user