mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-23 10:05:10 -07: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
|
||||
|
|
|
|||
|
|
@ -505,7 +505,7 @@ void AppearanceSettingsPage::retranslateUi()
|
|||
openThemeButton.setText(tr("Open themes folder"));
|
||||
schemeComboLabel.setText(tr("Active theme palette:"));
|
||||
styleComboLabel.setText(tr("Active theme style:"));
|
||||
styleCombo.setToolTip(tr("Qt widget style saved to this theme (\"Default\" lets the application decide)"));
|
||||
styleCombo.setToolTip(tr("Qt widget style saved to this theme (\"System\" lets the application decide)"));
|
||||
editPaletteButton.setText(tr("Edit theme palette"));
|
||||
|
||||
homeTabGroupBox->setTitle(tr("Home tab settings"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue