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++

Don't switch style on macOS when switching theme

Freya Lupen6b6634a3d290
diff --git a/libs/ui/thememanager.cpp b/libs/ui/thememanager.cpp
index 9efecd8541..8327362702 100644
--- a/libs/ui/thememanager.cpp
+++ b/libs/ui/thememanager.cpp
@@ -183,16 +183,6 @@ void ThemeManager::slotChangePalette()
qApp->setProperty("KDE_COLOR_SCHEME_PATH", filename);
qApp->setPalette(palette);
-#ifdef Q_OS_MACOS
- if (theme == "Krita bright" || theme.isEmpty()) {
- qApp->setStyle("Macintosh");
- qApp->style()->polish(qApp);
- } else {
- qApp->setStyle("Fusion");
- qApp->style()->polish(qApp);
- }
-#endif
-
Q_EMIT signalThemeChanged();
}