Cockatrice/cockatrice/src/interface/widgets/settings_page
Lukas Brübach 876d66ffc9 [Icons] Add a sticker icon treatment
The pre-#7595 add, remove and delete icons were filled shapes with a black
outline and no disc. A tint cannot bring that back, and the badge disc is a
different icon language, so add a third value to the existing style axis.

IconStyle::Sticker draws the sentinel glyph twice: a near-black rim at the
band width plus one rim on each side, then the tone pass clipped to the glyph
and filled with a vertical gradient. Both treatments keep the disabled
fallback to the line glyph.

The fill rule moves into theme_icon_fill: the semantic tones are tuned for
text, so a filled shape gives its tone a saturation floor, and a dark-scheme
tone is pulled down rather than up. IconTint::resolve() applies the same floor
to line glyphs, and the badge disc uses the same fill, so a line, a badge and
a sticker next to each other carry the same green or red instead of a pale
line beside a saturated glyph.

The badge's glyph ink follows the scheme: white on light-scheme tones, as in
the pre-#7595 art, and the saturated tone darkened to an outline-dark ink on
dark-scheme tones, where the shared saturated disc is light enough that white
would sit near 2.7:1. The new test pins both cases so the glyph cannot
silently flip.

resolveSvgStrokeWidth() moves the stroke-width rewrite into
libcockatrice_utility so the badge and the sticker share it; the badge's local
copy is gone.

The sticker is opted into at 17 call sites: increment, decrement and
remove_row in the deck editor, settings pages, token dialog, server dialogs
and replay/deck storage tabs. The visual database's clear-filter button keeps
its trash can (icons/delete) in the line treatment: that glyph is new in
#7595, but it is the clearer metaphor, and a sticker rim closes its lid gap
at toolbar sizes.

The preview generators also gain a semantic-tint sheet for #7775 and a
line/badge/sticker family strip, so the three PR descriptions can show the
same rendered colors.
2026-11-07 10:43:54 +01:00
..
abstract_settings_page.cpp [Client] Settings: sub-page rows deep-linking into page sections (#7487) 2026-10-18 22:48:51 +02:00
abstract_settings_page.h [Client] Settings: sub-page rows deep-linking into page sections (#7487) 2026-10-18 22:48:51 +02:00
appearance_settings_page.cpp UI: Settings dialog layout fixes (#4531) 2026-11-06 21:38:47 +01:00
appearance_settings_page.h [Style] Confirm broken Windows styles with a dialog offering Fusion (#7507) 2026-10-15 12:41:01 +02:00
deck_editor_settings_page.cpp [Icons] Add a sticker icon treatment 2026-11-07 10:43:54 +01:00
deck_editor_settings_page.h [Spoilers] Preserve spoiler files through update and reload failures (#7707) 2026-11-04 18:24:19 +01:00
general_settings_page.cpp [Settings] Rename UI language selector & move translator hint (#7656) 2026-10-31 09:28:52 +01:00
general_settings_page.h [Translation] Name languages without reading the translation files (#7662) 2026-10-26 02:39:26 +01:00
messages_settings_page.cpp [Icons] Add a sticker icon treatment 2026-11-07 10:43:54 +01:00
messages_settings_page.h UI: Settings dialog layout fixes (#4531) 2026-11-06 21:38:47 +01:00
settings_search_delegate.cpp [Fonts] Migrate DeckList and InterfaceDefault surfaces to theme roles (#7539) 2026-11-04 07:57:54 +01:00
settings_search_delegate.h [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00
settings_search_model.cpp [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00
settings_search_model.h [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00
shortcut_settings_page.cpp [Icons] Migrate UI glyphs to palette-token SVGs (#7595) 2026-11-04 18:39:41 +01:00
shortcut_settings_page.h [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00
sound_settings_page.cpp [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00
sound_settings_page.h [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00
storage_settings_page.cpp [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00
storage_settings_page.h [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00
user_interface_settings_page.cpp [QtUtils] Use makeLayout() for zero-margin layouts (#7620) 2026-10-24 19:06:18 +02:00
user_interface_settings_page.h [Tooling] Apply include-what-you-use across the tree (#7396) 2026-10-08 11:13:50 +02:00