summaryrefslogtreecommitdiff
path: root/modules/lock/LockSurface.qml
diff options
context:
space:
mode:
Diffstat (limited to 'modules/lock/LockSurface.qml')
-rw-r--r--modules/lock/LockSurface.qml9
1 files changed, 9 insertions, 0 deletions
diff --git a/modules/lock/LockSurface.qml b/modules/lock/LockSurface.qml
index 6c2ffa7..047116f 100644
--- a/modules/lock/LockSurface.qml
+++ b/modules/lock/LockSurface.qml
@@ -73,6 +73,8 @@ WlSessionLockSurface {
locked: root.locked
weatherWidth: weather.implicitWidth
+ buttonsWidth: buttons.item?.nonAnimWidth ?? 0
+ buttonsHeight: buttons.item?.nonAnimHeight ?? 0
isNormal: root.screen.width > Config.lock.sizes.smallScreenWidth
isLarge: root.screen.width > Config.lock.sizes.largeScreenWidth
visible: false
@@ -153,9 +155,16 @@ WlSessionLockSurface {
}
Loader {
+ id: buttons
+
active: root.screen.width > Config.lock.sizes.largeScreenWidth
asynchronous: true
+ anchors.top: parent.bottom
+ anchors.left: parent.right
+ anchors.topMargin: -backgrounds.buttonsTop
+ anchors.leftMargin: -backgrounds.buttonsLeft
+
sourceComponent: Buttons {}
}