Cockatrice/cockatrice/src/interface/palette_editor
Lukas Brübach 7549f9c2cf
[AppColors] Address review comments
- PaletteEditorDialog::onSave(): compare whole PaletteConfig (colors and
  appColors) so a change to only AccentStrong/AccentSoft writes the file;
  add PaletteConfig::operator==.
- appColor(): derive both roles from QPalette::Highlight unconditionally.
  The Fusion palettes pin Accent to near-Window values, and QPalette::Accent
  only exists on Qt 6.6+, so keying on it made identical themes render very
  differently across Qt versions.
- themeChangedSlot(): merge the theme default's [AppColors] into a custom
  palette that predates the section instead of all-or-nothing per file;
  hasPalette() now counts an appColors-only file as a palette.
- Add Default/palette-default-light.toml so the Default theme's Light scheme
  keeps the classic greens instead of falling back to the OS accent.
- home_widget: restore the isBuiltInTheme() half of the Automatic condition;
  non-built-in themes extract button colors from their own background art.
- palette_grid_widget: use appEnum.value(i) for the role cast (3 sites),
  append appHeader to headerLabels, fix the 'Lighted' typo.
2026-09-12 18:00:28 +02:00
..
color_button.cpp [App/Theme] Palette Editor (#6877) 2026-05-17 10:08:00 +02:00
color_button.h [App/Theme] Palette Editor (#6877) 2026-05-17 10:08:00 +02:00
palette_editor_dialog.cpp [AppColors] Address review comments 2026-09-12 18:00:28 +02:00
palette_editor_dialog.h [PaletteEditor] Ensure directory is writeable, don't fall back to alternate palette (#7048) 2026-07-27 11:23:41 +02:00
palette_generator.cpp [Client] Add [AppColors] application palette roles 2026-09-12 18:00:28 +02:00
palette_generator.h [App/Theme] Palette Editor (#6877) 2026-05-17 10:08:00 +02:00
palette_grid_widget.cpp [AppColors] Address review comments 2026-09-12 18:00:28 +02:00
palette_grid_widget.h [Client] Add [AppColors] application palette roles 2026-09-12 18:00:28 +02:00
quick_setup_panel.cpp [PaletteEditor] Ensure directory is writeable, don't fall back to alternate palette (#7048) 2026-07-27 11:23:41 +02:00
quick_setup_panel.h [PaletteEditor] Ensure directory is writeable, don't fall back to alternate palette (#7048) 2026-07-27 11:23:41 +02:00