diff options
| -rw-r--r-- | modules/lock/NotifGroup.qml | 2 | ||||
| -rw-r--r-- | modules/notifications/Notification.qml | 2 | ||||
| -rw-r--r-- | 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")) |