summaryrefslogtreecommitdiff
path: root/bar/Network.qml
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2025-07-27 17:36:13 +0800
committerlittleblack111 <littleblack11111@gmail.com>2025-07-27 17:36:50 +0800
commit60781d9d32e516694ef0d2246c620003d5db2d1f (patch)
tree8a6206f6312a21aa002f1edc9f53500613dafaa3 /bar/Network.qml
parentbabd026bbc5877cc93ac25c7b63870ea64f78dad (diff)
refactor: better color code style
Diffstat (limited to 'bar/Network.qml')
-rw-r--r--bar/Network.qml10
1 files changed, 5 insertions, 5 deletions
diff --git a/bar/Network.qml b/bar/Network.qml
index f4178f2..6ce9f67 100644
--- a/bar/Network.qml
+++ b/bar/Network.qml
@@ -30,7 +30,7 @@ Item {
implicitWidth: layout.implicitWidth + General.rectMargin * 2
implicitHeight: Bar.height
- color: WallustColors.color4
+ color: Colors.d2
radius: Style.rounding.large
RowLayout {
@@ -58,24 +58,24 @@ Item {
spacing: Bar.resourceIconTextSpacing / 2
Icon {
text: Icons.resource.network.download
- color: root.downUnit == root.usageUnit && root.down > root.significantUsage ? Colors.cyan : WallustColors.color15
+ color: root.downUnit == root.usageUnit && root.down > root.significantUsage ? Colors.cyan : Colors.foreground2
}
IText {
animate: true
text: root.down + root.downUnit
- color: root.downUnit == root.usageUnit && root.down > root.significantUsage ? Colors.cyan : WallustColors.color15
+ color: root.downUnit == root.usageUnit && root.down > root.significantUsage ? Colors.cyan : Colors.foreground2
}
}
RowLayout {
spacing: Bar.resourceIconTextSpacing / 2
Icon {
text: Icons.resource.network.upload
- color: root.upUnit == root.usageUnit && root.up > root.significantUsage ? Colors.cyan : WallustColors.color15
+ color: root.upUnit == root.usageUnit && root.up > root.significantUsage ? Colors.cyan : Colors.foreground2
}
IText {
animate: true
text: root.up + root.upUnit
- color: root.upUnit == root.usageUnit && root.up > root.significantUsage ? Colors.cyan : WallustColors.color15
+ color: root.upUnit == root.usageUnit && root.up > root.significantUsage ? Colors.cyan : Colors.foreground2
}
}