@@ -18,6 +18,7 @@
1818
1919import QtQuick 2.0
2020import Mir.Application 0.1
21+import Ubuntu.Components 1.0
2122
2223Item {
2324 id: root
@@ -27,6 +28,7 @@ Item {
2728 property bool interactive: true
2829 property real maximizedAppTopMargin
2930 property var application: ApplicationManager.get(index)
31+ property bool dropShadow: true
3032
3133 // FIXME: This really should be invisible to QML code.
3234 // e.g. Create a SurfaceItem {} in C++ which we just use without any imperative hacks.
@@ -82,12 +84,13 @@ Item {
8284 ]
8385
8486 BorderImage {
85− id: dropShadow
87+ id: dropShadowImage
8688 anchors.fill: surface
8789 anchors.margins: -units.gu(2)
8890 source: "graphics/dropshadow.png"
89− opacity: .4
9091 border { left: 50; right: 50; top: 50; bottom: 50 }
92+ opacity: root.dropShadow ? .4 : 0
93+ Behavior on opacity { UbuntuNumberAnimation {} }
9194 }
9295
9396 // This is used to get clicked events on the whole app. e.g. when in spreadView.