Try things

Took 9 minutes
This commit is contained in:
Lukas Brübach 2026-04-07 07:46:52 +02:00
parent 8feb27107f
commit b69062278d

View file

@ -348,9 +348,9 @@ void ThemeManager::themeChangedSlot()
qApp->setStyle(QStyleFactory::create("Fusion")); qApp->setStyle(QStyleFactory::create("Fusion"));
qApp->setPalette(createDarkGreenFusionPalette()); qApp->setPalette(createDarkGreenFusionPalette());
} else { } else {
qApp->setStyle(defaultStyleName); // setting the style also sets the palette qApp->setStyle(nullptr); // setting the style also sets the palette
#ifdef Q_OS_WIN #ifdef Q_OS_WIN
QStringList preferred = {"windows11", "windowsmodern", "windowsvista", "windowsxp", "windows"}; QStringList preferred = {"windows11", "windowsmodern", "windowsvista", "windowsxp", "Windows"};
QStringList available = QStyleFactory::keys(); QStringList available = QStyleFactory::keys();
@ -361,6 +361,8 @@ void ThemeManager::themeChangedSlot()
} }
} }
#endif #endif
qInfo() << "Available styles:" << QStyleFactory::keys();
qInfo() << "Plugin paths:" << QCoreApplication::libraryPaths();
qApp->setPalette(QPalette()); qApp->setPalette(QPalette());
} }