Fixed bookmark list colors

This commit is contained in:
veeso
2021-03-14 20:40:27 +01:00
parent 00e2a1db31
commit 47c23c6828

View File

@@ -143,7 +143,7 @@ impl Component for BookmarkList {
.collect(),
};
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),
};
let title: String = match self.props.texts.title.as_ref() {
@@ -159,7 +159,7 @@ impl Component for BookmarkList {
Block::default()
.borders(Borders::ALL)
.border_style(match self.states.focus {
true => Style::default().fg(self.props.foreground),
true => Style::default().fg(self.props.background),
false => Style::default(),
})
.title(title),