@@ -43,9 +43,11 @@ Item {
43 readonly property color green: "#3fb24f"
43 readonly property color green: "#3fb24f"
44 readonly property color sdLightGrey: "#eaeaea"
44 readonly property color sdLightGrey: "#eaeaea"
45 readonly property color sdDarkGrey: "#dddddd"
45 readonly property color sdDarkGrey: "#dddddd"
46+ readonly property color sdFontColor: "#5d5d5d"
47+ readonly property real contentSpacing: units.gu(2)
47 objectName: "background"
49 objectName: "background"
48− implicitHeight: type !== Notification.PlaceHolder ? (fullscreen ? maxHeight : contentColumn.height + contentColumn.spacing * 2) : 0
50+ implicitHeight: type !== Notification.PlaceHolder ? (fullscreen ? maxHeight : outterColumn.height + contentSpacing * 2) : 0
50 color: type == Notification.SnapDecision ? sdLightGrey : Qt.rgba(0.132, 0.117, 0.109, 0.97)
52 color: type == Notification.SnapDecision ? sdLightGrey : Qt.rgba(0.132, 0.117, 0.109, 0.97)
51 opacity: 0
53 opacity: 0
@@ -194,14 +196,14 @@ Item {
197− id: contentColumn
199+ id: outterColumn
198− objectName: "contentColumn"
200 anchors {
201 anchors {
201 left: parent.left
202 left: parent.left
202 right: parent.right
203 right: parent.right
203 top: parent.top
204 top: parent.top
204− margins: fullscreen ? 0 : spacing
205+ margins: 0
206+ topMargin: units.gu(2)
207 spacing: units.gu(2)
209 spacing: units.gu(2)
@@ -209,10 +211,11 @@ Item {
210 id: topRow
212 id: topRow
212− spacing: contentColumn.spacing
214+ spacing: contentSpacing
213 anchors {
215 anchors {
214 left: parent.left
216 left: parent.left
215 right: parent.right
217 right: parent.right
218+ margins: contentSpacing
218 ShapedIcon {
221 ShapedIcon {
@@ -240,8 +243,7 @@ Item {
240 right: parent.right
243 right: parent.right
242 fontSize: "medium"
245 fontSize: "medium"
244− color: type == Notification.SnapDecision ? "#5d5d5d" :Theme.palette.selected.backgroundText
246+ color: type == Notification.SnapDecision ? sdFontColor :Theme.palette.selected.backgroundText
245 elide: Text.ElideRight
247 elide: Text.ElideRight
@@ -255,7 +257,7 @@ Item {
256 visible: body != ""
258 visible: body != ""
257 fontSize: "small"
259 fontSize: "small"
258− color: type == Notification.SnapDecision ? "#5d5d5d" : Theme.palette.selected.backgroundText
260+ color: type == Notification.SnapDecision ? sdFontColor : Theme.palette.selected.backgroundText
259 opacity: type == Notification.SnapDecision ? 1.0 : 0.6
261 opacity: type == Notification.SnapDecision ? 1.0 : 0.6
260 wrapMode: Text.WordWrap
262 wrapMode: Text.WordWrap
261 maximumLineCount: 10
263 maximumLineCount: 10
@@ -275,7 +277,7 @@ Item {
277 ListItem.ThinDivider {
279 ListItem.ThinDivider {
278− visible: type == Notification.SnapDecision
280+ visible: type == Notification.SnapDecision
@@ -322,6 +324,7 @@ Item {
322 anchors {
324 anchors {
323 left: parent.left
325 left: parent.left
324 right: parent.right
326 right: parent.right
327+ margins: contentSpacing
326 visible: notification.type == Notification.SnapDecision && actionRepeater.count > 0
329 visible: notification.type == Notification.SnapDecision && actionRepeater.count > 0
327 spacing: units.gu(2)
330 spacing: units.gu(2)
@@ -342,7 +345,7 @@ Item {
344 objectName: "button" + index
347 objectName: "button" + index
345− width: buttonRow.width / 2 - spacing
348+ width: buttonRow.width / 2 - spacing*2
346 text: loader.actionLabel
349 text: loader.actionLabel
348 var result = sdDarkGrey;
351 var result = sdDarkGrey;
@@ -367,6 +370,12 @@ Item {
368 objectName: "button2"
371 objectName: "button2"
369 width: parent.width
372 width: parent.width
376+ margins: contentSpacing
370 visible: notification.type == Notification.SnapDecision && actionRepeater.count > 3
379 visible: notification.type == Notification.SnapDecision && actionRepeater.count > 3
371 color: sdDarkGrey
380 color: sdDarkGrey
372 onClicked: notification.notification.invokeAction(comboRepeater.itemAt(2).actionId)
381 onClicked: notification.notification.invokeAction(comboRepeater.itemAt(2).actionId)