X-Git-Url: http://vcs.maemo.org/git/?a=blobdiff_plain;f=src%2Fmdictionary%2Fqml%2FIconButton.qml;h=7fc32eacfedc8ab84203a4ccfe7c523d047fe10c;hb=324ea22239273504192afe5aea525224d1ce343f;hp=9b66836a6edbd2ae87da7e6682350787d12f7561;hpb=91b18d1f5e041da961dee580db035e7ed253ce5a;p=mdictionary diff --git a/src/mdictionary/qml/IconButton.qml b/src/mdictionary/qml/IconButton.qml index 9b66836..7fc32ea 100644 --- a/src/mdictionary/qml/IconButton.qml +++ b/src/mdictionary/qml/IconButton.qml @@ -58,37 +58,21 @@ Rectangle { source: "qrc:/button/buttonR.png" } - Rectangle { - id: shade - z: 4 - anchors.centerIn: parent; - color: "black"; - radius: 20; - opacity: 1; - width: rectangle.width; - height: rectangle.height; - } states: [ State { - name: "enable"; - when: (mouseArea.pressed == false && rectangle.enabled == true); - PropertyChanges { target: shade; - opacity: 0; } - }, - State { name: "disable"; when: (rectangle.enabled == false); - PropertyChanges { target: shade; - color: "black"; - opacity: .5; } + PropertyChanges { target: image1; source: "qrc:/button/buttonLeftDisabled.png" } + PropertyChanges { target: image3; source: "qrc:/button/buttonCenterDisabled.png" } + PropertyChanges { target: image2; source: "qrc:/button/buttonRightDisabled.png" } }, State { name: "clicked"; when: (mouseArea.pressed == true && rectangle.enabled == true); - PropertyChanges { target: shade; - color: "#fffead" - opacity: 0.5; } + PropertyChanges { target: image1; source: "qrc:/button/buttonLeftPushed.png" } + PropertyChanges { target: image3; source: "qrc:/button/buttonCenterPushed.png" } + PropertyChanges { target: image2; source: "qrc:/button/buttonRightPushed.png" } } ] }