fix(contextMenu): make menu item hover work and change color
This commit is contained in:
parent
5d59cb3870
commit
ce774a4dae
|
@ -85,7 +85,7 @@ PopupMenu {
|
||||||
visible: messageContextMenu.isProfile
|
visible: messageContextMenu.isProfile
|
||||||
width: 200
|
width: 200
|
||||||
height: visible ? profileImage.height + username.height + Style.current.padding : 0
|
height: visible ? profileImage.height + username.height + Style.current.padding : 0
|
||||||
color: hovered ? Style.current.secondaryBackground : Style.current.transparent
|
color: hovered ? Style.current.backgroundHover : Style.current.transparent
|
||||||
|
|
||||||
StatusImageIdenticon {
|
StatusImageIdenticon {
|
||||||
id: profileImage
|
id: profileImage
|
||||||
|
|
|
@ -115,7 +115,7 @@ Menu {
|
||||||
background: Rectangle {
|
background: Rectangle {
|
||||||
implicitWidth: 220
|
implicitWidth: 220
|
||||||
implicitHeight: enabled ? 24 : 0
|
implicitHeight: enabled ? 24 : 0
|
||||||
color: popupMenuItem.highlighted ? popupMenuItem.hoverColor : "transparent"
|
color: popupMenuItem.hovered ? popupMenuItem.hoverColor : "transparent"
|
||||||
}
|
}
|
||||||
MouseArea {
|
MouseArea {
|
||||||
cursorShape: Qt.PointingHandCursor
|
cursorShape: Qt.PointingHandCursor
|
||||||
|
|
Loading…
Reference in New Issue