UI: new header & current connected interface
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user