aboutsummaryrefslogtreecommitdiffstats
path: root/config/quickshell/modules/common/widgets/MaterialSymbol.qml
diff options
context:
space:
mode:
authorJa.KooLit <85185940+JaKooLit@users.noreply.github.com>2025-06-15 17:08:35 +0000
committerGitHub <noreply@github.com>2025-06-15 17:08:35 +0000
commit88abbee9fe56f2e2489f04a017daaf3cfdc97511 (patch)
treec229832f852a3e55b41addcfc675d3ceb3df2282 /config/quickshell/modules/common/widgets/MaterialSymbol.qml
parent4cf0d0bd5930da76e60f6770de3ee97c10ca7024 (diff)
parentd46077fe5ac56afbd63dc1222e649f10435b05e2 (diff)
Merge pull request #737 from SherLock707/overviewV2_qs
Overview Widget v2: Migration from AGS to QuickShell
Diffstat (limited to 'config/quickshell/modules/common/widgets/MaterialSymbol.qml')
-rw-r--r--config/quickshell/modules/common/widgets/MaterialSymbol.qml30
1 files changed, 30 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..dbbfff00
--- /dev/null
+++ b/config/quickshell/modules/common/widgets/MaterialSymbol.qml
@@ -0,0 +1,30 @@
+import "root:/modules/common/"
+import QtQuick
+import QtQuick.Layouts
+
+Text {
+ id: root
+ property real iconSize: Appearance?.font.pixelSize.small ?? 16
+ property real fill: 0
+ renderType: Text.NativeRendering
+ font.hintingPreference: Font.PreferFullHinting
+ verticalAlignment: Text.AlignVCenter
+ font.family: Appearance?.font.family.iconMaterial ?? "Material Symbols Rounded"
+ font.pixelSize: iconSize
+ color: Appearance.m3colors.m3onBackground
+
+ 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,
+ // "wght": font.weight,
+ // "GRAD": 0,
+ "opsz": iconSize,
+ }
+}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage