From ce774a4daef32d7f8e3fd4ddaf16f92b1850a4ed Mon Sep 17 00:00:00 2001 From: Pascal Precht Date: Tue, 13 Apr 2021 12:21:15 +0200 Subject: [PATCH] fix(contextMenu): make menu item hover work and change color --- ui/app/AppLayouts/Chat/components/MessageContextMenu.qml | 2 +- ui/shared/PopupMenu.qml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/app/AppLayouts/Chat/components/MessageContextMenu.qml b/ui/app/AppLayouts/Chat/components/MessageContextMenu.qml index 46496a19dc..46d232c916 100644 --- a/ui/app/AppLayouts/Chat/components/MessageContextMenu.qml +++ b/ui/app/AppLayouts/Chat/components/MessageContextMenu.qml @@ -85,7 +85,7 @@ PopupMenu { visible: messageContextMenu.isProfile width: 200 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 { id: profileImage diff --git a/ui/shared/PopupMenu.qml b/ui/shared/PopupMenu.qml index 73c1da6340..c74b2dcebb 100644 --- a/ui/shared/PopupMenu.qml +++ b/ui/shared/PopupMenu.qml @@ -115,7 +115,7 @@ Menu { background: Rectangle { implicitWidth: 220 implicitHeight: enabled ? 24 : 0 - color: popupMenuItem.highlighted ? popupMenuItem.hoverColor : "transparent" + color: popupMenuItem.hovered ? popupMenuItem.hoverColor : "transparent" } MouseArea { cursorShape: Qt.PointingHandCursor