diff --git a/declarativeimports/plasmacomponents/qml/Button.qml b/declarativeimports/plasmacomponents/qml/Button.qml index 52b899eb3..915ba662c 100644 --- a/declarativeimports/plasmacomponents/qml/Button.qml +++ b/declarativeimports/plasmacomponents/qml/Button.qml @@ -178,7 +178,16 @@ Item { states: [ State { name: "normal" }, - State { name: "pressed" } + State { name: "pressed" + PropertyChanges { + target: surfaceNormal + opacity: 0 + } + PropertyChanges { + target: surfacePressed + opacity: 1 + } + } ] transitions: [ Transition { @@ -188,14 +197,6 @@ Item { NumberAnimation { target: surfaceNormal; property: "opacity"; to: 1; duration: 100 } NumberAnimation { target: surfacePressed; property: "opacity"; to: 0; duration: 100 } } - }, - Transition { - to: "pressed" - // Cross fade from normal to pressed - ParallelAnimation { - NumberAnimation { target: surfaceNormal; property: "opacity"; to: 0; duration: 100 } - NumberAnimation { target: surfacePressed; property: "opacity"; to: 1; duration: 100 } - } } ]