cli: Fix the color of certain things
This commit is contained in:
parent
a46057da1f
commit
aec865a986
|
|
@ -689,7 +689,7 @@ fn show_issue(issue: &issue::Issue, id: &cob::ObjectId) -> anyhow::Result<()> {
|
||||||
.children(if !description.is_empty() {
|
.children(if !description.is_empty() {
|
||||||
vec![
|
vec![
|
||||||
term::Label::blank().boxed(),
|
term::Label::blank().boxed(),
|
||||||
term::textarea(term::format::dim(description)).boxed(),
|
term::textarea(description).boxed(),
|
||||||
]
|
]
|
||||||
} else {
|
} else {
|
||||||
vec![]
|
vec![]
|
||||||
|
|
|
||||||
|
|
@ -128,10 +128,7 @@ pub fn run(
|
||||||
.border(Some(term::colors::FAINT))
|
.border(Some(term::colors::FAINT))
|
||||||
.child(attrs)
|
.child(attrs)
|
||||||
.children(if !description.is_empty() {
|
.children(if !description.is_empty() {
|
||||||
vec![
|
vec![term::Label::blank().boxed(), textarea(description).boxed()]
|
||||||
term::Label::blank().boxed(),
|
|
||||||
textarea(term::format::dim(description)).boxed(),
|
|
||||||
]
|
|
||||||
} else {
|
} else {
|
||||||
vec![]
|
vec![]
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -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> {
|
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> {
|
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> {
|
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> {
|
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> {
|
pub fn tertiary<D: std::fmt::Display>(msg: D) -> Paint<D> {
|
||||||
Paint::cyan(msg)
|
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> {
|
pub fn yellow<D: std::fmt::Display>(msg: D) -> Paint<D> {
|
||||||
Paint::yellow(msg)
|
Paint::yellow(msg)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue