From e419505cb499a0698fc557124d177355050d40f9 Mon Sep 17 00:00:00 2001 From: orhun Date: Fri, 11 Sep 2020 23:49:27 +0300 Subject: [PATCH] Update the pretty-colored example about true colors --- examples/pretty-colored.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/examples/pretty-colored.rs b/examples/pretty-colored.rs index cbf2675..84277e4 100644 --- a/examples/pretty-colored.rs +++ b/examples/pretty-colored.rs @@ -43,7 +43,12 @@ fn set_up_logging() { // configure colors for the whole line let colors_line = ColoredLevelConfig::new() .error(Color::Red) - .warn(Color::Yellow) + // custom color (orange) + .warn(Color::TrueColor { + r: 255, + g: 165, + b: 0, + }) // we actually don't need to specify the color for debug and info, they are white by default .info(Color::White) .debug(Color::White)