@@ -18,6 +18,7 @@
19import QtQuick 2.0
19import QtQuick 2.0
20import Mir.Application 0.1
20import Mir.Application 0.1
21+import Ubuntu.Components 1.0
@@ -27,6 +28,7 @@ Item {
27 property bool interactive: true
28 property bool interactive: true
28 property real maximizedAppTopMargin
29 property real maximizedAppTopMargin
29 property var application: ApplicationManager.get(index)
30 property var application: ApplicationManager.get(index)
31+ property bool dropShadow: true
31 // FIXME: This really should be invisible to QML code.
33 // FIXME: This really should be invisible to QML code.
32 // e.g. Create a SurfaceItem {} in C++ which we just use without any imperative hacks.
34 // e.g. Create a SurfaceItem {} in C++ which we just use without any imperative hacks.
@@ -82,12 +84,13 @@ Item {
84 BorderImage {
86 BorderImage {
85− id: dropShadow
87+ id: dropShadowImage
86 anchors.fill: surface
88 anchors.fill: surface
87 anchors.margins: -units.gu(2)
89 anchors.margins: -units.gu(2)
88 source: "graphics/dropshadow.png"
90 source: "graphics/dropshadow.png"
90 border { left: 50; right: 50; top: 50; bottom: 50 }
91 border { left: 50; right: 50; top: 50; bottom: 50 }
92+ opacity: root.dropShadow ? .4 : 0
93+ Behavior on opacity { UbuntuNumberAnimation {} }
93 // This is used to get clicked events on the whole app. e.g. when in spreadView.
96 // This is used to get clicked events on the whole app. e.g. when in spreadView.