event of button color
This commit is contained in:
parent
f1cdfdc811
commit
f0ac6bb64c
@ -276,6 +276,6 @@ void ewol::ButtonColor::OnReceiveMessage(ewol::EObject * CallerObject, const cha
|
||||
(uint8_t)(tmpColor.alpha * 0xFF));
|
||||
//set the new label ...
|
||||
SetLabel(colorText);
|
||||
|
||||
GenerateEventId(ewolEventButtonColorChange);
|
||||
}
|
||||
}
|
@ -287,9 +287,13 @@ bool ewol::ColorBar::OnEventInput(int32_t IdInput, eventInputType_te typeEvent,
|
||||
(uint8_t)(estimateColor.alpha * 0xFF));
|
||||
EWOL_DEBUG("new color : " << colorText);
|
||||
*/
|
||||
m_currentColor = estimateColor;
|
||||
GenerateEventId(ewolEventColorBarChange);
|
||||
|
||||
if( m_currentColor.red != estimateColor.red
|
||||
|| m_currentColor.green != estimateColor.green
|
||||
|| m_currentColor.blue != estimateColor.blue
|
||||
|| m_currentColor.alpha != estimateColor.alpha) {
|
||||
m_currentColor = estimateColor;
|
||||
GenerateEventId(ewolEventColorBarChange);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user