@@ -36,7 +36,7 @@ StyledItem {
36 property var type
36 property var type
37 property var hints
37 property var hints
38 property var notification
38 property var notification
39− property color color: UbuntuColors.silk // TODO theme.palette.normal.overlay
39+ property color color: theme.palette.normal.overlay
40 property bool fullscreen: false
40 property bool fullscreen: false
41 property int maxHeight
41 property int maxHeight
42 property int margins: units.gu(1)
42 property int margins: units.gu(1)
@@ -129,10 +129,18 @@ StyledItem {
132− clip: fullscreen ? false : true
134 visible: type !== Notification.PlaceHolder
132 visible: type !== Notification.PlaceHolder
137+ margins: shapedBack.visible ? -units.gu(1) : -units.gu(1.5)
139+ source: "../Stages/graphics/dropshadow2gu.sci"
140+ opacity: notification.opacity * 0.5
141+ enabled: !fullscreen
136 UbuntuShape {
144 UbuntuShape {
137 id: shapedBack
145 id: shapedBack
@@ -141,7 +149,6 @@ StyledItem {
141 fill: parent
149 fill: parent
143 backgroundColor: parent.color
151 backgroundColor: parent.color
144− opacity: parent.opacity
145 radius: "medium"
152 radius: "medium"
146 aspect: UbuntuShape.Flat
153 aspect: UbuntuShape.Flat
@@ -152,7 +159,6 @@ StyledItem {
152 visible: fullscreen
159 visible: fullscreen
153 anchors.fill: parent
160 anchors.fill: parent
154 color: parent.color
161 color: parent.color
155− opacity: parent.opacity
158 onXChanged: {
164 onXChanged: {
@@ -333,31 +339,18 @@ StyledItem {
333 textFormat: Text.PlainText
339 textFormat: Text.PlainText
336− UbuntuShape {
342+ ProgressBar {
337 id: valueIndicator
343 id: valueIndicator
338 objectName: "valueIndicator"
344 objectName: "valueIndicator"
339 visible: type === Notification.Confirmation
345 visible: type === Notification.Confirmation
340− property double value
346+ showProgressPercentage: false
342 anchors {
349 anchors {
343 left: parent.left
350 left: parent.left
344 right: parent.right
351 right: parent.right
347 height: units.gu(1)
353 height: units.gu(1)
348− backgroundColor: theme.palette.normal.background
349− aspect: UbuntuShape.Flat
354− objectName: "innerBar"
355− width: valueIndicator.width * valueIndicator.value / 100
357− backgroundColor: notification.hints["x-canonical-value-bar-tint"] === "true" ? theme.palette.highlighted.activity : theme.palette.normal.activity
358− aspect: UbuntuShape.Flat