From ef06a967577632a852b616cb0659fe83f6b8b653 Mon Sep 17 00:00:00 2001 From: thomas Date: Thu, 27 Aug 2026 11:13:09 +0100 Subject: [PATCH] UI: new header & current connected interface --- .../modules/bar/NetworkIndicator.qml | 30 ++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/dotfiles/.config/quickshell/modules/bar/NetworkIndicator.qml b/dotfiles/.config/quickshell/modules/bar/NetworkIndicator.qml index bf8d5a8..099ba15 100644 --- a/dotfiles/.config/quickshell/modules/bar/NetworkIndicator.qml +++ b/dotfiles/.config/quickshell/modules/bar/NetworkIndicator.qml @@ -860,7 +860,7 @@ Item { Text { Layout.fillWidth: true - text: root.connectedNetworkName + text: "Network" elide: Text.ElideRight font.family: Appearance.fontFamily font.pixelSize: 18 @@ -869,6 +869,34 @@ Item { } } + // Row rather than RowLayout — RowLayout is built for + // constraint-based stretching (Layout.fillWidth etc.), and + // without either Text opting into that, its sizing pass can + // still leave more room between them than spacing:0 implies. + // Row has no such stretch logic: spacing is exactly the gap + // you get, so these two sit flush (plus one small gap) no + // matter what width is bound above them. + Row { + width: parent.width + spacing: 4 + + Text { + text: "Connected Interface:" + font.family: Appearance.fontFamily + font.pixelSize: Appearance.fontSizeSmall + color: Colors.muted + } + + Text { + text: root.connectedNetworkName + font.family: Appearance.fontFamily + font.pixelSize: Appearance.fontSizeSmall + color: Colors.foreground + font.bold: true + } + + } + // Live stats — ping/loss/throughput/IP/gateway for whichever // device is currently connected. GridLayout {