diff --git a/src/ui/layout/components/bookmark_list.rs b/src/ui/layout/components/bookmark_list.rs index fac7e82..369d4f4 100644 --- a/src/ui/layout/components/bookmark_list.rs +++ b/src/ui/layout/components/bookmark_list.rs @@ -31,7 +31,7 @@ use tui::{ layout::{Corner, Rect}, style::{Color, Style}, text::Span, - widgets::{Block, Borders, List, ListItem, ListState}, + widgets::{Block, List, ListItem, ListState}, }; // -- states @@ -157,7 +157,7 @@ impl Component for BookmarkList { List::new(list_item) .block( Block::default() - .borders(Borders::ALL) + .borders(self.props.borders) .border_style(match self.states.focus { true => Style::default().fg(self.props.background), false => Style::default(), diff --git a/src/ui/layout/components/file_list.rs b/src/ui/layout/components/file_list.rs index bf2d4db..48f3531 100644 --- a/src/ui/layout/components/file_list.rs +++ b/src/ui/layout/components/file_list.rs @@ -31,7 +31,7 @@ use tui::{ layout::{Corner, Rect}, style::{Color, Style}, text::Span, - widgets::{Block, Borders, List, ListItem, ListState}, + widgets::{Block, List, ListItem, ListState}, }; // -- states @@ -157,7 +157,7 @@ impl Component for FileList { List::new(list_item) .block( Block::default() - .borders(Borders::ALL) + .borders(self.props.borders) .border_style(match self.states.focus { true => Style::default().fg(self.props.foreground), false => Style::default(), diff --git a/src/ui/layout/components/input.rs b/src/ui/layout/components/input.rs index 90677d1..a74a533 100644 --- a/src/ui/layout/components/input.rs +++ b/src/ui/layout/components/input.rs @@ -31,7 +31,7 @@ use crossterm::event::{KeyCode, KeyModifiers}; use tui::{ layout::Rect, style::Style, - widgets::{Block, BorderType, Borders, Paragraph}, + widgets::{Block, BorderType, Paragraph}, }; // -- states @@ -199,7 +199,7 @@ impl Component for Input { }) .block( Block::default() - .borders(Borders::ALL) + .borders(self.props.borders) .border_type(BorderType::Rounded) .title(title), ); diff --git a/src/ui/layout/components/logbox.rs b/src/ui/layout/components/logbox.rs index ad136d4..37c5de4 100644 --- a/src/ui/layout/components/logbox.rs +++ b/src/ui/layout/components/logbox.rs @@ -31,7 +31,7 @@ use tui::{ layout::{Corner, Rect}, style::Style, text::{Span, Spans}, - widgets::{Block, Borders, List, ListItem, ListState}, + widgets::{Block, List, ListItem, ListState}, }; // -- states @@ -170,7 +170,7 @@ impl Component for LogBox { let w = List::new(list_items) .block( Block::default() - .borders(Borders::ALL) + .borders(self.props.borders) .border_style(match self.states.focus { true => Style::default().fg(self.props.foreground), false => Style::default(), diff --git a/src/ui/layout/components/progress_bar.rs b/src/ui/layout/components/progress_bar.rs index dc182b9..f2d415d 100644 --- a/src/ui/layout/components/progress_bar.rs +++ b/src/ui/layout/components/progress_bar.rs @@ -29,7 +29,7 @@ use super::{Canvas, Component, InputEvent, Msg, Payload, PropValue, Props, Props use tui::{ layout::Rect, style::Style, - widgets::{Block, Borders, Gauge}, + widgets::{Block, Gauge}, }; // -- state @@ -92,7 +92,7 @@ impl Component for ProgressBar { // Make progress bar render.render_widget( Gauge::default() - .block(Block::default().borders(Borders::ALL).title(title)) + .block(Block::default().borders(self.props.borders).title(title)) .gauge_style( Style::default() .fg(self.props.foreground) diff --git a/src/ui/layout/components/radio_group.rs b/src/ui/layout/components/radio_group.rs index c03a41d..7aa5ef2 100644 --- a/src/ui/layout/components/radio_group.rs +++ b/src/ui/layout/components/radio_group.rs @@ -32,7 +32,7 @@ use tui::{ layout::Rect, style::{Color, Style}, text::Spans, - widgets::{Block, BorderType, Borders, Tabs}, + widgets::{Block, BorderType, Tabs}, }; // -- states @@ -143,7 +143,7 @@ impl Component for RadioGroup { Tabs::new(choices) .block( Block::default() - .borders(Borders::ALL) + .borders(self.props.borders) .border_type(BorderType::Rounded) .style(Style::default()) .title(title), diff --git a/src/ui/layout/components/table.rs b/src/ui/layout/components/table.rs index ead9545..448bc9a 100644 --- a/src/ui/layout/components/table.rs +++ b/src/ui/layout/components/table.rs @@ -30,7 +30,7 @@ use tui::{ layout::{Corner, Rect}, style::Style, text::{Span, Spans}, - widgets::{Block, BorderType, Borders, List, ListItem}, + widgets::{Block, BorderType, List, ListItem}, }; // -- state @@ -107,7 +107,7 @@ impl Component for Table { List::new(list_items) .block( Block::default() - .borders(Borders::ALL) + .borders(self.props.borders) .border_style(Style::default()) .border_type(BorderType::Rounded) .title(title),