mirror of
https://github.com/gitui-org/gitui
synced 2026-05-22 16:38:28 +00:00
improve marker styling
This commit is contained in:
parent
3847ec92cf
commit
5c694bd696
2 changed files with 5 additions and 2 deletions
|
|
@ -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());
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Reference in a new issue