fix: notif icon size

This commit is contained in:
2 * r + 2 * t 2026-05-05 22:28:53 +10:00
parent 53a0a7d977
commit 0ae01c9163
2 changed files with 3 additions and 5 deletions

View file

@ -175,14 +175,12 @@ StyledRect {
asynchronous: true
active: !root.hasAppIcon
anchors.centerIn: parent
anchors.horizontalCenterOffset: -Tokens.font.body.large.pointSize * 0.02
anchors.verticalCenterOffset: Tokens.font.body.large.pointSize * 0.02
anchors.verticalCenterOffset: 1
sourceComponent: MaterialIcon {
text: Icons.getNotifIcon(root.modelData.summary, root.modelData.urgency)
color: root.modelData.urgency === NotificationUrgency.Critical ? Colours.palette.m3onError : root.modelData.urgency === NotificationUrgency.Low ? Colours.palette.m3onSurface : Colours.palette.m3onSecondaryContainer
fontStyle: Tokens.font.icon.large
fontStyle: Tokens.font.icon.medium
}
}
}

View file

@ -224,7 +224,7 @@ class NotifsTokens : public ConfigObject {
QML_ANONYMOUS
CONFIG_PROPERTY(int, width, 400)
CONFIG_GLOBAL_PROPERTY(int, image, 41)
CONFIG_GLOBAL_PROPERTY(int, image, 42)
CONFIG_PROPERTY(int, badge, 20)
public: