mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-08-02 03:28:28 -04:00
refactor: unify media control calls to MprisController sync
(cherry picked from commit 6cc574ea5b)
This commit is contained in:
@@ -662,11 +662,12 @@ Item {
|
||||
weight: 500
|
||||
}
|
||||
|
||||
MouseArea {
|
||||
anchors.fill: parent
|
||||
hoverEnabled: true
|
||||
cursorShape: Qt.PointingHandCursor
|
||||
onClicked: activePlayer && activePlayer.togglePlaying()
|
||||
StateLayer {
|
||||
id: playPauseArea
|
||||
disabled: !root.activePlayer || !root.activePlayer.canTogglePlaying
|
||||
stateColor: root.onAccent
|
||||
cornerRadius: parent.radius
|
||||
onClicked: root.activePlayer.togglePlaying()
|
||||
}
|
||||
|
||||
ElevationShadow {
|
||||
@@ -706,7 +707,7 @@ Item {
|
||||
anchors.fill: parent
|
||||
hoverEnabled: true
|
||||
cursorShape: Qt.PointingHandCursor
|
||||
onClicked: activePlayer && activePlayer.next()
|
||||
onClicked: MprisController.next()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -190,7 +190,7 @@ Card {
|
||||
anchors.fill: parent
|
||||
hoverEnabled: true
|
||||
cursorShape: Qt.PointingHandCursor
|
||||
onClicked: activePlayer?.next()
|
||||
onClicked: MprisController.next()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user