diff options
| author | ATMDA <atdma2600@gmail.com> | 2025-11-12 20:57:38 -0500 |
|---|---|---|
| committer | ATMDA <atdma2600@gmail.com> | 2025-11-12 20:57:38 -0500 |
| commit | ffe14748a2cf5bc5710fe24d0ccae80b8437f35d (patch) | |
| tree | fa171896eda2b20570230ccc6341bc8c1d59d66b /modules/lock | |
| parent | conrolcenter: debug/rewrite of wireless panel (diff) | |
| download | caelestia-shell-ffe14748a2cf5bc5710fe24d0ccae80b8437f35d.tar.gz caelestia-shell-ffe14748a2cf5bc5710fe24d0ccae80b8437f35d.tar.bz2 caelestia-shell-ffe14748a2cf5bc5710fe24d0ccae80b8437f35d.zip | |
notifs/toasts: reverted all changes to notifications to c0ea060f
Diffstat (limited to 'modules/lock')
| -rw-r--r-- | modules/lock/NotifDock.qml | 4 | ||||
| -rw-r--r-- | modules/lock/NotifGroup.qml | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/modules/lock/NotifDock.qml b/modules/lock/NotifDock.qml index db087bd..7551e68 100644 --- a/modules/lock/NotifDock.qml +++ b/modules/lock/NotifDock.qml @@ -22,7 +22,7 @@ ColumnLayout { StyledText { Layout.fillWidth: true - text: Notifs.notClosed.length > 0 ? qsTr("%1 notification%2").arg(Notifs.notClosed.length).arg(Notifs.notClosed.length === 1 ? "" : "s") : qsTr("Notifications") + text: Notifs.list.length > 0 ? qsTr("%1 notification%2").arg(Notifs.list.length).arg(Notifs.list.length === 1 ? "" : "s") : qsTr("Notifications") color: Colours.palette.m3outline font.family: Appearance.font.family.mono font.weight: 500 @@ -42,7 +42,7 @@ ColumnLayout { anchors.centerIn: parent asynchronous: true active: opacity > 0 - opacity: Notifs.notClosed.length > 0 ? 0 : 1 + opacity: Notifs.list.length > 0 ? 0 : 1 sourceComponent: ColumnLayout { spacing: Appearance.spacing.large diff --git a/modules/lock/NotifGroup.qml b/modules/lock/NotifGroup.qml index 50b14ae..2a08c26 100644 --- a/modules/lock/NotifGroup.qml +++ b/modules/lock/NotifGroup.qml @@ -16,7 +16,7 @@ StyledRect { required property string modelData - readonly property list<var> notifs: Notifs.notClosed.filter(notif => notif.appName === modelData) + readonly property list<var> notifs: Notifs.list.filter(notif => notif.appName === modelData) readonly property string image: notifs.find(n => n.image.length > 0)?.image ?? "" readonly property string appIcon: notifs.find(n => n.appIcon.length > 0)?.appIcon ?? "" readonly property string urgency: notifs.some(n => n.urgency === NotificationUrgency.Critical) ? "critical" : notifs.some(n => n.urgency === NotificationUrgency.Normal) ? "normal" : "low" |