diff options
| author | Monzero Build System <builds@monzero.org> | 2026-08-15 21:26:40 +0100 |
|---|---|---|
| committer | Monzero Build System <builds@monzero.org> | 2026-08-15 21:26:40 +0100 |
| commit | dceeb88444ce966caa1a133d2926d5f7213c87ff (patch) | |
| tree | d74c9c7d7e43c2a0d39d656c690c63050cff7f53 /components/TxConfirmationDialog.qml | |
| parent | 81f33c7e00bf183823909a02e6d96ce11e41adce (diff) | |
| download | monzero-gui-dceeb88444ce966caa1a133d2926d5f7213c87ff.tar.gz monzero-gui-dceeb88444ce966caa1a133d2926d5f7213c87ff.tar.xz monzero-gui-dceeb88444ce966caa1a133d2926d5f7213c87ff.zip | |
Establish Monzero GUI Phase 0 baselinemonzero-gui-phase0-20260815
Diffstat (limited to 'components/TxConfirmationDialog.qml')
| -rw-r--r-- | components/TxConfirmationDialog.qml | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/components/TxConfirmationDialog.qml b/components/TxConfirmationDialog.qml index 51da022f..86e1558b 100644 --- a/components/TxConfirmationDialog.qml +++ b/components/TxConfirmationDialog.qml @@ -1,4 +1,4 @@ -// Copyright (c) 2014-2024, The Monero Project +// Copyright (c) 2014-2024, The Monzero Project // // All rights reserved. // @@ -31,7 +31,7 @@ import QtQuick.Controls 1.4 as QtQuickControls1 import QtQuick.Controls 2.2 import QtQuick.Layouts 1.1 -import "../components" as MoneroComponents +import "../components" as MonzeroComponents import "../js/Utils.js" as Utils import FontAwesome 1.0 @@ -45,10 +45,10 @@ Rectangle { // TODO: implement without hardcoding sizes width: 590 height: layout.height + layout.anchors.margins * 2 - color: MoneroComponents.Style.blackTheme ? "black" : "white" + color: MonzeroComponents.Style.blackTheme ? "black" : "white" visible: false radius: 10 - border.color: MoneroComponents.Style.blackTheme ? Qt.rgba(255, 255, 255, 0.25) : Qt.rgba(0, 0, 0, 0.25) + border.color: MonzeroComponents.Style.blackTheme ? Qt.rgba(255, 255, 255, 0.25) : Qt.rgba(0, 0, 0, 0.25) border.width: 1 Keys.enabled: true Keys.onEscapePressed: { @@ -140,8 +140,8 @@ Rectangle { root.sweepUnmixable = false; } - function showFiatConversion(valueXMR) { - const fiatFee = fiatApiConvertToFiat(valueXMR); + function showFiatConversion(valueXMZ) { + const fiatFee = fiatApiConvertToFiat(valueXMZ); return "%1 %2".arg(fiatFee < 0.01 ? "<0.01" : "~" + fiatFee).arg(fiatApiCurrencySymbol()); } @@ -157,7 +157,7 @@ Rectangle { Layout.topMargin: 10 Layout.fillWidth: true - MoneroComponents.Label { + MonzeroComponents.Label { id: dialogTitle Layout.fillWidth: true fontSize: 18 @@ -179,7 +179,7 @@ Rectangle { id: errorText Layout.fillWidth: true Layout.fillHeight: true - color: MoneroComponents.Style.defaultFontColor + color: MonzeroComponents.Style.defaultFontColor wrapMode: Text.Wrap font.pixelSize: 15 } @@ -201,12 +201,12 @@ Rectangle { Layout.fillWidth: true horizontalAlignment: Text.AlignHCenter font.pixelSize: root.transactionAmount == "(all)" && currentWallet.isHwBacked() === true ? 32 : 42 - color: MoneroComponents.Style.defaultFontColor + color: MonzeroComponents.Style.defaultFontColor text: { if (root.transactionAmount == "(all)" && currentWallet.isHwBacked() === true) { return qsTr("All unlocked balance") + translationManager.emptyString; } else { - return root.transactionAmount + " XMR " + translationManager.emptyString; + return root.transactionAmount + " XMZ " + translationManager.emptyString; } } } @@ -216,7 +216,7 @@ Rectangle { Layout.fillWidth: true horizontalAlignment: Text.AlignHCenter font.pixelSize: 20 - color: MoneroComponents.Style.buttonSecondaryTextColor + color: MonzeroComponents.Style.buttonSecondaryTextColor text: showFiatConversion(transactionAmount) + translationManager.emptyString } } @@ -229,7 +229,7 @@ Rectangle { rowSpacing: 16 Text { - color: MoneroComponents.Style.dimmedFontColor + color: MonzeroComponents.Style.dimmedFontColor text: qsTr("From") + ":" + translationManager.emptyString font.pixelSize: 15 } @@ -241,7 +241,7 @@ Rectangle { Text { Layout.fillWidth: true font.pixelSize: 15 - color: MoneroComponents.Style.defaultFontColor + color: MonzeroComponents.Style.defaultFontColor textFormat: Text.RichText text: { if (currentWallet) { @@ -271,7 +271,7 @@ Rectangle { Text { font.pixelSize: 15 - color: MoneroComponents.Style.dimmedFontColor + color: MonzeroComponents.Style.dimmedFontColor text: qsTr("To") + ":" + translationManager.emptyString } @@ -287,8 +287,8 @@ Rectangle { TextArea.flickable: TextArea { id : recipientsArea - color: MoneroComponents.Style.defaultFontColor - font.family: MoneroComponents.Style.fontMonoRegular.name + color: MonzeroComponents.Style.defaultFontColor + font.family: MonzeroComponents.Style.fontMonoRegular.name font.pixelSize: 14 topPadding: 0 bottomPadding: 0 @@ -297,7 +297,7 @@ Rectangle { readOnly: true selectByKeyboard: true selectByMouse: true - selectionColor: MoneroComponents.Style.textSelectionColor + selectionColor: MonzeroComponents.Style.textSelectionColor textFormat: TextEdit.RichText wrapMode: TextEdit.Wrap text: { @@ -310,10 +310,10 @@ Rectangle { if (addressBookName) { title = FontAwesome.addressBook + " " + Utils.htmlEscape(addressBookName); } else { - title = qsTr("Monero address") + translationManager.emptyString; + title = qsTr("Monzero address") + translationManager.emptyString; } if (recipients.length > 1) { - title = "%1. %2 - %3 XMR".arg(index + 1).arg(title).arg(recipient.amount); + title = "%1. %2 - %3 XMZ".arg(index + 1).arg(title).arg(recipient.amount); if (persistentSettings.fiatPriceEnabled) { title += " (%1)".arg(showFiatConversion(recipient.amount)); } @@ -330,7 +330,7 @@ Rectangle { } Text { - color: MoneroComponents.Style.dimmedFontColor + color: MonzeroComponents.Style.dimmedFontColor text: qsTr("Fee") + ":" + translationManager.emptyString font.pixelSize: 15 } @@ -341,7 +341,7 @@ Rectangle { Text { property bool maliciousTxFee: parseFloat(root.transactionFee) > 0.01 - color: maliciousTxFee ? "red" : MoneroComponents.Style.defaultFontColor + color: maliciousTxFee ? "red" : MonzeroComponents.Style.defaultFontColor font.pixelSize: maliciousTxFee ? 20 : 15 text: { if (currentWallet) { @@ -352,7 +352,7 @@ Rectangle { return qsTr("Calculating fee") + "..." + translationManager.emptyString; } } else { - return root.transactionFee + " XMR" + (maliciousTxFee ? " (HIGH FEE)" : "") + return root.transactionFee + " XMZ" + (maliciousTxFee ? " (HIGH FEE)" : "") } } else { return ""; @@ -363,7 +363,7 @@ Rectangle { Text { Layout.fillWidth: true Layout.leftMargin: 8 - color: MoneroComponents.Style.buttonSecondaryTextColor + color: MonzeroComponents.Style.buttonSecondaryTextColor visible: persistentSettings.fiatPriceEnabled && root.transactionFee font.pixelSize: 15 text: showFiatConversion(root.transactionFee) @@ -389,7 +389,7 @@ Rectangle { Text { id: bottomText - color: MoneroComponents.Style.defaultFontColor + color: MonzeroComponents.Style.defaultFontColor text: "" horizontalAlignment: Text.AlignHCenter wrapMode: Text.Wrap @@ -413,7 +413,7 @@ Rectangle { Layout.fillWidth: true Layout.preferredHeight: 50 - MoneroComponents.StandardButton { + MonzeroComponents.StandardButton { id: backButton text: qsTr("Back") + translationManager.emptyString; width: 200 @@ -426,7 +426,7 @@ Rectangle { } } - MoneroComponents.StandardButton { + MonzeroComponents.StandardButton { id: confirmButton text: qsTr("Confirm") + translationManager.emptyString; rightIcon: "qrc:///images/rightArrow.png" |
