diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-07-27 17:36:13 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-07-27 17:36:50 +0800 |
| commit | 60781d9d32e516694ef0d2246c620003d5db2d1f (patch) | |
| tree | 8a6206f6312a21aa002f1edc9f53500613dafaa3 /bar/Network.qml | |
| parent | babd026bbc5877cc93ac25c7b63870ea64f78dad (diff) | |
refactor: better color code style
Diffstat (limited to 'bar/Network.qml')
| -rw-r--r-- | bar/Network.qml | 10 |
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 } } |
