From b801ef594b65053c473ba778552c2db4d020dd82 Mon Sep 17 00:00:00 2001 From: rating89us <45968869+rating89us@users.noreply.github.com> Date: Sun, 25 Sep 2022 11:12:38 +0200 Subject: Use different colors for different subaccounts --- pages/Account.qml | 2 +- pages/Receive.qml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'pages') diff --git a/pages/Account.qml b/pages/Account.qml index b1410570..70c10c88 100644 --- a/pages/Account.qml +++ b/pages/Account.qml @@ -238,7 +238,7 @@ Rectangle { Layout.fillHeight: true anchors.top: parent.top anchors.bottom: parent.bottom - color: "darkgrey" + color: MoneroComponents.Style.accountColors[currentAccountIndex % MoneroComponents.Style.accountColors.length] width: 2 } diff --git a/pages/Receive.qml b/pages/Receive.qml index 8c3df3bf..fe655419 100644 --- a/pages/Receive.qml +++ b/pages/Receive.qml @@ -580,7 +580,8 @@ Rectangle { Layout.fillHeight: true anchors.top: parent.top anchors.bottom: parent.bottom - color: "darkgrey" + property int currentAccountIndex: currentWallet ? currentWallet.currentSubaddressAccount : 0 + color: MoneroComponents.Style.accountColors[currentAccountIndex % MoneroComponents.Style.accountColors.length] width: 2 } -- cgit v1.2.3