mirror of
https://github.com/veeso/termscp.git
synced 2025-12-07 09:36:00 -08:00
Borders to component properties
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user