From 7f93c3ed136420fec167cdbdca56fe4d188bec32 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Wed, 30 Apr 2025 21:14:53 +1000 Subject: bar: make power button smaller Also move the circle logic to the pills preset and fix for other font sizes --- modules/bar/Pills.qml | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'modules/bar/Pills.qml') diff --git a/modules/bar/Pills.qml b/modules/bar/Pills.qml index 26a0d9e..05b29a9 100644 --- a/modules/bar/Pills.qml +++ b/modules/bar/Pills.qml @@ -95,7 +95,14 @@ Item { } Pill { + // Make circle + Layout.maximumWidth: BarConfig.sizes.height + Layout.maximumHeight: BarConfig.sizes.height + Power { + // Center in pill + x: (BarConfig.sizes.height - width) / 2 + anchors.horizontalCenter: root.get(undefined, parent.horizontalCenter) anchors.verticalCenter: root.get(parent.verticalCenter, undefined) } -- cgit v1.2.3-freya