fix: default colors

This commit is contained in:
graelo 2021-03-23 00:26:44 +01:00
parent 3f4e854700
commit e0cb0e9564

View file

@ -56,11 +56,11 @@ mod tests {
#[clap(about)] // Needed to avoid this doc comment to be used as overall `about`. #[clap(about)] // Needed to avoid this doc comment to be used as overall `about`.
pub struct UiColors { pub struct UiColors {
/// Foreground color for base text. /// Foreground color for base text.
#[clap(long, default_value = "bright-cyan", parse(try_from_str = parse_color))] #[clap(long, default_value = "bright-blue", parse(try_from_str = parse_color))]
pub text_fg: Box<dyn color::Color>, pub text_fg: Box<dyn color::Color>,
/// Background color for base text. /// Background color for base text.
#[clap(long, default_value = "bright-white", parse(try_from_str = parse_color))] #[clap(long, default_value = "white", parse(try_from_str = parse_color))]
pub text_bg: Box<dyn color::Color>, pub text_bg: Box<dyn color::Color>,
/// Foreground color for spans. /// Foreground color for spans.
@ -69,7 +69,7 @@ pub struct UiColors {
pub span_fg: Box<dyn color::Color>, pub span_fg: Box<dyn color::Color>,
/// Background color for spans. /// Background color for spans.
#[clap(long, default_value = "bright-white", #[clap(long, default_value = "white",
parse(try_from_str = parse_color))] parse(try_from_str = parse_color))]
pub span_bg: Box<dyn color::Color>, pub span_bg: Box<dyn color::Color>,
@ -79,7 +79,7 @@ pub struct UiColors {
pub focused_fg: Box<dyn color::Color>, pub focused_fg: Box<dyn color::Color>,
/// Background color for the focused span. /// Background color for the focused span.
#[clap(long, default_value = "bright-white", #[clap(long, default_value = "white",
parse(try_from_str = parse_color))] parse(try_from_str = parse_color))]
pub focused_bg: Box<dyn color::Color>, pub focused_bg: Box<dyn color::Color>,