From 38631193b5619740423dc31d8d7e3026eef1674f Mon Sep 17 00:00:00 2001 From: Nicolas Fella Date: Sat, 12 Oct 2024 18:10:53 +0200 Subject: [PATCH] feat: Use native style on KDE Plasma On Plasma it is preferred to use the default Breeze style instead of Fusion Breeze also has dark mode support out of the box, so no need to work around that --- src/gui/src/DeskflowApplication.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/gui/src/DeskflowApplication.cpp b/src/gui/src/DeskflowApplication.cpp index 3baf78a82..dada64d75 100644 --- a/src/gui/src/DeskflowApplication.cpp +++ b/src/gui/src/DeskflowApplication.cpp @@ -26,6 +26,8 @@ DeskflowApplication::DeskflowApplication(int &argc, char **argv) : QApplication(argc, argv) { - // causes dark mode to be used on some OS (e.g. Windows) - setStyle("fusion"); + if (qEnvironmentVariable("XDG_CURRENT_DESKTOP") != QLatin1String("KDE")) { + // causes dark mode to be used on some OS (e.g. Windows) + setStyle("fusion"); + } }