mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-29 17:22:06 +08:00
non-MSW specific: ComboBox: Fixed update of colors when system colors are changed.
This commit is contained in:
parent
8876d61d03
commit
aec372fde5
@ -58,6 +58,14 @@ ComboBox::ComboBox(wxWindow * parent,
|
||||
wxCommandEvent e(wxEVT_COMBOBOX_CLOSEUP);
|
||||
GetEventHandler()->ProcessEvent(e);
|
||||
});
|
||||
|
||||
#ifndef _WIN32
|
||||
this->Bind(wxEVT_SYS_COLOUR_CHANGED, [this, parent](wxSysColourChangedEvent& event) {
|
||||
event.Skip();
|
||||
SetBackgroundColour(parent->GetBackgroundColour());
|
||||
SetForegroundColour(parent->GetForegroundColour());
|
||||
});
|
||||
#endif
|
||||
for (int i = 0; i < n; ++i) Append(choices[i]);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user