@@ -57,41 +57,30 @@ AbstractButton {
57 applicationImage.updateFromCache();
57 applicationImage.updateFromCache();
60− // START-FIXME: should use UbuntuShape from SDK, when it can
60+ // FIXME: should use UbuntuShape from SDK
61− // shape arbitrary items.
61+ UbuntuShapeForItem {
65− sourceItem: ApplicationImage {
68− width: shapedApplicationImage.width
69− height: shapedApplicationImage.height
70− fillMode: ApplicationImage.PreserveAspectCrop
79 id: shapedApplicationImage
62 id: shapedApplicationImage
81 top: parent.top
64 top: parent.top
82 horizontalCenter: parent.horizontalCenter
65 horizontalCenter: parent.horizontalCenter
88 // FIXME: width and height should be defined according to the
68 // FIXME: width and height should be defined according to the
89 // application window's aspect ratio.
69 // application window's aspect ratio.
90 width: (application.stage === ApplicationInfo.MainStage && __sideStageEnabled) ?
70 width: (application.stage === ApplicationInfo.MainStage && __sideStageEnabled) ?
91 units.gu(22) : units.gu(11)
71 units.gu(22) : units.gu(11)
92 height: (__sideStageEnabled) ? units.gu(22) : units.gu(19)
72 height: (__sideStageEnabled) ? units.gu(22) : units.gu(19)
74+ image: applicationImage
80+ width: shapedApplicationImage.width
81+ height: shapedApplicationImage.height
82+ fillMode: ApplicationImage.PreserveAspectCrop
96 UbuntuShape {
85 UbuntuShape {
97 id: borderPressed
86 id: borderPressed