summaryrefslogtreecommitdiff
path: root/gui/main.cpp
diff options
context:
space:
mode:
authorkali kaneko (leap communications) <kali@leap.se>2021-09-24 21:56:59 +0200
committerkali kaneko (leap communications) <kali@leap.se>2021-11-23 21:51:09 +0100
commita2ef9f1e7dee575ff3bff70ba701257f3c24a8c4 (patch)
treef2b1aa9a730762b50cbb57af22e0291c355e2f92 /gui/main.cpp
parent0efd19b935452a7b0b5561f9cba56b01ba7c627f (diff)
[ui] use configuration file
Diffstat (limited to 'gui/main.cpp')
-rw-r--r--gui/main.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/gui/main.cpp b/gui/main.cpp
index d136c3c..be1be0a 100644
--- a/gui/main.cpp
+++ b/gui/main.cpp
@@ -173,6 +173,7 @@ int main(int argc, char **argv) {
QJsonModel *model = new QJsonModel;
+ // FIXME use qgetenv
QString desktop = QString::fromStdString(getEnv("XDG_CURRENT_DESKTOP"));
QString debug = QString::fromStdString(getEnv("DEBUG"));
@@ -190,7 +191,10 @@ int main(int argc, char **argv) {
ctx->setContextProperty("systrayAvailable", availableSystray);
ctx->setContextProperty("qmlDebug", debug == "1");
- QQuickStyle::setStyle("Material");
+ //XXX we're doing configuration via config file, but this is a mechanism
+ //to change to Dark Theme if desktop has it.
+ //qputenv("QT_QUICK_CONTROLS_MATERIAL_VARIANT", "Dense");
+ //QQuickStyle::setStyle("Material");
engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
/* connect the jsonChanged signal explicitely.