diff options
author | Mitch Curtis <mitch.curtis@qt.io> | 2021-10-06 16:48:58 +0200 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@qt.io> | 2021-10-11 16:18:38 +0200 |
commit | 2b77e779ce43386d14bdd2d1109ee182bcd0d047 (patch) | |
tree | 050c080ac2b8c47d80371e76d0cb4f9c9299f890 /src/plugins/platformthemes/gtk3/qgtk3theme.h | |
parent | 04419c2852463e9f0e25e108dd3300a29cd885f8 (diff) |
QGtk3Theme: implement appearance function to detect dark themes
This allows Qt Quick Controls to detect if a dark theme is in use,
and if so, use a dark theme of the current style (if available).
Fixes: QTBUG-93955
Pick-to: 6.2
Change-Id: I15fc8a2271acf9ba27232359056d5a681d4cffca
Reviewed-by: Dmitry Shachnev <mitya57@gmail.com>
Reviewed-by: Shawn Rutledge <shawn.rutledge@qt.io>
Diffstat (limited to 'src/plugins/platformthemes/gtk3/qgtk3theme.h')
-rw-r--r-- | src/plugins/platformthemes/gtk3/qgtk3theme.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/platformthemes/gtk3/qgtk3theme.h b/src/plugins/platformthemes/gtk3/qgtk3theme.h index 54296d2ff1..5f439067af 100644 --- a/src/plugins/platformthemes/gtk3/qgtk3theme.h +++ b/src/plugins/platformthemes/gtk3/qgtk3theme.h @@ -52,6 +52,8 @@ public: virtual QVariant themeHint(ThemeHint hint) const override; virtual QString gtkFontName() const override; + Appearance appearance() const override; + bool usePlatformNativeDialog(DialogType type) const override; QPlatformDialogHelper *createPlatformDialogHelper(DialogType type) const override; |