diff --git a/crates/cli/src/tui/components/history.rs b/crates/cli/src/tui/components/history.rs index 1287ddde..58d9a40d 100644 --- a/crates/cli/src/tui/components/history.rs +++ b/crates/cli/src/tui/components/history.rs @@ -1,3 +1,4 @@ +use color_eyre::owo_colors::OwoColorize; // use git_next_core::git::graph::Log; use lazy_static::lazy_static; @@ -84,12 +85,10 @@ impl From for Line<'_> { branches.sort(); branches .into_iter() - .map(|branch| Span::from(branch).style(Style::default().fg(Color::Blue))) - .for_each(|span| { - spans.push("[".into()); - spans.push(span); - spans.push("]".into()); - }); + .map(|branch| format!("({branch})")) + .map(Span::from) + .map(|span| span.style(Style::default().fg(Color::White).bg(Color::Blue))) + .for_each(|span| spans.push(span)); spans.push(" ".into()); spans.push(message.into()); Line::from(spans)