features/adding_quickshell #6
@@ -860,7 +860,7 @@ Item {
|
|||||||
|
|
||||||
Text {
|
Text {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
text: root.connectedNetworkName
|
text: "Network"
|
||||||
elide: Text.ElideRight
|
elide: Text.ElideRight
|
||||||
font.family: Appearance.fontFamily
|
font.family: Appearance.fontFamily
|
||||||
font.pixelSize: 18
|
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
|
// Live stats — ping/loss/throughput/IP/gateway for whichever
|
||||||
// device is currently connected.
|
// device is currently connected.
|
||||||
GridLayout {
|
GridLayout {
|
||||||
|
|||||||
Reference in New Issue
Block a user