mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-02 11:33:55 -07:00
add workaround for windows11 theme
This commit is contained in:
parent
8cc65b8967
commit
3bca6ae821
1 changed files with 4 additions and 0 deletions
|
|
@ -91,6 +91,10 @@ struct PaletteColorInfo
|
||||||
ThemeManager::ThemeManager(QObject *parent) : QObject(parent)
|
ThemeManager::ThemeManager(QObject *parent) : QObject(parent)
|
||||||
{
|
{
|
||||||
defaultStyleName = qApp->style()->objectName();
|
defaultStyleName = qApp->style()->objectName();
|
||||||
|
// FIXME workaround for windows11 style being broken
|
||||||
|
if (defaultStyleName == "windows11") {
|
||||||
|
defaultStyleName = "windowsvista";
|
||||||
|
}
|
||||||
ensureThemeDirectoryExists();
|
ensureThemeDirectoryExists();
|
||||||
#if (QT_VERSION >= QT_VERSION_CHECK(6, 5, 0))
|
#if (QT_VERSION >= QT_VERSION_CHECK(6, 5, 0))
|
||||||
connect(QGuiApplication::styleHints(), &QStyleHints::colorSchemeChanged, this, &ThemeManager::themeChangedSlot);
|
connect(QGuiApplication::styleHints(), &QStyleHints::colorSchemeChanged, this, &ThemeManager::themeChangedSlot);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue