diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-08-12 00:02:46 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-08-12 00:02:46 +1000 |
| commit | d2f849dd752b630dd20762921693e648bc9fd955 (patch) | |
| tree | f3b8b0b4b4c9508833a4cd7d05e8f7b64e817a61 /modules/lock | |
| parent | lock/notifs: better anims (diff) | |
| download | caelestia-shell-d2f849dd752b630dd20762921693e648bc9fd955.tar.gz caelestia-shell-d2f849dd752b630dd20762921693e648bc9fd955.tar.bz2 caelestia-shell-d2f849dd752b630dd20762921693e648bc9fd955.zip | |
lock/resources: fix scaling
Diffstat (limited to 'modules/lock')
| -rw-r--r-- | modules/lock/Resources.qml | 4 |
1 files changed, 2 insertions, 2 deletions
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 } |