diff options
Diffstat (limited to 'pages/Account.qml')
| -rw-r--r-- | pages/Account.qml | 106 |
1 files changed, 53 insertions, 53 deletions
diff --git a/pages/Account.qml b/pages/Account.qml index 9bf0fe9c..4fbd6a88 100644 --- a/pages/Account.qml +++ b/pages/Account.qml @@ -1,4 +1,4 @@ -// Copyright (c) 2014-2024, The Monero Project +// Copyright (c) 2014-2024, The Monzero Project // // All rights reserved. // @@ -33,8 +33,8 @@ import QtQuick.Layouts 1.1 import QtQuick.Dialogs 1.2 import FontAwesome 1.0 -import "../components" as MoneroComponents -import "../components/effects/" as MoneroEffects +import "../components" as MonzeroComponents +import "../components/effects/" as MonzeroEffects import moneroComponents.Clipboard 1.0 import moneroComponents.Wallet 1.0 @@ -82,7 +82,7 @@ Rectangle { visible: !selectAndSend spacing: 0 - MoneroComponents.LabelSubheader { + MonzeroComponents.LabelSubheader { Layout.fillWidth: true fontSize: 24 textFormat: Text.RichText @@ -92,28 +92,28 @@ Rectangle { RowLayout { Layout.topMargin: 22 - MoneroComponents.TextPlain { + MonzeroComponents.TextPlain { text: qsTr("Total balance: ") + translationManager.emptyString Layout.fillWidth: true - color: MoneroComponents.Style.defaultFontColor + color: MonzeroComponents.Style.defaultFontColor font.pixelSize: 16 - font.family: MoneroComponents.Style.fontRegular.name + font.family: MonzeroComponents.Style.fontRegular.name themeTransition: false } - MoneroComponents.TextPlain { + MonzeroComponents.TextPlain { id: balanceAll Layout.rightMargin: 87 - font.family: MoneroComponents.Style.fontMonoRegular.name; + font.family: MonzeroComponents.Style.fontMonoRegular.name; font.pixelSize: 16 - color: MoneroComponents.Style.defaultFontColor + color: MonzeroComponents.Style.defaultFontColor MouseArea { hoverEnabled: true anchors.fill: parent cursorShape: Qt.PointingHandCursor - onEntered: parent.color = MoneroComponents.Style.orange - onExited: parent.color = MoneroComponents.Style.defaultFontColor + onEntered: parent.color = MonzeroComponents.Style.orange + onExited: parent.color = MonzeroComponents.Style.defaultFontColor onClicked: { console.log("Copied to clipboard"); var balanceAllNumberOnly = parent.text.slice(0, -4); @@ -127,28 +127,28 @@ Rectangle { RowLayout { Layout.topMargin: 10 - MoneroComponents.TextPlain { + MonzeroComponents.TextPlain { text: qsTr("Total unlocked balance: ") + translationManager.emptyString Layout.fillWidth: true - color: MoneroComponents.Style.defaultFontColor + color: MonzeroComponents.Style.defaultFontColor font.pixelSize: 16 - font.family: MoneroComponents.Style.fontRegular.name + font.family: MonzeroComponents.Style.fontRegular.name themeTransition: false } - MoneroComponents.TextPlain { + MonzeroComponents.TextPlain { id: unlockedBalanceAll Layout.rightMargin: 87 - font.family: MoneroComponents.Style.fontMonoRegular.name; + font.family: MonzeroComponents.Style.fontMonoRegular.name; font.pixelSize: 16 - color: MoneroComponents.Style.defaultFontColor + color: MonzeroComponents.Style.defaultFontColor MouseArea { hoverEnabled: true anchors.fill: parent cursorShape: Qt.PointingHandCursor - onEntered: parent.color = MoneroComponents.Style.orange - onExited: parent.color = MoneroComponents.Style.defaultFontColor + onEntered: parent.color = MonzeroComponents.Style.orange + onExited: parent.color = MonzeroComponents.Style.defaultFontColor onClicked: { console.log("Copied to clipboard"); var unlockedBalanceAllNumberOnly = parent.text.slice(0, -4); @@ -167,14 +167,14 @@ Rectangle { RowLayout { spacing: 0 - MoneroComponents.LabelSubheader { + MonzeroComponents.LabelSubheader { Layout.fillWidth: true fontSize: 24 textFormat: Text.RichText text: qsTr("Accounts") + translationManager.emptyString } - MoneroComponents.StandardButton { + MonzeroComponents.StandardButton { id: createNewAccountButton visible: !selectAndSend small: true @@ -197,12 +197,12 @@ Rectangle { anchors.left: createNewAccountButton.left anchors.right: createNewAccountButton.right height: 2 - color: MoneroComponents.Style.appWindowBorderColor + color: MonzeroComponents.Style.appWindowBorderColor - MoneroEffects.ColorTransition { + MonzeroEffects.ColorTransition { targetObj: parent - blackColor: MoneroComponents.Style._b_appWindowBorderColor - whiteColor: MoneroComponents.Style._w_appWindowBorderColor + blackColor: MonzeroComponents.Style._b_appWindowBorderColor + whiteColor: MonzeroComponents.Style._w_appWindowBorderColor } } } @@ -231,29 +231,29 @@ Rectangle { height: subaddressAccountListRow.subaddressAccountListItemHeight width: parent ? parent.width : undefined Layout.fillWidth: true - color: itemMouseArea.containsMouse || index === currentAccountIndex ? MoneroComponents.Style.titleBarButtonHoverColor : "transparent" + color: itemMouseArea.containsMouse || index === currentAccountIndex ? MonzeroComponents.Style.titleBarButtonHoverColor : "transparent" Rectangle { visible: index === currentAccountIndex Layout.fillHeight: true anchors.top: parent.top anchors.bottom: parent.bottom - color: MoneroComponents.Style.accountColors[currentAccountIndex % MoneroComponents.Style.accountColors.length] + color: MonzeroComponents.Style.accountColors[currentAccountIndex % MonzeroComponents.Style.accountColors.length] width: 2 } Rectangle { - color: MoneroComponents.Style.appWindowBorderColor + color: MonzeroComponents.Style.appWindowBorderColor anchors.right: parent.right anchors.left: parent.left anchors.top: parent.top height: 1 visible: index !== 0 - MoneroEffects.ColorTransition { + MonzeroEffects.ColorTransition { targetObj: parent - blackColor: MoneroComponents.Style._b_appWindowBorderColor - whiteColor: MoneroComponents.Style._w_appWindowBorderColor + blackColor: MonzeroComponents.Style._b_appWindowBorderColor + whiteColor: MonzeroComponents.Style._w_appWindowBorderColor } } @@ -263,9 +263,9 @@ Rectangle { anchors.rightMargin: 80 color: "transparent" - MoneroComponents.Label { + MonzeroComponents.Label { id: idLabel - color: index === currentAccountIndex ? MoneroComponents.Style.defaultFontColor : "#757575" + color: index === currentAccountIndex ? MonzeroComponents.Style.defaultFontColor : "#757575" anchors.verticalCenter: parent.verticalCenter anchors.left: parent.left anchors.leftMargin: 6 @@ -274,9 +274,9 @@ Rectangle { themeTransition: false } - MoneroComponents.Label { + MonzeroComponents.Label { id: nameLabel - color: index === currentAccountIndex ? MoneroComponents.Style.defaultFontColor : MoneroComponents.Style.dimmedFontColor + color: index === currentAccountIndex ? MonzeroComponents.Style.defaultFontColor : MonzeroComponents.Style.dimmedFontColor anchors.verticalCenter: parent.verticalCenter anchors.left: idLabel.right anchors.leftMargin: 6 @@ -287,27 +287,27 @@ Rectangle { themeTransition: false } - MoneroComponents.Label { + MonzeroComponents.Label { id: addressLabel - color: MoneroComponents.Style.defaultFontColor + color: MonzeroComponents.Style.defaultFontColor anchors.verticalCenter: parent.verticalCenter anchors.left: balanceNumberLabel.left anchors.leftMargin: -addressLabel.width - 30 fontSize: 16 - fontFamily: MoneroComponents.Style.fontMonoRegular.name; + fontFamily: MonzeroComponents.Style.fontMonoRegular.name; text: TxUtils.addressTruncatePretty(address, mainLayout.width < 740 ? 1 : (mainLayout.width < 900 ? 2 : 3)) themeTransition: false } - MoneroComponents.Label { + MonzeroComponents.Label { id: balanceNumberLabel - color: MoneroComponents.Style.defaultFontColor + color: MonzeroComponents.Style.defaultFontColor anchors.verticalCenter: parent.verticalCenter anchors.left: parent.right anchors.leftMargin: -balanceNumberLabel.width fontSize: 16 - fontFamily: MoneroComponents.Style.fontMonoRegular.name; - text: balance + " XMR" + fontFamily: MonzeroComponents.Style.fontMonoRegular.name; + text: balance + " XMZ" elide: Text.ElideRight textWidth: 180 themeTransition: false @@ -333,12 +333,12 @@ Rectangle { height: 21 spacing: 10 - MoneroComponents.IconButton { + MonzeroComponents.IconButton { id: renameButton image: "qrc:///images/edit.svg" fontAwesomeFallbackIcon: FontAwesome.edit fontAwesomeFallbackSize: 22 - color: MoneroComponents.Style.defaultFontColor + color: MonzeroComponents.Style.defaultFontColor opacity: isOpenGL ? 0.5 : 1 fontAwesomeFallbackOpacity: 0.5 Layout.preferredWidth: 23 @@ -348,12 +348,12 @@ Rectangle { onClicked: pageAccount.renameSubaddressAccountLabel(index); } - MoneroComponents.IconButton { + MonzeroComponents.IconButton { id: copyButton image: "qrc:///images/copy.svg" fontAwesomeFallbackIcon: FontAwesome.clipboard fontAwesomeFallbackSize: 22 - color: MoneroComponents.Style.defaultFontColor + color: MonzeroComponents.Style.defaultFontColor opacity: isOpenGL ? 0.5 : 1 fontAwesomeFallbackOpacity: 0.5 Layout.preferredWidth: 16 @@ -376,14 +376,14 @@ Rectangle { } Rectangle { - color: MoneroComponents.Style.appWindowBorderColor + color: MonzeroComponents.Style.appWindowBorderColor Layout.fillWidth: true height: 1 - MoneroEffects.ColorTransition { + MonzeroEffects.ColorTransition { targetObj: parent - blackColor: MoneroComponents.Style._b_appWindowBorderColor - whiteColor: MoneroComponents.Style._w_appWindowBorderColor + blackColor: MonzeroComponents.Style._b_appWindowBorderColor + whiteColor: MonzeroComponents.Style._w_appWindowBorderColor } } } @@ -396,8 +396,8 @@ Rectangle { subaddressAccountListView.model = appWindow.currentWallet.subaddressAccountModel; appWindow.currentWallet.subaddress.refresh(appWindow.currentWallet.currentSubaddressAccount) - balanceAll.text = walletManager.displayAmount(appWindow.currentWallet.balanceAll()) + " XMR" - unlockedBalanceAll.text = walletManager.displayAmount(appWindow.currentWallet.unlockedBalanceAll()) + " XMR" + balanceAll.text = walletManager.displayAmount(appWindow.currentWallet.balanceAll()) + " XMZ" + unlockedBalanceAll.text = walletManager.displayAmount(appWindow.currentWallet.unlockedBalanceAll()) + " XMZ" } } |
