Cockatrice/cockatrice/src/interface/widgets
Lukas Brübach 8849c11f66
[Icons] Migrate UI glyphs to palette-token SVGs
Runtime inversion is not a theming system: it rotates hue, breaks duotone art
and mishandles alpha, and a QPixmap snapshot cannot follow a palette change.
Redraw the top-level UI glyph set on a 24x24 grid with `currentColor` as the
paint token, drop Inkscape/Sodipodi cruft, and delete the icons whose metaphor
was duplicated (cogwheel/gear -> settings, scale_balanced -> scales,
update.png -> reload).

Load the glyphs through `loadThemedIcon` so the engine resolves the token from
the palette on every request, and let `themePixmap` use the same resolution for
one-shot pixmaps. `loadColorAdjustedPixmap` is gone; every caller now keeps a
QIcon, which `SettingsButtonWidget::setButtonIcon` accepts instead of a QPixmap.

Content art (mana, counters, countries) keeps its authored colors.

Add a render test covering aspect ratio, palette flips, icon modes and
high-DPI pixmaps.
2026-10-21 05:11:13 +02:00
..
cards [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00
deck_analytics [Icons] Migrate UI glyphs to palette-token SVGs 2026-10-21 05:11:13 +02:00
deck_editor [Icons] Migrate UI glyphs to palette-token SVGs 2026-10-21 05:11:13 +02:00
deck_share [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00
dialogs [Icons] Migrate UI glyphs to palette-token SVGs 2026-10-21 05:11:13 +02:00
general [FlowWidget] Restore arrow-key navigation for items in flow widgets (#7591) 2026-10-20 16:53:04 +02:00
menus [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00
onboarding [Client] Improve card database update visibility (#7458) 2026-10-09 11:07:48 +02:00
playmat [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00
printing_selector [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00
quick_settings [Icons] Migrate UI glyphs to palette-token SVGs 2026-10-21 05:11:13 +02:00
replay [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00
server [Icons] Migrate UI glyphs to palette-token SVGs 2026-10-21 05:11:13 +02:00
settings_page [Icons] Migrate UI glyphs to palette-token SVGs 2026-10-21 05:11:13 +02:00
tabs [Icons] Migrate UI glyphs to palette-token SVGs 2026-10-21 05:11:13 +02:00
utility [Icons] Migrate UI glyphs to palette-token SVGs 2026-10-21 05:11:13 +02:00
visual_database_display [Icons] Migrate UI glyphs to palette-token SVGs 2026-10-21 05:11:13 +02:00
visual_deck_editor [Icons] Migrate UI glyphs to palette-token SVGs 2026-10-21 05:11:13 +02:00
visual_deck_storage [Icons] Migrate UI glyphs to palette-token SVGs 2026-10-21 05:11:13 +02:00