diff options
| author | littleblack111 <littleblack11111@gmail.com> | 2025-07-28 18:15:40 +0800 |
|---|---|---|
| committer | littleblack111 <littleblack11111@gmail.com> | 2025-07-28 18:16:08 +0800 |
| commit | d33f80aee73a9799ae18fe42c3f72b89d0678709 (patch) | |
| tree | 8a10ba120c31ce63b83872c807ee5a18630dcb91 /components | |
| parent | df22155da1d708488961facd81f07780ca08a9bd (diff) | |
perf: use less expansive font renderer for non-static/rapidly updating texts
Diffstat (limited to 'components')
| -rw-r--r-- | components/SimpleResource.qml | 1 |
1 files changed, 1 insertions, 0 deletions
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 } |
