diff options
| author | rating89us <45968869+rating89us@users.noreply.github.com> | 2022-09-25 11:12:38 +0200 |
|---|---|---|
| committer | malinero <malinero@protonmail.com> | 2022-09-26 10:18:46 +0200 |
| commit | b801ef594b65053c473ba778552c2db4d020dd82 (patch) | |
| tree | 9414ac99b263ff5611217041451fd5d92567334e /components | |
| parent | 57fefba3864502a48095df4b34fc38df06fcca4d (diff) | |
| download | monzero-gui-b801ef594b65053c473ba778552c2db4d020dd82.tar.gz monzero-gui-b801ef594b65053c473ba778552c2db4d020dd82.tar.xz monzero-gui-b801ef594b65053c473ba778552c2db4d020dd82.zip | |
Use different colors for different subaccounts
Diffstat (limited to 'components')
| -rw-r--r-- | components/MenuButton.qml | 2 | ||||
| -rw-r--r-- | components/Style.qml | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/components/MenuButton.qml b/components/MenuButton.qml index cd57ea9e..b9916f66 100644 --- a/components/MenuButton.qml +++ b/components/MenuButton.qml @@ -92,7 +92,7 @@ Rectangle { anchors.leftMargin: 20 height: parent.height width: 2 - color: button.checked ? MoneroComponents.Style.buttonBackgroundColor : "transparent" + color: button.checked ? MoneroComponents.Style.accountColors[currentAccountIndex % MoneroComponents.Style.accountColors.length] : "transparent" // button text MoneroComponents.TextPlain { diff --git a/components/Style.qml b/components/Style.qml index da739477..5a833f84 100644 --- a/components/Style.qml +++ b/components/Style.qml @@ -81,6 +81,7 @@ QtObject { property string leftPanelBackgroundGradientStart: blackTheme ? _b_leftPanelBackgroundGradientStart : _w_leftPanelBackgroundGradientStart property string leftPanelBackgroundGradientStop: blackTheme ? _b_leftPanelBackgroundGradientStop : _w_leftPanelBackgroundGradientStop property string historyHeaderTextColor: blackTheme ? _b_historyHeaderTextColor : _w_historyHeaderTextColor + property var accountColors: blackTheme ? _b_accountColors : _w_accountColors property string _b_defaultFontColor: "white" property string _b_dimmedFontColor: "#BBBBBB" @@ -142,6 +143,7 @@ QtObject { property string _b_leftPanelBackgroundGradientStart: "#222222" property string _b_leftPanelBackgroundGradientStop: "#1a1a1a" property string _b_historyHeaderTextColor: "#C0C0C0" + property var _b_accountColors: ["#6E513C", "#842129", "#458421", "#742184", "#291DBE", "#846F21", "#217F84", "#696969"] property string _w_defaultFontColor: "black" property string _w_dimmedFontColor: "#3f3f3f" @@ -203,4 +205,5 @@ QtObject { property string _w_leftPanelBackgroundGradientStart: "white" property string _w_leftPanelBackgroundGradientStop: "#f5f5f5" property string _w_historyHeaderTextColor: "#515151" + property var _w_accountColors: ["#6E513C", "#6E513C", "#842129", "#458421", "#742184", "#291DBE", "#846F21", "#217F84", "#696969"] } |
