Skip to content
This repository has been archived by the owner on Oct 22, 2019. It is now read-only.

Commit

Permalink
Removed INTENSITY from foreground color grey and added it to white.
Browse files Browse the repository at this point in the history
  • Loading branch information
TimonPost authored Oct 15, 2019
2 parents 7e87cbc + cda535f commit 4ee1086
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/style/winapi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ pub(crate) struct WinApiColor;
impl WinApiColor {
pub fn new() -> Box<WinApiColor> {
init_console_color().unwrap();

Box::from(WinApiColor)
}
}
Expand Down Expand Up @@ -111,8 +110,8 @@ impl From<Colored> for u16 {
Color::DarkMagenta => FG_RED | FG_BLUE,
Color::Cyan => FG_INTENSITY | FG_GREEN | FG_BLUE,
Color::DarkCyan => FG_GREEN | FG_BLUE,
Color::White => FG_RED | FG_GREEN | FG_BLUE,
Color::Grey => FG_INTENSITY | FG_RED | FG_GREEN | FG_BLUE,
Color::White => FG_INTENSITY | FG_RED | FG_GREEN | FG_BLUE,
Color::Grey => FG_RED | FG_GREEN | FG_BLUE,

Color::Reset => {
// safe unwrap, initial console color was set with `init_console_color`.
Expand Down

0 comments on commit 4ee1086

Please sign in to comment.