@@ -31,13 +31,13 @@ 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
34+ property alias sourceFillMode: shape.sourceFillMode
3535 property alias asynchronous: image.asynchronous
3636 property alias cache: image.cache
37− property alias horizontalAlignment: image.horizontalAlignment
38− property alias verticalAlignment: image.verticalAlignment
37+ property alias sourceHorizontalAlignment: shape.sourceHorizontalAlignment
38+ property alias sourceVerticalAlignment: shape.sourceVerticalAlignment
3939 property alias sourceImage: image
40− property alias borderSource: shape.borderSource
40+ property bool pressed: false
4141
4242 state: "default"
4343
@@ -78,7 +78,7 @@ Item {
7878 }
7979 }
8080
81− UbuntuShape {
81+ UbuntuShapeOverlay {
8282 id: shape
8383 objectName: "shape"
8484 height: root.initialHeight
@@ -87,7 +87,9 @@ Item {
8787
8888 opacity: 0
8989 visible: opacity != 0
90− sourceFillMode: UbuntuShape.PreserveAspectFit
90+ overlayColor: Qt.rgba(0, 0, 0, root.pressed ? 0.1 : 0)
91+ overlayRect: Qt.rect(0.0, 0.0, 1.0, 1.0)
92+ sourceFillMode: UbuntuShape.PreserveAspectCrop
9193 sourceHorizontalAlignment: UbuntuShape.AlignHCenter
9294 sourceVerticalAlignment: UbuntuShape.AlignVCenter
9395 source: Image {