@@ -49,7 +49,7 @@ Item {
49 readonly property color sdFontColor: "#5d5d5d"
49 readonly property color sdFontColor: "#5d5d5d"
50 readonly property real contentSpacing: units.gu(2)
50 readonly property real contentSpacing: units.gu(2)
51 readonly property bool canBeClosed: type === Notification.Ephemeral
51 readonly property bool canBeClosed: type === Notification.Ephemeral
52− property bool clickToClose
52+ property bool hasMouse
54 objectName: "background"
54 objectName: "background"
55 implicitHeight: type !== Notification.PlaceHolder ? (fullscreen ? maxHeight : outterColumn.height - shapedBack.anchors.topMargin + contentSpacing * 2) : 0
55 implicitHeight: type !== Notification.PlaceHolder ? (fullscreen ? maxHeight : outterColumn.height - shapedBack.anchors.topMargin + contentSpacing * 2) : 0
@@ -217,7 +217,7 @@ Item {
217 onClicked: {
217 onClicked: {
218 if (notification.type == Notification.Interactive) {
218 if (notification.type == Notification.Interactive) {
219 notification.notification.invokeAction(actionRepeater.itemAt(0).actionId)
219 notification.notification.invokeAction(actionRepeater.itemAt(0).actionId)
220− } else if (clickToClose && canBeClosed) {
220+ } else if (hasMouse && canBeClosed) {
221 notification.notification.close()
221 notification.notification.close()
223 notificationList.currentIndex = index;
223 notificationList.currentIndex = index;
@@ -442,7 +442,7 @@ Item {
442 objectName: "notify_oot_button" + index
442 objectName: "notify_oot_button" + index
443 width: oneOverTwoCase.width
443 width: oneOverTwoCase.width
444 text: oneOverTwoLoaderTop.actionLabel
444 text: oneOverTwoLoaderTop.actionLabel
445− color: index == 1 && notification.hints["x-canonical-private-rejection-tint"] == "true" ? red : sdDarkGrey
445+ color: notification.hints["x-canonical-private-rejection-tint"] == "true" ? red : sdDarkGrey
446 onClicked: notification.notification.invokeAction(oneOverTwoLoaderTop.actionId)
446 onClicked: notification.notification.invokeAction(oneOverTwoLoaderTop.actionId)
@@ -470,7 +470,7 @@ Item {
470 objectName: "notify_oot_button" + index
470 objectName: "notify_oot_button" + index
471 width: oneOverTwoCase.width / 2 - spacing * 2
471 width: oneOverTwoCase.width / 2 - spacing * 2
472 text: oneOverTwoLoaderBottom.actionLabel
472 text: oneOverTwoLoaderBottom.actionLabel
473− color: index == 1 && notification.hints["x-canonical-private-rejection-tint"] === "true" ? red : sdDarkGrey
473+ color: index == 1 && notification.hints["x-canonical-private-rejection-tint"] == "true" ? red : sdDarkGrey
474 onClicked: notification.notification.invokeAction(oneOverTwoLoaderBottom.actionId)
474 onClicked: notification.notification.invokeAction(oneOverTwoLoaderBottom.actionId)
@@ -490,7 +490,7 @@ Item {
490 margins: contentSpacing
490 margins: contentSpacing
492 visible: notification.type === Notification.SnapDecision && actionRepeater.count > 0 && !oneOverTwoCase.visible
492 visible: notification.type === Notification.SnapDecision && actionRepeater.count > 0 && !oneOverTwoCase.visible
493− spacing: units.gu(2)
493+ spacing: contentSpacing
494 layoutDirection: Qt.RightToLeft
494 layoutDirection: Qt.RightToLeft
@@ -502,7 +502,7 @@ Item {
502 width: buttonRow.width
502 width: buttonRow.width
503 leftIconName: "call-end"
503 leftIconName: "call-end"
504 rightIconName: "call-start"
504 rightIconName: "call-start"
505− clickToAct: notification.clickToClose
505+ clickToAct: notification.hasMouse
506 onRightTriggered: {
506 onRightTriggered: {
507 notification.notification.invokeAction(notification.actions.data(0, ActionModel.RoleActionId))
507 notification.notification.invokeAction(notification.actions.data(0, ActionModel.RoleActionId))