diff options
| author | Leander Scherer <leander@schererleander.de> | 2026-05-30 15:35:27 +0200 |
|---|---|---|
| committer | Leander Scherer <leander@schererleander.de> | 2026-05-30 15:35:27 +0200 |
| commit | d2747e2ca1e211a32e91e44010f40a00e0ac97e4 (patch) | |
| tree | fb229d6a18541c7a5f1944390b21edde028955f9 /modules/system/quickshell/NotificationPopupList.qml | |
| parent | 51b3cbd50b92d026549ce3ebff17ca9b3344f441 (diff) | |
feat(quickshell): add popup controls and privacy indicators
Diffstat (limited to 'modules/system/quickshell/NotificationPopupList.qml')
| -rw-r--r-- | modules/system/quickshell/NotificationPopupList.qml | 47 |
1 files changed, 37 insertions, 10 deletions
diff --git a/modules/system/quickshell/NotificationPopupList.qml b/modules/system/quickshell/NotificationPopupList.qml index 6b9280b..2ea7871 100644 --- a/modules/system/quickshell/NotificationPopupList.qml +++ b/modules/system/quickshell/NotificationPopupList.qml @@ -14,11 +14,14 @@ PanelWindow { visible: popupList.count > 0 - anchors { top: true; right: true } + anchors { + top: true + right: true + } WlrLayershell.margins.top: Theme.barHeight exclusionMode: ExclusionMode.Ignore color: "transparent" - + readonly property int edgeMargin: 12 readonly property int animationSafeMargin: 80 readonly property int popupWidth: 400 @@ -43,7 +46,7 @@ PanelWindow { model: root.popupModel interactive: false clip: false - + delegate: NotificationCard { onActionInvoked: (id, identifier) => root.actionInvoked(id, identifier) onReplySent: (id, text) => root.replySent(id, text) @@ -54,22 +57,46 @@ PanelWindow { add: Transition { ParallelAnimation { - NumberAnimation { property: "opacity"; from: 0; to: 1; duration: 250; easing.type: Easing.OutSine } - NumberAnimation { property: "x"; from: popupWidth + edgeMargin; duration: 350; easing.type: Easing.OutBack } + NumberAnimation { + property: "opacity" + from: 0 + to: 1 + duration: 250 + easing.type: Easing.OutSine + } + NumberAnimation { + property: "x" + from: popupWidth + edgeMargin + duration: 350 + easing.type: Easing.OutBack + } } } remove: Transition { ParallelAnimation { - NumberAnimation { property: "opacity"; from: 1; to: 0; duration: 200; easing.type: Easing.InSine } - NumberAnimation { property: "x"; to: popupWidth + edgeMargin; duration: 200; easing.type: Easing.InSine } + NumberAnimation { + property: "opacity" + from: 1 + to: 0 + duration: 200 + easing.type: Easing.InSine + } + NumberAnimation { + property: "x" + to: popupWidth + edgeMargin + duration: 200 + easing.type: Easing.InSine + } } } displaced: Transition { - NumberAnimation { properties: "x,y"; duration: 250; easing.type: Easing.OutSine } + NumberAnimation { + properties: "x,y" + duration: 250 + easing.type: Easing.OutSine + } } } } - - |
