From 19b3e8b2868eeee34818355103113418c6f7d87f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lukas=20Br=C3=BCbach?= Date: Fri, 19 Jun 2026 23:28:19 +0200 Subject: [PATCH] Revert style palette. Took 6 minutes Took 14 seconds --- cockatrice/src/interface/theme_manager.cpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/cockatrice/src/interface/theme_manager.cpp b/cockatrice/src/interface/theme_manager.cpp index d352d0502..2c56a03ff 100644 --- a/cockatrice/src/interface/theme_manager.cpp +++ b/cockatrice/src/interface/theme_manager.cpp @@ -344,17 +344,7 @@ void ThemeManager::applyStyleAndPalette(const QString &themeName, } #endif } else { - // Always start from the style's own standard palette so a previously-applied - // theme can never bleed through. qApp->palette() carries the result of the - // last theme application and must not be used as a base here — if the current - // theme ships no palette file, hasPalette() is false and palCfg.apply() is - // skipped, meaning whatever we put in base IS the effective palette. - base = style->standardPalette(); - if (!base.color(QPalette::Window).isValid()) { - // Exotic platform style that doesn't implement standardPalette() — - // accept the bleed-through risk rather than crash or use garbage. - base = qApp->palette(); - } + base = qApp->palette(); } // Overlay custom palette colours