From f20889a5fa2c2411bc181a8da0c64fa9abe03409 Mon Sep 17 00:00:00 2001 From: MilesCranmer Date: Mon, 15 Apr 2024 12:06:40 +0100 Subject: [PATCH] chore: change color scheme to cargo --- src/args.rs | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/args.rs b/src/args.rs index 9ad3707..8f2e529 100644 --- a/src/args.rs +++ b/src/args.rs @@ -5,12 +5,15 @@ use clap::{Parser, Subcommand}; use std::io::{Error, ErrorKind}; use std::path::PathBuf; -const CMD_STYLE: Style = Style::new().bold(); +const CMD_STYLE: Style = Style::new().bold().fg_color(Some(Ansi(AnsiColor::BrightCyan))); const HEADER_STYLE: Style = Style::new() .bold() - .underline() - .fg_color(Some(Ansi(AnsiColor::Blue))); -const PLACEHOLDER_STYLE: Style = Style::new().fg_color(Some(Ansi(AnsiColor::Green))); + .fg_color(Some(Ansi(AnsiColor::Green))); +const PLACEHOLDER_STYLE: Style = Style::new().fg_color(Some(Ansi(AnsiColor::BrightCyan))); +const STYLES: Styles = Styles::styled() + .literal(AnsiColor::BrightCyan.on_default().bold()) + .placeholder(AnsiColor::BrightCyan.on_default()); + const OPTIONS_PLACEHOLDER: &str = "{options}"; const SUBCOMMANDS_PLACEHOLDER: &str = "{subcommands}"; @@ -68,10 +71,6 @@ Print the graveyard path } } -const STYLES: Styles = Styles::styled() - .literal(AnsiColor::Magenta.on_default()) - .placeholder(AnsiColor::Green.on_default()); - #[derive(Parser, Debug, Default)] #[command( name = "rip",