Tweaks
This commit is contained in:
@@ -660,18 +660,14 @@ Panel {
|
|||||||
id: heroMeta
|
id: heroMeta
|
||||||
width: parent.width
|
width: parent.width
|
||||||
text: {
|
text: {
|
||||||
var parts = []
|
|
||||||
if (root.info.type === "wifi") {
|
if (root.info.type === "wifi") {
|
||||||
if (root.canDisconnect) parts.push("Connected")
|
if (root.canDisconnect) return "CONNECTED"
|
||||||
else if (root.kind === "disconnected") parts.push("Not connected")
|
if (root.kind === "disconnected") return "NOT CONNECTED"
|
||||||
if (root.info.freq) parts.push(root.formatFreq(root.info.freq))
|
return ""
|
||||||
} else if (root.info.type === "ethernet") {
|
|
||||||
parts.push("Connected")
|
|
||||||
if (root.info.speed) parts.push(root.formatSpeed(root.info.speed))
|
|
||||||
} else if (root.kind === "disconnected") {
|
|
||||||
parts.push("Not connected")
|
|
||||||
}
|
}
|
||||||
return parts.join(" · ").toUpperCase()
|
if (root.info.type === "ethernet") return "CONNECTED"
|
||||||
|
if (root.kind === "disconnected") return "NOT CONNECTED"
|
||||||
|
return ""
|
||||||
}
|
}
|
||||||
visible: text !== ""
|
visible: text !== ""
|
||||||
color: Qt.darker(root.bar.foreground, 1.4)
|
color: Qt.darker(root.bar.foreground, 1.4)
|
||||||
@@ -771,9 +767,9 @@ Panel {
|
|||||||
|
|
||||||
// Wi-Fi details
|
// Wi-Fi details
|
||||||
InfoPair {
|
InfoPair {
|
||||||
visible: root.info.type === "wifi" && !!root.info.signal_dbm
|
visible: root.info.type === "wifi" && !!root.info.freq
|
||||||
label: "Signal"
|
label: "Band"
|
||||||
value: (root.info.signal_dbm || "") + " dBm"
|
value: root.formatFreq(root.info.freq || "")
|
||||||
}
|
}
|
||||||
InfoPair {
|
InfoPair {
|
||||||
visible: root.info.type === "wifi" && !!root.info.bitrate
|
visible: root.info.type === "wifi" && !!root.info.bitrate
|
||||||
|
|||||||
Reference in New Issue
Block a user