From b69062278d2869eee736addb96b6fc764e240127 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Br=C3=BCbach?= Date: Tue, 7 Apr 2026 07:46:52 +0200 Subject: [PATCH] Try things Took 9 minutes --- cockatrice/src/interface/theme_manager.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cockatrice/src/interface/theme_manager.cpp b/cockatrice/src/interface/theme_manager.cpp index 43964908e..08a2b6f4f 100644 --- a/cockatrice/src/interface/theme_manager.cpp +++ b/cockatrice/src/interface/theme_manager.cpp @@ -348,9 +348,9 @@ void ThemeManager::themeChangedSlot() qApp->setStyle(QStyleFactory::create("Fusion")); qApp->setPalette(createDarkGreenFusionPalette()); } 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 - QStringList preferred = {"windows11", "windowsmodern", "windowsvista", "windowsxp", "windows"}; + QStringList preferred = {"windows11", "windowsmodern", "windowsvista", "windowsxp", "Windows"}; QStringList available = QStyleFactory::keys(); @@ -361,6 +361,8 @@ void ThemeManager::themeChangedSlot() } } #endif + qInfo() << "Available styles:" << QStyleFactory::keys(); + qInfo() << "Plugin paths:" << QCoreApplication::libraryPaths(); qApp->setPalette(QPalette()); }