Make reply delegate's border round.

This commit is contained in:
Black Hat 2019-05-17 19:29:41 +08:00
parent b7d8f70a5f
commit 75c5c71855
1 changed files with 8 additions and 13 deletions

View File

@ -131,7 +131,12 @@ ColumnLayout {
Control { Control {
Layout.fillWidth: true Layout.fillWidth: true
padding: 8 Layout.topMargin: 8
Layout.leftMargin: 8
Layout.rightMargin: 8
padding: 4
rightPadding: 12
visible: replyVisible visible: replyVisible
@ -164,19 +169,9 @@ ColumnLayout {
} }
} }
background: AutoRectangle { background: Rectangle {
color: sentByMe ? MPalette.accent : MPalette.background color: sentByMe ? MPalette.accent : MPalette.background
radius: 16 radius: 18
topLeftRadius: 2
topRightRadius: 2
bottomLeftRadius: 0
bottomRightRadius: 0
topLeftVisible: bubbleBackground.topLeftVisible
topRightVisible: bubbleBackground.topRightVisible
bottomLeftVisible: true
bottomRightVisible: true
AutoMouseArea { AutoMouseArea {
anchors.fill: parent anchors.fill: parent