mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 15:06:08 +03:00
Fix hover cutoff in apps menu
Signed-off-by: Dominique Fuchs <32204802+DominiqueFuchs@users.noreply.github.com>
This commit is contained in:
parent
628a426d22
commit
180f191014
1 changed files with 13 additions and 0 deletions
|
@ -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"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue