pub fn progress_bar(
pct: i32,
fill_color: &str,
theme: &Theme,
marker_pct: Option<i32>,
) -> StringExpand description
Build a fixed-width progress bar in Pango markup.
pctis clamped to0..=100.fill_colorcolors the filled (█) cells;theme.bar_emptycolors the empty (░) cells.- If
marker_pctisSome, a single█intheme.markercolor is placed at the corresponding cell, displacing one empty cell and (when usage exceeds the marker position) splitting the filled run around it.
Implementation note: this mirrors claudebar:225-250’s two-branch logic but in a single expression. The resulting markup is byte-identical for the same inputs.