lock: fix media position
This commit is contained in:
parent
7223622933
commit
173738c0be
2 changed files with 41 additions and 38 deletions
|
|
@ -6,8 +6,6 @@ import QtQuick.Layouts
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
required property bool locked
|
|
||||||
|
|
||||||
spacing: 0
|
spacing: 0
|
||||||
|
|
||||||
RowLayout {
|
RowLayout {
|
||||||
|
|
|
||||||
|
|
@ -90,8 +90,6 @@ WlSessionLockSurface {
|
||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
anchors.bottom: parent.top
|
anchors.bottom: parent.top
|
||||||
anchors.bottomMargin: -backgrounds.clockBottom
|
anchors.bottomMargin: -backgrounds.clockBottom
|
||||||
|
|
||||||
locked: root.locked
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Input {
|
Input {
|
||||||
|
|
@ -112,15 +110,12 @@ WlSessionLockSurface {
|
||||||
}
|
}
|
||||||
|
|
||||||
Loader {
|
Loader {
|
||||||
|
id: media
|
||||||
|
|
||||||
active: root.screen.width > Config.lock.sizes.smallScreenWidth
|
active: root.screen.width > Config.lock.sizes.smallScreenWidth
|
||||||
asynchronous: true
|
asynchronous: true
|
||||||
|
|
||||||
sourceComponent: MediaPlaying {
|
state: root.screen.width > Config.lock.sizes.largeScreenWidth ? "tl" : "br"
|
||||||
id: media
|
|
||||||
|
|
||||||
isLarge: root.screen.width > Config.lock.sizes.largeScreenWidth
|
|
||||||
|
|
||||||
state: isLarge ? "tl" : "br"
|
|
||||||
states: [
|
states: [
|
||||||
State {
|
State {
|
||||||
name: "tl"
|
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 {
|
component Anim: NumberAnimation {
|
||||||
duration: Appearance.anim.durations.large
|
duration: Appearance.anim.durations.large
|
||||||
easing.type: Easing.BezierSpline
|
easing.type: Easing.BezierSpline
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue