Commit fcde9157 authored by Nate Graham's avatar Nate Graham
Browse files

Improve UX for buttons that open menus

Make them open on pressed rather than clicked, and highlight when
pressed. This makes them behave more consistently.

BUG: 453399
FIXED-IN: 22.04.1
parent a5f6f0b6
Pipeline #172375 passed with stage
in 3 minutes and 49 seconds
......@@ -189,9 +189,8 @@ BasePlayerControl {
text: i18nc("open application menu", "Application Menu")
icon.name: "open-menu-symbolic"
down: applicationMenu.visible
onClicked: {
down: pressed || applicationMenu.visible
onPressed: {
if (!applicationMenu.visible) {
applicationMenu.open()
}
......
......@@ -299,8 +299,8 @@ BasePlayListDelegate {
visible: active
sourceComponent: FlatButtonWithToolTip {
icon.name: "overflow-menu"
down: menuLoader.menuVisible
onClicked: menuLoader.item.open()
down: pressed | menuLoader.menuVisible
onPressed: menuLoader.item.open()
}
}
Loader {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment