summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-26 21:05:35 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-26 21:05:35 +1000
commit7ddf40d2ea66eeaa277ca472503408645ed4d1f5 (patch)
treeab0d0a8c7a976434a3426c8c7bf7a44e472f2a39
parentdashboard: fix calendar (diff)
downloadcaelestia-shell-7ddf40d2ea66eeaa277ca472503408645ed4d1f5.tar.gz
caelestia-shell-7ddf40d2ea66eeaa277ca472503408645ed4d1f5.tar.bz2
caelestia-shell-7ddf40d2ea66eeaa277ca472503408645ed4d1f5.zip
icons: use variable axes
-rw-r--r--modules/background/Wallpaper.qml3
-rw-r--r--modules/bar/popouts/ActiveWindow.qml3
-rw-r--r--modules/dashboard/dash/Weather.qml3
-rw-r--r--modules/lock/Notification.qml3
-rw-r--r--modules/lock/WeatherInfo.qml3
-rw-r--r--modules/notifications/Notification.qml3
-rw-r--r--modules/windowinfo/Preview.qml3
-rw-r--r--widgets/MaterialIcon.qml7
8 files changed, 6 insertions, 22 deletions
diff --git a/modules/background/Wallpaper.qml b/modules/background/Wallpaper.qml
index 1f38967..7238303 100644
--- a/modules/background/Wallpaper.qml
+++ b/modules/background/Wallpaper.qml
@@ -40,9 +40,6 @@ Item {
text: "sentiment_stressed"
color: Colours.palette.m3onSurfaceVariant
font.pointSize: Appearance.font.size.extraLarge * 5
- font.variableAxes: ({
- opsz: Appearance.font.size.extraLarge * 5
- })
}
Column {
diff --git a/modules/bar/popouts/ActiveWindow.qml b/modules/bar/popouts/ActiveWindow.qml
index fbad79e..bbb2d7a 100644
--- a/modules/bar/popouts/ActiveWindow.qml
+++ b/modules/bar/popouts/ActiveWindow.qml
@@ -80,9 +80,6 @@ Item {
text: "chevron_right"
font.pointSize: Appearance.font.size.large
- font.variableAxes: ({
- opsz: Appearance.font.size.large
- })
}
}
}
diff --git a/modules/dashboard/dash/Weather.qml b/modules/dashboard/dash/Weather.qml
index 468d542..24c7e00 100644
--- a/modules/dashboard/dash/Weather.qml
+++ b/modules/dashboard/dash/Weather.qml
@@ -26,9 +26,6 @@ Item {
text: Weather.icon || "cloud_alert"
color: Colours.palette.m3secondary
font.pointSize: Appearance.font.size.extraLarge * 2
- font.variableAxes: ({
- opsz: Appearance.font.size.extraLarge * 1.2
- })
}
Column {
diff --git a/modules/lock/Notification.qml b/modules/lock/Notification.qml
index 1d3e1c7..936edd4 100644
--- a/modules/lock/Notification.qml
+++ b/modules/lock/Notification.qml
@@ -158,9 +158,6 @@ StyledRect {
color: root.modelData.urgency === NotificationUrgency.Critical ? Colours.palette.m3onError : root.modelData.urgency === NotificationUrgency.Low ? Colours.palette.m3onSurface : Colours.palette.m3onTertiaryContainer
font.pointSize: Appearance.font.size.large
- font.variableAxes: ({
- opsz: Appearance.font.size.large
- })
}
}
}
diff --git a/modules/lock/WeatherInfo.qml b/modules/lock/WeatherInfo.qml
index 3d627a9..1b840e6 100644
--- a/modules/lock/WeatherInfo.qml
+++ b/modules/lock/WeatherInfo.qml
@@ -27,9 +27,6 @@ RowLayout {
text: Weather.icon || "cloud_alert"
color: Colours.palette.m3secondary
font.pointSize: Appearance.font.size.extraLarge * 2.5
- font.variableAxes: ({
- opsz: Appearance.font.size.extraLarge * 1.2
- })
}
ColumnLayout {
diff --git a/modules/notifications/Notification.qml b/modules/notifications/Notification.qml
index 0d3aab6..c97a332 100644
--- a/modules/notifications/Notification.qml
+++ b/modules/notifications/Notification.qml
@@ -186,9 +186,6 @@ StyledRect {
color: root.modelData.urgency === NotificationUrgency.Critical ? Colours.palette.m3onError : root.modelData.urgency === NotificationUrgency.Low ? Colours.palette.m3onSurface : Colours.palette.m3onTertiaryContainer
font.pointSize: Appearance.font.size.large
- font.variableAxes: ({
- opsz: Appearance.font.size.large
- })
}
}
}
diff --git a/modules/windowinfo/Preview.qml b/modules/windowinfo/Preview.qml
index 2e3dd8e..96542c4 100644
--- a/modules/windowinfo/Preview.qml
+++ b/modules/windowinfo/Preview.qml
@@ -45,9 +45,6 @@ Item {
text: "web_asset_off"
color: Colours.palette.m3outline
font.pointSize: Appearance.font.size.extraLarge * 3
- font.variableAxes: ({
- opsz: Appearance.font.size.extraLarge * 3
- })
}
StyledText {
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
})
}