diff options
| author | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-05-10 18:49:10 +1000 |
|---|---|---|
| committer | 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> | 2025-05-10 18:49:10 +1000 |
| commit | 89bb77401207d3b322aa2cabff116cc79d6897e1 (patch) | |
| tree | 5b304702434df6e561d77fa8e16a11e5c8fc8579 /widgets | |
| parent | notifs: fix first notif open anim (diff) | |
| download | caelestia-shell-89bb77401207d3b322aa2cabff116cc79d6897e1.tar.gz caelestia-shell-89bb77401207d3b322aa2cabff116cc79d6897e1.tar.bz2 caelestia-shell-89bb77401207d3b322aa2cabff116cc79d6897e1.zip | |
refactor: manually animate rect if needed
No need for animate prop, it's used too little so just manually set it if needed to save memory
Diffstat (limited to 'widgets')
| -rw-r--r-- | widgets/StyledRect.qml | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/widgets/StyledRect.qml b/widgets/StyledRect.qml index bb9824c..984ed84 100644 --- a/widgets/StyledRect.qml +++ b/widgets/StyledRect.qml @@ -4,7 +4,6 @@ import QtQuick Rectangle { id: root - property bool animate: false property bool vertical: parent.vertical ?? false // Convenience property for propagation to children color: "transparent" @@ -18,24 +17,4 @@ Rectangle { easing.bezierCurve: Appearance.anim.curves.standard } } - - Behavior on implicitWidth { - enabled: root.animate - - NumberAnimation { - duration: Appearance.anim.durations.normal - easing.type: Easing.BezierSpline - easing.bezierCurve: Appearance.anim.curves.emphasized - } - } - - Behavior on implicitHeight { - enabled: root.animate - - NumberAnimation { - duration: Appearance.anim.durations.normal - easing.type: Easing.BezierSpline - easing.bezierCurve: Appearance.anim.curves.emphasized - } - } } |