diff options
| author | Kiran George <kirangeorge1995@gmail.com> | 2025-06-21 17:26:23 +0530 |
|---|---|---|
| committer | Kiran George <kirangeorge1995@gmail.com> | 2025-06-21 17:26:23 +0530 |
| commit | 0cda8f13953d0f4cc6126d4810c04452cc3375b8 (patch) | |
| tree | 3627d7b49135b1d98f018dccb019c8cefc1ff0e4 /config/quickshell/modules/common/widgets/MaterialSymbol.qml | |
| parent | 1462996cc5256e6337eafc226423de5559214c7f (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.qml | 9 |
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, } } |
