[TabGroup] Reverse animations in RTL mode
This commit is contained in:
parent
c920ea86a1
commit
b1b91fb3eb
@ -158,7 +158,7 @@ FocusScope {
|
|||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
target: tabContainerItem
|
target: tabContainerItem
|
||||||
opacity: 0.0
|
opacity: 0.0
|
||||||
x: -root.width
|
x: LayoutMirroring.enabled ? root.width : -root.width
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
State {
|
State {
|
||||||
@ -166,12 +166,27 @@ FocusScope {
|
|||||||
PropertyChanges {
|
PropertyChanges {
|
||||||
target: tabContainerItem
|
target: tabContainerItem
|
||||||
opacity: 0.0
|
opacity: 0.0
|
||||||
x: root.width
|
x: LayoutMirroring.enabled ? -root.width : root.width
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
State { name: "HiddenLeft"; PropertyChanges { target: tabContainerItem; opacity: 0.0; x: root.width } },
|
State {
|
||||||
State { name: "HiddenRight"; PropertyChanges { target: tabContainerItem; opacity: 0.0; x: -root.width } }
|
name: "HiddenLeft"
|
||||||
|
PropertyChanges {
|
||||||
|
target: tabContainerItem
|
||||||
|
opacity: 0.0
|
||||||
|
x: LayoutMirroring.enabled ? -root.width : root.width
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
State {
|
||||||
|
name: "HiddenRight"
|
||||||
|
PropertyChanges {
|
||||||
|
target: tabContainerItem
|
||||||
|
opacity: 0.0
|
||||||
|
x: LayoutMirroring.enabled ? root.width : -root.width
|
||||||
|
}
|
||||||
|
}
|
||||||
]
|
]
|
||||||
|
|
||||||
transitions: [
|
transitions: [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user