mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-11-11 04:23:29 -08:00
[Icons] Keep the System semantic ladder on the text floor
System authors no palette of its own, so its semantic family is fixed data measured against whatever surfaces the platform provides. The ladder that landed with the authored roles reused the old contrast-ordered values: PositiveSoft and NegativeSoft sat at 2.76–3.90:1 on common light and dark platform surfaces, and the strong level was less saturated than the secondary, which is the inversion the chroma rule removes. Re-author the six default semantic colors per scheme at the same 4.60 target the shipped themes use, against representative platform surfaces, and mirror them in System's palette files. The new DefaultSemanticFamilyMeetsTheLadderOnPlatformSurfaces test holds the floor and the saturation order there, and shippedPalette's early return now says why System is outside the authored-palette assertions.
This commit is contained in:
parent
3474a7c744
commit
ed8e4de3ae
6 changed files with 78 additions and 28 deletions
|
|
@ -84,7 +84,7 @@ public:
|
|||
IconTint(QPalette::ColorRole role, IconEmphasis emphasis = IconEmphasis::Secondary); // implicit for role callers
|
||||
IconTint(AppColor::Role role, IconEmphasis emphasis = IconEmphasis::Secondary); // implicit for semantic callers
|
||||
|
||||
/** @brief A neutral glyph in the accent tone, for the surface's primary action. */
|
||||
/** @brief A neutral glyph at the family's primary level, for the surface's primary action. */
|
||||
static IconTint primary();
|
||||
|
||||
/** @brief A dimmed neutral glyph, for a control that labels rather than acts. */
|
||||
|
|
@ -93,9 +93,10 @@ public:
|
|||
/**
|
||||
* @brief Resolves the concrete color for an icon mode.
|
||||
*
|
||||
* A disabled application color resolves to the disabled foreground, so an
|
||||
* unavailable control does not keep its semantic color. A selected palette
|
||||
* color keeps the WindowText -> HighlightedText swap.
|
||||
* A disabled application color resolves to the derived disabled ink, the
|
||||
* quiet level receded toward the surface, so an unavailable control does not
|
||||
* keep its semantic color. A selected palette color keeps the
|
||||
* WindowText -> HighlightedText swap.
|
||||
*
|
||||
* Application colors are returned verbatim: the theme author stores one
|
||||
* value per emphasis level, so the paint path does not rewrite it. The
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue