with_fill_characters

Function with_fill_characters 

Source
pub fn with_fill_characters(full: char, empty: char) -> ProgressOption
Expand description

Customizes the characters used for filled and empty sections.

Allows you to change the visual representation of the progress bar by specifying different characters for the filled and empty portions. This can be used to create different visual styles or to match specific design requirements.

§Arguments

  • full - Character to use for filled sections (default: ‘█’)
  • empty - Character to use for empty sections (default: ‘░’)

§Examples

use bubbletea_widgets::progress::{new, with_fill_characters};

// Classic ASCII style
let ascii_progress = new(&[
    with_fill_characters('=', '-'),
]);

// Block style with different densities
let block_progress = new(&[
    with_fill_characters('▓', '▒'),
]);

// Dot style
let dot_progress = new(&[
    with_fill_characters('●', '○'),
]);