From 57e5c0c7b397cefd74092f48b35b59883ece4b58 Mon Sep 17 00:00:00 2001 From: thomas Date: Thu, 27 Aug 2026 07:42:37 +0100 Subject: [PATCH] Fixes: removed extra padding on icon --- .../quickshell/modules/bar/BluetoothIndicator.qml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/dotfiles/.config/quickshell/modules/bar/BluetoothIndicator.qml b/dotfiles/.config/quickshell/modules/bar/BluetoothIndicator.qml index 3b6e9ac..93ed5ae 100644 --- a/dotfiles/.config/quickshell/modules/bar/BluetoothIndicator.qml +++ b/dotfiles/.config/quickshell/modules/bar/BluetoothIndicator.qml @@ -7,7 +7,15 @@ import "../../config" Item { id: root - implicitWidth: label.implicitWidth + 4 + // Independent left/right breathing room around the glyph. Material + // Symbols icons aren't monospaced — each one's font-reported advance + // width (label.implicitWidth) bakes in its own side bearings, so the + // same "+4, centered" math that every other bar icon uses can still + // look tighter/looser icon-to-icon. Tune these two by eye instead of + // the icon's own bounding box to even it out against its neighbours. + property real iconLeftPadding: 0 + property real iconRightPadding: 0 + implicitWidth: root.iconLeftPadding + label.implicitWidth + root.iconRightPadding implicitHeight: Appearance.barHeight // The bar's own PanelWindow — passed in from Bar.qml so this popup can @@ -128,7 +136,9 @@ Item { Text { id: label - anchors.centerIn: parent + anchors.verticalCenter: parent.verticalCenter + anchors.left: parent.left + anchors.leftMargin: root.iconLeftPadding font.family: Appearance.iconFontFamilyRounded font.variableAxes: Appearance.iconFontAxes font.pixelSize: 16