@@ -17,7 +17,6 @@
19import QtQuick 2.4
19import QtQuick 2.4
20−import QtGraphicalEffects 1.0
21import Ubuntu.Components 1.2
20import Ubuntu.Components 1.2
22import Unity.Application 0.1
21import Unity.Application 0.1
@@ -31,6 +30,7 @@ FocusScope {
32 property bool decorationShown: true
31 property bool decorationShown: true
33 property bool highlightShown: false
32 property bool highlightShown: false
33+ property real shadowOpacity: 1
35 signal close()
35 signal close()
36 signal maximize()
36 signal maximize()
@@ -52,10 +52,13 @@ FocusScope {
52 visible: highlightShown
52 visible: highlightShown
55− RectangularGlow { // drop shadow around the window
55+ BorderImage {
56− anchors.fill: parent
56+ anchors {
57− color: "#333333"
57+ fill: root
58− glowRadius: active ? units.dp(6) : units.dp(4)
58+ margins: active ? -units.gu(2) : -units.gu(1.5)
60+ source: "graphics/dropshadow2gu.sci"
61+ opacity: root.shadowOpacity * .3
61 WindowDecoration {
64 WindowDecoration {