egui icon indicating copy to clipboard operation
egui copied to clipboard

Allow setting a fill color for ProgressBar track

Open andrewbrey opened this issue 1 year ago • 0 comments

To support the use case where a progress bar has a "track" (the incomplete portion of the progress) that should be visible as the progress takes place, this PR adds the ability to optionally supply a color that will be used for the track fill.

Here is the demo widget gallery with the ProgressBar::track_fill set to dark blue:

let progress_bar = egui::ProgressBar::new(progress)
    .show_percentage()
    .track_fill(egui::Color32::DARK_BLUE)
    .animate(*animate_progress_bar);

track

  • [x] I have followed the instructions in the PR template

andrewbrey avatar Jul 25 '24 00:07 andrewbrey