quickshell/reusables/CustomIcon.qml

23 lines
619 B
QML
Raw Normal View History

2026-01-16 14:44:10 +01:00
import QtQuick
import qs
2026-02-14 01:33:18 +01:00
import qs.settings
2026-01-16 14:44:10 +01:00
2026-02-14 00:49:08 +01:00
Text {
id: root
2026-02-14 12:45:52 +01:00
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
2026-02-15 13:50:23 +01:00
family: "Material Symbols Outlined"
2026-02-14 12:33:31 +01:00
pixelSize: iconSize
weight: Font.Normal + (Font.DemiBold - Font.Normal) * truncatedFill
variableAxes: {
"FILL": truncatedFill,
"opsz": iconSize
}
}
2026-01-16 14:44:10 +01:00
}