Skip to content

Commit

Permalink
fix(StatusMessage): Highlight rectangle size matches the background (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
igor-sirotin authored May 4, 2023
1 parent a7050fe commit 88cd44c
Showing 1 changed file with 18 additions and 19 deletions.
37 changes: 18 additions & 19 deletions ui/StatusQ/src/StatusQ/Components/StatusMessage.qml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 88cd44c

Please sign in to comment.