From 180f1910149233a3afce2c2c1ae616637ce8f610 Mon Sep 17 00:00:00 2001 From: Dominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com> Date: Wed, 17 Jun 2020 19:39:12 +0200 Subject: [PATCH] Fix hover cutoff in apps menu Signed-off-by: Dominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com> --- src/gui/tray/Window.qml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/gui/tray/Window.qml b/src/gui/tray/Window.qml index d940b535e..982a3f1f7 100644 --- a/src/gui/tray/Window.qml +++ b/src/gui/tray/Window.qml @@ -405,11 +405,24 @@ Window { onObjectAdded: appsMenu.insertItem(index, object) onObjectRemoved: appsMenu.removeItem(object) delegate: MenuItem { + id: appEntry text: appName font.pixelSize: Style.topLinePixelSize icon.source: appIconUrl width: contentItem.implicitWidth + leftPadding + rightPadding onTriggered: UserAppsModel.openAppUrl(appUrl) + hoverEnabled: true + + background: Item { + width: appsMenu.width + height: parent.height + + Rectangle { + anchors.fill: parent + anchors.margins: 1 + color: appEntry.hovered ? Style.lightHover : "transparent" + } + } } } } -- 2.30.2