From 0470a7627f1579f1b7c54f0e234a251eae7141ba Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Wed, 16 Jul 2025 21:57:53 +0800 Subject: network: alt text signal --- bar/Network.qml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'bar/Network.qml') 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; + } + } } -- cgit v1.2.3