on xenial help sign in
fade out tile info when stacked
e57efdaMichael Zanetti
qml/Stages/DesktopStage.qml+2−2
@@ -162,7 +162,6 @@ FocusScope {
162 angle: spreadMaths.animatedAngle
162 angle: spreadMaths.animatedAngle
163 itemScale: spreadMaths.scale
163 itemScale: spreadMaths.scale
164 itemScaleOriginY: appDelegate.height;
164 itemScaleOriginY: appDelegate.height;
165− color: "green"
166 z: index
165 z: index
167 }
166 }
168 PropertyChanges {
167 PropertyChanges {
@@ -175,7 +174,8 @@ FocusScope {
175 }
174 }
176 PropertyChanges {
175 PropertyChanges {
177 target: tileInfo
176 target: tileInfo
178− visible: spreadMaths.desktopTitleInfoShown(index, spreadFlickable.contentX)
177+ visible: true
178+ opacity: spreadMaths.tileInfoOpacity
179 }
179 }
180 }
180 }
181 ]
181 ]
qml/Stages/SpreadMaths.qml+5−3
@@ -95,9 +95,11 @@ Item {
95 ) / itemHeight
95 ) / itemHeight
96
96
97
97
98− function desktopTitleInfoShown(index, flickableX) {
98+ readonly property real tileInfoOpacity: leftFoldingAreaProgress > 0 ?
99− return true;
99+ linearAnimation(0, 0.5, 1, 0, leftFoldingAreaProgress)
100− }
100+ : rightFoldingAreaProgress > 0 ?
101+ linearAnimation(0 ,0.5, 1, 0, rightFoldingAreaProgress)
102+ : 1
101
103
102 // Helpers
104 // Helpers
103 function linearAnimation(startProgress, endProgress, startValue, endValue, progress) {
105 function linearAnimation(startProgress, endProgress, startValue, endValue, progress) {