mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
Polished the media controls expanded view animation.
This commit is contained in:
parent
a41b386651
commit
90ae13e5b6
1 changed files with 11 additions and 11 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue