From 3d8307b12489ae3b1c06728cbce63e493ea54e19 Mon Sep 17 00:00:00 2001 From: griffi-gh Date: Tue, 20 Feb 2024 22:29:55 +0100 Subject: [PATCH] owo --- kubi/src/loading_screen.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/kubi/src/loading_screen.rs b/kubi/src/loading_screen.rs index aacdb0d..518793d 100644 --- a/kubi/src/loading_screen.rs +++ b/kubi/src/loading_screen.rs @@ -1,6 +1,6 @@ use hui::{ element::{container::Container, progress_bar::ProgressBar, text::Text}, - layout::{Alignment, UiSize}, + layout::{Alignment, UiDirection, UiSize}, rectangle::{Corners, Sides} }; use shipyard::{UniqueView, UniqueViewMut, Workload, NonSendSync, IntoWorkload}; @@ -48,7 +48,8 @@ fn render_loading_ui( }), Box::new(Container { size: (UiSize::Static(400.), UiSize::Auto), - align: (Alignment::End, Alignment::End).into(), + align: (Alignment::End, Alignment::Begin).into(), + direction: UiDirection::Horizontal, elements: vec![ Box::new(Text { text: format!("{loaded}/{total} ({percentage:.1}%)").into(),