From f084cd7a23a9acc2c9942ec0b2374f6447fc07e9 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Sun, 8 Jun 2025 08:19:15 +0200 Subject: [PATCH] material symbols: prevent memory spikes --- .config/quickshell/modules/common/widgets/MaterialSymbol.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.config/quickshell/modules/common/widgets/MaterialSymbol.qml b/.config/quickshell/modules/common/widgets/MaterialSymbol.qml index dbbfff009..98584ce2d 100644 --- a/.config/quickshell/modules/common/widgets/MaterialSymbol.qml +++ b/.config/quickshell/modules/common/widgets/MaterialSymbol.qml @@ -6,6 +6,7 @@ Text { id: root property real iconSize: Appearance?.font.pixelSize.small ?? 16 property real fill: 0 + property real truncatedFill: Math.round(fill * 100) / 100 // Reduce memory consumption spikes from constant font remapping renderType: Text.NativeRendering font.hintingPreference: Font.PreferFullHinting verticalAlignment: Text.AlignVCenter @@ -22,7 +23,7 @@ Text { } font.variableAxes: { - "FILL": fill, + "FILL": truncatedFill, // "wght": font.weight, // "GRAD": 0, "opsz": iconSize,