diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-25 17:45:26 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-25 17:45:26 +1000 |
| commit | 7a27d4126f06bc92041bd909929ebcdebb4a6cee (patch) | |
| tree | 2ec1b086af0a28061349e59212cf1558b1b5b79e /modules/lock/LockSurface.qml | |
| parent | lock: fix media position (diff) | |
| download | caelestia-shell-7a27d4126f06bc92041bd909929ebcdebb4a6cee.tar.gz caelestia-shell-7a27d4126f06bc92041bd909929ebcdebb4a6cee.tar.bz2 caelestia-shell-7a27d4126f06bc92041bd909929ebcdebb4a6cee.zip | |
lock: add session buttons
Diffstat (limited to 'modules/lock/LockSurface.qml')
| -rw-r--r-- | modules/lock/LockSurface.qml | 9 |
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 {} } |