improve marker styling

This commit is contained in:
Stephan Dilly 2021-08-17 17:54:13 +02:00
parent 3847ec92cf
commit 5c694bd696
2 changed files with 5 additions and 2 deletions

View file

@ -230,7 +230,7 @@ impl CommitList {
// marker
if let Some(marked) = marked {
txt.push(Span::styled(
Cow::from(if marked { "X" } else { " " }),
Cow::from(if marked { "\u{2713}" } else { " " }),
theme.log_marker(selected),
));
txt.push(splitter.clone());

View file

@ -232,7 +232,9 @@ impl Theme {
}
pub fn log_marker(&self, selected: bool) -> Style {
let mut style = Style::default().add_modifier(Modifier::BOLD);
let mut style = Style::default()
.fg(self.commit_author)
.add_modifier(Modifier::BOLD);
style = self.apply_select(style, selected);
@ -245,6 +247,7 @@ impl Theme {
selected,
)
}
pub fn commit_author(&self, selected: bool) -> Style {
self.apply_select(
Style::default().fg(self.commit_author),