aboutsummaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
authorrating89us <45968869+rating89us@users.noreply.github.com>2022-09-25 11:12:38 +0200
committermalinero <malinero@protonmail.com>2022-09-26 10:18:46 +0200
commitb801ef594b65053c473ba778552c2db4d020dd82 (patch)
tree9414ac99b263ff5611217041451fd5d92567334e /pages
parent57fefba3864502a48095df4b34fc38df06fcca4d (diff)
downloadmonzero-gui-b801ef594b65053c473ba778552c2db4d020dd82.tar.gz
monzero-gui-b801ef594b65053c473ba778552c2db4d020dd82.tar.xz
monzero-gui-b801ef594b65053c473ba778552c2db4d020dd82.zip
Use different colors for different subaccounts
Diffstat (limited to 'pages')
-rw-r--r--pages/Account.qml2
-rw-r--r--pages/Receive.qml3
2 files changed, 3 insertions, 2 deletions
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
}