-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Progress bars #496
Comments
@emilk If you agree that this would be a good feature to have, I could implement one. Let me know if you have any ideas how to style it. |
A progress bar would be really nice to have, I was recently looking for one in the demo app to include it in my latest project. |
Here's my temporary workaround if you want a progress bar right now. Replace let progress_bar_len = 18;
let progress = 0.5;
ui.label(format!(
"{}",
(0..progress_bar_len)
.map(|i| {
let percent = i as f32 / progress_bar_len as f32;
if percent < progress {
'◼'
} else {
'◻'
}
})
.collect::<String>()
)); |
@Bauxitedev Thanks, that look good already. I don't need it right now, maybe in about 2 weeks. |
A progress bar would be nice yes, ideally with an optional text attached to it! |
I've opened a PR: #519 |
Quick question, does egui contain any kind of functionality to draw a progress bar? I haven't been able to find any.
Ideally it would be kinda similar to this imgui progress bar: ocornut/imgui#1901
The text was updated successfully, but these errors were encountered: