summaryrefslogtreecommitdiff
path: root/bar/Network.qml
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2025-10-04 19:56:22 +0800
committerlittleblack111 <littleblack11111@gmail.com>2025-10-04 19:56:22 +0800
commit6188faad828bdfabc4932098a3b07ea708fff538 (patch)
treee9cfcca0e37bd02a6ae12be768dbb459419b7eb6 /bar/Network.qml
parent0bdef4d722e947922b963ef42fdcc16dc1d7b1df (diff)
style: columnLayout
Diffstat (limited to 'bar/Network.qml')
-rw-r--r--bar/Network.qml38
1 files changed, 31 insertions, 7 deletions
diff --git a/bar/Network.qml b/bar/Network.qml
index 7774035..a343977 100644
--- a/bar/Network.qml
+++ b/bar/Network.qml
@@ -55,31 +55,55 @@ Item {
renderType: Text.CurveRendering // it's not static and is rapidly updated
}
- RowLayout {
- spacing: Bar.resourceIconTextSpacing / 2
- Icon {
- text: Icons.resource.network.download
- color: root.downUnit == root.usageUnit && root.down > root.significantUsage ? Colors.cyan : Colors.foreground2
+ ColumnLayout {
+ // spacing: Bar.resourceIconTextSpacing / 2
+ spacing: 0
+ Item {
+ Layout.fillHeight: true
+ Layout.fillWidth: true
}
IText {
animate: true
+ Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter
text: root.down + root.downUnit
color: root.downUnit == root.usageUnit && root.down > root.significantUsage ? Colors.cyan : Colors.foreground2
renderType: Text.CurveRendering // it's not static and is rapidly updated
}
+ Icon {
+ Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter
+ text: Icons.resource.network.download
+ iconSize: Style.font.size.normal
+ color: root.downUnit == root.usageUnit && root.down > root.significantUsage ? Colors.cyan : Colors.foreground2
+ }
+ Item {
+ Layout.fillHeight: true
+ Layout.fillWidth: true
+ }
}
- RowLayout {
- spacing: Bar.resourceIconTextSpacing / 2
+ ColumnLayout {
+ // spacing: Bar.resourceIconTextSpacing / 2
+ spacing: 0
+ Item {
+ Layout.fillHeight: true
+ Layout.fillWidth: true
+ }
Icon {
+ Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter
text: Icons.resource.network.upload
+ iconSize: Style.font.size.normal
color: root.upUnit == root.usageUnit && root.up > root.significantUsage ? Colors.cyan : Colors.foreground2
}
IText {
animate: true
+ Layout.alignment: Qt.AlignVCenter | Qt.AlignHCenter
text: root.up + root.upUnit
color: root.upUnit == root.usageUnit && root.up > root.significantUsage ? Colors.cyan : Colors.foreground2
renderType: Text.CurveRendering // it's not static and is rapidly updated
}
+ Item {
+ Layout.fillHeight: true
+ Layout.fillWidth: true
+ }
}
Item {