diff --git a/components/StatusBar.qml b/components/StatusBar.qml index 84c9e4a16..ea8f7e948 100644 --- a/components/StatusBar.qml +++ b/components/StatusBar.qml @@ -138,7 +138,6 @@ Rectangle { } } - Label { id: clockLabel anchors.centerIn: parent @@ -188,6 +187,13 @@ Rectangle { height: Theme.geometry_status_bar_gsmModem_icon_height anchors.verticalCenter: parent.verticalCenter } + + CP.IconImage { + anchors.verticalCenter: parent.verticalCenter + color: Theme.color_font_primary + source: "qrc:/images/notifications.svg" + visible: Global.notifications.activeAlarms.count > 0 + } } Row { diff --git a/data/Notifications.qml b/data/Notifications.qml index dd1b7925e..ba190302c 100644 --- a/data/Notifications.qml +++ b/data/Notifications.qml @@ -36,6 +36,13 @@ QtObject { // only alarms type: VenusOS.Notification_Alarm } + readonly property NotificationSortFilterProxyModel activeAlarms: NotificationSortFilterProxyModel { + sourceModel: allNotificationsModel + active: true + // whether unacknowledged or not + // only alarms + type: VenusOS.Notification_Alarm + } readonly property bool alarm: !!_alarm.value readonly property bool alert: !!_alert.value