quickshell/reusables/CustomIcon.qml
2026-02-15 13:50:23 +01:00

23 lines
619 B
QML

import QtQuick
import qs
import qs.settings
Text {
id: root
color: Colors.onSurfaceColor
property real iconSize: 16
property real fill: 1
property real truncatedFill: fill.toFixed(1) // Reduce memory consumption spikes from constant font remapping
renderType: Text.NativeRendering
font {
hintingPreference: Font.PreferNoHinting
family: "Material Symbols Outlined"
pixelSize: iconSize
weight: Font.Normal + (Font.DemiBold - Font.Normal) * truncatedFill
variableAxes: {
"FILL": truncatedFill,
"opsz": iconSize
}
}
}