diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-04-30 21:14:53 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-04-30 21:14:53 +1000 |
| commit | 7f93c3ed136420fec167cdbdca56fe4d188bec32 (patch) | |
| tree | a35ab866e003e4581ec136e2a5beb6b5074abc2a /modules/bar/Pills.qml | |
| parent | feat: use material colours (diff) | |
| download | caelestia-shell-7f93c3ed136420fec167cdbdca56fe4d188bec32.tar.gz caelestia-shell-7f93c3ed136420fec167cdbdca56fe4d188bec32.tar.bz2 caelestia-shell-7f93c3ed136420fec167cdbdca56fe4d188bec32.zip | |
bar: make power button smaller
Also move the circle logic to the pills preset and fix for other font sizes
Diffstat (limited to 'modules/bar/Pills.qml')
| -rw-r--r-- | modules/bar/Pills.qml | 7 |
1 files changed, 7 insertions, 0 deletions
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) } |