summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2020-12-14 18:29:55 +0100
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2020-12-14 18:29:55 +0100
commit7ae98845f05e8d8245635f8bc5f64940d44d06cf (patch)
tree82afbc55fd9a762db2fcb9cfc02289e13d3ed7ab
parentf3371c1d788f7e6a5da22d24d745736164b330aa (diff)
downloadrockbox-7ae98845f05e8d8245635f8bc5f64940d44d06cf.tar.gz
rockbox-7ae98845f05e8d8245635f8bc5f64940d44d06cf.tar.bz2
rockbox-7ae98845f05e8d8245635f8bc5f64940d44d06cf.zip
rbutil: Change style to Fusion on Windows.
The default UI style has some issues with HiDPI support. Use the Qt built-in Fusion instead. This looks somewhat different to the native Windows UI, but works better on HiDPI displays. Change-Id: I25f1b038047a11da7492dfbfa1425874f070ab0b
-rw-r--r--rbutil/rbutilqt/main.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/rbutil/rbutilqt/main.cpp b/rbutil/rbutilqt/main.cpp
index e9a86fd3c3..47c625b54d 100644
--- a/rbutil/rbutilqt/main.cpp
+++ b/rbutil/rbutilqt/main.cpp
@@ -19,6 +19,7 @@
#include <QCoreApplication>
#include <QSettings>
+#include <QStyleFactory>
#include "rbutilqt.h"
#include "systrace.h"
#include "Logger.h"
@@ -43,6 +44,9 @@ int main( int argc, char ** argv ) {
QCoreApplication::setAttribute(Qt::AA_UseHighDpiPixmaps);
#endif
QApplication app( argc, argv );
+#ifdef Q_OS_WIN
+ qApp->setStyle(QStyleFactory::create("Fusion"));
+#endif
ConsoleAppender* consoleAppender = new ConsoleAppender();
consoleAppender->setFormat("[%{file}:%{line} %{type}] %{message}\n");
cuteLoggerInstance()->registerAppender(consoleAppender);