mirror of
https://github.com/aseprite/aseprite.git
synced 2024-12-26 18:21:44 +00:00
Show color hex code in status bar (fix #508)
This commit is contained in:
parent
81d725e8c3
commit
bac579b774
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user