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