From 0ae01c9163caa9607fa443dc198d4605417d2694 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Tue, 5 May 2026 22:28:53 +1000 Subject: [PATCH] fix: notif icon size --- modules/notifications/Notification.qml | 6 ++---- plugin/src/Caelestia/Config/tokens.hpp | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/modules/notifications/Notification.qml b/modules/notifications/Notification.qml index a6d70c72..326acf84 100644 --- a/modules/notifications/Notification.qml +++ b/modules/notifications/Notification.qml @@ -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 } } } diff --git a/plugin/src/Caelestia/Config/tokens.hpp b/plugin/src/Caelestia/Config/tokens.hpp index 6e19dc8c..168e82ca 100644 --- a/plugin/src/Caelestia/Config/tokens.hpp +++ b/plugin/src/Caelestia/Config/tokens.hpp @@ -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: