diff options
Diffstat (limited to 'src/interactive/widgets')
-rw-r--r-- | src/interactive/widgets/footer.rs | 6 | ||||
-rw-r--r-- | src/interactive/widgets/header.rs | 2 | ||||
-rw-r--r-- | src/interactive/widgets/help.rs | 6 | ||||
-rw-r--r-- | src/interactive/widgets/mark.rs | 6 |
4 files changed, 10 insertions, 10 deletions
diff --git a/src/interactive/widgets/footer.rs b/src/interactive/widgets/footer.rs index f89bae5..461580c 100644 --- a/src/interactive/widgets/footer.rs +++ b/src/interactive/widgets/footer.rs @@ -5,9 +5,9 @@ use tui::{ layout::Rect, style::Modifier, style::{Color, Style}, - widgets::Widget, - widgets::{Paragraph, Text}, + widgets::{Paragraph, Text, Widget}, }; + pub struct Footer; pub struct FooterProps { @@ -55,6 +55,6 @@ impl Footer { modifier: Modifier::REVERSED, ..Default::default() }) - .draw(area, buf); + .render(area, buf); } } diff --git a/src/interactive/widgets/header.rs b/src/interactive/widgets/header.rs index 75f72a4..745db3c 100644 --- a/src/interactive/widgets/header.rs +++ b/src/interactive/widgets/header.rs @@ -46,6 +46,6 @@ impl Header { bg: bg_color, ..Default::default() }) - .draw(area, buf); + .render(area, buf); } } diff --git a/src/interactive/widgets/help.rs b/src/interactive/widgets/help.rs index c4af842..d14d8a6 100644 --- a/src/interactive/widgets/help.rs +++ b/src/interactive/widgets/help.rs @@ -194,11 +194,11 @@ impl HelpPane { } = props.borrow(); let title = "Help"; - let mut block = Block::default() + let block = Block::default() .title(title) .border_style(*border_style) .borders(Borders::ALL); - block.draw(area, buf); + block.render(area, buf); if *has_focus { let help_text = " . = o|.. = u || ⇊ = CTRL+d|↓ = j|⇈ = CTRL+u|↑ = k "; @@ -221,6 +221,6 @@ impl HelpPane { self.scroll = self.scroll.min(num_lines.saturating_sub(area.height)); Paragraph::new(texts.iter()) .scroll(self.scroll) - .draw(area, buf); + .render(area, buf); } } diff --git a/src/interactive/widgets/mark.rs b/src/interactive/widgets/mark.rs index ef62f76..1f59738 100644 --- a/src/interactive/widgets/mark.rs +++ b/src/interactive/widgets/mark.rs @@ -317,13 +317,13 @@ impl MarkPane { Some(marked.len().saturating_sub(1)) } }; - let mut block = Block::default() + let block = Block::default() .title(&title) .border_style(*border_style) .borders(Borders::ALL); let inner_area = block.inner(area); - block.draw(area, buf); + block.render(area, buf); let list_area = if self.has_focus { let (help_line_area, list_area) = { @@ -370,7 +370,7 @@ impl MarkPane { .iter(), ) .style(default_style) - .draw(help_line_area, buf); + .render(help_line_area, buf); list_area } else { inner_area |