From: Dominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com> Date: Wed, 17 Jun 2020 17:39:12 +0000 (+0200) Subject: Fix hover cutoff in apps menu X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~222^2^2~113 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=180f1910149233a3afce2c2c1ae616637ce8f610;p=nextcloud-desktop.git Fix hover cutoff in apps menu Signed-off-by: Dominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com> --- 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" + } + } } } }