on xenial help sign in
decrease opacity, move it to overlay rectangle
commit7da96866d1d4a5eb88eb639b5743275e0535ed5c authorMichael Zanetti <michael.zanetti@canonical.com> dateWed 26 Nov 2014, 13:11 (12 years ago) parent07e4d0d
1 file changed+8−3
qml/Stages/TransformedSpreadDelegate.qml+8−3
qml/Stages/TransformedSpreadDelegate.qml+8−3
@@ -257,10 +257,10 @@ SpreadDelegate {
257257 if (index == 0) {
258258 switch (spreadView.phase) {
259259 case 0:
260− return linearAnimation(0, spreadView.positionMarker2, 1, .3, root.animatedProgress);
260+ return linearAnimation(0, spreadView.positionMarker2, 1, .7, root.animatedProgress);
261261 case 1:
262262 return linearAnimation(spreadView.positionMarker2, spreadView.positionMarker4,
263− .3, 1, root.animatedProgress);
263+ .7, 1, root.animatedProgress);
264264 }
265265 }
266266
@@ -315,7 +315,12 @@ SpreadDelegate {
315315 x: priv.xTranslate
316316 }
317317 ]
318− opacity: priv.opacity
318+
319+ Rectangle {
320+ anchors.fill: parent
321+ color: "black"
322+ opacity: 1 - priv.opacity
323+ }
319324
320325 EasingCurve {
321326 id: easingCurve