fix(contextMenu): make menu item hover work and change color

This commit is contained in:
Pascal Precht 2021-04-13 12:21:15 +02:00 committed by Pascal Precht
parent 5d59cb3870
commit ce774a4dae
2 changed files with 2 additions and 2 deletions

View File

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

View File

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