mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-04-14 17:52:10 -04:00
animations: tweak list view transitions to not animate X
This commit is contained in:
@@ -1,50 +1,36 @@
|
|||||||
pragma Singleton
|
pragma Singleton
|
||||||
|
pragma ComponentBehavior: Bound
|
||||||
|
|
||||||
import QtQuick
|
import QtQuick
|
||||||
|
import Quickshell
|
||||||
import qs.Common
|
import qs.Common
|
||||||
|
|
||||||
// Reusable ListView/GridView transitions
|
// Reusable ListView/GridView transitions
|
||||||
QtObject {
|
Singleton {
|
||||||
id: root
|
id: root
|
||||||
|
|
||||||
readonly property Transition add: Transition {
|
readonly property Transition add: Transition {
|
||||||
ParallelAnimation {
|
DankAnim {
|
||||||
DankAnim {
|
property: "opacity"
|
||||||
property: "opacity"
|
from: 0
|
||||||
from: 0
|
to: 1
|
||||||
to: 1
|
duration: Theme.expressiveDurations.expressiveDefaultSpatial
|
||||||
duration: Theme.expressiveDurations.expressiveDefaultSpatial
|
easing.bezierCurve: Theme.expressiveCurves.emphasizedDecel
|
||||||
easing.bezierCurve: Theme.expressiveCurves.emphasizedDecel
|
|
||||||
}
|
|
||||||
DankAnim {
|
|
||||||
property: "scale"
|
|
||||||
from: 0.92
|
|
||||||
to: 1
|
|
||||||
duration: Theme.expressiveDurations.expressiveDefaultSpatial
|
|
||||||
easing.bezierCurve: Theme.expressiveCurves.emphasizedDecel
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
readonly property Transition remove: Transition {
|
readonly property Transition remove: Transition {
|
||||||
ParallelAnimation {
|
DankAnim {
|
||||||
DankAnim {
|
property: "opacity"
|
||||||
property: "opacity"
|
to: 0
|
||||||
to: 0
|
duration: Theme.expressiveDurations.fast
|
||||||
duration: Theme.expressiveDurations.fast
|
easing.bezierCurve: Theme.expressiveCurves.emphasizedAccel
|
||||||
easing.bezierCurve: Theme.expressiveCurves.emphasizedAccel
|
|
||||||
}
|
|
||||||
DankAnim {
|
|
||||||
property: "scale"
|
|
||||||
to: 0.92
|
|
||||||
duration: Theme.expressiveDurations.fast
|
|
||||||
easing.bezierCurve: Theme.expressiveCurves.emphasizedAccel
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
readonly property Transition displaced: Transition {
|
readonly property Transition displaced: Transition {
|
||||||
DankAnim {
|
DankAnim {
|
||||||
properties: "x,y"
|
property: "y"
|
||||||
duration: Theme.expressiveDurations.expressiveDefaultSpatial
|
duration: Theme.expressiveDurations.expressiveDefaultSpatial
|
||||||
easing.bezierCurve: Theme.expressiveCurves.expressiveDefaultSpatial
|
easing.bezierCurve: Theme.expressiveCurves.expressiveDefaultSpatial
|
||||||
}
|
}
|
||||||
@@ -52,7 +38,7 @@ QtObject {
|
|||||||
|
|
||||||
readonly property Transition move: Transition {
|
readonly property Transition move: Transition {
|
||||||
DankAnim {
|
DankAnim {
|
||||||
properties: "x,y"
|
property: "y"
|
||||||
duration: Theme.expressiveDurations.expressiveDefaultSpatial
|
duration: Theme.expressiveDurations.expressiveDefaultSpatial
|
||||||
easing.bezierCurve: Theme.expressiveCurves.standard
|
easing.bezierCurve: Theme.expressiveCurves.standard
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user