@@ -57,41 +57,30 @@ AbstractButton {
5757 applicationImage.updateFromCache();
5858 }
5959
60− // START-FIXME: should use UbuntuShape from SDK, when it can
61− // shape arbitrary items.
62−
63− ShaderEffectSource {
64− id: ses
65− sourceItem: ApplicationImage {
66− id: applicationImage
67− source: application
68− width: shapedApplicationImage.width
69− height: shapedApplicationImage.height
70− fillMode: ApplicationImage.PreserveAspectCrop
71− }
72−
73− width: 1
74− height: 1
75− hideSource: true
76− }
77−
78− Shape {
60+ // FIXME: should use UbuntuShape from SDK
61+ UbuntuShapeForItem {
7962 id: shapedApplicationImage
8063 anchors {
8164 top: parent.top
8265 horizontalCenter: parent.horizontalCenter
8366 }
8467
85− radius: "medium"
86− image: ses
87−
8868 // FIXME: width and height should be defined according to the
8969 // application window's aspect ratio.
9070 width: (application.stage === ApplicationInfo.MainStage && __sideStageEnabled) ?
9171 units.gu(22) : units.gu(11)
9272 height: (__sideStageEnabled) ? units.gu(22) : units.gu(19)
73+ radius: "medium"
74+ image: applicationImage
75+ }
76+
77+ ApplicationImage {
78+ id: applicationImage
79+ source: application
80+ width: shapedApplicationImage.width
81+ height: shapedApplicationImage.height
82+ fillMode: ApplicationImage.PreserveAspectCrop
9383 }
94− // END-FIXME
9584
9685 UbuntuShape {
9786 id: borderPressed