From cf23cf831ac1f5a0dd7be596c6d3d36d8d5352c1 Mon Sep 17 00:00:00 2001 From: yw4z Date: Thu, 18 Sep 2025 13:47:32 +0300 Subject: [PATCH 1/2] Update UnsavedChangesDialog.cpp --- src/slic3r/GUI/UnsavedChangesDialog.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/slic3r/GUI/UnsavedChangesDialog.cpp b/src/slic3r/GUI/UnsavedChangesDialog.cpp index 86efbdb439..460f1d6389 100644 --- a/src/slic3r/GUI/UnsavedChangesDialog.cpp +++ b/src/slic3r/GUI/UnsavedChangesDialog.cpp @@ -2105,6 +2105,11 @@ void DiffPresetDialog::show(Preset::Type type /* = Preset::TYPE_INVALID*/) update_tree(); wxGetApp().UpdateDlgDarkUI(this); +#ifdef _WIN32 // ORCA ensure row colors updated after opening dialog again after switching Dark Mode + wxGetApp().UpdateAllStaticTextDarkUI(this); + wxGetApp().UpdateDarkUI(m_show_all_presets); + wxGetApp().UpdateDVCDarkUI(m_tree); +#endif // if this dialog is shown it have to be Hide and show again to be placed on the very Top of windows if (IsShown()) From 6d70fdd150a55bbee1a92a90f23fab670b776b55 Mon Sep 17 00:00:00 2001 From: yw4z Date: Wed, 19 Nov 2025 13:51:52 +0300 Subject: [PATCH 2/2] update --- src/slic3r/GUI/MainFrame.cpp | 2 ++ src/slic3r/GUI/UnsavedChangesDialog.cpp | 5 ----- src/slic3r/GUI/UnsavedChangesDialog.hpp | 1 - 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/slic3r/GUI/MainFrame.cpp b/src/slic3r/GUI/MainFrame.cpp index 3576d6caa1..33d24db4d5 100644 --- a/src/slic3r/GUI/MainFrame.cpp +++ b/src/slic3r/GUI/MainFrame.cpp @@ -2272,6 +2272,8 @@ void MainFrame::on_sys_color_changed() #endif #endif + diff_dialog.on_sys_color_changed(); + // BBS m_tabpanel->Rescale(); m_param_panel->msw_rescale(); diff --git a/src/slic3r/GUI/UnsavedChangesDialog.cpp b/src/slic3r/GUI/UnsavedChangesDialog.cpp index aab4b5c2d4..b05bfcc703 100644 --- a/src/slic3r/GUI/UnsavedChangesDialog.cpp +++ b/src/slic3r/GUI/UnsavedChangesDialog.cpp @@ -2114,11 +2114,6 @@ void DiffPresetDialog::show(Preset::Type type /* = Preset::TYPE_INVALID*/) update_tree(); wxGetApp().UpdateDlgDarkUI(this); -#ifdef _WIN32 // ORCA ensure row colors updated after opening dialog again after switching Dark Mode - wxGetApp().UpdateAllStaticTextDarkUI(this); - wxGetApp().UpdateDarkUI(m_show_all_presets); - wxGetApp().UpdateDVCDarkUI(m_tree); -#endif // if this dialog is shown it have to be Hide and show again to be placed on the very Top of windows if (IsShown()) diff --git a/src/slic3r/GUI/UnsavedChangesDialog.hpp b/src/slic3r/GUI/UnsavedChangesDialog.hpp index e4d7d61092..8a9d9e680c 100644 --- a/src/slic3r/GUI/UnsavedChangesDialog.hpp +++ b/src/slic3r/GUI/UnsavedChangesDialog.hpp @@ -463,7 +463,6 @@ public: std::array types_list() const; -protected: void on_dpi_changed(const wxRect& suggested_rect) override; void on_sys_color_changed() override; };