FIX: [STUDIO-2536] m_print_error_dlg darkUI issue

Change-Id: Ibd759855665649a24fa90069679516dc0250c1ee
This commit is contained in:
maosheng.wei 2023-06-19 10:22:24 +08:00 committed by Lane.Wei
parent 5a7e3cebcb
commit 7235e146e2
3 changed files with 8 additions and 1 deletions

View File

@ -789,7 +789,12 @@ SecondaryCheckDialog::~SecondaryCheckDialog()
void SecondaryCheckDialog::on_dpi_changed(const wxRect& suggested_rect)
{
rescale();
rescale();
}
void SecondaryCheckDialog::msw_rescale() {
wxGetApp().UpdateFrameDarkUI(this);
Refresh();
}
void SecondaryCheckDialog::rescale()

View File

@ -131,6 +131,7 @@ public:
void rescale();
~SecondaryCheckDialog();
void on_dpi_changed(const wxRect& suggested_rect);
void msw_rescale();
Label* m_staticText_release_note {nullptr};
wxBoxSizer* m_sizer_main;

View File

@ -3654,6 +3654,7 @@ void StatusPanel::on_sys_color_changed()
m_bitmap_speed_active.msw_rescale();
m_switch_speed->SetImages(m_bitmap_speed, m_bitmap_speed);
m_ams_control->msw_rescale();
if (m_print_error_dlg) { m_print_error_dlg->msw_rescale(); }
if (m_filament_setting_dlg) {m_filament_setting_dlg->msw_rescale();}
rescale_camera_icons();
}