diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-08-24 17:22:00 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-08-24 17:22:00 +1000 |
| commit | 6e8a32d4e40e25e1c077394f1638a43176ebf9ed (patch) | |
| tree | 26704741e0c3a41a9ca461c7bc148f58553bf8f7 /modules/bar/components/Tray.qml | |
| parent | internal: add canim component (diff) | |
| download | caelestia-shell-6e8a32d4e40e25e1c077394f1638a43176ebf9ed.tar.gz caelestia-shell-6e8a32d4e40e25e1c077394f1638a43176ebf9ed.tar.bz2 caelestia-shell-6e8a32d4e40e25e1c077394f1638a43176ebf9ed.zip | |
internal: use Anim component
Diffstat (limited to 'modules/bar/components/Tray.qml')
| -rw-r--r-- | modules/bar/components/Tray.qml | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/modules/bar/components/Tray.qml b/modules/bar/components/Tray.qml index df664d9..0477256 100644 --- a/modules/bar/components/Tray.qml +++ b/modules/bar/components/Tray.qml @@ -25,29 +25,22 @@ StyledRect { spacing: Appearance.spacing.small add: Transition { - NumberAnimation { + Anim { properties: "scale" from: 0 to: 1 - duration: Appearance.anim.durations.normal - easing.type: Easing.BezierSpline easing.bezierCurve: Appearance.anim.curves.standardDecel } } move: Transition { - NumberAnimation { + Anim { properties: "scale" to: 1 - duration: Appearance.anim.durations.normal - easing.type: Easing.BezierSpline easing.bezierCurve: Appearance.anim.curves.standardDecel } - NumberAnimation { + Anim { properties: "x,y" - duration: Appearance.anim.durations.normal - easing.type: Easing.BezierSpline - easing.bezierCurve: Appearance.anim.curves.standard } } @@ -61,17 +54,13 @@ StyledRect { } Behavior on implicitWidth { - NumberAnimation { - duration: Appearance.anim.durations.normal - easing.type: Easing.BezierSpline + Anim { easing.bezierCurve: Appearance.anim.curves.emphasized } } Behavior on implicitHeight { - NumberAnimation { - duration: Appearance.anim.durations.normal - easing.type: Easing.BezierSpline + Anim { easing.bezierCurve: Appearance.anim.curves.emphasized } } |