on xenial help sign in
decrease opacity, move it to overlay rectangle
7da9686Michael Zanetti
qml/Stages/TransformedSpreadDelegate.qml+8−3
@@ -257,10 +257,10 @@ SpreadDelegate {
257 if (index == 0) {
257 if (index == 0) {
258 switch (spreadView.phase) {
258 switch (spreadView.phase) {
259 case 0:
259 case 0:
260− return linearAnimation(0, spreadView.positionMarker2, 1, .3, root.animatedProgress);
260+ return linearAnimation(0, spreadView.positionMarker2, 1, .7, root.animatedProgress);
261 case 1:
261 case 1:
262 return linearAnimation(spreadView.positionMarker2, spreadView.positionMarker4,
262 return linearAnimation(spreadView.positionMarker2, spreadView.positionMarker4,
263− .3, 1, root.animatedProgress);
263+ .7, 1, root.animatedProgress);
264 }
264 }
265 }
265 }
266
266
@@ -315,7 +315,12 @@ SpreadDelegate {
315 x: priv.xTranslate
315 x: priv.xTranslate
316 }
316 }
317 ]
317 ]
318+
319+ Rectangle {
320+ anchors.fill: parent
321+ color: "black"
318− opacity: priv.opacity
322+ opacity: 1 - priv.opacity
323+ }
319
324
320 EasingCurve {
325 EasingCurve {
321 id: easingCurve
326 id: easingCurve