summaryrefslogtreecommitdiff
path: root/bar
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2025-07-16 16:28:34 +0800
committerlittleblack111 <littleblack11111@gmail.com>2025-07-16 16:28:34 +0800
commitbd99f5c05020f81c0ef0b1c7ef53112febcbfb68 (patch)
tree60d5d49066768776e97eab4e2978e0995d00bcd9 /bar
parent042c42805ceecbf7eefa129da990dc79816fe43c (diff)
mpris: configurable seek scalew
mpris: set mouse to pointer on hover
Diffstat (limited to 'bar')
-rw-r--r--bar/Mpris.qml3
1 files changed, 2 insertions, 1 deletions
diff --git a/bar/Mpris.qml b/bar/Mpris.qml
index 062b89c..b2726a3 100644
--- a/bar/Mpris.qml
+++ b/bar/Mpris.qml
@@ -76,6 +76,7 @@ Item {
MouseArea {
anchors.fill: parent
acceptedButtons: Qt.MiddleButton | Qt.RightButton | Qt.LeftButton
+ cursorShape: Qt.PointingHandCursor
onClicked: mouse => {
if (mouse.button === Qt.MiddleButton)
root.activePlayer?.togglePlaying();
@@ -83,7 +84,7 @@ Item {
root.activePlayer?.next();
}
onWheel: mouse => {
- root.activePlayer?.seek(-mouse.angleDelta.y / 25);
+ root.activePlayer?.seek(-mouse.angleDelta.y * Bar.mediaScrollScale);
}
}
}