on xenial help sign in
Added code for wiggle-animation of launcher-icons... not yet hooked up to any backend so a notify-message would be trigger it.
b5cf100Mirco Müller
qml/Launcher/LauncherDelegate.qml+66
@@ -40,6 +40,72 @@ Item {
40 property real itemOpacity: 1
40 property real itemOpacity: 1
41 property real brightness: 0
41 property real brightness: 0
42
42
43+ SequentialAnimation {
44+ id: wiggleAnim
45+
46+ readonly property double angle: 5.0
47+ readonly property int duration: UbuntuAnimation.SnapDuration
48+
49+ running: false
50+ loops: Animation.Infinite
51+
52+ NumberAnimation {
53+ target: root
54+ property: "rotation"
55+ from: 0
56+ to: wiggleAnim.angle
57+ duration: wiggleAnim.duration
58+ easing.type: Easing.InQuad
59+ }
60+
61+ NumberAnimation {
62+ target: root
63+ property: "rotation"
64+ from: wiggleAnim.angle
65+ to: -wiggleAnim.angle
66+ duration: wiggleAnim.duration
67+ easing.type: Easing.InOutQuad
68+ }
69+
70+ NumberAnimation {
71+ target: root
72+ property: "rotation"
73+ from: -wiggleAnim.angle
74+ to: wiggleAnim.angle
75+ duration: wiggleAnim.duration
76+ easing.type: Easing.InOutQuad
77+ }
78+
79+ NumberAnimation {
80+ target: root
81+ property: "rotation"
82+ from: -wiggleAnim.angle
83+ to: wiggleAnim.angle
84+ duration: wiggleAnim.duration
85+ easing.type: Easing.InOutQuad
86+ }
87+
88+ NumberAnimation {
89+ target: root
90+ property: "rotation"
91+ from: wiggleAnim.angle
92+ to: -wiggleAnim.angle
93+ duration: wiggleAnim.duration
94+ easing.type: Easing.InOutQuad
95+ }
96+
97+ NumberAnimation {
98+ target: root
99+ property: "rotation"
100+ from: -wiggleAnim.angle
101+ to: 0
102+ duration: wiggleAnim.duration
103+ easing.type: Easing.OutQuad
104+ }
105+
106+ PauseAnimation {}
107+ }
108+
43 Item {
109 Item {
44 id: iconItem
110 id: iconItem
45 width: parent.itemWidth + units.gu(1)
111 width: parent.itemWidth + units.gu(1)