Radish alpha
h
Radicle Heartwood Protocol & Stack
Radicle
Git (anonymous pull)
Log in to clone via SSH
cli: Fix the color of certain things
cloudhead committed 2 years ago
commit aec865a986393ba64faf437ad1c9d523ff45f3bb
parent a46057da1f166eee90411ee27580efd4691e9492
3 files changed +5 -12
modified 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![]
modified 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![]
        })
modified radicle-term/src/format.rs
@@ -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)
}