diff options
Diffstat (limited to 'alacritty/src/config/color.rs')
-rw-r--r-- | alacritty/src/config/color.rs | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/alacritty/src/config/color.rs b/alacritty/src/config/color.rs index cd5d964d..d55cf26f 100644 --- a/alacritty/src/config/color.rs +++ b/alacritty/src/config/color.rs @@ -16,6 +16,7 @@ pub struct Colors { pub indexed_colors: Vec<IndexedColor>, pub search: SearchColors, pub line_indicator: LineIndicatorColors, + pub hints: HintColors, } impl Colors { @@ -34,6 +35,42 @@ pub struct LineIndicatorColors { pub background: Option<Rgb>, } +#[derive(ConfigDeserialize, Default, Copy, Clone, Debug, PartialEq, Eq)] +pub struct HintColors { + pub start: HintStartColors, + pub end: HintEndColors, +} + +#[derive(ConfigDeserialize, Copy, Clone, Debug, PartialEq, Eq)] +pub struct HintStartColors { + pub foreground: CellRgb, + pub background: CellRgb, +} + +impl Default for HintStartColors { + fn default() -> Self { + Self { + foreground: CellRgb::Rgb(Rgb { r: 0x1d, g: 0x1f, b: 0x21 }), + background: CellRgb::Rgb(Rgb { r: 0xe9, g: 0xff, b: 0x5e }), + } + } +} + +#[derive(ConfigDeserialize, Copy, Clone, Debug, PartialEq, Eq)] +pub struct HintEndColors { + pub foreground: CellRgb, + pub background: CellRgb, +} + +impl Default for HintEndColors { + fn default() -> Self { + Self { + foreground: CellRgb::Rgb(Rgb { r: 0xe9, g: 0xff, b: 0x5e }), + background: CellRgb::Rgb(Rgb { r: 0x1d, g: 0x1f, b: 0x21 }), + } + } +} + #[derive(Deserialize, Copy, Clone, Default, Debug, PartialEq, Eq)] pub struct IndexedColor { pub color: Rgb, |