@@ -113,15 +113,15 @@ Item {
113
113
PropertyChanges { target: root; height: 0 ; visible: false ; }
114
114
},
115
115
State {
116
- name: " "
117
- when: ! (privateVisibility == ToolBarVisibility .Visible || tools = = null )
116
+ name: " visible "
117
+ when: (privateVisibility == ToolBarVisibility .Visible && tools ! = null )
118
118
PropertyChanges { target: root; height: bgImage .height ; visible: true ; }
119
119
}
120
120
]
121
121
122
122
// Transition between active and inactive states.
123
123
transitions: Transition {
124
- from: " " ; to: " hidden" ; reversible: true ;
124
+ from: " visible " ; to: " hidden" ; reversible: true ;
125
125
SequentialAnimation {
126
126
PropertyAnimation {
127
127
properties: " height" ;
@@ -182,7 +182,7 @@ Item {
182
182
183
183
// select container states based on the transition animation
184
184
var transitions = {
185
- " set" : { " new" : " " , " old" : " hidden" },
185
+ " set" : { " new" : " default " , " old" : " hidden" },
186
186
" push" : { " new" : " right" , " old" : " left" },
187
187
" pop" : { " new" : " left" , " old" : " right" },
188
188
" replace" : { " new" : " front" , " old" : " back" }
@@ -203,7 +203,7 @@ Item {
203
203
__currentContainer .state = animation[" old" ];
204
204
if (tools) {
205
205
container .state = animation[" new" ];
206
- container .state = " " ;
206
+ container .state = " default " ;
207
207
}
208
208
209
209
__currentContainer = container;
@@ -261,6 +261,11 @@ Item {
261
261
PropertyChanges { target: container; visible: true }
262
262
PropertyChanges { target: container; scale: 0.85 ; opacity: 0.0 }
263
263
},
264
+ State {
265
+ name: " default"
266
+ PropertyChanges { target: container; visible: true }
267
+ PropertyChanges { target: container; scale: 1.0 ; opacity: 1.0 ; x: 0.0 }
268
+ },
264
269
// Inactive state.
265
270
State {
266
271
name: " hidden"
@@ -272,7 +277,7 @@ Item {
272
277
transitions: [
273
278
// Pop entry and push exit transition.
274
279
Transition {
275
- from: " " ; to: " left" ; reversible: true
280
+ from: " default " ; to: " left" ; reversible: true
276
281
SequentialAnimation {
277
282
PropertyAnimation { properties: " x,opacity" ; easing .type : Easing .InCubic ; duration: platformStyle .contentTransitionDuration / 2 }
278
283
PauseAnimation { duration: platformStyle .contentTransitionDuration / 2 }
@@ -281,7 +286,7 @@ Item {
281
286
},
282
287
// Push entry and pop exit transition.
283
288
Transition {
284
- from: " " ; to: " right" ; reversible: true
289
+ from: " default " ; to: " right" ; reversible: true
285
290
SequentialAnimation {
286
291
PropertyAnimation { properties: " x,opacity" ; easing .type : Easing .InCubic ; duration: platformStyle .contentTransitionDuration / 2 }
287
292
PauseAnimation { duration: platformStyle .contentTransitionDuration / 2 }
@@ -290,14 +295,14 @@ Item {
290
295
},
291
296
Transition {
292
297
// Replace entry transition.
293
- from: " front" ; to: " " ;
298
+ from: " front" ; to: " default " ;
294
299
SequentialAnimation {
295
300
PropertyAnimation { properties: " scale,opacity" ; easing .type : Easing .InOutExpo ; duration: platformStyle .contentTransitionDuration }
296
301
}
297
302
},
298
303
Transition {
299
304
// Replace exit transition.
300
- from: " " ; to: " back" ;
305
+ from: " default " ; to: " back" ;
301
306
SequentialAnimation {
302
307
PropertyAnimation { properties: " scale,opacity" ; easing .type : Easing .InOutExpo ; duration: platformStyle .contentTransitionDuration }
303
308
ScriptAction { script: if (state == " back" ) state = " hidden" }
0 commit comments