@@ -43,6 +43,10 @@ Rectangle {
43 if (quickList.state == "open") {
43 if (quickList.state == "open") {
44 quickList.state = ""
44 quickList.state = ""
47+ if (fakeAlertingItem.visible && fakeAlertingItem.x > units.gu(.5)) {
48+ fakeAlertingItem.x = 72 - parent.visibleWidth
48 onAlertIndexChanged: {
52 onAlertIndexChanged: {
@@ -53,27 +57,14 @@ Rectangle {
53 fakeAlertingItem.index = alertIndex
57 fakeAlertingItem.index = alertIndex
54 fakeAlertingItem.iconName = launcherListView.model.get(alertIndex).icon
58 fakeAlertingItem.iconName = launcherListView.model.get(alertIndex).icon
55 fakeAlertingItem.y = alertIndex * fakeAlertingItem.itemHeight + launcherListView.anchors.topMargin + launcherListView.topMargin
59 fakeAlertingItem.y = alertIndex * fakeAlertingItem.itemHeight + launcherListView.anchors.topMargin + launcherListView.topMargin
56− fakeAlertingItem.count = LauncherModel.get(alertIndex).count
60+ fakeAlertingItem.progress = launcherListView.model.get(alertIndex).progress
57− fakeAlertingItem.progress = LauncherModel.get(alertIndex).progress
58 fakeAlertingItem.alerting = true
61 fakeAlertingItem.alerting = true
59 fakeAlertingItem.visible = true
62 fakeAlertingItem.visible = true
60− if (launcher.state !== "visible") {
61− fakeAlertingItem.reveal()
63− print("y = ", fakeAlertingItem.y)
64− print("index = ", fakeAlertingItem.index)
66− // set real icon back to visible
70 // hide fake-alerting-icon
66 // hide fake-alerting-icon
71 fakeAlertingItem.alerting = false
67 fakeAlertingItem.alerting = false
73− if (launcher.state !== "visible") {
74− fakeAlertingItem.hide()
76− //fakeAlertingItem.visible = false
@@ -216,6 +207,7 @@ Rectangle {
216 z: -Math.abs(offset)
207 z: -Math.abs(offset)
217 maxAngle: 55
208 maxAngle: 55
218 property bool dragging: false
209 property bool dragging: false
210+ itemOpacity: index === alertIndex ? 0 : 1
220 ThinDivider {
212 ThinDivider {
221 id: dropIndicator
213 id: dropIndicator
@@ -546,15 +538,19 @@ Rectangle {
546 itemHeight: launcherListView.itemHeight
538 itemHeight: launcherListView.itemHeight
547 height: itemHeight
539 height: itemHeight
548 width: itemWidth
540 width: itemWidth
549− rotation: root.rotation
541+ rotation: root.rotation1G
550 alerting: false
542 alerting: false
552− function reveal() {
544+ onAlertingChanged: {
546+ if (launcher.state !== "visible") {
553− fakeAlertingItemReveal.start();
547+ fakeAlertingItemReveal.start();
556− function hide() {
550+ if (launcher.state !== "visible") {
557− fakeAlertingItemHide.start();
551+ fakeAlertingItemHide.start();
560 ParallelAnimation {
556 ParallelAnimation {
@@ -569,7 +565,7 @@ Rectangle {
569 UbuntuNumberAnimation {
565 UbuntuNumberAnimation {
570 target: fakeAlertingItem;
566 target: fakeAlertingItem;
571 properties: "x";
567 properties: "x";
572− from: 0
568+ from: units.gu(.5)
573 to: units.gu(1) + launcherListView.width * .5
569 to: units.gu(1) + launcherListView.width * .5
574 duration: UbuntuAnimation.BriskDuration
570 duration: UbuntuAnimation.BriskDuration
@@ -582,15 +578,9 @@ Rectangle {
582 target: fakeAlertingItem;
578 target: fakeAlertingItem;
583 properties: "x";
579 properties: "x";
584 from: units.gu(1) + launcherListView.width * .5
580 from: units.gu(1) + launcherListView.width * .5
585− to: 0
581+ to: units.gu(.5)
586 duration: UbuntuAnimation.BriskDuration
582 duration: UbuntuAnimation.BriskDuration
590− target: fakeAlertingItem
591− properties: "visible"