[DeviceDelegate] Improve interaction with overflow menu

* Right-align relative to menu button
* Highlight button while menu is open
* Open on press rather than on click like a toolbar menu
This commit is contained in:
Kai Uwe Broulik 2021-07-23 20:40:41 +02:00
parent a6c8498e9b
commit 4320789a04

View file

@ -128,13 +128,14 @@ PlasmaComponents.ListItem
PlasmaComponents3.ToolButton {
id: overflowMenu
icon.name: "application-menu"
checked: menu.status === PlasmaComponents.DialogStatus.Open
onClicked: {
menu.open(overflowMenu, overflowMenu.height)
}
onPressed: menu.openRelative()
PlasmaComponents.ContextMenu {
id: menu
visualParent: overflowMenu
placement: PlasmaCore.Types.BottomPosedLeftAlignedPopup
//Share
PlasmaComponents.MenuItem