mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 07:27:41 -06:00
FIX:fixed appconfig is not saved when switching dark mode
Change-Id: I77fc3808309a23497000c34b6047a359d12c4622
This commit is contained in:
parent
4a5c473058
commit
eca5897a25
22 changed files with 84 additions and 26 deletions
|
@ -38,7 +38,7 @@ static const wxColour BUTTON_NORMAL2_COL = wxColour(206, 206, 206);
|
|||
static const wxColour BUTTON_PRESS_COL = wxColour(172, 172, 172);
|
||||
static const wxColour BUTTON_HOVER_COL = wxColour(0, 174, 66);
|
||||
|
||||
static const wxColour DISCONNECT_TEXT_COL = wxColour(172, 172, 172);
|
||||
static const wxColour DISCONNECT_TEXT_COL = wxColour(171, 172, 172);
|
||||
static const wxColour NORMAL_TEXT_COL = wxColour(48,58,60);
|
||||
static const wxColour NORMAL_FAN_TEXT_COL = wxColour(107, 107, 107);
|
||||
static const wxColour WARNING_INFO_BG_COL = wxColour(255, 111, 0);
|
||||
|
@ -2770,6 +2770,13 @@ void StatusPanel::set_hold_count(int& count)
|
|||
count = COMMAND_TIMEOUT;
|
||||
}
|
||||
|
||||
void StatusPanel::on_sys_color_changed()
|
||||
{
|
||||
m_bitmap_speed.msw_rescale();
|
||||
m_bitmap_speed_active.msw_rescale();
|
||||
m_switch_speed->SetImages(m_bitmap_speed, m_bitmap_speed);
|
||||
}
|
||||
|
||||
void StatusPanel::msw_rescale()
|
||||
{
|
||||
init_bitmaps();
|
||||
|
@ -2817,6 +2824,9 @@ void StatusPanel::msw_rescale()
|
|||
m_tempCtrl_frame->SetMinSize(TEMP_CTRL_MIN_SIZE);
|
||||
m_tempCtrl_frame->Rescale();
|
||||
|
||||
m_bitmap_speed.msw_rescale();
|
||||
m_bitmap_speed_active.msw_rescale();
|
||||
|
||||
m_switch_speed->SetImages(m_bitmap_speed, m_bitmap_speed);
|
||||
m_switch_speed->SetMinSize(MISC_BUTTON_SIZE);
|
||||
m_switch_speed->Rescale();
|
||||
|
@ -2833,6 +2843,7 @@ void StatusPanel::msw_rescale()
|
|||
m_ams_control->msw_rescale();
|
||||
// m_filament_step->Rescale();
|
||||
|
||||
|
||||
m_calibration_btn->SetMinSize(wxSize(-1, FromDIP(26)));
|
||||
m_calibration_btn->Rescale();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue