diff options
author | Julian T. <julian@jtle.dk> | 2024-04-29 22:25:47 +0200 |
---|---|---|
committer | Julian T. <julian@jtle.dk> | 2024-04-29 22:25:47 +0200 |
commit | 22c8553af68c6f5b2c62ba790e06b249ac82ed2a (patch) | |
tree | 27f954840087372f315311b4d202c2b20c3526b5 /src/render/footer.rs | |
parent | 0b29e9b14607f3226c46f75a20f11abd49c8f4a6 (diff) |
Add beginnning ui and database
Diffstat (limited to 'src/render/footer.rs')
-rw-r--r-- | src/render/footer.rs | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/render/footer.rs b/src/render/footer.rs new file mode 100644 index 0000000..9e74de8 --- /dev/null +++ b/src/render/footer.rs @@ -0,0 +1,20 @@ +use ratatui::{style::{Modifier, Style}, widgets::{Paragraph, Widget}}; + + +#[derive(Debug, Default)] +pub struct Footer; + +impl Footer { + pub fn new() -> Footer { + return Footer {} + } +} + +impl Widget for &Footer { + + fn render(self, area: ratatui::prelude::Rect, buf: &mut ratatui::prelude::Buffer) { + Paragraph::new("hellow") + .style(Style::default().add_modifier(Modifier::REVERSED)) + .render(area, buf); + } +} |