diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2021-12-04 21:38:51 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2021-12-08 18:43:34 +0100 |
commit | ffe02288fb2390df9194ad660293de3b4144c3ab (patch) | |
tree | 1ed71214811f79d3a16a77182a6e5d03cde95ea3 | |
parent | 9482b10293f7e2b21647e986304f32ff7795559e (diff) |
Add "Loading" text block
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r-- | src/gui/mod.rs | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/gui/mod.rs b/src/gui/mod.rs index bc7c9e9..503ed9e 100644 --- a/src/gui/mod.rs +++ b/src/gui/mod.rs @@ -124,7 +124,17 @@ impl Application for Distrox { fn view(&mut self) -> iced::Element<Self::Message> { match self { Distrox::Loading => { - unimplemented!() + let text = iced_native::widget::text::Text::new("Loading"); + + let content = Column::new() + .max_width(800) + .spacing(20) + .push(text); + + Container::new(content) + .width(Length::Fill) + .center_x() + .into() } Distrox::Loaded(state) => { |