diff options
| author | Ja.KooLit <85185940+JaKooLit@users.noreply.github.com> | 2025-07-15 23:46:48 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-15 23:46:48 +0900 |
| commit | 71f1bc6920920f2a9337f18ceba6ebc12b276a6f (patch) | |
| tree | 34431efa13460f9e716ed162355fd08c535aedc0 /config/quickshell/modules/common/widgets/MaterialSymbol.qml | |
| parent | 7a3bd4f9fe48aad02ef8b13d3677b3bd8358252c (diff) | |
| parent | 3aadb2106a26988346f34afafe8393b0ba6bdf79 (diff) | |
Merge branch 'development' into fix-slow-brightness
Diffstat (limited to 'config/quickshell/modules/common/widgets/MaterialSymbol.qml')
| -rw-r--r-- | config/quickshell/modules/common/widgets/MaterialSymbol.qml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/config/quickshell/modules/common/widgets/MaterialSymbol.qml b/config/quickshell/modules/common/widgets/MaterialSymbol.qml new file mode 100644 index 00000000..214f838e --- /dev/null +++ b/config/quickshell/modules/common/widgets/MaterialSymbol.qml @@ -0,0 +1,27 @@ +import "root:/modules/common/" +import QtQuick + +Text { + id: root + property real iconSize: Appearance?.font.pixelSize.textBase ?? 16 + property real fill: 0 + renderType: Text.NativeRendering + font.hintingPreference: Font.PreferFullHinting + verticalAlignment: Text.AlignVCenter + font.family: Appearance?.font.family.iconFont ?? "Material Symbols Rounded" + font.pixelSize: iconSize + color: Appearance.m3colors.m3primaryText + + Behavior on fill { + NumberAnimation { + duration: Appearance?.animation.elementMoveFast.duration ?? 200 + easing.type: Appearance?.animation.elementMoveFast.type ?? Easing.BezierSpline + easing.bezierCurve: Appearance?.animation.elementMoveFast.bezierCurve ?? [0.34, 0.80, 0.34, 1.00, 1, 1] + } + } + + font.variableAxes: { + "FILL": fill, + "opsz": iconSize, + } +} |
