From 89bb77401207d3b322aa2cabff116cc79d6897e1 Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Sat, 10 May 2025 18:49:10 +1000 Subject: 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 --- widgets/StyledRect.qml | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'widgets/StyledRect.qml') 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 - } - } } -- cgit v1.2.3-freya