Gui: Use FreeCAD Theme only for FreeCAD stuff

This commit is contained in:
Kacper Donat
2024-08-23 13:14:06 +02:00
committed by wwmayer
parent 5c38080296
commit 33cd969280
3 changed files with 37 additions and 6 deletions

View File

@@ -178,13 +178,8 @@ void StartupProcess::setThemePaths()
QIcon::setThemeSearchPaths(searchPaths);
}
// KDE file dialog needs icons from the desktop theme
QIcon::setFallbackThemeName(QIcon::themeName());
std::string name = hTheme->GetASCII("Name");
if (name.empty()) {
QIcon::setThemeName(QLatin1String("FreeCAD-default"));
} else {
if (!name.empty()) {
QIcon::setThemeName(QString::fromLatin1(name.c_str()));
}
}