Skip to content

Commit dda76b6

Browse files
mpapernolanewei120
authored andcommitted
Fix updating compare dialog color scheme when switching between dark and light modes w/out a Studio restart. (fixes #9225 )
1 parent 3722c98 commit dda76b6

2 files changed

Lines changed: 5 additions & 0 deletions

File tree

src/slic3r/GUI/MainFrame.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2531,6 +2531,9 @@ void MainFrame::on_sys_color_changed()
25312531

25322532
MenuFactory::sys_color_changed(m_menubar);
25332533

2534+
// update DiffPresetDialog from here, we're friends
2535+
diff_dialog.on_sys_color_changed();
2536+
25342537
WebView::RecreateAll();
25352538

25362539
this->Refresh();

src/slic3r/GUI/UnsavedChangesDialog.hpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -454,6 +454,8 @@ class DiffPresetDialog : public DPIDialog
454454
protected:
455455
void on_dpi_changed(const wxRect& suggested_rect) override;
456456
void on_sys_color_changed() override;
457+
458+
friend class MainFrame; // for on_sys_color_changed()
457459
};
458460

459461
}

0 commit comments

Comments
 (0)