mirror of
https://github.com/TECHNOFAB11/tmux-copyrat.git
synced 2025-12-13 16:40:06 +01:00
feat: add bright-* colors & set defaults
This commit is contained in:
parent
4e8f4fb90b
commit
836d5bdc97
2 changed files with 15 additions and 7 deletions
14
src/view.rs
14
src/view.rs
|
|
@ -24,30 +24,30 @@ pub struct View<'a> {
|
|||
#[derive(Clap, Debug)]
|
||||
pub struct ViewColors {
|
||||
/// Foreground color for base text.
|
||||
#[clap(long, default_value = "blue", parse(try_from_str = colors::parse_color))]
|
||||
#[clap(long, default_value = "bright-cyan", parse(try_from_str = colors::parse_color))]
|
||||
pub text_fg: Box<dyn color::Color>,
|
||||
|
||||
/// Background color for base text.
|
||||
#[clap(long, default_value = "white", parse(try_from_str = colors::parse_color))]
|
||||
#[clap(long, default_value = "bright-white", parse(try_from_str = colors::parse_color))]
|
||||
pub text_bg: Box<dyn color::Color>,
|
||||
|
||||
/// Foreground color for matches.
|
||||
#[clap(long, default_value = "green",
|
||||
#[clap(long, default_value = "yellow",
|
||||
parse(try_from_str = colors::parse_color))]
|
||||
pub match_fg: Box<dyn color::Color>,
|
||||
|
||||
/// Background color for matches.
|
||||
#[clap(long, default_value = "black",
|
||||
#[clap(long, default_value = "bright-white",
|
||||
parse(try_from_str = colors::parse_color))]
|
||||
pub match_bg: Box<dyn color::Color>,
|
||||
|
||||
/// Foreground color for the focused match.
|
||||
#[clap(long, default_value = "blue",
|
||||
#[clap(long, default_value = "magenta",
|
||||
parse(try_from_str = colors::parse_color))]
|
||||
pub focused_fg: Box<dyn color::Color>,
|
||||
|
||||
/// Background color for the focused match.
|
||||
#[clap(long, default_value = "black",
|
||||
#[clap(long, default_value = "bright-white",
|
||||
parse(try_from_str = colors::parse_color))]
|
||||
pub focused_bg: Box<dyn color::Color>,
|
||||
|
||||
|
|
@ -57,7 +57,7 @@ pub struct ViewColors {
|
|||
pub hint_fg: Box<dyn color::Color>,
|
||||
|
||||
/// Background color for hints.
|
||||
#[clap(long, default_value = "black",
|
||||
#[clap(long, default_value = "magenta",
|
||||
parse(try_from_str = colors::parse_color))]
|
||||
pub hint_bg: Box<dyn color::Color>,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue