mirror of
https://github.com/gitui-org/gitui
synced 2026-05-24 09:28:21 +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
|
// marker
|
||||||
if let Some(marked) = marked {
|
if let Some(marked) = marked {
|
||||||
txt.push(Span::styled(
|
txt.push(Span::styled(
|
||||||
Cow::from(if marked { "X" } else { " " }),
|
Cow::from(if marked { "\u{2713}" } else { " " }),
|
||||||
theme.log_marker(selected),
|
theme.log_marker(selected),
|
||||||
));
|
));
|
||||||
txt.push(splitter.clone());
|
txt.push(splitter.clone());
|
||||||
|
|
|
||||||
|
|
@ -232,7 +232,9 @@ impl Theme {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn log_marker(&self, selected: bool) -> Style {
|
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);
|
style = self.apply_select(style, selected);
|
||||||
|
|
||||||
|
|
@ -245,6 +247,7 @@ impl Theme {
|
||||||
selected,
|
selected,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn commit_author(&self, selected: bool) -> Style {
|
pub fn commit_author(&self, selected: bool) -> Style {
|
||||||
self.apply_select(
|
self.apply_select(
|
||||||
Style::default().fg(self.commit_author),
|
Style::default().fg(self.commit_author),
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue