@@ -55,11 +55,13 @@ StyledItem {
55 name: "Ubuntu.Components.Themes.Ambiance"
55 name: "Ubuntu.Components.Themes.Ambiance"
58 readonly property bool expanded: {
60 readonly property bool expanded: {
59 var result = false;
61 var result = false;
61 if (type === Notification.SnapDecision) {
63 if (type === Notification.SnapDecision) {
62− if (ListView.view.currentIndex === index) {
64+ if (ListView.view.currentIndex === index || fullscreen) {
63 result = true;
65 result = true;
65 if (ListView.view.count > 2) {
67 if (ListView.view.count > 2) {
@@ -103,10 +105,11 @@ StyledItem {
103 ListView.view.currentIndex = -1;
105 ListView.view.currentIndex = -1;
106− if (notification.actions.count > 1) { // perform the "reject" action
108+ // perform the "reject" action
107− notification.notification.invokeAction(notification.actions.data(1, ActionModel.RoleActionId));
109+ notification.notification.invokeAction(notification.actions.data(1, ActionModel.RoleActionId));
109 notification.notification.close();
111 notification.notification.close();
112+ notification.dismissed()
112 Behavior on x {
115 Behavior on x {
@@ -119,6 +122,12 @@ StyledItem {
125+ onFullscreenChanged: {
127+ notification.notification.urgency = Notification.Critical;
122 Behavior on height {
131 Behavior on height {
123 UbuntuNumberAnimation {
132 UbuntuNumberAnimation {
124 duration: UbuntuAnimation.SnapDuration
133 duration: UbuntuAnimation.SnapDuration
@@ -192,6 +201,7 @@ StyledItem {
192 onNameOwnerChanged: {
201 onNameOwnerChanged: {
193 if (lastNameOwner !== "" && nameOwner === "" && notification.notification !== undefined) {
202 if (lastNameOwner !== "" && nameOwner === "" && notification.notification !== undefined) {
194 notification.notification.close()
203 notification.notification.close()
204+ notification.dismissed()
196 lastNameOwner = nameOwner
206 lastNameOwner = nameOwner
@@ -203,7 +213,7 @@ StyledItem {
203 anchors.fill: parent
213 anchors.fill: parent
204 objectName: "interactiveArea"
214 objectName: "interactiveArea"
206− drag.target: notification
216+ drag.target: !fullscreen ? notification : undefined
207 drag.axis: Drag.XAxis
217 drag.axis: Drag.XAxis
208 drag.minimumX: -notification.width
218 drag.minimumX: -notification.width
209 drag.maximumX: notification.width
219 drag.maximumX: notification.width
@@ -386,7 +396,7 @@ StyledItem {
386 objectName: "dialogListView"
396 objectName: "dialogListView"
387 spacing: notification.margins
397 spacing: notification.margins
389− visible: count > 0 && notification.expanded
399+ visible: count > 0 && (notification.expanded || notification.fullscreen)
391 anchors {
401 anchors {
392 left: parent.left
402 left: parent.left
@@ -417,6 +427,7 @@ StyledItem {
418 onAccepted: {
428 onAccepted: {
419 notification.notification.invokeAction(actionRepeater.itemAt(0).actionId)
429 notification.notification.invokeAction(actionRepeater.itemAt(0).actionId)
430+ notification.dismissed()