ENH:use high contrast icons in dark mode

fixed STUDIO-2033

Change-Id: Ibfbc40b02f5333d80d2875d88bb3029109256e4a
This commit is contained in:
tao wang 2023-03-16 15:54:35 +08:00 committed by Lane.Wei
parent c6e49af3fe
commit ccfc61492b
3 changed files with 15 additions and 3 deletions

View file

@ -3208,6 +3208,17 @@ void SelectMachineDialog::set_default()
m_stext_weight->SetLabel(weight);
}
void SelectMachineDialog::sys_color_changed()
{
if (wxGetApp(). dark_mode()) {
m_rename_button->SetIcon("ams_editable_light");
}
else {
m_rename_button->SetIcon("ams_editable");
}
m_rename_button->Refresh();
}
bool SelectMachineDialog::Show(bool show)
{
show_status(PrintDialogStatus::PrintStatusInit);