summaryrefslogtreecommitdiffstats
path: root/src/widgets/styles/qwindowsstyle_p_p.h
diff options
context:
space:
mode:
authorFriedemann Kleint <Friedemann.Kleint@qt.io>2019-09-25 15:04:36 +0200
committerFriedemann Kleint <Friedemann.Kleint@qt.io>2020-01-25 20:33:30 +0100
commit859307d7a590873d8df5f8094e13043370fccaa7 (patch)
tree23abcc5c6f0a0c8b6403b370f6eb4fa78e9723a1 /src/widgets/styles/qwindowsstyle_p_p.h
parenteb26563dd5483ab83a7a5addf8f98a4921d1edc1 (diff)
Windows QPA: Provide an experimental palette for dark mode
Provide a simple palette for dark mode, implementing dark mode support level 2. Task-number: QTBUG-72028 Change-Id: I6f71870b251ccb7da30c01abb22c224e600f2b27 Reviewed-by: Oliver Wolff <oliver.wolff@qt.io>
Diffstat (limited to 'src/widgets/styles/qwindowsstyle_p_p.h')
-rw-r--r--src/widgets/styles/qwindowsstyle_p_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/widgets/styles/qwindowsstyle_p_p.h b/src/widgets/styles/qwindowsstyle_p_p.h
index 4f6ffcefc2..a25f5c4166 100644
--- a/src/widgets/styles/qwindowsstyle_p_p.h
+++ b/src/widgets/styles/qwindowsstyle_p_p.h
@@ -74,6 +74,7 @@ public:
static qreal devicePixelRatio(const QWidget *widget = nullptr)
{ return widget ? widget->devicePixelRatioF() : QWindowsStylePrivate::appDevicePixelRatio(); }
static qreal nativeMetricScaleFactor(const QWidget *widget = nullptr);
+ static bool isDarkMode();
bool hasSeenAlt(const QWidget *widget) const;
bool altDown() const { return alt_down; }