From 60781d9d32e516694ef0d2246c620003d5db2d1f Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Sun, 27 Jul 2025 17:36:13 +0800 Subject: refactor: better color code style --- bar/Network.qml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'bar/Network.qml') 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 } } -- cgit v1.2.3