@@ -40,10 +40,8 @@ StyledItem {
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)
43− readonly property bool draggable: (type === Notification.SnapDecision && state === "contracted") ||
43+
44− type === Notification.Interactive ||
45− type === Notification.Ephemeral
46− readonly property real defaultOpacity: 0.95
44+ readonly property real defaultOpacity: 1.0
47 property bool hasMouse
45 property bool hasMouse
48 property url background: ""
46 property url background: ""
@@ -101,7 +99,6 @@ StyledItem {
103 Behavior on x {
101 Behavior on x {
105 UbuntuNumberAnimation { easing.type: Easing.OutBounce }
102 UbuntuNumberAnimation { easing.type: Easing.OutBounce }
@@ -154,7 +151,7 @@ StyledItem {
156 onXChanged: {
153 onXChanged: {
157− if (draggable && Math.abs(notification.x) > 0.75 * notification.width) {
154+ if (Math.abs(notification.x) > 0.75 * notification.width) {
158 notification.notification.close()
155 notification.notification.close()
@@ -195,7 +192,7 @@ StyledItem {
195 anchors.fill: parent
192 anchors.fill: parent
196 objectName: "interactiveArea"
193 objectName: "interactiveArea"
198− drag.target: draggable ? notification : undefined
195+ drag.target: notification
199 drag.axis: Drag.XAxis
196 drag.axis: Drag.XAxis
200 drag.minimumX: -notification.width
197 drag.minimumX: -notification.width
201 drag.maximumX: notification.width
198 drag.maximumX: notification.width
@@ -222,7 +219,7 @@ StyledItem {
222 width: units.gu(2)
219 width: units.gu(2)
223 height: width
220 height: width
224 radius: width / 2
221 radius: width / 2
225− visible: hasMouse && draggable && (containsMouse || interactiveArea.containsMouse)
222+ visible: hasMouse && (containsMouse || interactiveArea.containsMouse)
226 iconName: "close"
223 iconName: "close"
227 outline: false
224 outline: false
228 color: theme.palette.normal.negative
225 color: theme.palette.normal.negative
@@ -444,7 +441,7 @@ StyledItem {
444 text: oneOverTwoLoaderTop.actionLabel
441 text: oneOverTwoLoaderTop.actionLabel
445 outline: notification.hints["x-canonical-private-affirmative-tint"] !== "true"
442 outline: notification.hints["x-canonical-private-affirmative-tint"] !== "true"
446 color: notification.hints["x-canonical-private-affirmative-tint"] === "true" ? theme.palette.normal.positive
443 color: notification.hints["x-canonical-private-affirmative-tint"] === "true" ? theme.palette.normal.positive
447− : theme.palette.normal.background
444+ : theme.palette.normal.foreground
448 onClicked: notification.notification.invokeAction(oneOverTwoLoaderTop.actionId)
445 onClicked: notification.notification.invokeAction(oneOverTwoLoaderTop.actionId)
@@ -474,7 +471,7 @@ StyledItem {
474 text: oneOverTwoLoaderBottom.actionLabel
471 text: oneOverTwoLoaderBottom.actionLabel
475 outline: notification.hints["x-canonical-private-rejection-tint"] !== "true"
472 outline: notification.hints["x-canonical-private-rejection-tint"] !== "true"
476 color: index == 1 && notification.hints["x-canonical-private-rejection-tint"] === "true" ? theme.palette.normal.negative
473 color: index == 1 && notification.hints["x-canonical-private-rejection-tint"] === "true" ? theme.palette.normal.negative
477− : theme.palette.normal.background
474+ : theme.palette.normal.foreground
478 onClicked: notification.notification.invokeAction(oneOverTwoLoaderBottom.actionId)
475 onClicked: notification.notification.invokeAction(oneOverTwoLoaderBottom.actionId)
@@ -536,7 +533,7 @@ StyledItem {
536 outline: (index == 0 && notification.hints["x-canonical-private-affirmative-tint"] !== "true") ||
533 outline: (index == 0 && notification.hints["x-canonical-private-affirmative-tint"] !== "true") ||
537 (index == 1 && notification.hints["x-canonical-private-rejection-tint"] !== "true")
534 (index == 1 && notification.hints["x-canonical-private-rejection-tint"] !== "true")
539− var result = theme.palette.normal.background;
536+ var result = theme.palette.normal.foreground;
540 if (index == 0 && notification.hints["x-canonical-private-affirmative-tint"] === "true") {
537 if (index == 0 && notification.hints["x-canonical-private-affirmative-tint"] === "true") {
541 result = theme.palette.normal.positive;
538 result = theme.palette.normal.positive;