mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-05 21:57:20 +00:00
Show color on status bar when mouse is over ColorTintShadeTone (and not captured)
This commit is contained in:
parent
33003fb6f9
commit
9cc8d43f0a
@ -153,21 +153,20 @@ bool ColorTintShadeTone::onProcessMessage(ui::Message* msg)
|
||||
|
||||
// Continue...
|
||||
|
||||
case kMouseMoveMessage:
|
||||
if (hasCapture()) {
|
||||
MouseMessage* mouseMsg = static_cast<MouseMessage*>(msg);
|
||||
case kMouseMoveMessage: {
|
||||
MouseMessage* mouseMsg = static_cast<MouseMessage*>(msg);
|
||||
|
||||
if (msg->type() == kMouseDownMessage)
|
||||
if (msg->type() == kMouseDownMessage)
|
||||
m_capturedInHue = inHueBarArea(mouseMsg->position());
|
||||
|
||||
app::Color color = getColorByPosition(mouseMsg->position());
|
||||
if (color != app::Color::fromMask()) {
|
||||
StatusBar::instance()->showColor(0, "", color);
|
||||
if (hasCapture())
|
||||
ColorChange(color, mouseMsg->buttons());
|
||||
}
|
||||
app::Color color = getColorByPosition(mouseMsg->position());
|
||||
if (color != app::Color::fromMask()) {
|
||||
StatusBar::instance()->showColor(0, "", color);
|
||||
if (hasCapture())
|
||||
ColorChange(color, mouseMsg->buttons());
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
case kMouseUpMessage:
|
||||
if (hasCapture()) {
|
||||
|
Loading…
Reference in New Issue
Block a user