@@ -43,7 +43,6 @@ StyledItem {
43 readonly property bool draggable: (type === Notification.SnapDecision && state === "contracted") ||
43 readonly property bool draggable: (type === Notification.SnapDecision && state === "contracted") ||
44 type === Notification.Interactive ||
44 type === Notification.Interactive ||
45 type === Notification.Ephemeral
45 type === Notification.Ephemeral
46− readonly property bool canBeClosed: type === Notification.Ephemeral
47 readonly property real defaultOpacity: 0.95
46 readonly property real defaultOpacity: 0.95
48 property bool hasMouse
47 property bool hasMouse
49 property url background: ""
48 property url background: ""
@@ -136,6 +135,8 @@ StyledItem {
136 visible: !fullscreen
135 visible: !fullscreen
137 anchors {
136 anchors {
138 fill: parent
137 fill: parent
138+ leftMargin: notification.margins
139+ rightMargin: notification.margins
140 backgroundColor: parent.color
141 backgroundColor: parent.color
141 radius: "small"
142 radius: "small"
@@ -196,12 +197,11 @@ StyledItem {
196 drag.axis: Drag.XAxis
197 drag.axis: Drag.XAxis
197 drag.minimumX: -notification.width
198 drag.minimumX: -notification.width
198 drag.maximumX: notification.width
199 drag.maximumX: notification.width
200 onClicked: {
202 onClicked: {
201 if (notification.type === Notification.Interactive) {
203 if (notification.type === Notification.Interactive) {
202 notification.notification.invokeAction(actionRepeater.itemAt(0).actionId)
204 notification.notification.invokeAction(actionRepeater.itemAt(0).actionId)
203− } else if (hasMouse && canBeClosed) {
204− notification.notification.close()
206 notificationList.currentIndex = index;
206 notificationList.currentIndex = index;
@@ -215,6 +215,20 @@ StyledItem {
218+ NotificationButton {
222+ visible: draggable && (containsMouse || interactiveArea.containsMouse)
225+ color: theme.palette.normal.negative
226+ anchors.horizontalCenter: parent.left
227+ anchors.verticalCenter: parent.top
229+ onClicked: notification.notification.close()
219 id: outterColumn
233 id: outterColumn
220 objectName: "outterColumn"
234 objectName: "outterColumn"