|
|
@ -224,13 +224,13 @@ pub enum Color {
|
|
|
|
Magenta,
|
|
|
|
Magenta,
|
|
|
|
Cyan,
|
|
|
|
Cyan,
|
|
|
|
Gray,
|
|
|
|
Gray,
|
|
|
|
DarkGray,
|
|
|
|
|
|
|
|
LightRed,
|
|
|
|
LightRed,
|
|
|
|
LightGreen,
|
|
|
|
LightGreen,
|
|
|
|
LightYellow,
|
|
|
|
LightYellow,
|
|
|
|
LightBlue,
|
|
|
|
LightBlue,
|
|
|
|
LightMagenta,
|
|
|
|
LightMagenta,
|
|
|
|
LightCyan,
|
|
|
|
LightCyan,
|
|
|
|
|
|
|
|
LightGray,
|
|
|
|
White,
|
|
|
|
White,
|
|
|
|
Rgb(u8, u8, u8),
|
|
|
|
Rgb(u8, u8, u8),
|
|
|
|
Indexed(u8),
|
|
|
|
Indexed(u8),
|
|
|
@ -250,14 +250,14 @@ impl From<Color> for crossterm::style::Color {
|
|
|
|
Color::Blue => CColor::DarkBlue,
|
|
|
|
Color::Blue => CColor::DarkBlue,
|
|
|
|
Color::Magenta => CColor::DarkMagenta,
|
|
|
|
Color::Magenta => CColor::DarkMagenta,
|
|
|
|
Color::Cyan => CColor::DarkCyan,
|
|
|
|
Color::Cyan => CColor::DarkCyan,
|
|
|
|
Color::Gray => CColor::Grey,
|
|
|
|
Color::Gray => CColor::DarkGrey,
|
|
|
|
Color::DarkGray => CColor::DarkGrey,
|
|
|
|
|
|
|
|
Color::LightRed => CColor::Red,
|
|
|
|
Color::LightRed => CColor::Red,
|
|
|
|
Color::LightGreen => CColor::Green,
|
|
|
|
Color::LightGreen => CColor::Green,
|
|
|
|
Color::LightBlue => CColor::Blue,
|
|
|
|
Color::LightBlue => CColor::Blue,
|
|
|
|
Color::LightYellow => CColor::Yellow,
|
|
|
|
Color::LightYellow => CColor::Yellow,
|
|
|
|
Color::LightMagenta => CColor::Magenta,
|
|
|
|
Color::LightMagenta => CColor::Magenta,
|
|
|
|
Color::LightCyan => CColor::Cyan,
|
|
|
|
Color::LightCyan => CColor::Cyan,
|
|
|
|
|
|
|
|
Color::LightGray => CColor::Grey,
|
|
|
|
Color::White => CColor::White,
|
|
|
|
Color::White => CColor::White,
|
|
|
|
Color::Indexed(i) => CColor::AnsiValue(i),
|
|
|
|
Color::Indexed(i) => CColor::AnsiValue(i),
|
|
|
|
Color::Rgb(r, g, b) => CColor::Rgb { r, g, b },
|
|
|
|
Color::Rgb(r, g, b) => CColor::Rgb { r, g, b },
|
|
|
|