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 @@ ...@@ -18,6 +18,7 @@
*/ */
#include <QQmlApplicationEngine> #include <QQmlApplicationEngine>
#include <QQuickStyle>
#include <QtQml> #include <QtQml>
#include <QUrl> #include <QUrl>
#include <QColor> #include <QColor>
...@@ -26,7 +27,6 @@ ...@@ -26,7 +27,6 @@
#ifdef Q_OS_ANDROID #ifdef Q_OS_ANDROID
#include <QtAndroid> #include <QtAndroid>
#include <QGuiApplication> #include <QGuiApplication>
#include <QQuickStyle>
// WindowManager.LayoutParams // WindowManager.LayoutParams
#define FLAG_TRANSLUCENT_STATUS 0x04000000 #define FLAG_TRANSLUCENT_STATUS 0x04000000
...@@ -49,6 +49,10 @@ Q_DECL_EXPORT int main(int argc, char *argv[]) ...@@ -49,6 +49,10 @@ Q_DECL_EXPORT int main(int argc, char *argv[])
QGuiApplication app(argc, argv); QGuiApplication app(argc, argv);
QQuickStyle::setStyle(QStringLiteral("Material")); QQuickStyle::setStyle(QStringLiteral("Material"));
#else #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); QApplication app(argc, argv);
#endif #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