diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2021-12-10 19:33:51 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2021-12-10 19:33:51 +0100 |
commit | 907ca8514fcbfb5496880162d4cfac72c3f5aa71 (patch) | |
tree | 814869821351ac3241874fedd309e432327030c9 | |
parent | c5a9d938e087e7f037f5667c0af32f97b3cd00cf (diff) |
Add timeline in application
Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
-rw-r--r-- | gui/src/app.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gui/src/app.rs b/gui/src/app.rs index 61c5b0b..d5d9c74 100644 --- a/gui/src/app.rs +++ b/gui/src/app.rs @@ -12,6 +12,7 @@ use iced::text_input; use distrox_lib::profile::Profile; use distrox_lib::config::Config; +use crate::timeline::Timeline; #[derive(Debug)] enum Distrox { @@ -75,6 +76,7 @@ impl Application for Distrox { scroll: scrollable::State::default(), input: text_input::State::default(), input_value: String::default(), + timeline: Timeline::new() }; *self = Distrox::Loaded(state); } @@ -150,7 +152,8 @@ impl Application for Distrox { let content = Column::new() .max_width(800) .spacing(20) - .push(input); + .push(input) + .push(state.timeline.view()); Scrollable::new(&mut state.scroll) .padding(40) |