@@ -19,14 +19,15 @@
19import QtQuick 2.0
19import QtQuick 2.0
20import Mir.Application 0.1
20import Mir.Application 0.1
21import Ubuntu.Components 1.0
21import Ubuntu.Components 1.0
22+import "../Components"
26 signal clicked()
27 signal clicked()
27− property real topMarginProgress
28 property bool interactive: true
28 property bool interactive: true
29 property real maximizedAppTopMargin
29 property real maximizedAppTopMargin
30+ property bool isFullscreen: surface !== null && surface.anchors.topMargin == 0
30 property bool dropShadow: true
31 property bool dropShadow: true
32 // FIXME: This really should be invisible to QML code.
33 // FIXME: This really should be invisible to QML code.
@@ -112,7 +113,7 @@ Item {
113 BorderImage {
114 BorderImage {
114 id: dropShadowImage
115 id: dropShadowImage
115− anchors.fill: parent
116+ anchors.fill: surface
116 anchors.margins: -units.gu(2)
117 anchors.margins: -units.gu(2)
117 source: "graphics/dropshadow.png"
118 source: "graphics/dropshadow.png"
118 border { left: 50; right: 50; top: 50; bottom: 50 }
119 border { left: 50; right: 50; top: 50; bottom: 50 }
@@ -120,8 +121,6 @@ Item {
120 Behavior on opacity { UbuntuNumberAnimation {} }
121 Behavior on opacity { UbuntuNumberAnimation {} }
123− // This is used to get clicked events on the whole app. e.g. when in spreadView.
124− // It's only enabled when the surface is !interactive
125 MouseArea {
124 MouseArea {
126 anchors.fill: parent
125 anchors.fill: parent