aboutsummaryrefslogtreecommitdiff
path: root/pages/settings
diff options
context:
space:
mode:
authorrating89us <45968869+rating89us@users.noreply.github.com>2021-12-07 23:49:35 +0100
committerrating89us <45968869+rating89us@users.noreply.github.com>2021-12-08 13:00:10 +0100
commit70e3c2d3ad20b149da641694359101408ba3204e (patch)
tree70fbdfe808ca7007124dbfe18e1ff5a1621f24bc /pages/settings
parentbddb9b0050ee086da5c7ee7fdb3627e0dff9f179 (diff)
downloadmonzero-gui-70e3c2d3ad20b149da641694359101408ba3204e.tar.gz
monzero-gui-70e3c2d3ad20b149da641694359101408ba3204e.tar.xz
monzero-gui-70e3c2d3ad20b149da641694359101408ba3204e.zip
Settings, Advanced: mirror stack transition when clicking on a button on the left
Diffstat (limited to 'pages/settings')
-rw-r--r--pages/settings/Settings.qml5
1 files changed, 3 insertions, 2 deletions
diff --git a/pages/settings/Settings.qml b/pages/settings/Settings.qml
index 703ea346..fdf03ce6 100644
--- a/pages/settings/Settings.qml
+++ b/pages/settings/Settings.qml
@@ -49,6 +49,7 @@ ColumnLayout {
property alias settingsStateViewState: settingsStateView.state
MoneroComponents.Navbar {
+ id: navbarId
Layout.alignment: Qt.AlignHCenter
Layout.topMargin: height
Layout.bottomMargin: height
@@ -145,7 +146,7 @@ ColumnLayout {
PropertyAnimation {
target: enterItem
property: "x"
- from: 0 - target.width
+ from: (navbarId.currentIndex < navbarId.previousIndex ? 1 : -1) * - target.width
to: 0
duration: 300
easing.type: Easing.OutCubic
@@ -154,7 +155,7 @@ ColumnLayout {
target: exitItem
property: "x"
from: 0
- to: target.width
+ to: (navbarId.currentIndex < navbarId.previousIndex ? 1 : -1) * target.width
duration: 300
easing.type: Easing.OutCubic
}