1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-10 07:25:37 -05:00

Add Media click-through on Dashboard

This commit is contained in:
purian23
2025-09-15 19:52:27 -04:00
parent fff4b8c817
commit 38f61ceae2
3 changed files with 22 additions and 0 deletions

View File

@@ -9,6 +9,8 @@ import qs.Widgets
Card {
id: root
signal clicked()
property MprisPlayer activePlayer: MprisController.activePlayer
property real currentPosition: activePlayer?.positionSupported ? activePlayer.position : 0
property real displayPosition: currentPosition
@@ -192,4 +194,16 @@ Card {
}
}
}
MouseArea {
anchors.top: parent.top
anchors.left: parent.left
anchors.right: parent.right
anchors.bottom: parent.bottom
anchors.bottomMargin: 123
hoverEnabled: true
cursorShape: Qt.PointingHandCursor
onClicked: root.clicked()
visible: activePlayer
}
}