@ -5,8 +5,6 @@ import QtQuick.Controls 2.2
/ / a d d i n g n e w r e a c t i o n s v i a t h e e m o j i p i c k e r
Flow {
id: reactionFlow
/ / S i g n a l f o r w h e n a r e a c t i o n i s p i c k e d / u n p i c k e d
signal picked ( string room_id , string event_id , string key , string selfReactedEvent )
/ / h i g h l i g h t c o l o r s f o r s e l f R e a c t e d E v e n t b a c k g r o u n d
property real highlightHue: colors . highlight . hslHue
@ -36,7 +34,7 @@ Flow {
onClicked: {
console . debug ( "Picked " + model . key + "in response to " + reactionFlow . eventId + " in room " + reactionFlow . roomId + ". selfReactedEvent: " + model . selfReactedEvent )
reactionFlow . picked ( reactionFlow . roomId , reactionFlow . eventId , model . key , model . selfReactedEvent )
timelineManager . reactToMessage ( reactionFlow . roomId , reactionFlow . eventId , model . key , model . selfReactedEvent )
}
@ -57,7 +55,7 @@ Flow {
Text {
anchors.baseline: reactionCounter . baseline
id: reactionText
text: textMetrics . elidedText + ( textMetrics . elidedText == textMetrics . text ? "" : "…" )
text: textMetrics . elidedText + ( textMetrics . elidedText == model . key ? "" : "…" )
font.family: settings . emojiFont
color: reaction . hovered ? colors.highlight : colors . text
maximumLineCount: 1