@@ -31,13 +31,10 @@ Item {
3131 property real initialHeight: scaleTo == "height" || scaleTo == "fit" ? height : units.gu(10)
3232
3333 property alias sourceSize: image.sourceSize
34− property alias fillMode: image.fillMode
3534 property alias asynchronous: image.asynchronous
3635 property alias cache: image.cache
37− property alias horizontalAlignment: image.horizontalAlignment
38− property alias verticalAlignment: image.verticalAlignment
3936 property alias sourceImage: image
40− property alias borderSource: shape.borderSource
37+ property bool pressed: false
4138
4239 state: "default"
4340
@@ -78,7 +75,7 @@ Item {
7875 }
7976 }
8077
81− UbuntuShape {
78+ UbuntuShapeOverlay {
8279 id: shape
8380 objectName: "shape"
8481 height: root.initialHeight
@@ -87,7 +84,9 @@ Item {
8784
8885 opacity: 0
8986 visible: opacity != 0
90− sourceFillMode: UbuntuShape.PreserveAspectFit
87+ overlayColor: Qt.rgba(0, 0, 0, root.pressed ? 0.1 : 0)
88+ overlayRect: Qt.rect(0.0, 0.0, 1.0, 1.0)
89+ sourceFillMode: UbuntuShape.PreserveAspectCrop
9190 sourceHorizontalAlignment: UbuntuShape.AlignHCenter
9291 sourceVerticalAlignment: UbuntuShape.AlignVCenter
9392 source: Image {