mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-05 09:33:25 -08:00
[Theme] Revert default light palette and only include AppColors (#7342)
* [Theme] Revert default light palette and only include AppColors * [Style] Also remove dark mode palette --------- Co-authored-by: Lukas Brübach <Bruebach.Lukas@bdosecurity.de>
This commit is contained in:
parent
e01912d3c8
commit
fe83966087
5 changed files with 15 additions and 132 deletions
|
|
@ -109,7 +109,10 @@ ThemeManager::ThemeManager(QObject *parent) : QObject(parent)
|
|||
ensureThemeDirectoryExists();
|
||||
#if (QT_VERSION >= QT_VERSION_CHECK(6, 5, 0))
|
||||
connect(QGuiApplication::styleHints(), &QStyleHints::colorSchemeChanged, this, [this] {
|
||||
defaultPalette = qApp->palette();
|
||||
// Reload so scheme-qualified assets and palettes follow the OS, but do
|
||||
// NOT recapture defaultPalette: qApp->palette() already carries the
|
||||
// currently-applied theme palette at this point, so recapturing it
|
||||
// would contaminate the base for every later theme switch.
|
||||
themeChangedSlot();
|
||||
});
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue