made mpris hover clickable to skip and rewind tracks

This commit is contained in:
2026-08-19 16:13:28 +01:00
parent fa06a778b7
commit 9bbc4b1340

View File

@@ -256,7 +256,6 @@ Container {
Item { Item {
id: logoutButtonRoot id: logoutButtonRoot
// Key yen isn't on my keyboard, acts as an errorless analog for no bind
required property var modelData required property var modelData
Layout.fillHeight: true Layout.fillHeight: true
@@ -382,6 +381,18 @@ Container {
return fullHeight - (fullMargin * 2); return fullHeight - (fullMargin * 2);
} }
TapHandler {
acceptedButtons: Qt.RightButton
onTapped: MprisManager.skip()
}
TapHandler {
acceptedButtons: Qt.LeftButton
onTapped: MprisManager.prev()
}
Rectangle { Rectangle {
color: Colors.surface1 color: Colors.surface1
radius: 9 radius: 9