forked from Shinonome/dots-hyprland
waffles: notif center: drag to dismiss
This commit is contained in:
+32
@@ -0,0 +1,32 @@
|
||||
import QtQuick
|
||||
import QtQuick.Controls
|
||||
import QtQuick.Layouts
|
||||
import qs.modules.common
|
||||
import qs.modules.common.widgets
|
||||
import qs.modules.common.functions
|
||||
import qs.modules.waffle.looks
|
||||
|
||||
SequentialAnimation {
|
||||
id: root
|
||||
|
||||
required property var target
|
||||
|
||||
PropertyAction {
|
||||
target: root.target
|
||||
property: "ListView.delayRemove"
|
||||
value: true
|
||||
}
|
||||
NumberAnimation {
|
||||
target: root.target
|
||||
property: "x"
|
||||
to: root.target.width
|
||||
duration: 250
|
||||
easing.type: Easing.BezierSpline
|
||||
easing.bezierCurve: Looks.transition.easing.bezierCurve.easeIn
|
||||
}
|
||||
PropertyAction {
|
||||
target: root.target
|
||||
property: "ListView.delayRemove"
|
||||
value: false
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user