pub fn progress_line<'a, Message: 'a>(
fraction: f32,
scale: FontScale,
) -> Element<'a, Message>Expand description
A thin bar across its width, filled to fraction (0 to 1).
The fill is the foreground text colour on the row step, and never the accent. iced’s own bar takes the palette’s primary, which in this suite is the accent — and the accent means “selected”, so a running copy drawn in it read as a highlighted row beside the selected one it sat under. A bar that means something else (a failure) is a different widget, not a different colour of this one.
Callers pass a fraction only when there is an honest one. An indeterminate state is said in words, not drawn as a bar that fills at a made-up rate.