[education/rkward] rkward: Set breeze style for AppImages, too

Thomas Friedrichsmeier null at kde.org
Sun Jul 24 15:15:16 BST 2022


Git commit b0ac2eadfc1e46a3b2bd452414d4ed57261a2cb0 by Thomas Friedrichsmeier.
Committed on 24/07/2022 at 14:15.
Pushed by tfry into branch 'master'.

Set breeze style for AppImages, too

M  +4    -0    rkward/main.cpp

https://invent.kde.org/education/rkward/commit/b0ac2eadfc1e46a3b2bd452414d4ed57261a2cb0

diff --git a/rkward/main.cpp b/rkward/main.cpp
index 45167c42..a85fe7ca 100644
--- a/rkward/main.cpp
+++ b/rkward/main.cpp
@@ -246,6 +246,10 @@ int main (int argc, char *argv[]) {
 #if defined(Q_OS_MACOS) || defined(Q_OS_WIN)
 	// Follow the example of kate, and use breeze theme on Windows and Mac, which appears to work best
 	QApplication::setStyle(QStringLiteral("breeze"));
+#else
+	if (!qgetenv("APPDIR").isEmpty()) { // see above for AppImage
+		QApplication::setStyle(QStringLiteral("breeze"));
+	}
 #endif
 	// Don't complain when linking rkward://-pages from Rd pages
 	KUrlAuthorized::allowUrlAction ("redirect", QUrl("http://"), QUrl ("rkward://"));


More information about the rkward-tracker mailing list