mirror of
https://github.com/veeso/termscp.git
synced 2025-12-07 09:36:00 -08:00
Fixed bookmark list colors
This commit is contained in:
@@ -143,7 +143,7 @@ impl Component for BookmarkList {
|
|||||||
.collect(),
|
.collect(),
|
||||||
};
|
};
|
||||||
let (fg, bg): (Color, Color) = match self.states.focus {
|
let (fg, bg): (Color, Color) = match self.states.focus {
|
||||||
true => (Color::Reset, self.props.background),
|
true => (self.props.foreground, self.props.background),
|
||||||
false => (Color::Reset, Color::Reset),
|
false => (Color::Reset, Color::Reset),
|
||||||
};
|
};
|
||||||
let title: String = match self.props.texts.title.as_ref() {
|
let title: String = match self.props.texts.title.as_ref() {
|
||||||
@@ -159,7 +159,7 @@ impl Component for BookmarkList {
|
|||||||
Block::default()
|
Block::default()
|
||||||
.borders(Borders::ALL)
|
.borders(Borders::ALL)
|
||||||
.border_style(match self.states.focus {
|
.border_style(match self.states.focus {
|
||||||
true => Style::default().fg(self.props.foreground),
|
true => Style::default().fg(self.props.background),
|
||||||
false => Style::default(),
|
false => Style::default(),
|
||||||
})
|
})
|
||||||
.title(title),
|
.title(title),
|
||||||
|
|||||||
Reference in New Issue
Block a user