mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-08 17:13:57 -07:00
Try things
Took 9 minutes
This commit is contained in:
parent
8feb27107f
commit
b69062278d
1 changed files with 4 additions and 2 deletions
|
|
@ -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());
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue