diff options
author | Julian T <julian@jtle.dk> | 2024-05-17 20:22:23 +0200 |
---|---|---|
committer | Julian T <julian@jtle.dk> | 2024-05-17 20:22:23 +0200 |
commit | 829cbaf2d0fe95abc9c65b1e34e209fc32952805 (patch) | |
tree | 3a35d6e768b09ea91540eb2f3f7b2df5bb507841 /src/render.rs | |
parent | 22c8553af68c6f5b2c62ba790e06b249ac82ed2a (diff) |
Stuff i dont remember, sorry
Diffstat (limited to 'src/render.rs')
-rw-r--r-- | src/render.rs | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/render.rs b/src/render.rs index 8c9ce38..d1d5f19 100644 --- a/src/render.rs +++ b/src/render.rs @@ -5,11 +5,12 @@ use ratatui::{ buffer::Buffer, layout::{Alignment, Constraint, Direction, Layout, Rect}, style::Stylize, symbols::border, text::Text, widgets::{block::Title, Block, Borders, Paragraph, Widget}, Frame }; -use crate::tui; +use crate::{tui, model::Task}; -use self::footer::Footer; +use self::{footer::Footer, tasks::TaskList}; mod footer; +mod tasks; #[derive(Debug, Default)] pub struct App { @@ -61,6 +62,12 @@ impl Widget for &App { Constraint::Length(1), ]) .split(area); + TaskList::new(&vec![ + Task::new(1, 1, "Hej", "Hej med dig hvordan går det"), + Task::new(2, 1, "Lul", "Hej med dig hvordan går det"), + Task::new(3, 1, "Hvordan lige", ""), + Task::new(4, 1, "Hej med dig", ""), + ]).render(chunks[0], buf); Footer::new().render(chunks[1], buf); } } |