Polished the media controls expanded view animation.

This commit is contained in:
Micah Stanley 2024-08-01 01:35:20 +00:00 committed by Devin Lin
parent a41b386651
commit 90ae13e5b6

View file

@ -132,8 +132,8 @@ Item {
sourceComponent: MouseArea {
id: mouseArea
implicitHeight: playerItem.implicitHeight
implicitWidth: playerItem.implicitWidth
implicitHeight: root.contentHeight + root.padding * 2
implicitWidth: root.width
onPressAndHold: {
MobileShell.AppLaunch.launchOrActivateApp(model.desktopEntry + ".desktop");
@ -144,20 +144,20 @@ Item {
root.detailledView = !root.detailledView
}
BlurredBackground {
anchors.fill: parent
darken: mouseArea.pressed
inActionDrawer: root.inActionDrawer
imageSource: model.artUrl
}
MobileShell.BaseItem {
id: playerItem
anchors.fill: parent
anchors.top: parent.top
anchors.left: parent.left
anchors.right: parent.right
padding: root.padding
implicitHeight: root.contentHeight + root.padding * 2
implicitWidth: root.width
background: BlurredBackground {
darken: mouseArea.pressed
inActionDrawer: root.inActionDrawer
imageSource: model.artUrl
}
contentItem: ColumnLayout {
Kirigami.Theme.inherit: true