@@ -36,7 +36,7 @@ StyledItem {
3636 property var type
3737 property var hints
3838 property var notification
39− property color color: UbuntuColors.silk // TODO theme.palette.normal.overlay
39+ property color color: theme.palette.normal.overlay
4040 property bool fullscreen: false
4141 property int maxHeight
4242 property int margins: units.gu(1)
@@ -129,10 +129,18 @@ StyledItem {
129129 }
130130 ]
131131
132− clip: fullscreen ? false : true
133−
134132 visible: type !== Notification.PlaceHolder
135133
134+ BorderImage {
135+ anchors {
136+ fill: contents
137+ margins: shapedBack.visible ? -units.gu(1) : -units.gu(1.5)
138+ }
139+ source: "../Stages/graphics/dropshadow2gu.sci"
140+ opacity: notification.opacity * 0.5
141+ enabled: !fullscreen
142+ }
143+
136144 UbuntuShape {
137145 id: shapedBack
138146
@@ -141,7 +149,6 @@ StyledItem {
141149 fill: parent
142150 }
143151 backgroundColor: parent.color
144− opacity: parent.opacity
145152 radius: "medium"
146153 aspect: UbuntuShape.Flat
147154 }
@@ -152,7 +159,6 @@ StyledItem {
152159 visible: fullscreen
153160 anchors.fill: parent
154161 color: parent.color
155− opacity: parent.opacity
156162 }
157163
158164 onXChanged: {
@@ -333,31 +339,18 @@ StyledItem {
333339 textFormat: Text.PlainText
334340 }
335341
336− UbuntuShape {
342+ ProgressBar {
337343 id: valueIndicator
338344 objectName: "valueIndicator"
339345 visible: type === Notification.Confirmation
340− property double value
341−
346+ showProgressPercentage: false
347+ minimumValue: 0
348+ maximumValue: 100
342349 anchors {
343350 left: parent.left
344351 right: parent.right
345352 }
346−
347353 height: units.gu(1)
348− backgroundColor: theme.palette.normal.background
349− aspect: UbuntuShape.Flat
350− radius: "small"
351−
352− UbuntuShape {
353− id: innerBar
354− objectName: "innerBar"
355− width: valueIndicator.width * valueIndicator.value / 100
356− height: units.gu(1)
357− backgroundColor: notification.hints["x-canonical-value-bar-tint"] === "true" ? theme.palette.highlighted.activity : theme.palette.normal.activity
358− aspect: UbuntuShape.Flat
359− radius: "small"
360− }
361354 }
362355
363356 Column {