egui
egui copied to clipboard
Allow setting a fill color for ProgressBar track
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);
- [x] I have followed the instructions in the PR template