nosignal-shell/widgets/StyledRect.qml
2 * r + 2 * t 89bb774012 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
2025-05-10 18:49:10 +10:00

20 lines
505 B
QML

import "root:/config"
import QtQuick
Rectangle {
id: root
property bool vertical: parent.vertical ?? false // Convenience property for propagation to children
color: "transparent"
implicitWidth: childrenRect.width
implicitHeight: childrenRect.height
Behavior on color {
ColorAnimation {
duration: Appearance.anim.durations.normal
easing.type: Easing.BezierSpline
easing.bezierCurve: Appearance.anim.curves.standard
}
}
}