mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-07-26 06:14:45 +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 {
|
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,20 +144,20 @@ Item {
|
||||||
root.detailledView = !root.detailledView
|
root.detailledView = !root.detailledView
|
||||||
}
|
}
|
||||||
|
|
||||||
|
BlurredBackground {
|
||||||
|
anchors.fill: parent
|
||||||
|
darken: mouseArea.pressed
|
||||||
|
inActionDrawer: root.inActionDrawer
|
||||||
|
imageSource: model.artUrl
|
||||||
|
}
|
||||||
|
|
||||||
MobileShell.BaseItem {
|
MobileShell.BaseItem {
|
||||||
id: playerItem
|
id: playerItem
|
||||||
anchors.fill: parent
|
anchors.top: parent.top
|
||||||
|
anchors.left: parent.left
|
||||||
|
anchors.right: parent.right
|
||||||
|
|
||||||
padding: root.padding
|
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 {
|
contentItem: ColumnLayout {
|
||||||
Kirigami.Theme.inherit: true
|
Kirigami.Theme.inherit: true
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue