mirror of
https://github.com/griffi-gh/kubi.git
synced 2024-11-25 16:28:42 -06:00
owo
This commit is contained in:
parent
6853f4529e
commit
3d8307b124
|
@ -1,6 +1,6 @@
|
||||||
use hui::{
|
use hui::{
|
||||||
element::{container::Container, progress_bar::ProgressBar, text::Text},
|
element::{container::Container, progress_bar::ProgressBar, text::Text},
|
||||||
layout::{Alignment, UiSize},
|
layout::{Alignment, UiDirection, UiSize},
|
||||||
rectangle::{Corners, Sides}
|
rectangle::{Corners, Sides}
|
||||||
};
|
};
|
||||||
use shipyard::{UniqueView, UniqueViewMut, Workload, NonSendSync, IntoWorkload};
|
use shipyard::{UniqueView, UniqueViewMut, Workload, NonSendSync, IntoWorkload};
|
||||||
|
@ -48,7 +48,8 @@ fn render_loading_ui(
|
||||||
}),
|
}),
|
||||||
Box::new(Container {
|
Box::new(Container {
|
||||||
size: (UiSize::Static(400.), UiSize::Auto),
|
size: (UiSize::Static(400.), UiSize::Auto),
|
||||||
align: (Alignment::End, Alignment::End).into(),
|
align: (Alignment::End, Alignment::Begin).into(),
|
||||||
|
direction: UiDirection::Horizontal,
|
||||||
elements: vec![
|
elements: vec![
|
||||||
Box::new(Text {
|
Box::new(Text {
|
||||||
text: format!("{loaded}/{total} ({percentage:.1}%)").into(),
|
text: format!("{loaded}/{total} ({percentage:.1}%)").into(),
|
||||||
|
|
Loading…
Reference in a new issue