diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-25 16:37:12 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-25 16:37:12 +1000 |
| commit | 4d563a38af886ff51a69c3ff4892ccc92407e560 (patch) | |
| tree | 188351cccc9dbbf27b2e92e15aad1d482fc1216f /modules/lock/Backgrounds.qml | |
| parent | lock: move media to bottom right if small screen (diff) | |
| download | caelestia-shell-4d563a38af886ff51a69c3ff4892ccc92407e560.tar.gz caelestia-shell-4d563a38af886ff51a69c3ff4892ccc92407e560.tar.bz2 caelestia-shell-4d563a38af886ff51a69c3ff4892ccc92407e560.zip | |
lock: shrink media if small screen
Diffstat (limited to 'modules/lock/Backgrounds.qml')
| -rw-r--r-- | modules/lock/Backgrounds.qml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/lock/Backgrounds.qml b/modules/lock/Backgrounds.qml index 85ebe6e..2b08ab1 100644 --- a/modules/lock/Backgrounds.qml +++ b/modules/lock/Backgrounds.qml @@ -269,8 +269,8 @@ Item { ShapePath { id: mediaPath - property int width: root.locked ? Config.lock.sizes.mediaWidth - Config.lock.sizes.border / 4 : 0 - property real height: root.locked ? Config.lock.sizes.mediaHeight : 0 + property int width: root.locked ? (root.isLarge ? Config.lock.sizes.mediaWidth : Config.lock.sizes.mediaWidthSmall) - Config.lock.sizes.border / 4 : 0 + property real height: root.locked ? (root.isLarge ? Config.lock.sizes.mediaHeight : Config.lock.sizes.mediaHeightSmall) : 0 readonly property real rounding: Appearance.rounding.large * 2 readonly property real roundingX: width < rounding * 2 ? width / 2 : rounding |