author | unc0rr |
Fri, 05 Jan 2018 21:44:00 +0100 | |
branch | qmlfrontend |
changeset 12878 | b3426030a426 |
parent 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: "#ffcc00" } }] }