From b1b91fb3ebd2db82d4accfedbac08db4bcd2651e Mon Sep 17 00:00:00 2001 From: Mikel Johnson Date: Sun, 13 Dec 2020 14:03:46 +0300 Subject: [PATCH] [TabGroup] Reverse animations in RTL mode --- .../plasmacomponents/qml/TabGroup.qml | 23 +++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/src/declarativeimports/plasmacomponents/qml/TabGroup.qml b/src/declarativeimports/plasmacomponents/qml/TabGroup.qml index acfed38da..d2c93199a 100644 --- a/src/declarativeimports/plasmacomponents/qml/TabGroup.qml +++ b/src/declarativeimports/plasmacomponents/qml/TabGroup.qml @@ -158,7 +158,7 @@ FocusScope { PropertyChanges { target: tabContainerItem opacity: 0.0 - x: -root.width + x: LayoutMirroring.enabled ? root.width : -root.width } }, State { @@ -166,12 +166,27 @@ FocusScope { PropertyChanges { target: tabContainerItem 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 { name: "HiddenRight"; PropertyChanges { target: tabContainerItem; opacity: 0.0; x: -root.width } } + State { + 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: [