summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-18 23:26:49 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-06-18 23:26:49 +1000
commitb0a0b6d322189fa6fe4a7389fa42cb8d5a6156ab (patch)
tree1d278d99314992c6d47f49ac8813167392d108f9
parentlauncher: fix opening apps (diff)
downloadcaelestia-shell-b0a0b6d322189fa6fe4a7389fa42cb8d5a6156ab.tar.gz
caelestia-shell-b0a0b6d322189fa6fe4a7389fa42cb8d5a6156ab.tar.bz2
caelestia-shell-b0a0b6d322189fa6fe4a7389fa42cb8d5a6156ab.zip
notifs: fix material icon offset
-rw-r--r--modules/notifications/Notification.qml5
-rw-r--r--services/Notifs.qml2
2 files changed, 6 insertions, 1 deletions
diff --git a/modules/notifications/Notification.qml b/modules/notifications/Notification.qml
index 8a0e367..55f17a2 100644
--- a/modules/notifications/Notification.qml
+++ b/modules/notifications/Notification.qml
@@ -177,6 +177,8 @@ StyledRect {
active: !root.hasAppIcon
asynchronous: true
anchors.centerIn: parent
+ anchors.horizontalCenterOffset: -Appearance.font.size.large * 0.02
+ anchors.verticalCenterOffset: Appearance.font.size.large * 0.02
sourceComponent: MaterialIcon {
text: {
@@ -210,6 +212,9 @@ 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/services/Notifs.qml b/services/Notifs.qml
index 73d98a2..2ccb8a6 100644
--- a/services/Notifs.qml
+++ b/services/Notifs.qml
@@ -75,7 +75,7 @@ Singleton {
readonly property string appIcon: notification.appIcon
readonly property string appName: notification.appName
readonly property string image: notification.image
- readonly property var urgency: notification.urgency // Idk why NotificationUrgency doesn't work
+ readonly property int urgency: notification.urgency
readonly property list<NotificationAction> actions: notification.actions
readonly property Timer timer: Timer {