lock: fix media position

This commit is contained in:
2 * r + 2 * t 2025-06-25 17:09:31 +10:00
parent 7223622933
commit 173738c0be
2 changed files with 41 additions and 38 deletions

View file

@ -6,8 +6,6 @@ import QtQuick.Layouts
ColumnLayout {
id: root
required property bool locked
spacing: 0
RowLayout {

View file

@ -90,8 +90,6 @@ WlSessionLockSurface {
anchors.horizontalCenter: parent.horizontalCenter
anchors.bottom: parent.top
anchors.bottomMargin: -backgrounds.clockBottom
locked: root.locked
}
Input {
@ -112,15 +110,12 @@ WlSessionLockSurface {
}
Loader {
id: media
active: root.screen.width > Config.lock.sizes.smallScreenWidth
asynchronous: true
sourceComponent: MediaPlaying {
id: media
isLarge: root.screen.width > Config.lock.sizes.largeScreenWidth
state: isLarge ? "tl" : "br"
state: root.screen.width > Config.lock.sizes.largeScreenWidth ? "tl" : "br"
states: [
State {
name: "tl"
@ -151,9 +146,19 @@ WlSessionLockSurface {
}
}
]
sourceComponent: MediaPlaying {
isLarge: root.screen.width > Config.lock.sizes.largeScreenWidth
}
}
Loader {
active: root.screen.width > Config.lock.sizes.largeScreenWidth
asynchronous: true
sourceComponent: Buttons {}
}
component Anim: NumberAnimation {
duration: Appearance.anim.durations.large
easing.type: Easing.BezierSpline