Skip to main content

choice_width

Function choice_width 

pub fn choice_width(
    text_renderer: &mut TextRenderer,
    theme: &Theme,
    label: &str,
    icon: Option<Icon>,
) -> f64
Expand description

The width a card’s choice asks for: its label (and icon) on a compact face, never narrower than a comfortable target.