From ac216cdbdb3045de18b56e88aac32491adcf2ab9 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sun, 22 Jun 2025 22:51:23 +1000 Subject: lock: static border Not percentage + equal on all sides --- config/LockConfig.qml | 2 +- modules/lock/Backgrounds.qml | 6 +----- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/config/LockConfig.qml b/config/LockConfig.qml index a95efa9..19f35d4 100644 --- a/config/LockConfig.qml +++ b/config/LockConfig.qml @@ -2,7 +2,7 @@ import Quickshell.Io JsonObject { property JsonObject sizes: JsonObject { - property real border: 0.1 + property int border: 100 property int clockWidth: 800 property int clockHeight: 200 property int inputWidth: 600 diff --git a/modules/lock/Backgrounds.qml b/modules/lock/Backgrounds.qml index 78a4799..15836b5 100644 --- a/modules/lock/Backgrounds.qml +++ b/modules/lock/Backgrounds.qml @@ -34,9 +34,7 @@ Item { id: innerMask anchors.fill: parent - anchors.margins: root.locked ? root.height * Config.lock.sizes.border : 0 - anchors.leftMargin: root.locked ? root.width * Config.lock.sizes.border : 0 - anchors.rightMargin: root.locked ? root.width * Config.lock.sizes.border : 0 + anchors.margins: root.locked ? Config.lock.sizes.border : 0 radius: Appearance.rounding.large * 2 @@ -67,8 +65,6 @@ Item { Shape { anchors.fill: parent anchors.margins: Math.floor(innerMask.anchors.margins) - anchors.leftMargin: innerMask.anchors.leftMargin - anchors.rightMargin: innerMask.anchors.rightMargin preferredRendererType: Shape.CurveRenderer -- cgit v1.2.3-freya