summaryrefslogtreecommitdiffstats
path: root/examples/widgets/gallery/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/widgets/gallery/main.cpp')
-rw-r--r--examples/widgets/gallery/main.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/examples/widgets/gallery/main.cpp b/examples/widgets/gallery/main.cpp
index cfac821209..95fffbdd3c 100644
--- a/examples/widgets/gallery/main.cpp
+++ b/examples/widgets/gallery/main.cpp
@@ -2,12 +2,14 @@
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
#include <QApplication>
+#include <QStyleHints>
#include "widgetgallery.h"
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
+ app.styleHints()->setColorScheme(Qt::ColorScheme::Dark);
WidgetGallery gallery;
gallery.show();
return QCoreApplication::exec();