pub fn with_solid_fill(color: String) -> ProgressOptionExpand description
Sets the progress bar to use a solid color fill.
Instead of a gradient, this option fills the progress bar with a single, consistent color. This provides a clean, minimalist appearance and can be useful for maintaining consistency with your application’s color scheme.
§Arguments
color- The color to use for the filled portion (hex code or named color)
§Examples
use bubbletea_widgets::progress::{new, with_solid_fill, with_width};
// Solid green progress bar
let success_progress = new(&[
with_solid_fill("#2ed573".to_string()),
with_width(40),
]);
// Solid red for error states
let error_progress = new(&[
with_solid_fill("#ff3838".to_string()),
]);