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
This commit is contained in:
Nicolas Fella
2024-10-12 18:10:53 +02:00
committed by Chris Rizzitello
parent c959e641cb
commit 38631193b5

View File

@ -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");
}
}