on xenial help sign in
fix opacity and actually make it non-live

removed some obsolete properties

commitb86f28b2fb06ab3746369e9d28695d15ad502437 authorMichael Zanetti <michael.zanetti@canonical.com> dateTue 25 Jun 2013, 14:54 (13 years ago) parent4831387
2 files changed+3−10
Launcher/LauncherDelegate.qml+3−6 Launcher/LauncherPanel.qml−4
Launcher/LauncherDelegate.qml+3−6
@@ -34,9 +34,6 @@ Item {
3434 readonly property int effectiveHeight: Math.cos(angle * Math.PI / 180) * height
3535 readonly property real foldedHeight: Math.cos(maxAngle * Math.PI / 180) * height
3636
37− property int itemsBeforeThis: 0
38− property int itemsAfterThis: 0
39−
4037 property bool dragging:false
4138
4239 readonly property ListView listView: ListView.view
@@ -103,7 +100,7 @@ Item {
103100 property variant source: ShaderEffectSource {
104101 sourceItem: iconItem
105102 hideSource: true
106− live: true
103+ live: false
107104 }
108105
109106 transform: [
@@ -157,7 +154,7 @@ Item {
157154
158155 property real totalUnfoldedHeight: listView.itemSize + listView.spacing
159156 property real totalEffectiveHeight: effectiveHeight + listView.spacing
160− property real distanceFromTopEdge: -(listView.contentY + listView.topMargin - itemsBeforeThis*totalUnfoldedHeight)
157+ property real distanceFromTopEdge: -(listView.contentY + listView.topMargin - index*totalUnfoldedHeight)
161158 property real distanceFromBottomEdge: listView.height - listView.bottomMargin - (y+height) + listView.contentY
162159
163160 property real distanceFromEdge: Math.abs(distanceFromBottomEdge) < Math.abs(distanceFromTopEdge) ? distanceFromBottomEdge : distanceFromTopEdge
@@ -224,7 +221,7 @@ Item {
224221 return 0;
225222 }
226223
227− opacity: {
224+ itemOpacity: {
228225 // First/last items are special
229226 if (index == 0 || index == listView.count-1) {
230227 if (priv.distanceFromEdge < 0) {
Launcher/LauncherPanel.qml−4
@@ -111,7 +111,6 @@ Item {
111111 highlightRangeMode: ListView.ApplyRange
112112 preferredHighlightBegin: (height - itemSize) / 2
113113 preferredHighlightEnd: (height + itemSize) / 2
114− currentIndex: 0
115114
116115 property int itemSize: width
117116
@@ -132,9 +131,6 @@ Item {
132131
133132 maxAngle: 60
134133
135− itemsBeforeThis: index
136− itemsAfterThis: launcherListView.count - (index+1)
137−
138134 onClicked: {
139135 root.applicationSelected(launcherModel.get(index).desktopFile);
140136 }