aboutsummaryrefslogtreecommitdiffstats
path: root/config/quickshell/modules/common/widgets/MaterialSymbol.qml
diff options
context:
space:
mode:
authorKiran George <kirangeorge1995@gmail.com>2025-06-21 17:26:23 +0530
committerKiran George <kirangeorge1995@gmail.com>2025-06-21 17:26:23 +0530
commit0cda8f13953d0f4cc6126d4810c04452cc3375b8 (patch)
tree3627d7b49135b1d98f018dccb019c8cefc1ff0e4 /config/quickshell/modules/common/widgets/MaterialSymbol.qml
parent1462996cc5256e6337eafc226423de5559214c7f (diff)
Refactored for better colour and font expose and cleaned up unused code
Diffstat (limited to 'config/quickshell/modules/common/widgets/MaterialSymbol.qml')
-rw-r--r--config/quickshell/modules/common/widgets/MaterialSymbol.qml9
1 files changed, 3 insertions, 6 deletions
diff --git a/config/quickshell/modules/common/widgets/MaterialSymbol.qml b/config/quickshell/modules/common/widgets/MaterialSymbol.qml
index dbbfff00..214f838e 100644
--- a/config/quickshell/modules/common/widgets/MaterialSymbol.qml
+++ b/config/quickshell/modules/common/widgets/MaterialSymbol.qml
@@ -1,17 +1,16 @@
import "root:/modules/common/"
import QtQuick
-import QtQuick.Layouts
Text {
id: root
- property real iconSize: Appearance?.font.pixelSize.small ?? 16
+ 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.iconMaterial ?? "Material Symbols Rounded"
+ font.family: Appearance?.font.family.iconFont ?? "Material Symbols Rounded"
font.pixelSize: iconSize
- color: Appearance.m3colors.m3onBackground
+ color: Appearance.m3colors.m3primaryText
Behavior on fill {
NumberAnimation {
@@ -23,8 +22,6 @@ Text {
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