From e71cf018f8096fd3778181d17d0d257980d722a1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Blin?= <sebastien.blin@savoirfairelinux.com> Date: Sun, 8 Dec 2019 17:22:25 -0500 Subject: [PATCH] theme: use default gtk theme if on GNU/Linux Issue: #515 Change-Id: Ia9ffc2d2bc1e15664299441c132aa9934e6fb26d --- src/main.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 622e73c..865b13e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -121,6 +121,11 @@ main(int argc, char* argv[]) SetProcessDPIAware(); #endif // Q_OS_WIN +#ifdef Q_OS_LINUX + if (!getenv("QT_QPA_PLATFORMTHEME")) + setenv("QT_QPA_PLATFORMTHEME", "gtk3", true); +#endif + QApplication a(newArgc, newArgv); QCoreApplication::setApplicationName("Ring"); -- GitLab