From d2f849dd752b630dd20762921693e648bc9fd955 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Tue, 12 Aug 2025 00:02:46 +1000 Subject: lock/resources: fix scaling --- modules/lock/Resources.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/lock') diff --git a/modules/lock/Resources.qml b/modules/lock/Resources.qml index 473dfe3..bfa2364 100644 --- a/modules/lock/Resources.qml +++ b/modules/lock/Resources.qml @@ -57,7 +57,7 @@ GridLayout { required property real value required property color colour - readonly property int thickness: Appearance.padding.normal + readonly property int thickness: width < 200 ? Appearance.padding.smaller : Appearance.padding.normal readonly property real arcRadius: (width - Appearance.padding.large * 3 - thickness) / 2 readonly property real vValue: value || 1 / 360 readonly property real gapAngle: ((Appearance.spacing.small + thickness) / (arcRadius || 1)) * (180 / Math.PI) @@ -127,7 +127,7 @@ GridLayout { anchors.centerIn: parent text: res.icon color: res.colour - font.pointSize: (parent.width / 4) || 1 + font.pointSize: (res.arcRadius * 0.7) || 1 font.weight: 600 } -- cgit v1.2.3-freya