Documentation
¶
Overview ¶
Package pill is the single source of the status-badge palette: fixed truecolor fills keyed by Jira's status category (matching the Jira UI's own colors) and a luma-computed contrasting text color. Fixed RGB rather than theme colors is deliberate — theme colors resolve to basic ANSI palette slots whose actual rendering is whatever the user's terminal remaps them to, so fill/text contrast on a themed pill was a guess that broke on remapped palettes. Both the CLI plain renderer and the TUI draw their pills from here, so status reads identically everywhere.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Fill ¶
Fill picks the pill background. Jira's own color designation (statusCategory.colorName) is preferred so the badge matches the Jira UI; when it is absent or unrecognized the stable category key is used; failing both, a per-name hash keeps distinct statuses distinguishable. Every result is a fixed truecolor fill — see the package doc for why theme-tracking was dropped.
func Foreground ¶
Foreground picks near-black or near-white text for legibility on the pill fill, judged by the fill's Rec. 601 luma. Every fill is a fixed truecolor value, so the choice is deterministic.
Types ¶
This section is empty.