From 60c94eb982539e01646f05caadca69fb288449aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Br=C3=BCbach?= Date: Mon, 6 Apr 2026 09:37:11 +0200 Subject: [PATCH] Properly reset default theme. Took 9 minutes --- cockatrice/src/interface/theme_manager.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/cockatrice/src/interface/theme_manager.cpp b/cockatrice/src/interface/theme_manager.cpp index 1dc61fdb7..1d5c0d535 100644 --- a/cockatrice/src/interface/theme_manager.cpp +++ b/cockatrice/src/interface/theme_manager.cpp @@ -347,8 +347,11 @@ void ThemeManager::themeChangedSlot() } else if (themeName == FUSION_THEME_NAME_DARK) { qApp->setStyle(QStyleFactory::create("Fusion")); qApp->setPalette(createDarkGreenFusionPalette()); + } else if (themeName == NONE_THEME_NAME) { + qApp->setStyle(nullptr); // setting the style also sets the palette + qApp->setPalette(QPalette()); } else { - qApp->setStyle(defaultStyleName); // setting the style also sets the palette + qApp->setStyle(defaultStyleName); } if (dirPath.isEmpty()) {