Color and style helpers for TUI drawing.
Class methods
row_style(selected :
Bool) :
Tuple(
Termisu::Color,
Termisu::Attribute)
Row foreground color and attribute based on selection state.
Sourceselect_or_color(selected :
Bool, color :
Bool, colored :
Termisu::Color) :
Termisu::Color Return cyan if selected, colored value if color enabled, else white.
SourceConvert process state to single character.
SourceGet color for process state.
Sourcethreshold_color(percent :
Float64) :
Termisu::Color Get color for percent-based thresholds (green < 50, yellow < 80, red).
Source