fix(StatusMessage): Highlight rectangle size matches the background (#10553)
This commit is contained in:
parent
a7050fed20
commit
88cd44c302
|
@ -128,25 +128,6 @@ Control {
|
|||
return "transparent";
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
anchors {
|
||||
top: parent.top
|
||||
bottom: parent.bottom
|
||||
left: parent.left
|
||||
}
|
||||
width: 2
|
||||
visible: root.isPinned || root.hasMention
|
||||
color: root.hasMention ? Theme.palette.mentionColor1 : root.isPinned ? Theme.palette.pinColor1
|
||||
: "transparent" // not visible really
|
||||
}
|
||||
}
|
||||
|
||||
contentItem: Item {
|
||||
|
||||
implicitWidth: messageLayout.implicitWidth
|
||||
implicitHeight: messageLayout.implicitHeight
|
||||
|
||||
|
||||
SequentialAnimation {
|
||||
id: messageFoundAnimation
|
||||
|
||||
|
@ -178,6 +159,24 @@ Control {
|
|||
color: Theme.palette.messageHighlightColor
|
||||
}
|
||||
|
||||
Rectangle {
|
||||
anchors {
|
||||
top: parent.top
|
||||
bottom: parent.bottom
|
||||
left: parent.left
|
||||
}
|
||||
width: 2
|
||||
visible: root.isPinned || root.hasMention
|
||||
color: root.hasMention ? Theme.palette.mentionColor1 : root.isPinned ? Theme.palette.pinColor1
|
||||
: "transparent" // not visible really
|
||||
}
|
||||
}
|
||||
|
||||
contentItem: Item {
|
||||
|
||||
implicitWidth: messageLayout.implicitWidth
|
||||
implicitHeight: messageLayout.implicitHeight
|
||||
|
||||
MouseArea {
|
||||
id: mouseArea
|
||||
anchors.fill: parent
|
||||
|
|
Loading…
Reference in New Issue