Index: sources/gui/qml/components/TouchRect.qml =================================================================== diff -u -r5e3b27057e9c7dedf9c46e3881609b7e96c3fb71 -r2216ac6ac7f77437a7c29ac8b4043be01bc4609e --- sources/gui/qml/components/TouchRect.qml (.../TouchRect.qml) (revision 5e3b27057e9c7dedf9c46e3881609b7e96c3fb71) +++ sources/gui/qml/components/TouchRect.qml (.../TouchRect.qml) (revision 2216ac6ac7f77437a7c29ac8b4043be01bc4609e) @@ -36,6 +36,8 @@ property bool selectable : false property bool selected : false + property bool fading : false + readonly property alias isPressed : _mouseArea.pressed property color textColor : Colors.textButton @@ -79,6 +81,22 @@ color : _private.color() border.color: _private.borderColor() + + Rectangle { id: _rectAnim + visible : _root.fading + radius : width + color : Colors.transparent + anchors.fill: parent + SequentialAnimation { id: _clickAnimation + loops : Animation.Infinite + running : _rectAnim.visible + onStopped : _rectAnim.color = Colors.transparent + onFinished : _rectAnim.color = Colors.transparent + ColorAnimation { target: _rectAnim; property: "color"; to: Colors.transparent; duration: 2000; } + ColorAnimation { target: _rectAnim; property: "color"; to: _root.border.color; duration: 2000; } + } + } + property int touchExpanding : 0 signal pressed