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));
|
(uint8_t)(tmpColor.alpha * 0xFF));
|
||||||
//set the new label ...
|
//set the new label ...
|
||||||
SetLabel(colorText);
|
SetLabel(colorText);
|
||||||
|
GenerateEventId(ewolEventButtonColorChange);
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -287,9 +287,13 @@ bool ewol::ColorBar::OnEventInput(int32_t IdInput, eventInputType_te typeEvent,
|
|||||||
(uint8_t)(estimateColor.alpha * 0xFF));
|
(uint8_t)(estimateColor.alpha * 0xFF));
|
||||||
EWOL_DEBUG("new color : " << colorText);
|
EWOL_DEBUG("new color : " << colorText);
|
||||||
*/
|
*/
|
||||||
|
if( m_currentColor.red != estimateColor.red
|
||||||
|
|| m_currentColor.green != estimateColor.green
|
||||||
|
|| m_currentColor.blue != estimateColor.blue
|
||||||
|
|| m_currentColor.alpha != estimateColor.alpha) {
|
||||||
m_currentColor = estimateColor;
|
m_currentColor = estimateColor;
|
||||||
GenerateEventId(ewolEventColorBarChange);
|
GenerateEventId(ewolEventColorBarChange);
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user