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