Skip to main content

row_styled

Function row_styled 

Source
pub fn row_styled(w: usize, base: Style, spans: Vec<Span<'_>>) -> String
Expand description

row, with a style under the whole width rather than under the text.

This is what Row::fill was for: a reverse-video row that stops at its last character reads as a ragged highlight, so the selection has to cover the padding too. Cell styles merge rather than replace, so a span that sets a colour keeps it and inherits the reverse.