From bac579b774124d6fccc8336d4d971e993464fe72 Mon Sep 17 00:00:00 2001 From: David Capello Date: Thu, 23 Oct 2014 10:58:46 -0300 Subject: [PATCH] Show color hex code in status bar (fix #508) --- src/app/color.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/app/color.cpp b/src/app/color.cpp index 0fa7d4672..2cb0b9e70 100644 --- a/src/app/color.cpp +++ b/src/app/color.cpp @@ -262,6 +262,11 @@ std::string Color::toHumanReadableString(PixelFormat pixelFormat, HumanReadableS ASSERT(false); break; } + + result << " #" << std::hex << std::setfill('0') + << std::setw(2) << getRed() + << std::setw(2) << getGreen() + << std::setw(2) << getBlue(); } else if (humanReadable == ShortHumanReadableString) { switch (getType()) {