made mpris hover clickable to skip and rewind tracks
This commit is contained in:
13
Bar/Time.qml
13
Bar/Time.qml
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user