forked from kemitix/git-next
refactor(tui): simplify repo identity widget
Adds blue to repo alias
This commit is contained in:
parent
a2940ec753
commit
97b685363a
1 changed files with 6 additions and 4 deletions
|
@ -1,5 +1,6 @@
|
|||
//
|
||||
|
||||
use color_eyre::owo_colors::OwoColorize;
|
||||
use git_next_core::{RepoAlias, RepoBranches};
|
||||
use ratatui::{
|
||||
layout::Alignment,
|
||||
|
@ -56,12 +57,13 @@ impl<'a> Identity<'a> {
|
|||
.map(RepoBranches::dev)
|
||||
.map_or_else(|| "_".to_string(), |b| b.to_string());
|
||||
vec![
|
||||
Span::from(format!(" {repo_alias} ({label}) ")),
|
||||
" ".into(),
|
||||
Span::from(repo_alias.to_string()).style(Style::default().fg(Color::Blue)),
|
||||
format!(" ({label}) ").into(),
|
||||
alert,
|
||||
Span::from(format!("({main}/{next}/{dev}) [")),
|
||||
format!("({main}/{next}/{dev}) [").into(),
|
||||
message.into(),
|
||||
// Span::from(message.},
|
||||
Span::from("] "),
|
||||
"] ".into(),
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue