diff options
author | Santhosh Kumar <santhosh.kumar.selvaraj@qt.io> | 2022-11-18 18:24:10 +0100 |
---|---|---|
committer | Volker Hilsheimer <volker.hilsheimer@qt.io> | 2022-11-26 15:07:07 +0100 |
commit | 3ee7a9f85c9d4566223f44f7bab04abafdfca82c (patch) | |
tree | 151cf3d278f83df331988f6b142c1234c526d377 /src/widgets/styles/qfusionstyle.cpp | |
parent | e75c1a00e31723f1c9deb8427725fa0a58fae2a8 (diff) |
Let styles indicate that they support dark mode
Add a style hint that allows styles to indicate that they support
dark mode. The macOS and Fusion styles support dark mode, the other
styles, in particular the Windows Vista style, do not.
Task-number: QTBUG-72028
Change-Id: I02cac2e19a21898663f50f09a4ef419a613a73ec
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/widgets/styles/qfusionstyle.cpp')
-rw-r--r-- | src/widgets/styles/qfusionstyle.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/widgets/styles/qfusionstyle.cpp b/src/widgets/styles/qfusionstyle.cpp index dccfbd8aac..966bd47380 100644 --- a/src/widgets/styles/qfusionstyle.cpp +++ b/src/widgets/styles/qfusionstyle.cpp @@ -3630,6 +3630,7 @@ int QFusionStyle::styleHint(StyleHint hint, const QStyleOption *option, const QW case SH_MenuBar_MouseTracking: case SH_Menu_MouseTracking: case SH_Menu_SupportsSections: + case SH_SupportsDarkAppearance: return 1; #if defined(QT_PLATFORM_UIKIT) |