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

Swapped INTENSITY #5

Merged
merged 4 commits into from
Oct 15, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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