Add system color change responsiveness to ribbon

Add new wxRibbonArtProvider::UpdateColoursFromSystem() and implement it
in wxRibbonMSWArtProvider.

Closes #26644.
This commit is contained in:
Blake-Madden
2026-07-01 03:19:51 +02:00
committed by Vadim Zeitlin
parent 6c3b09b8d3
commit 8b080b8cb0
15 changed files with 82 additions and 16 deletions
+9
View File
@@ -344,6 +344,15 @@ public:
const wxColour& secondary,
const wxColour& tertiary) = 0;
/**
Called when the system colours change to allow the art provider to
update its colours. Override to recalculate colours from the current
system settings.
@since 3.3.3
*/
virtual void UpdateColoursFromSystem() {}
/**
Draw the background of the tab region of a ribbon bar.