1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-24 21:42:51 -05:00

notifications: reverse order top to bottom, fix warnings

This commit is contained in:
bbedward
2025-07-26 00:27:59 -04:00
parent 3b5ddab1ce
commit 39e3107db6
3 changed files with 381 additions and 482 deletions

View File

@@ -20,6 +20,7 @@ Singleton {
property int maxVisibleNotifications: 3
property bool addGateBusy: false
property int enterAnimMs: 400
property int seqCounter: 0
Timer {
id: addGate
@@ -82,6 +83,7 @@ Singleton {
property bool removedByLimit: false
property bool isPersistent: true
property int initialOffset: 0
property int seq: 0
onPopupChanged: {
if (!popup) {
@@ -217,6 +219,7 @@ Singleton {
const [next, ...rest] = notificationQueue;
notificationQueue = rest;
next.seq = ++seqCounter;
visibleNotifications = [...visibleNotifications, next];
next.popup = true;