refactor(tui): simplify repo identity widget
All checks were successful
Rust / build (push) Successful in 5m56s
ci/woodpecker/push/cron-docker-builder Pipeline was successful
ci/woodpecker/push/push-next Pipeline was successful
ci/woodpecker/push/tag-created Pipeline was successful
Release Please / Release-plz (push) Successful in 1m14s
All checks were successful
Rust / build (push) Successful in 5m56s
ci/woodpecker/push/cron-docker-builder Pipeline was successful
ci/woodpecker/push/push-next Pipeline was successful
ci/woodpecker/push/tag-created Pipeline was successful
Release Please / Release-plz (push) Successful in 1m14s
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 git_next_core::{RepoAlias, RepoBranches};
|
||||||
use ratatui::{
|
use ratatui::{
|
||||||
layout::Alignment,
|
layout::Alignment,
|
||||||
|
@ -56,12 +57,13 @@ impl<'a> Identity<'a> {
|
||||||
.map(RepoBranches::dev)
|
.map(RepoBranches::dev)
|
||||||
.map_or_else(|| "_".to_string(), |b| b.to_string());
|
.map_or_else(|| "_".to_string(), |b| b.to_string());
|
||||||
vec![
|
vec![
|
||||||
Span::from(format!(" {repo_alias} ({label}) ")),
|
" ".into(),
|
||||||
|
Span::from(repo_alias.to_string()).style(Style::default().fg(Color::Blue)),
|
||||||
|
format!(" ({label}) ").into(),
|
||||||
alert,
|
alert,
|
||||||
Span::from(format!("({main}/{next}/{dev}) [")),
|
format!("({main}/{next}/{dev}) [").into(),
|
||||||
message.into(),
|
message.into(),
|
||||||
// Span::from(message.},
|
"] ".into(),
|
||||||
Span::from("] "),
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue