Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++

Only enable System theme on macOS

Freya Lupen89106da6b9ce
diff --git a/libs/ui/thememanager.cpp b/libs/ui/thememanager.cpp
index 3c88e709fd..94461e1427 100644
--- a/libs/ui/thememanager.cpp
+++ b/libs/ui/thememanager.cpp
@@ -233,10 +233,13 @@ void ThemeManager::populateThemeMenu()
actionMap.insert(name, action);
}
+#ifdef Q_OS_MAC
// Add a "System" theme, which resets the palette to system colors
+ // It only seems to work as expected on macOS.
action = new QAction("System", d->themeMenuActionGroup);
action->setCheckable(true);
actionMap.insert("System", action);
+#endif
// sort the list
QStringList actionMapKeys = actionMap.keys();