Commit 2977763e authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Use qqc2-desktop-style by default

Otherwise we may end up using the Default style which is just horrible
parent 612557d3
......@@ -18,6 +18,7 @@
*/
#include <QQmlApplicationEngine>
#include <QQuickStyle>
#include <QtQml>
#include <QUrl>
#include <QColor>
......@@ -26,7 +27,6 @@
#ifdef Q_OS_ANDROID
#include <QtAndroid>
#include <QGuiApplication>
#include <QQuickStyle>
// WindowManager.LayoutParams
#define FLAG_TRANSLUCENT_STATUS 0x04000000
......@@ -49,6 +49,10 @@ Q_DECL_EXPORT int main(int argc, char *argv[])
QGuiApplication app(argc, argv);
QQuickStyle::setStyle(QStringLiteral("Material"));
#else
// Default to org.kde.desktop style unless the user forces another style
if (qEnvironmentVariableIsEmpty("QT_QUICK_CONTROLS_STYLE")) {
QQuickStyle::setStyle(QStringLiteral("org.kde.desktop"));
}
QApplication app(argc, argv);
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment