From e626e3bc8b8b205cdc6d9368315b3bf4403b914d Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Mon, 2 Dec 2024 12:59:30 -0800 Subject: [PATCH 1/2] Make placeholders in help text cyan --- src/config.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config.rs b/src/config.rs index 86ec4bfeb5..5aedaef4f2 100644 --- a/src/config.rs +++ b/src/config.rs @@ -136,7 +136,7 @@ impl Config { Styles::styled() .header(AnsiColor::Yellow.on_default()) .literal(AnsiColor::Green.on_default()) - .placeholder(AnsiColor::Green.on_default()) + .placeholder(AnsiColor::Cyan.on_default()) .usage(AnsiColor::Yellow.on_default()), ) .arg( From 99ca20e4fd3b18d5a9f26832765aa339461449a2 Mon Sep 17 00:00:00 2001 From: Casey Rodarmor Date: Mon, 2 Dec 2024 13:10:38 -0800 Subject: [PATCH 2/2] More style --- src/config.rs | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/config.rs b/src/config.rs index 5aedaef4f2..6a5897c996 100644 --- a/src/config.rs +++ b/src/config.rs @@ -1,7 +1,10 @@ use { super::*, clap::{ - builder::{styling::AnsiColor, FalseyValueParser, Styles}, + builder::{ + styling::{AnsiColor, Effects}, + FalseyValueParser, Styles, + }, parser::ValuesRef, value_parser, Arg, ArgAction, ArgGroup, ArgMatches, Command, }, @@ -134,10 +137,12 @@ impl Config { .trailing_var_arg(true) .styles( Styles::styled() - .header(AnsiColor::Yellow.on_default()) + .header(AnsiColor::Yellow.on_default() | Effects::BOLD) + .invalid(AnsiColor::Red.on_default()) .literal(AnsiColor::Green.on_default()) .placeholder(AnsiColor::Cyan.on_default()) - .usage(AnsiColor::Yellow.on_default()), + .usage(AnsiColor::Yellow.on_default() | Effects::BOLD) + .valid(AnsiColor::Green.on_default()), ) .arg( Arg::new(arg::CHECK)