diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-07-15 22:49:23 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-07-15 22:49:23 +0800 |
| commit | 089f500a2e0aaa39ca7d35ec788d7bece32cd68c (patch) | |
| tree | 0926cd93537549562c32d5a95c121183b62894d7 | |
| parent | 646235d5aa29e2aaf3a048a8a684efb16c784c43 (diff) | |
color: better default colors
| -rw-r--r-- | bar/Mpris.qml | 2 | ||||
| -rw-r--r-- | bar/Network.qml | 12 | ||||
| -rw-r--r-- | components/IText.qml | 1 | ||||
| -rw-r--r-- | components/SimpleResource.qml | 2 |
4 files changed, 9 insertions, 8 deletions
diff --git a/bar/Mpris.qml b/bar/Mpris.qml index 8ed478c..90eab1f 100644 --- a/bar/Mpris.qml +++ b/bar/Mpris.qml @@ -55,7 +55,7 @@ Item { Rectangle { width: pBar.visualPosition * parent.width height: parent.height - color: WallustColors.color3 + color: WallustColors.color12 radius: Style.rounding.smaller Behavior on width { diff --git a/bar/Network.qml b/bar/Network.qml index 9c92f7b..f7d52a2 100644 --- a/bar/Network.qml +++ b/bar/Network.qml @@ -49,26 +49,26 @@ Item { RowLayout { spacing: Bar.resourceIconTextSpacing / 2 - IText { + Icon { text: Icons.resource.network.download - color: root.downUnit == root.usageUnit && root.down > root.significantUsage ? Colors.cyan : WallustColors.foreground + color: root.downUnit == root.usageUnit && root.down > root.significantUsage ? Colors.cyan : WallustColors.color15 } IText { animate: true text: root.down + root.downUnit - color: root.downUnit == root.usageUnit && root.down > root.significantUsage ? Colors.cyan : WallustColors.foreground + color: root.downUnit == root.usageUnit && root.down > root.significantUsage ? Colors.cyan : WallustColors.color15 } } RowLayout { spacing: Bar.resourceIconTextSpacing / 2 - IText { + Icon { text: Icons.resource.network.upload - color: root.upUnit == root.usageUnit && root.up > root.significantUsage ? Colors.cyan : WallustColors.foreground + color: root.upUnit == root.usageUnit && root.up > root.significantUsage ? Colors.cyan : WallustColors.color15 } IText { animate: true text: root.up + root.upUnit - color: root.upUnit == root.usageUnit && root.up > root.significantUsage ? Colors.cyan : WallustColors.foreground + color: root.upUnit == root.usageUnit && root.up > root.significantUsage ? Colors.cyan : WallustColors.color15 } } diff --git a/components/IText.qml b/components/IText.qml index 2810f31..fb9aed9 100644 --- a/components/IText.qml +++ b/components/IText.qml @@ -1,6 +1,7 @@ pragma ComponentBehavior: Bound import QtQuick + import qs.config Text { diff --git a/components/SimpleResource.qml b/components/SimpleResource.qml index 0775069..08d29b4 100644 --- a/components/SimpleResource.qml +++ b/components/SimpleResource.qml @@ -32,7 +32,7 @@ Item { Icon { text: root.icon - color: root.value < root.thresholdL1 ? WallustColors.foreground : root.value >= root.thresholdL3 ? root.thresholdColorL3 : root.value >= root.thresholdL2 ? root.thresholdColorL2 : root.thresholdColorL1 + color: root.value < root.thresholdL1 ? WallustColors.color15 : root.value >= root.thresholdL3 ? root.thresholdColorL3 : root.value >= root.thresholdL2 ? root.thresholdColorL2 : root.thresholdColorL1 } IText { animate: true |
