mirror of
https://git.mirrors.martin98.com/https://github.com/bambulab/BambuStudio.git
synced 2025-09-28 18:23:14 +08:00
FIX: update the bitmap of icon for dark mode
jira: [STUDIO-12180] Change-Id: Ib39f723be9b1f02f2f0dd21204d7831627481528
This commit is contained in:
parent
09719a818a
commit
73d9f515de
@ -3614,7 +3614,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 };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user