diff options
Diffstat (limited to 'components/MaterialIcon.qml')
| -rw-r--r-- | components/MaterialIcon.qml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/components/MaterialIcon.qml b/components/MaterialIcon.qml new file mode 100644 index 0000000..a1d19d3 --- /dev/null +++ b/components/MaterialIcon.qml @@ -0,0 +1,16 @@ +import qs.services +import qs.config + +StyledText { + property real fill + property int grade: Colours.light ? 0 : -25 + + font.family: Appearance.font.family.material + font.pointSize: Appearance.font.size.larger + font.variableAxes: ({ + FILL: fill.toFixed(1), + GRAD: grade, + opsz: fontInfo.pixelSize, + wght: fontInfo.weight + }) +} |