notifs: fix material icon offset

This commit is contained in:
2 * r + 2 * t 2025-06-18 23:26:49 +10:00
parent 620ff52f75
commit b0a0b6d322
2 changed files with 6 additions and 1 deletions

View file

@ -177,6 +177,8 @@ StyledRect {
active: !root.hasAppIcon active: !root.hasAppIcon
asynchronous: true asynchronous: true
anchors.centerIn: parent anchors.centerIn: parent
anchors.horizontalCenterOffset: -Appearance.font.size.large * 0.02
anchors.verticalCenterOffset: Appearance.font.size.large * 0.02
sourceComponent: MaterialIcon { sourceComponent: MaterialIcon {
text: { 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 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.pointSize: Appearance.font.size.large
font.variableAxes: ({
opsz: Appearance.font.size.large
})
} }
} }
} }

View file

@ -75,7 +75,7 @@ Singleton {
readonly property string appIcon: notification.appIcon readonly property string appIcon: notification.appIcon
readonly property string appName: notification.appName readonly property string appName: notification.appName
readonly property string image: notification.image 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 list<NotificationAction> actions: notification.actions
readonly property Timer timer: Timer { readonly property Timer timer: Timer {