From 8028deb62a4628fadd6f376d69cff97b9c80faa7 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Wed, 25 Jun 2025 16:44:53 +1000 Subject: lock: increase large screen size Also move to config --- config/LockConfig.qml | 1 + modules/lock/LockSurface.qml | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/config/LockConfig.qml b/config/LockConfig.qml index dfbf53f..6ec9b7a 100644 --- a/config/LockConfig.qml +++ b/config/LockConfig.qml @@ -17,5 +17,6 @@ JsonObject { property int mediaCoverSize: 150 property int mediaCoverSizeSmall: 120 property int mediaCoverBorder: 3 + property int largeScreenWidth: 2560 } } diff --git a/modules/lock/LockSurface.qml b/modules/lock/LockSurface.qml index 87f9cb0..423d29d 100644 --- a/modules/lock/LockSurface.qml +++ b/modules/lock/LockSurface.qml @@ -71,7 +71,7 @@ WlSessionLockSurface { locked: root.locked weatherWidth: weather.implicitWidth - isLarge: root.screen.width > 1920 + isLarge: root.screen.width > Config.lock.sizes.largeScreenWidth visible: false } @@ -111,7 +111,7 @@ WlSessionLockSurface { MediaPlaying { id: media - isLarge: root.screen.width > 1920 + isLarge: root.screen.width > Config.lock.sizes.largeScreenWidth state: isLarge ? "tl" : "br" states: [ -- cgit v1.2.3-freya