aboutsummaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
authorxiphon <xiphon@protonmail.com>2021-04-15 00:04:50 +0000
committerxiphon <xiphon@protonmail.com>2021-04-15 00:09:45 +0000
commit767b9e05b395a63da1c880ec1155b722476177a5 (patch)
treee0992c472f1b3de97d82b03499651176de303b5d /pages
parent8444a9563e959fb8cac599b0178faae33eada25d (diff)
downloadmonzero-gui-767b9e05b395a63da1c880ec1155b722476177a5.tar.gz
monzero-gui-767b9e05b395a63da1c880ec1155b722476177a5.tar.xz
monzero-gui-767b9e05b395a63da1c880ec1155b722476177a5.zip
TextPlain, Label: implement tooltips. Transfer: advanced - use tooltips
Diffstat (limited to 'pages')
-rw-r--r--pages/Transfer.qml20
1 files changed, 10 insertions, 10 deletions
diff --git a/pages/Transfer.qml b/pages/Transfer.qml
index fc87b9b0..0ce36f54 100644
--- a/pages/Transfer.qml
+++ b/pages/Transfer.qml
@@ -857,21 +857,21 @@ Rectangle {
console.log("Transfer: import key images clicked")
importKeyImagesDialog.open();
}
- helpTextLarge.text: qsTr("Required for view-only wallets to display the real balance") + translationManager.emptyString
- helpTextSmall.text: {
+ tooltip: {
var errorMessage = "";
if (appWindow.viewOnly && !appWindow.isTrustedDaemon()){
errorMessage = "<p class='orange'>" + qsTr("* To import, you must connect to a local node or a trusted remote node") + "</p>";
}
- return "<style type='text/css'>p{line-height:20px; margin-top:0px; margin-bottom:0px; color:" + MoneroComponents.Style.defaultFontColor +
+ var header = qsTr("Required for view-only wallets to display the real balance") + translationManager.emptyString;
+ return "<style type='text/css'>.header{ font-size: 13px; } p{line-height:20px; margin-top:0px; margin-bottom:0px; " +
";} p.orange{color:#ff9323;}</style>" +
+ "<div class='header'>" + header + "</div>" +
"<p>" + qsTr("1. Using cold wallet, export the key images into a file") + "</p>" +
"<p>" + qsTr("2. Using view-only wallet, import the key images file") + "</p>" +
errorMessage + translationManager.emptyString
}
- helpTextSmall.themeTransition: false
}
-
+
AdvancedOptionsItem {
visible: persistentSettings.transferShowAdvanced && appWindow.walletMode >= 2
title: qsTr("Offline transaction signing") + translationManager.emptyString
@@ -896,14 +896,15 @@ Rectangle {
console.log("Transfer: submit tx clicked")
submitTxDialog.open();
}
- helpTextLarge.text: qsTr("Spend XMR from a cold (offline) wallet") + translationManager.emptyString
- helpTextSmall.text: {
+ tooltip: {
var errorMessage = "";
if (appWindow.viewOnly && !pageRoot.checkInformation()) {
errorMessage = "<p class='orange'>" + qsTr("* To create a transaction file, please enter address and amount above") + "</p>";
}
- return "<style type='text/css'>p{line-height:20px; margin-top:0px; margin-bottom:0px; color:" + MoneroComponents.Style.defaultFontColor +
+ var header = qsTr("Spend XMR from a cold (offline) wallet") + translationManager.emptyString;
+ return "<style type='text/css'>.header{ font-size: 13px; } p{line-height:20px; margin-top:0px; margin-bottom:0px; " +
";} p.orange{color:#ff9323;}</style>" +
+ "<div class='header'>" + header + "</div>" +
"<p>" + qsTr("1. Using view-only wallet, export the outputs into a file") + "</p>" +
"<p>" + qsTr("2. Using cold wallet, import the outputs file and export the key images") + "</p>" +
"<p>" + qsTr("3. Using view-only wallet, import the key images file and create a transaction file") + "</p>" +
@@ -911,7 +912,6 @@ Rectangle {
"<p>" + qsTr("4. Using cold wallet, sign your transaction file") + "</p>" +
"<p>" + qsTr("5. Using view-only wallet, submit your signed transaction") + "</p>" + translationManager.emptyString
}
- helpTextSmall.themeTransition: false
}
AdvancedOptionsItem {
@@ -923,7 +923,7 @@ Rectangle {
console.log("Transfer: sweepUnmixableClicked")
root.sweepUnmixableClicked()
}
- helpTextLarge.text: qsTr("Create a transaction that spends old unmovable outputs") + translationManager.emptyString
+ tooltip: qsTr("Create a transaction that spends old unmovable outputs") + translationManager.emptyString
}
}