From 7a27d4126f06bc92041bd909929ebcdebb4a6cee Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Wed, 25 Jun 2025 17:45:26 +1000 Subject: lock: add session buttons --- modules/lock/LockSurface.qml | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'modules/lock/LockSurface.qml') 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 {} } -- cgit v1.2.3-freya