From 8311eed7a6ed67a41866935f8644707516c05ecd Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Wed, 27 Aug 2025 18:02:51 +1000 Subject: internal: move notif icon lower --- modules/lock/NotifGroup.qml | 2 +- modules/notifications/Notification.qml | 2 +- utils/Icons.qml | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/modules/lock/NotifGroup.qml b/modules/lock/NotifGroup.qml index 6862ccf..d5fc213 100644 --- a/modules/lock/NotifGroup.qml +++ b/modules/lock/NotifGroup.qml @@ -79,7 +79,7 @@ StyledRect { id: materialIconComp MaterialIcon { - text: Icons.getNotifIcon(root.notifs[0].summary.toLowerCase(), root.urgency) + text: Icons.getNotifIcon(root.notifs[0].summary, root.urgency) color: root.urgency === "critical" ? Colours.palette.m3onError : root.urgency === "low" ? Colours.palette.m3onSurface : Colours.palette.m3onSecondaryContainer font.pointSize: Appearance.font.size.large } diff --git a/modules/notifications/Notification.qml b/modules/notifications/Notification.qml index 1a0ec05..2d56ef6 100644 --- a/modules/notifications/Notification.qml +++ b/modules/notifications/Notification.qml @@ -176,7 +176,7 @@ StyledRect { anchors.verticalCenterOffset: Appearance.font.size.large * 0.02 sourceComponent: MaterialIcon { - text: Icons.getNotifIcon(root.modelData.summary.toLowerCase(), root.modelData.urgency) + 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 font.pointSize: Appearance.font.size.large diff --git a/utils/Icons.qml b/utils/Icons.qml index 826ccbe..76eef43 100644 --- a/utils/Icons.qml +++ b/utils/Icons.qml @@ -147,6 +147,7 @@ Singleton { } function getNotifIcon(summary: string, urgency: int): string { + summary = summary.toLowerCase(); if (summary.includes("reboot")) return "restart_alt"; if (summary.includes("recording")) -- cgit v1.2.3-freya