diff --git a/cockatrice/src/interface/palette_editor/palette_editor_dialog.cpp b/cockatrice/src/interface/palette_editor/palette_editor_dialog.cpp index 826935f44..1b9be1dd4 100644 --- a/cockatrice/src/interface/palette_editor/palette_editor_dialog.cpp +++ b/cockatrice/src/interface/palette_editor/palette_editor_dialog.cpp @@ -206,8 +206,9 @@ void PaletteEditorDialog::loadSchemes() for (auto group : {QPalette::Active, QPalette::Disabled, QPalette::Inactive}) { for (int i = 0; i < QPalette::NColorRoles; ++i) { auto role = static_cast(i); - if (role != QPalette::NoRole) + if (role != QPalette::NoRole) { cfg.colors[group][role] = appPal.color(group, role); + } } } } @@ -219,8 +220,9 @@ void PaletteEditorDialog::loadSchemes() void PaletteEditorDialog::seedAccentFromScheme(const QString &scheme) { QColor seed = workingConfig.value(scheme).colors.value(QPalette::Active).value(QPalette::Highlight); - if (seed.isValid()) + if (seed.isValid()) { quickSetupPanel->setAccentColor(seed); + } } void PaletteEditorDialog::onSchemeChanged(const QString &scheme) @@ -321,4 +323,4 @@ void PaletteEditorDialog::refreshChromePalettes() quickSetupPanel->setPalette(sp); quickSetupPanel->update(); } -} \ No newline at end of file +} diff --git a/cockatrice/src/interface/palette_editor/palette_grid_widget.cpp b/cockatrice/src/interface/palette_editor/palette_grid_widget.cpp index 40cd42720..e4ac5a16f 100644 --- a/cockatrice/src/interface/palette_editor/palette_grid_widget.cpp +++ b/cockatrice/src/interface/palette_editor/palette_grid_widget.cpp @@ -170,9 +170,10 @@ void PaletteGridWidget::loadPalette(const PaletteConfig &cfg) PaletteConfig PaletteGridWidget::currentPaletteConfig() const { PaletteConfig cfg; - for (auto group : ALL_GROUPS) + for (auto group : ALL_GROUPS) { for (auto role : allRoles()) { cfg.colors[group][role] = colorButtons[group][role]->getColor(); } + } return cfg; } \ No newline at end of file diff --git a/cockatrice/src/interface/theme_manager.cpp b/cockatrice/src/interface/theme_manager.cpp index eeaa4e834..1bfe5359f 100644 --- a/cockatrice/src/interface/theme_manager.cpp +++ b/cockatrice/src/interface/theme_manager.cpp @@ -279,8 +279,9 @@ void ThemeManager::applyStyleAndPalette(const QString &themeName, if (styleName.compare("Fusion", Qt::CaseInsensitive) == 0) { base = style->standardPalette(); #if (QT_VERSION >= QT_VERSION_CHECK(6, 5, 0)) - if (activeScheme == "Dark") + if (activeScheme == "Dark") { base.setColor(QPalette::AlternateBase, QColor(53, 53, 53)); + } #endif } else { base = qApp->palette();