Skip to main content

styled_adapter

Function styled_adapter 

Source
pub fn styled_adapter(name: &str) -> String
Expand description

A package-manager name, deliberately left in the terminal’s default colour.

It used to be magenta, which put a fifth hue on a status row that already carried green, cyan and a state colour — and an adapter name is an identifier, not a status, so the colour was decorating rather than saying anything. Plain text is also what keeps a wall of coloured columns readable: something has to be the resting state.

Still a function, and still called everywhere an adapter is named, so this stays one decision in one place rather than a hundred call sites to revisit.