diff options
author | Nathan Lilienthal <nathan@nixpulvis.com> | 2021-04-30 18:16:48 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-30 22:16:48 +0000 |
commit | e3818a226c79f263d6e19fe83f411b199f7e55ef (patch) | |
tree | 7c526bee928fe084a65961df7dcdef36389e117b /alacritty/src/config | |
parent | e2a853b1a787e63b401bcb518cc0edebcec4e958 (diff) | |
download | r-alacritty-e3818a226c79f263d6e19fe83f411b199f7e55ef.tar.gz r-alacritty-e3818a226c79f263d6e19fe83f411b199f7e55ef.tar.bz2 r-alacritty-e3818a226c79f263d6e19fe83f411b199f7e55ef.zip |
Use cell colors for focused match CellRgb
Fixes #5022.
Co-authored-by: Christian Duerr <contact@christianduerr.com>
Diffstat (limited to 'alacritty/src/config')
-rw-r--r-- | alacritty/src/config/color.rs | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/alacritty/src/config/color.rs b/alacritty/src/config/color.rs index d55cf26f..ddb1da29 100644 --- a/alacritty/src/config/color.rs +++ b/alacritty/src/config/color.rs @@ -122,12 +122,27 @@ impl Default for InvertedCellColors { #[derive(ConfigDeserialize, Debug, Copy, Clone, Default, PartialEq, Eq)] pub struct SearchColors { - pub focused_match: InvertedCellColors, + pub focused_match: FocusedMatchColors, pub matches: MatchColors, bar: BarColors, } #[derive(ConfigDeserialize, Debug, Copy, Clone, PartialEq, Eq)] +pub struct FocusedMatchColors { + pub foreground: CellRgb, + pub background: CellRgb, +} + +impl Default for FocusedMatchColors { + fn default() -> Self { + Self { + background: CellRgb::Rgb(Rgb { r: 0x00, g: 0x00, b: 0x00 }), + foreground: CellRgb::Rgb(Rgb { r: 0xff, g: 0xff, b: 0xff }), + } + } +} + +#[derive(ConfigDeserialize, Debug, Copy, Clone, PartialEq, Eq)] pub struct MatchColors { pub foreground: CellRgb, pub background: CellRgb, |