This commit is contained in:
Zacharias-Brohn
2025-10-07 23:22:46 +02:00
parent 0da7e57a64
commit f6d25c98a6
10 changed files with 727 additions and 70 deletions
+31
View File
@@ -0,0 +1,31 @@
// https://m3.material.io/styles/typography/editorial-treatments#a8196c1e-387e-4303-b0bf-b9bac44e4e72
// a thin wrapper for placing using Material Symbols
// credit to end for leading me down this route
import QtQuick
import qs.Data as Dat
Text {
id: root
property real fill: 0
property int grad: 0
required property string icon
font.family: "Material Symbols Rounded"
font.hintingPreference: Font.PreferFullHinting
font.variableAxes: {
"FILL": root.fill,
"opsz": root.fontInfo.pixelSize,
"GRAD": root.grad,
"wght": root.fontInfo.weight
}
renderType: Text.NativeRendering
text: root.icon
Behavior on fill {
NumberAnimation {
duration: Dat.MaterialEasing.standardTime
easing.bezierCurve: Dat.MaterialEasing.standard
}
}
}