@@ -31,13 +31,10 @@ Item {
31 property real initialHeight: scaleTo == "height" || scaleTo == "fit" ? height : units.gu(10)
31 property real initialHeight: scaleTo == "height" || scaleTo == "fit" ? height : units.gu(10)
33 property alias sourceSize: image.sourceSize
33 property alias sourceSize: image.sourceSize
34− property alias fillMode: image.fillMode
35 property alias asynchronous: image.asynchronous
34 property alias asynchronous: image.asynchronous
36 property alias cache: image.cache
35 property alias cache: image.cache
37− property alias horizontalAlignment: image.horizontalAlignment
38− property alias verticalAlignment: image.verticalAlignment
39 property alias sourceImage: image
36 property alias sourceImage: image
40− property alias borderSource: shape.borderSource
37+ property bool pressed: false
42 state: "default"
39 state: "default"
@@ -78,7 +75,7 @@ Item {
81− UbuntuShape {
78+ UbuntuShapeOverlay {
83 objectName: "shape"
80 objectName: "shape"
84 height: root.initialHeight
81 height: root.initialHeight
@@ -87,7 +84,9 @@ Item {
88 opacity: 0
85 opacity: 0
89 visible: opacity != 0
86 visible: opacity != 0
87+ overlayColor: Qt.rgba(0, 0, 0, root.pressed ? 0.1 : 0)
88+ overlayRect: Qt.rect(0.0, 0.0, 1.0, 1.0)
90− sourceFillMode: UbuntuShape.PreserveAspectFit
89+ sourceFillMode: UbuntuShape.PreserveAspectCrop
91 sourceHorizontalAlignment: UbuntuShape.AlignHCenter
90 sourceHorizontalAlignment: UbuntuShape.AlignHCenter
92 sourceVerticalAlignment: UbuntuShape.AlignVCenter
91 sourceVerticalAlignment: UbuntuShape.AlignVCenter
93 source: Image {
92 source: Image {