Handle system colour change in wxInfoBarGeneric

Move colour settings from Create() into a new function UpdateColours(),
which gets called from Create() and also upon system colour change.

Closes #26633.
This commit is contained in:
Steve Cornett
2026-06-27 19:28:04 +02:00
committed by Vadim Zeitlin
parent d2c579305c
commit f26f253694
2 changed files with 52 additions and 35 deletions
+2
View File
@@ -134,6 +134,8 @@ private:
BarPlacement GetBarPlacement() const;
void UpdateColours();
void OnSysColourChanged(wxSysColourChangedEvent& event);
// different controls making up the bar
wxStaticBitmap *m_icon = nullptr;