From 44a5aedbb2d17bc8285eac0591cb1deaf6c1da40 Mon Sep 17 00:00:00 2001 From: mx Date: Thu, 15 Oct 2026 14:59:36 +0200 Subject: [PATCH] Line up Connectivity rows with the small Control Center tiles The card used its own padding and packed rows at the top while the block stretched it beside the tiles. It now uses tile metrics and grows its gaps, so each row meets a tile's toggle. Co-Authored-By: Claude Opus 5.5 --- quickshell/controlcenter/ControlCard.qml | 3 ++- quickshell/controlcenter/modules/Connectivity.qml | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/quickshell/controlcenter/ControlCard.qml b/quickshell/controlcenter/ControlCard.qml index bb8c7d9..10e6a50 100644 --- a/quickshell/controlcenter/ControlCard.qml +++ b/quickshell/controlcenter/ControlCard.qml @@ -9,6 +9,7 @@ Rectangle { property string title property bool heading: title !== "" property int padding: 12 + property real spacing: 10 implicitWidth: 360 implicitHeight: body.implicitHeight + padding * 2 radius: Math.max(12, Theme.radius * 0.75) @@ -23,7 +24,7 @@ Rectangle { top: parent.top margins: root.padding } - spacing: 10 + spacing: root.spacing Text { visible: root.heading text: root.title diff --git a/quickshell/controlcenter/modules/Connectivity.qml b/quickshell/controlcenter/modules/Connectivity.qml index cc17453..5ce5fd8 100644 --- a/quickshell/controlcenter/modules/Connectivity.qml +++ b/quickshell/controlcenter/modules/Connectivity.qml @@ -9,6 +9,12 @@ import "../../theme" // Wi-Fi, Bluetooth and live throughput; labels open the matching Settings page. ControlCard { id: root + // Tile metrics, so rows line up with the small tiles beside this card: when + // the block stretches it, the gaps grow and each row meets a tile's toggle. + readonly property int rowHeight: 34 + padding: 10 + implicitHeight: 3 * rowHeight + 2 * 10 + 2 * padding + spacing: Math.max(10, (root.height - 2 * root.padding - 3 * root.rowHeight) / 2) Demand { service: MetricsService } @@ -19,6 +25,7 @@ ControlCard { property string detail property string page Layout.fillWidth: true + Layout.preferredHeight: toggle.size spacing: 10 CCToggle { id: toggle