mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-28 03:43:10 -07:00
add workaround for windows11 theme (#6810)
This commit is contained in:
@@ -91,6 +91,10 @@ struct PaletteColorInfo
|
||||
ThemeManager::ThemeManager(QObject *parent) : QObject(parent)
|
||||
{
|
||||
defaultStyleName = qApp->style()->objectName();
|
||||
// FIXME workaround for windows11 style being broken
|
||||
if (defaultStyleName == "windows11") {
|
||||
defaultStyleName = "windowsvista";
|
||||
}
|
||||
ensureThemeDirectoryExists();
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(6, 5, 0))
|
||||
connect(QGuiApplication::styleHints(), &QStyleHints::colorSchemeChanged, this, &ThemeManager::themeChangedSlot);
|
||||
|
||||
Reference in New Issue
Block a user