From e0136891e7dda373cdb546c8c7e8693203bdd791 Mon Sep 17 00:00:00 2001 From: Jezza Date: Mon, 17 Dec 2018 09:19:56 +0000 Subject: [PATCH] Changed colors in example file. (#61) --- examples/examples.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/examples.rs b/examples/examples.rs index 26f3d6e..cd7f82f 100644 --- a/examples/examples.rs +++ b/examples/examples.rs @@ -14,12 +14,12 @@ extern crate crossterm; //mod some_types; //mod terminal; -use crossterm::style::{style, Color, Attribute}; +use crossterm::style::{style, Color}; fn main() { let styled_object = style("'Red' text on 'White' background") - .with(Color::Rgb { r: 34, g: 80, b: 23 }) - .on(Color::Rgb { r: 34, g: 80, b: 23 }); + .with(Color::Rgb { r: 0xFF, g: 0, b: 0 }) + .on(Color::Rgb { r: 0xFF, g: 0xFF, b: 0xFF }); println!("{}", styled_object); } \ No newline at end of file