Skip to content
Snippets Groups Projects
Commit d2efaf59 authored by Franck Laurent's avatar Franck Laurent Committed by Sébastien Blin
Browse files

MessageListView: add border to message bubble when there is a reply

Change-Id: I461a8ecb4ea064b9b22dd1db7a96a71eb8082321
parent 0de8f019
No related branches found
No related tags found
No related merge requests found
......@@ -27,6 +27,17 @@ Rectangle {
property bool out: true
property int type: MsgSeq.single
property bool isReply: false
Rectangle {
id: maskReplyBorder
anchors.fill: parent
anchors.margins: -1
radius: 5
color: "transparent"
border.color: JamiTheme.chatviewBgColor
border.width: isReply ? 2 : 0
}
Rectangle {
id: mask
visible: type !== MsgSeq.single && !isReply
......
......@@ -176,7 +176,7 @@ Control {
id: replyBubble
z: -2
color: replyItem.isSelf ? Qt.lighter(CurrentConversation.color, 1.15) : Qt.lighter(JamiTheme.messageInBgColor, 1.05)
color: replyItem.isSelf ? CurrentConversation.color : JamiTheme.messageInBgColor
radius: msgRadius
Layout.preferredWidth: replyToRow.width + 2*JamiTheme.preferredMarginSize
......@@ -351,7 +351,6 @@ Control {
width: Type === Interaction.Type.TEXT && !isEdited ? root.textContentWidth : innerContent.childrenRect.width
height: innerContent.childrenRect.height + (visible ? root.extraHeight : 0)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment