Update to Apps and Networking and added Idle Button

This commit is contained in:
Hannes
2026-03-22 20:53:49 +01:00
parent 9c69bad626
commit 8a8c38be67
5 changed files with 74 additions and 9 deletions
+6 -5
View File
@@ -6,7 +6,8 @@ import "../../../colors"
MouseArea {
id: networkButton
width: bar.height
width: Math.max(networkText.width + parent.spacing*2, bar.height)
height: bar.height
hoverEnabled: true
cursorShape: Qt.PointingHandCursor
@@ -24,11 +25,11 @@ MouseArea {
: Colors.secondaryContainer_fg
Text {
id: output
id: networkText
anchors.centerIn: parent
font.pixelSize: 26
font.family: "Nerd Font"
color: networkButton.containsMouse ? Colors.tertiary_fg : output.text === "󰤭 /󱐤" ? Colors.error : Colors.primary
color: networkButton.containsMouse ? Colors.tertiary_fg : networkText.text === "󰤭 /󱐤" ? Colors.error : Colors.primary
}
Process {
@@ -38,8 +39,8 @@ MouseArea {
stdout: StdioCollector {
onStreamFinished: {
output.text = this.text.trim()
// console.log("networkScript output:", this.text.trim())
networkText.text = this.text.trim()
// console.log("networkScript networkText:", this.text.trim())
}
}
}