fix(StatusMessage): Highlight rectangle size matches the background (#10553)

This commit is contained in:
Igor Sirotin 2023-05-04 18:37:33 +03:00 committed by GitHub
parent a7050fed20
commit 88cd44c302
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 18 additions and 19 deletions

View File

@ -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