author | unc0rr |
Sun, 06 Dec 2015 20:36:21 +0300 | |
branch | qmlfrontend |
changeset 11448 | 42a9dd7b724c |
parent 10422 | 4cf23d4c7624 |
child 11787 | bcba7938ccb5 |
permissions | -rw-r--r-- |
import QtQuick 2.0 Rectangle { id: hwbutton width: 360 height: 360 color: "#15193a" radius: 8 border.width: 4 opacity: 1 signal clicked() Behavior on border.color { ColorAnimation {} } MouseArea { id: mousearea anchors.fill: parent hoverEnabled: true onClicked: parent.clicked() } states: [ State { when: mousearea.containsMouse PropertyChanges { target: hwbutton border.color: "#eaea00" } } , State { when: !mousearea.containsMouse PropertyChanges { target: hwbutton border.color: "#ea761d" } }] }