From aec865a986393ba64faf437ad1c9d523ff45f3bb Mon Sep 17 00:00:00 2001 From: cloudhead Date: Wed, 30 Aug 2023 19:54:52 +0200 Subject: [PATCH] cli: Fix the color of certain things --- radicle-cli/src/commands/issue.rs | 2 +- radicle-cli/src/commands/patch/show.rs | 5 +---- radicle-term/src/format.rs | 10 +++------- 3 files changed, 5 insertions(+), 12 deletions(-) diff --git a/radicle-cli/src/commands/issue.rs b/radicle-cli/src/commands/issue.rs index c0847433..bf02f51b 100644 --- a/radicle-cli/src/commands/issue.rs +++ b/radicle-cli/src/commands/issue.rs @@ -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![] diff --git a/radicle-cli/src/commands/patch/show.rs b/radicle-cli/src/commands/patch/show.rs index 745a2ef1..6edf2e22 100644 --- a/radicle-cli/src/commands/patch/show.rs +++ b/radicle-cli/src/commands/patch/show.rs @@ -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![] }) diff --git a/radicle-term/src/format.rs b/radicle-term/src/format.rs index a3fafa4b..62e0a994 100644 --- a/radicle-term/src/format.rs +++ b/radicle-term/src/format.rs @@ -9,11 +9,11 @@ pub fn wrap(msg: D) -> Paint { } pub fn negative(msg: D) -> Paint { - Paint::red(msg).bold() + Paint::red(msg) } pub fn positive(msg: D) -> Paint { - Paint::green(msg).bold() + Paint::green(msg) } pub fn primary(msg: D) -> Paint { @@ -21,17 +21,13 @@ pub fn primary(msg: D) -> Paint { } pub fn secondary(msg: D) -> Paint { - Paint::blue(msg).bold() + Paint::blue(msg) } pub fn tertiary(msg: D) -> Paint { Paint::cyan(msg) } -pub fn tertiary_bold(msg: D) -> Paint { - Paint::cyan(msg).bold() -} - pub fn yellow(msg: D) -> Paint { Paint::yellow(msg) }