Expand description
Shared, UI-agnostic presentation helpers.
The cyberpunk colour palette and the mapping from ConnectionQuality to a
colour are the same across the Ratatui TUI and the GPUI desktop app. Rather
than duplicate the RGB values in every front-end, we define them once
here and expose the quality_color_fn! macro so each front-end can
generate a mapping function for its own colour type without depending on
any UI crate.
Modules§
- palette
- Canonical cyberpunk palette as
(r, g, b)triples.
Functions§
- quality_
rgb - Return the canonical
(r, g, b)colour for aConnectionQuality.