aboutsummaryrefslogtreecommitdiff
path: root/main.qml
diff options
context:
space:
mode:
authorMonzero Build System <builds@monzero.org>2026-08-15 21:26:40 +0100
committerMonzero Build System <builds@monzero.org>2026-08-15 21:26:40 +0100
commitdceeb88444ce966caa1a133d2926d5f7213c87ff (patch)
treed74c9c7d7e43c2a0d39d656c690c63050cff7f53 /main.qml
parent81f33c7e00bf183823909a02e6d96ce11e41adce (diff)
downloadmonzero-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 'main.qml')
-rw-r--r--main.qml126
1 files changed, 63 insertions, 63 deletions
diff --git a/main.qml b/main.qml
index 1db37f41..3386eb6f 100644
--- a/main.qml
+++ b/main.qml
@@ -1,4 +1,4 @@
-// Copyright (c) 2014-2024, The Monero Project
+// Copyright (c) 2014-2024, The Monzero Project
//
// All rights reserved.
//
@@ -45,9 +45,9 @@ import moneroComponents.Settings 1.0
import moneroComponents.P2PoolManager 1.0
import "components"
-import "components" as MoneroComponents
-import "components/effects" as MoneroEffects
-import "pages/merchant" as MoneroMerchant
+import "components" as MonzeroComponents
+import "components/effects" as MonzeroEffects
+import "pages/merchant" as MonzeroMerchant
import "wizard"
import "js/Utils.js" as Utils
import "js/Windows.js" as Windows
@@ -55,7 +55,7 @@ import "version.js" as Version
ApplicationWindow {
id: appWindow
- title: "Monero" +
+ title: "Monzero" +
(persistentSettings.displayWalletNameInTitleBar && walletName
? " - " + walletName
: "")
@@ -107,16 +107,16 @@ ApplicationWindow {
property var fiatPriceAPIs: {
return {
"kraken": {
- "xmrusd": "https://api.kraken.com/0/public/Ticker?pair=XMRUSD",
- "xmreur": "https://api.kraken.com/0/public/Ticker?pair=XMREUR"
+ "xmrusd": "https://api.kraken.com/0/public/Ticker?pair=XMZUSD",
+ "xmreur": "https://api.kraken.com/0/public/Ticker?pair=XMZEUR"
},
"coingecko": {
"xmrusd": "https://api.coingecko.com/api/v3/simple/price?ids=monero&vs_currencies=usd",
"xmreur": "https://api.coingecko.com/api/v3/simple/price?ids=monero&vs_currencies=eur"
},
"cryptocompare": {
- "xmrusd": "https://min-api.cryptocompare.com/data/price?fsym=XMR&tsyms=USD",
- "xmreur": "https://min-api.cryptocompare.com/data/price?fsym=XMR&tsyms=EUR",
+ "xmrusd": "https://min-api.cryptocompare.com/data/price?fsym=XMZ&tsyms=USD",
+ "xmreur": "https://min-api.cryptocompare.com/data/price?fsym=XMZ&tsyms=EUR",
}
}
}
@@ -439,8 +439,8 @@ ApplicationWindow {
leftPanel.balanceString = balance
leftPanel.balanceUnlockedString = balanceU
if (middlePanel.state === "Account") {
- middlePanel.accountView.balanceAllText = walletManager.displayAmount(appWindow.currentWallet.balanceAll()) + " XMR";
- middlePanel.accountView.unlockedBalanceAllText = walletManager.displayAmount(appWindow.currentWallet.unlockedBalanceAll()) + " XMR";
+ middlePanel.accountView.balanceAllText = walletManager.displayAmount(appWindow.currentWallet.balanceAll()) + " XMZ";
+ middlePanel.accountView.unlockedBalanceAllText = walletManager.displayAmount(appWindow.currentWallet.unlockedBalanceAll()) + " XMZ";
}
}
@@ -450,7 +450,7 @@ ApplicationWindow {
const parsed = walletManager.parse_uri_to_object(normalizedUri);
if (parsed.error) {
- console.log("Invalid Monero URI: " + parsed.error);
+ console.log("Invalid Monzero URI: " + parsed.error);
} else {
middlePanel.transferView.sendTo(
parsed.address || "",
@@ -828,7 +828,7 @@ ApplicationWindow {
// resume refresh
currentWallet.startRefresh();
informationPopup.title = qsTr("Daemon failed to start") + translationManager.emptyString;
- informationPopup.text = error + ".\n\n" + qsTr("Please check your wallet and daemon log for errors. You can also try to start %1 manually.").arg((isWindows)? "monerod.exe" : "monerod")
+ informationPopup.text = error + ".\n\n" + qsTr("Please check your wallet and daemon log for errors. You can also try to start %1 manually.").arg((isWindows)? "monzerod.exe" : "monzerod")
if (middlePanel.advancedView.miningView.stopMiningEnabled == true) {
walletManager.stopMining()
p2poolManager.exit()
@@ -1137,10 +1137,10 @@ ApplicationWindow {
informationPopup.icon = StandardIcon.Critical;
} else if (received > 0) {
if (in_pool) {
- informationPopup.text = qsTr("This address received %1 monero, but the transaction is not yet mined").arg(walletManager.displayAmount(received));
+ informationPopup.text = qsTr("This address received %1 XMZ, but the transaction is not yet mined").arg(walletManager.displayAmount(received));
}
else {
- informationPopup.text = qsTr("This address received %1 monero, with %2 confirmation(s).").arg(walletManager.displayAmount(received)).arg(confirmations);
+ informationPopup.text = qsTr("This address received %1 XMZ, with %2 confirmation(s).").arg(walletManager.displayAmount(received)).arg(confirmations);
}
}
else {
@@ -1199,7 +1199,7 @@ ApplicationWindow {
wizard.wizardState = "wizardHome";
rootItem.state = "wizard"
// reset balance, clear spendable funds message
- clearMoneroCardLabelText();
+ clearMonzeroCardLabelText();
leftPanel.minutesToUnlock = "";
// reset fields
middlePanel.addressBookView.clearFields();
@@ -1220,7 +1220,7 @@ ApplicationWindow {
height: screenAvailableHeight > maxWindowHeight
? maxWindowHeight
: Math.min(screenAvailableHeight, 700)
- color: MoneroComponents.Style.appWindowBackgroundColor
+ color: MonzeroComponents.Style.appWindowBackgroundColor
flags: persistentSettings.customDecorations ? Windows.flagsCustomDecorations : Windows.flags
Timer {
@@ -1240,7 +1240,7 @@ ApplicationWindow {
return;
}
- var key = currency === "xmreur" ? "XXMRZEUR" : "XXMRZUSD";
+ var key = currency === "xmreur" ? "XXMZZEUR" : "XXMZZUSD";
var ticker = resp.result[key]["c"][0];
return ticker;
} else if(url.startsWith("https://api.coingecko.com/api/v3/")){
@@ -1350,7 +1350,7 @@ ApplicationWindow {
return (amount * ticker).toFixed(2);
}
- function fiatApiConvertToXMR(amount) {
+ function fiatApiConvertToXMZ(amount) {
const ticker = appWindow.fiatPrice;
if(ticker <= 0){
fiatApiError("Invalid ticker value: " + ticker);
@@ -1431,7 +1431,7 @@ ApplicationWindow {
oshelper.createDesktopEntry();
} else if (isLinux) {
confirmationDialog.title = qsTr("Desktop entry") + translationManager.emptyString;
- confirmationDialog.text = qsTr("Would you like to register Monero GUI Desktop entry?") + translationManager.emptyString;
+ confirmationDialog.text = qsTr("Would you like to register Monzero GUI Desktop entry?") + translationManager.emptyString;
confirmationDialog.icon = StandardIcon.Question;
confirmationDialog.cancelText = qsTr("No") + translationManager.emptyString;
confirmationDialog.okText = qsTr("Yes") + translationManager.emptyString;
@@ -1446,11 +1446,11 @@ ApplicationWindow {
remoteNodesModel.initialize();
}
- MoneroSettings {
+ MonzeroSettings {
id: persistentSettings
fileName: {
if(isTails && tailsUsePersistence)
- return homePath + "/Persistent/Monero/monero-core.conf";
+ return homePath + "/Persistent/Monzero/monero-core.conf";
return "";
}
@@ -1508,7 +1508,7 @@ ApplicationWindow {
property bool lockOnUserInActivity: true
property int walletMode: 2
property int lockOnUserInActivityInterval: 10 // minutes
- property bool blackTheme: MoneroComponents.Style.blackTheme
+ property bool blackTheme: MonzeroComponents.Style.blackTheme
property bool checkForUpdates: true
property bool autosave: true
property int autosaveMinutes: 10
@@ -1546,7 +1546,7 @@ ApplicationWindow {
}
Component.onCompleted: {
- MoneroComponents.Style.blackTheme = persistentSettings.blackTheme
+ MonzeroComponents.Style.blackTheme = persistentSettings.blackTheme
}
}
@@ -1704,7 +1704,7 @@ ApplicationWindow {
}
}
- MoneroComponents.UpdateDialog {
+ MonzeroComponents.UpdateDialog {
id: updateDialog
allowed: !passwordDialog.visible && !inputDialog.visible && !splash.visible && !devicePassphraseDialog.visible
@@ -1712,7 +1712,7 @@ ApplicationWindow {
y: (parent.height - height) / 2
}
- MoneroComponents.RemoteNodeDialog {
+ MonzeroComponents.RemoteNodeDialog {
id: remoteNodeDialog
}
@@ -1934,7 +1934,7 @@ ApplicationWindow {
WizardController {
id: wizard
anchors.fill: parent
- onUseMoneroClicked: {
+ onUseMonzeroClicked: {
rootItem.state = "normal";
appWindow.openWallet("wizard");
}
@@ -1964,11 +1964,11 @@ ApplicationWindow {
height: 34
width: 34
- MoneroEffects.ImageMask {
+ MonzeroEffects.ImageMask {
anchors.centerIn: parent
visible: persistentSettings.customDecorations
image: "qrc:///images/resize.png"
- color: MoneroComponents.Style.defaultFontColor
+ color: MonzeroComponents.Style.defaultFontColor
width: 12
height: 12
opacity: (parent.containsMouse || parent.pressed) ? 0.5 : 1.0
@@ -2012,7 +2012,7 @@ ApplicationWindow {
onMinimizeClicked: appWindow.visibility = Window.Minimized
}
- MoneroMerchant.MerchantTitlebar {
+ MonzeroMerchant.MerchantTitlebar {
id: titleBarOrange
visible: persistentSettings.customDecorations && middlePanel.state === "Merchant"
anchors.left: parent.left
@@ -2040,7 +2040,7 @@ ApplicationWindow {
source: "qrc:///images/tip.png"
}
- MoneroComponents.TextPlain {
+ MonzeroComponents.TextPlain {
id: content
anchors.horizontalCenter: parent.horizontalCenter
y: 6
@@ -2157,14 +2157,14 @@ ApplicationWindow {
anchors.bottom: parent.bottom
width: statusMessageText.contentWidth + 20
anchors.horizontalCenter: parent.horizontalCenter
- color: MoneroComponents.Style.blackTheme ? "black" : "white"
+ color: MonzeroComponents.Style.blackTheme ? "black" : "white"
height: 40
- MoneroComponents.TextPlain {
+ MonzeroComponents.TextPlain {
id: statusMessageText
anchors.fill: parent
anchors.margins: 10
font.pixelSize: 14
- color: MoneroComponents.Style.defaultFontColor
+ color: MonzeroComponents.Style.defaultFontColor
themeTransition: false
}
}
@@ -2299,14 +2299,14 @@ ApplicationWindow {
}
// reset label text. othewise potential privacy leak showing unlock time when switching wallets
- function clearMoneroCardLabelText(){
+ function clearMonzeroCardLabelText(){
leftPanel.balanceString = "?.??"
leftPanel.balanceFiatString = "?.??"
}
// some fields need an extra nudge when changing languages
function resetLanguageFields(){
- clearMoneroCardLabelText()
+ clearMonzeroCardLabelText()
if (currentWallet) {
onWalletRefresh();
}
@@ -2361,11 +2361,11 @@ ApplicationWindow {
function getDefaultDaemonRpcPort(networkType) {
switch (parseInt(networkType)) {
case NetworkType.STAGENET:
- return 38081;
+ return 26175;
case NetworkType.TESTNET:
- return 28081;
+ return 16175;
default:
- return 18081;
+ return 6175;
}
}
@@ -2391,10 +2391,10 @@ ApplicationWindow {
visible: blur.visible
anchors.fill: parent
anchors.topMargin: titleBar.height
- color: MoneroComponents.Style.blackTheme ? "black" : "white"
+ color: MonzeroComponents.Style.blackTheme ? "black" : "white"
opacity: isOpenGL ? 0.3 : inputDialog.visible || splash.visible ? 0.7 : 1.0
- MoneroEffects.ColorTransition {
+ MonzeroEffects.ColorTransition {
targetObj: parent
blackColor: "black"
whiteColor: "white"
@@ -2408,77 +2408,77 @@ ApplicationWindow {
// borders on white theme + linux
Rectangle {
- visible: isLinux && !MoneroComponents.Style.blackTheme && middlePanel.state !== "Merchant"
+ visible: isLinux && !MonzeroComponents.Style.blackTheme && middlePanel.state !== "Merchant"
z: parent.z + 1
anchors.left: parent.left
anchors.top: parent.top
anchors.bottom: parent.bottom
width: 1
- 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
}
}
Rectangle {
- visible: isLinux && !MoneroComponents.Style.blackTheme && middlePanel.state !== "Merchant"
+ visible: isLinux && !MonzeroComponents.Style.blackTheme && middlePanel.state !== "Merchant"
z: parent.z + 1
anchors.right: parent.right
anchors.top: parent.top
anchors.bottom: parent.bottom
width: 1
- 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
}
}
Rectangle {
- visible: isLinux && !MoneroComponents.Style.blackTheme && middlePanel.state !== "Merchant"
+ visible: isLinux && !MonzeroComponents.Style.blackTheme && middlePanel.state !== "Merchant"
z: parent.z + 1
anchors.right: parent.right
anchors.top: parent.top
anchors.left: parent.left
height: 1
- 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
}
}
Rectangle {
- visible: isLinux && !MoneroComponents.Style.blackTheme && middlePanel.state !== "Merchant"
+ visible: isLinux && !MonzeroComponents.Style.blackTheme && middlePanel.state !== "Merchant"
z: parent.z + 1
anchors.right: parent.right
anchors.bottom: parent.bottom
anchors.left: parent.left
height: 1
- 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
}
}
- MoneroComponents.LanguageSidebar {
+ MonzeroComponents.LanguageSidebar {
id: languageSidebar
dragMargin: 0
onAboutToShow: previousActiveFocusItem = activeFocusItem;
onClosed: { if (previousActiveFocusItem) previousActiveFocusItem.forceActiveFocus() }
}
- MoneroComponents.MenuBar { }
+ MonzeroComponents.MenuBar { }
Network {
id: network