From 0a1683e84dfa1d89e65e9b43ed5d586ece47c8dd Mon Sep 17 00:00:00 2001 From: Kirill Chibisov Date: Thu, 13 Aug 2020 14:59:35 +0300 Subject: Use yellow/red from the config for message bar colors This commit completes the effort to use config colors for message bar content by picking red/yellow from user's colors.normal.{red,yellow} for error/warning messages instead of fixed colors. It also removes alacritty_terminal::term::color::RED and alacritty_terminal::term::color::YELLOW from the alacritty_terminal API, bumping its version to 0.11.0-dev. Fixes #4116. --- alacritty_terminal/Cargo.toml | 2 +- alacritty_terminal/src/term/color.rs | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) (limited to 'alacritty_terminal') diff --git a/alacritty_terminal/Cargo.toml b/alacritty_terminal/Cargo.toml index 61861bc3..7b11c1e1 100644 --- a/alacritty_terminal/Cargo.toml +++ b/alacritty_terminal/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "alacritty_terminal" -version = "0.10.1-dev" +version = "0.11.0-dev" authors = ["Christian Duerr ", "Joe Wilm "] license = "Apache-2.0" description = "Library for writing terminal emulators" diff --git a/alacritty_terminal/src/term/color.rs b/alacritty_terminal/src/term/color.rs index fc35952b..104fcfe5 100644 --- a/alacritty_terminal/src/term/color.rs +++ b/alacritty_terminal/src/term/color.rs @@ -15,9 +15,6 @@ pub const COUNT: usize = 269; /// Factor for automatic computation of dim colors used by terminal. pub const DIM_FACTOR: f32 = 0.66; -pub const RED: Rgb = Rgb { r: 0xff, g: 0x0, b: 0x0 }; -pub const YELLOW: Rgb = Rgb { r: 0xff, g: 0xff, b: 0x0 }; - #[derive(Debug, Eq, PartialEq, Copy, Clone, Default, Serialize)] pub struct Rgb { pub r: u8, -- cgit v1.2.3-54-g00ecf