waffles: notif center: drag to dismiss

This commit is contained in:
end-4
2025-12-13 23:07:26 +01:00
parent f0926b6ce3
commit 93bc4d935c
6 changed files with 132 additions and 20 deletions
@@ -7,6 +7,20 @@ ListView {
id: root
boundsBehavior: Flickable.DragOverBounds
ScrollBar.vertical: WScrollBar {}
displaced: Transition {
animations: [Looks.transition.enter.createObject(this, {
property: "y"
})]
}
remove: Transition {
ParallelAnimation {
NumberAnimation { property: "opacity"; to: 0; duration: 1000 }
NumberAnimation { properties: "x,y"; to: 100; duration: 1000 }
}
}
}