enable icon fill anim again

This commit is contained in:
end-4
2025-10-15 13:06:41 +02:00
parent 44d5994248
commit a4be03cd5f
@@ -5,13 +5,13 @@ StyledText {
id: root id: root
property real iconSize: Appearance?.font.pixelSize.small ?? 16 property real iconSize: Appearance?.font.pixelSize.small ?? 16
property real fill: 0 property real fill: 0
property real truncatedFill: Math.round(fill * 100) / 100 // Reduce memory consumption spikes from constant font remapping property real truncatedFill: fill.toFixed(1) // Reduce memory consumption spikes from constant font remapping
renderType: fill !== 0 ? Text.CurveRendering : Text.NativeRendering renderType: fill !== 0 ? Text.CurveRendering : Text.NativeRendering
font { font {
hintingPreference: Font.PreferFullHinting hintingPreference: Font.PreferFullHinting
family: Appearance?.font.family.iconMaterial ?? "Material Symbols Rounded" family: Appearance?.font.family.iconMaterial ?? "Material Symbols Rounded"
pixelSize: iconSize pixelSize: iconSize
weight: Font.Normal + (Font.DemiBold - Font.Normal) * fill weight: Font.Normal + (Font.DemiBold - Font.Normal) * truncatedFill
variableAxes: { variableAxes: {
"FILL": truncatedFill, "FILL": truncatedFill,
// "wght": font.weight, // "wght": font.weight,
@@ -20,11 +20,11 @@ StyledText {
} }
} }
// Behavior on fill { // Leaky leaky, no good Behavior on fill { // Leaky leaky, no good
// NumberAnimation { NumberAnimation {
// duration: Appearance?.animation.elementMoveFast.duration ?? 200 duration: Appearance?.animation.elementMoveFast.duration ?? 200
// easing.type: Appearance?.animation.elementMoveFast.type ?? Easing.BezierSpline easing.type: Appearance?.animation.elementMoveFast.type ?? Easing.BezierSpline
// easing.bezierCurve: Appearance?.animation.elementMoveFast.bezierCurve ?? [0.34, 0.80, 0.34, 1.00, 1, 1] easing.bezierCurve: Appearance?.animation.elementMoveFast.bezierCurve ?? [0.34, 0.80, 0.34, 1.00, 1, 1]
// } }
// } }
} }