Index: sources/gui/qml/components/TouchRect.qml =================================================================== diff -u -r174d5078531f9dfbe9cdc45274b852984bb72647 -r460df093c4475816fc25d6b4c3ebfc50424ccca3 --- sources/gui/qml/components/TouchRect.qml (.../TouchRect.qml) (revision 174d5078531f9dfbe9cdc45274b852984bb72647) +++ sources/gui/qml/components/TouchRect.qml (.../TouchRect.qml) (revision 460df093c4475816fc25d6b4c3ebfc50424ccca3) @@ -28,6 +28,8 @@ property alias text : _text property alias button : _mouseArea + property bool animate : false + width : Variables.touchRectWidth height : Variables.touchRectHeight radius : Variables.touchRectRadius @@ -43,5 +45,16 @@ } MouseArea { id: _mouseArea anchors.fill: parent + onPressed: { + if ( animate ) { + _clickAnimation.running = true + } + } } + + SequentialAnimation { id: _clickAnimation + running: false + PropertyAnimation { target: _root; property: "color"; to: _root.border.color; duration: 50; } + PropertyAnimation { target: _root; property: "color"; to: _root.color ; duration: 50; } + } }