diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-26 21:05:35 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-06-26 21:05:35 +1000 |
| commit | 7ddf40d2ea66eeaa277ca472503408645ed4d1f5 (patch) | |
| tree | ab0d0a8c7a976434a3426c8c7bf7a44e472f2a39 /widgets/MaterialIcon.qml | |
| parent | dashboard: fix calendar (diff) | |
| download | caelestia-shell-7ddf40d2ea66eeaa277ca472503408645ed4d1f5.tar.gz caelestia-shell-7ddf40d2ea66eeaa277ca472503408645ed4d1f5.tar.bz2 caelestia-shell-7ddf40d2ea66eeaa277ca472503408645ed4d1f5.zip | |
icons: use variable axes
Diffstat (limited to '')
| -rw-r--r-- | widgets/MaterialIcon.qml | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/widgets/MaterialIcon.qml b/widgets/MaterialIcon.qml index c86e5ce..6c219e2 100644 --- a/widgets/MaterialIcon.qml +++ b/widgets/MaterialIcon.qml @@ -1,11 +1,16 @@ +import "root:/services" import "root:/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) + FILL: fill.toFixed(1), + GRAD: grade, + opsz: fontInfo.pixelSize, + wght: fontInfo.weight }) } |