Commit 28f708a7 authored by Camilo Higuita's avatar Camilo Higuita

check for nomad style on desktop and else use default one

parent 2bc13fcc
......@@ -52,15 +52,13 @@ int main(int argc, char *argv[])
}
Babe bae;
Player player;
Player player;
/* Services */
YouTube youtube;
QFontDatabase::addApplicationFont(":/utils/materialdesignicons-webfont.ttf");
qDebug()<<QQuickStyle::availableStyles();
QQmlApplicationEngine engine;
QObject::connect(&engine, &QQmlApplicationEngine::objectCreated, [&]()
......@@ -78,7 +76,8 @@ int main(int argc, char *argv[])
KirigamiPlugin::getInstance().registerTypes();
QtWebView::initialize();
#else
QQuickStyle::setStyle("nomad");
if(QQuickStyle::availableStyles().contains("nomad"))
QQuickStyle::setStyle("nomad");
QtWebEngine::initialize();
#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