From d33f80aee73a9799ae18fe42c3f72b89d0678709 Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Mon, 28 Jul 2025 18:15:40 +0800 Subject: perf: use less expansive font renderer for non-static/rapidly updating texts --- components/SimpleResource.qml | 1 + 1 file changed, 1 insertion(+) (limited to 'components') diff --git a/components/SimpleResource.qml b/components/SimpleResource.qml index eac09d5..818327d 100644 --- a/components/SimpleResource.qml +++ b/components/SimpleResource.qml @@ -44,6 +44,7 @@ Item { } IText { animate: true + renderType: Text.CurveRendering // it's not static and is rapidly updated text: !root.isAlt ? root.text : root.altText color: root.value < root.thresholdL1 ? Colors.foreground1 : root.value >= root.thresholdL3 ? root.thresholdColorL3 : root.value >= root.thresholdL2 ? root.thresholdColorL2 : root.thresholdColorL1 } -- cgit v1.2.3