summaryrefslogtreecommitdiff
path: root/widgets/StyledRect.qml
blob: 1b6f1e7debead16fb553a6acfdade522571aaf0b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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
        }
    }
}