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:
committed by
Chris Rizzitello
parent
c959e641cb
commit
38631193b5
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user