X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=qml%2Fubi%2Fcomponents%2FToolIcon.qml;h=6632be4b09a4115b9f75f5822359069f78e1eae3;hb=4b7d3c9a2ffcba5ec4f6479dccb09d6b16988773;hp=bfc50b3d198b5c992b3726f58c0dc0519a5f80b8;hpb=7f0e071fbec9953213b41b6298a419c921850fa8;p=ubi diff --git a/qml/ubi/components/ToolIcon.qml b/qml/ubi/components/ToolIcon.qml index bfc50b3..6632be4 100644 --- a/qml/ubi/components/ToolIcon.qml +++ b/qml/ubi/components/ToolIcon.qml @@ -1,22 +1,31 @@ -import QtQuick 1.0 +import QtQuick 1.0 // to target S60 5th Edition or Maemo 5 +import "../UIConstants.js" as Const Item { id: root property string iconSource - property bool enabled: true property bool pressed: mouseArea.pressed + property string color: Const.TRANSPARENT signal clicked signal pressAndHold width: 56 height: 56 - opacity: enabled ? 1 : 0.3 Rectangle { - anchors { fill: parent; margins: 5 } - color: "gray" + id: background + anchors { fill: parent; margins: 6 } + //color: root.color + color: "black" + opacity: 0.1 + radius: 10 + } + + Rectangle { + anchors { fill: parent; margins: 6 } + color: "white" opacity: 0.5 radius: 10 visible: mouseArea.pressed @@ -24,8 +33,8 @@ Item { Image { id: icon - width: 40 - height: 40 + width: 30 + height: 30 anchors.centerIn: parent source: iconSource == "" ? "" : "../" + iconSource sourceSize.width: width