cli: Fix the color of certain things

This commit is contained in:
cloudhead 2023-08-30 19:54:52 +02:00
parent a46057da1f
commit aec865a986
No known key found for this signature in database
3 changed files with 5 additions and 12 deletions

View File

@ -689,7 +689,7 @@ fn show_issue(issue: &issue::Issue, id: &cob::ObjectId) -> anyhow::Result<()> {
.children(if !description.is_empty() {
vec![
term::Label::blank().boxed(),
term::textarea(term::format::dim(description)).boxed(),
term::textarea(description).boxed(),
]
} else {
vec![]

View File

@ -128,10 +128,7 @@ pub fn run(
.border(Some(term::colors::FAINT))
.child(attrs)
.children(if !description.is_empty() {
vec![
term::Label::blank().boxed(),
textarea(term::format::dim(description)).boxed(),
]
vec![term::Label::blank().boxed(), textarea(description).boxed()]
} else {
vec![]
})

View File

@ -9,11 +9,11 @@ pub fn wrap<D: std::fmt::Display>(msg: D) -> Paint<D> {
}
pub fn negative<D: std::fmt::Display>(msg: D) -> Paint<D> {
Paint::red(msg).bold()
Paint::red(msg)
}
pub fn positive<D: std::fmt::Display>(msg: D) -> Paint<D> {
Paint::green(msg).bold()
Paint::green(msg)
}
pub fn primary<D: std::fmt::Display>(msg: D) -> Paint<D> {
@ -21,17 +21,13 @@ pub fn primary<D: std::fmt::Display>(msg: D) -> Paint<D> {
}
pub fn secondary<D: std::fmt::Display>(msg: D) -> Paint<D> {
Paint::blue(msg).bold()
Paint::blue(msg)
}
pub fn tertiary<D: std::fmt::Display>(msg: D) -> Paint<D> {
Paint::cyan(msg)
}
pub fn tertiary_bold<D: std::fmt::Display>(msg: D) -> Paint<D> {
Paint::cyan(msg).bold()
}
pub fn yellow<D: std::fmt::Display>(msg: D) -> Paint<D> {
Paint::yellow(msg)
}