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 /bar | |
| parent | df22155da1d708488961facd81f07780ca08a9bd (diff) | |
perf: use less expansive font renderer for non-static/rapidly updating texts
Diffstat (limited to 'bar')
| -rw-r--r-- | bar/Network.qml | 3 | ||||
| -rw-r--r-- | bar/TimeDate.qml | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/bar/Network.qml b/bar/Network.qml index 6ce9f67..c28e6d3 100644 --- a/bar/Network.qml +++ b/bar/Network.qml @@ -52,6 +52,7 @@ Item { IText { visible: !root.isCollapsed text: Services.Network.networkStrength + renderType: Text.CurveRendering // it's not static and is rapidly updated } RowLayout { @@ -64,6 +65,7 @@ Item { animate: true text: root.down + root.downUnit color: root.downUnit == root.usageUnit && root.down > root.significantUsage ? Colors.cyan : Colors.foreground2 + renderType: Text.CurveRendering // it's not static and is rapidly updated } } RowLayout { @@ -76,6 +78,7 @@ Item { animate: true text: root.up + root.upUnit color: root.upUnit == root.usageUnit && root.up > root.significantUsage ? Colors.cyan : Colors.foreground2 + renderType: Text.CurveRendering // it's not static and is rapidly updated } } diff --git a/bar/TimeDate.qml b/bar/TimeDate.qml index 4908f6d..bfc54d6 100644 --- a/bar/TimeDate.qml +++ b/bar/TimeDate.qml @@ -67,6 +67,7 @@ Item { IText { animate: true text: (parent.s >= 10 ? "" : "0") + parent.s + renderType: Text.CurveRendering // it's not static and is rapidly updated } } Item { |
