summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/windows/qwindowsapplication.h
diff options
context:
space:
mode:
authorSanthosh Kumar <santhosh.kumar.selvaraj@qt.io>2023-06-26 11:37:21 +0200
committerSanthosh Kumar <santhosh.kumar.selvaraj@qt.io>2023-06-26 18:45:25 +0200
commit491534006ec0b648e70269d33ccd7b79faddef7f (patch)
tree78c0a00f2e2d3196b330f0002395412738329eef /src/plugins/platforms/windows/qwindowsapplication.h
parent1c4dbd14ae2f335f6148b1355f88d75c1a79cc35 (diff)
Fix disabled and inactive group palettes for windows native style
The dark mode related changes for windows didn't update disabled and inactive group palettes, and this makes text in certain context (such as menu bar) appear with enabled color. The windows theme API populateLightSystemPalette() is responsible for this and it updates palettes for color roles and certain inactive scenarios but not for disabled. This patch set makes existing systemPalette(Qt::ColorScheme) to be available in QWindowsTheme and it updates palette depending on color scheme. From now on, this API updates palettes for windows native style. Its to be noted that window native style use light palette irrespective of color scheme. Fixes: QTBUG-114821 Pick-to: 6.5 6.6 Change-Id: Iff4f35900293b8e7030ec121ca21856daa094dc0 Reviewed-by: Axel Spoerl <axel.spoerl@qt.io> Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/plugins/platforms/windows/qwindowsapplication.h')
-rw-r--r--src/plugins/platforms/windows/qwindowsapplication.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/platforms/windows/qwindowsapplication.h b/src/plugins/platforms/windows/qwindowsapplication.h
index 8b74b47f3d..efacd74e18 100644
--- a/src/plugins/platforms/windows/qwindowsapplication.h
+++ b/src/plugins/platforms/windows/qwindowsapplication.h
@@ -43,7 +43,7 @@ public:
QVariant gpu() const override;
QVariant gpuList() const override;
- void lightSystemPalette(QPalette &palette) const override;
+ void populateLightSystemPalette(QPalette &palette) const override;
private:
WindowActivationBehavior m_windowActivationBehavior = DefaultActivateWindow;