mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 11:23:42 +00:00
FIX: update the bitmap of icon for dark mode
jira: [STUDIO-12180] Change-Id: Ib39f723be9b1f02f2f0dd21204d7831627481528 (cherry picked from commit 73d9f515de93d324c74878f3ceea5ee0f7049073)
This commit is contained in:
@@ -3253,7 +3253,11 @@ static void update_dark_children_ui(wxWindow* window, bool just_buttons_update =
|
|||||||
is_btn = false;*/
|
is_btn = false;*/
|
||||||
if (!window) return;
|
if (!window) return;
|
||||||
|
|
||||||
wxGetApp().UpdateDarkUI(window);
|
if (ScalableButton* btn = dynamic_cast<ScalableButton*>(window)) {
|
||||||
|
btn->UpdateDarkUI();
|
||||||
|
} else {
|
||||||
|
wxGetApp().UpdateDarkUI(window);
|
||||||
|
}
|
||||||
|
|
||||||
auto children = window->GetChildren();
|
auto children = window->GetChildren();
|
||||||
for (auto child : children) {
|
for (auto child : children) {
|
||||||
|
|||||||
@@ -263,6 +263,7 @@ public:
|
|||||||
void UseDefaultBitmapDisabled();
|
void UseDefaultBitmapDisabled();
|
||||||
|
|
||||||
void msw_rescale();
|
void msw_rescale();
|
||||||
|
void UpdateDarkUI() { msw_rescale(); };
|
||||||
|
|
||||||
private:
|
private:
|
||||||
wxWindow* m_parent { nullptr };
|
wxWindow* m_parent { nullptr };
|
||||||
|
|||||||
Reference in New Issue
Block a user