mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-11 04:23:29 -08:00
[Icons] Keep the authored emphasis in filled treatments
The saturation floor was added while the emphasis levels were still computed: it rescued the pale dark-scheme tones once a whole shape carried them. With the levels authored, the floor overrides the author instead: a quiet level jumped to the secondary saturation as soon as a sticker or a badge painted it, so the ladder only existed for line glyphs. The authored tone is now the top of the fill gradient and the treatment only darkens the bottom for depth, so every treatment renders exactly the level the palette stores. The badge glyph ink no longer guesses the scheme from the tone's value: an authored quiet level is a dark color on the dark scheme too, so the scheme is passed in from the surface palette. The preview sheet renders every shipped palette theme, three glyphs per family, and each row prints the authored tone and the darker bottom.
This commit is contained in:
parent
03a4a33ba5
commit
2e4731d3a5
8 changed files with 346 additions and 171 deletions
|
|
@ -99,8 +99,8 @@ public:
|
|||
*
|
||||
* Application colors are returned verbatim: the theme author stores one
|
||||
* value per emphasis level, so the paint path does not rewrite it. The
|
||||
* filled treatments apply their own saturation floor to a fill they have to
|
||||
* carry; a line glyph keeps the author's color.
|
||||
* filled treatments only shape that tone's value to give a shape depth; the
|
||||
* hue and saturation stay the author's.
|
||||
*
|
||||
* Neutral label roles (WindowText, Text) resolve to icon ink rather than the
|
||||
* raw palette color: ThemeIconInk::glyphInk derives it from the accent and
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue