summaryrefslogtreecommitdiff
path: root/bar/Network.qml
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2025-07-16 21:57:53 +0800
committerlittleblack111 <littleblack11111@gmail.com>2025-07-16 21:57:53 +0800
commit0470a7627f1579f1b7c54f0e234a251eae7141ba (patch)
treeb7f30d8059845088c0668ea284130648f83250b6 /bar/Network.qml
parent127b9bcecdc3fe40e2113067bcbdb80e9d34d5bd (diff)
network: alt text signal
Diffstat (limited to 'bar/Network.qml')
-rw-r--r--bar/Network.qml14
1 files changed, 14 insertions, 0 deletions
diff --git a/bar/Network.qml b/bar/Network.qml
index f7d52a2..af6c58e 100644
--- a/bar/Network.qml
+++ b/bar/Network.qml
@@ -15,6 +15,8 @@ Item {
property int significantUsage: 30
property string usageUnit: "M"
+ property bool isCollapsed: true
+
implicitWidth: container.implicitWidth
implicitHeight: container.implicitHeight - General.rectMargin
@@ -44,8 +46,13 @@ Item {
}
Icon {
+ visible: root.isCollapsed
text: Services.Network.state
}
+ IText {
+ visible: !root.isCollapsed
+ text: Services.Network.networkStrength
+ }
RowLayout {
spacing: Bar.resourceIconTextSpacing / 2
@@ -77,4 +84,11 @@ Item {
}
}
}
+ MouseArea {
+ anchors.fill: container
+ cursorShape: Qt.PointingHandCursor
+ onClicked: {
+ root.isCollapsed = !root.isCollapsed;
+ }
+ }
}