From 089f500a2e0aaa39ca7d35ec788d7bece32cd68c Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Tue, 15 Jul 2025 22:49:23 +0800 Subject: color: better default colors --- components/IText.qml | 1 + components/SimpleResource.qml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'components') 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 -- cgit v1.2.3