summaryrefslogtreecommitdiff
path: root/modules/lock/LockSurface.qml
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-07-22 16:12:21 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-07-22 16:12:21 +1000
commit0b520dc28ba16890a14997958c61d72bc81047f6 (patch)
tree3089cff77f15050452eced7bb436ae30a35d628d /modules/lock/LockSurface.qml
parentbackground: load not async (diff)
downloadcaelestia-shell-0b520dc28ba16890a14997958c61d72bc81047f6.tar.gz
caelestia-shell-0b520dc28ba16890a14997958c61d72bc81047f6.tar.bz2
caelestia-shell-0b520dc28ba16890a14997958c61d72bc81047f6.zip
lock: show status on small screens
Hide notifs but show status
Diffstat (limited to 'modules/lock/LockSurface.qml')
-rw-r--r--modules/lock/LockSurface.qml10
1 files changed, 4 insertions, 6 deletions
diff --git a/modules/lock/LockSurface.qml b/modules/lock/LockSurface.qml
index 5ddd7ae..ed6895b 100644
--- a/modules/lock/LockSurface.qml
+++ b/modules/lock/LockSurface.qml
@@ -69,8 +69,8 @@ WlSessionLockSurface {
weatherWidth: weather.implicitWidth
buttonsWidth: buttons.item?.nonAnimWidth ?? 0
buttonsHeight: buttons.item?.nonAnimHeight ?? 0
- statusWidth: status.item?.nonAnimWidth ?? 0
- statusHeight: status.item?.nonAnimHeight ?? 0
+ statusWidth: status.nonAnimWidth ?? 0
+ statusHeight: status.nonAnimHeight ?? 0
isNormal: root.screen.width > Config.lock.sizes.smallScreenWidth
isLarge: root.screen.width > Config.lock.sizes.largeScreenWidth
@@ -162,17 +162,15 @@ WlSessionLockSurface {
sourceComponent: Buttons {}
}
- Loader {
+ Status {
id: status
- active: root.screen.width > Config.lock.sizes.largeScreenWidth
-
anchors.bottom: parent.top
anchors.left: parent.right
anchors.bottomMargin: -backgrounds.statusBottom
anchors.leftMargin: -backgrounds.statusLeft
- sourceComponent: Status {}
+ showNotifs: root.screen.width > Config.lock.sizes.largeScreenWidth
}
component Anim: NumberAnimation {