aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2021-11-26 22:54:12 -0600
committerluigi1111 <luigi1111w@gmail.com>2021-11-26 22:54:12 -0600
commitfc8c1114b2bba84213e91ce4a50e5ee8b1ef7928 (patch)
tree53cc622226b53af0e2fe24674562fb3750e62b91
parent93e5ef883c239ecb0c9b350123fd7df4d35b8c64 (diff)
parent9961305867014361e542e7a14632fc4ca3423ef3 (diff)
downloadmonzero-gui-fc8c1114b2bba84213e91ce4a50e5ee8b1ef7928.tar.gz
monzero-gui-fc8c1114b2bba84213e91ce4a50e5ee8b1ef7928.tar.xz
monzero-gui-fc8c1114b2bba84213e91ce4a50e5ee8b1ef7928.zip
Merge pull request #3737
9961305 LabelSubheader: implement tooltip (rating89us)
-rw-r--r--components/LabelSubheader.qml1
-rw-r--r--components/Tooltip.qml3
-rw-r--r--pages/SharedRingDB.qml20
3 files changed, 7 insertions, 17 deletions
diff --git a/components/LabelSubheader.qml b/components/LabelSubheader.qml
index 585d0027..0e93daa4 100644
--- a/components/LabelSubheader.qml
+++ b/components/LabelSubheader.qml
@@ -34,6 +34,7 @@ import "../components/effects/" as MoneroEffects
Label {
id: item
fontSize: 18
+ tooltipIconVisible: true
Rectangle {
anchors.top: item.bottom
diff --git a/components/Tooltip.qml b/components/Tooltip.qml
index 595280da..c19d05e2 100644
--- a/components/Tooltip.qml
+++ b/components/Tooltip.qml
@@ -95,11 +95,12 @@ Rectangle {
delay: 200
RowLayout {
- Layout.maximumWidth: 350
+ Layout.maximumWidth: 370
Text {
id: tooltip
width: contentWidth
+ Layout.maximumWidth: 370
color: MoneroComponents.Style.defaultFontColor
font.family: MoneroComponents.Style.fontRegular.name
font.pixelSize: 12
diff --git a/pages/SharedRingDB.qml b/pages/SharedRingDB.qml
index 93d1f7c7..4235bad2 100644
--- a/pages/SharedRingDB.qml
+++ b/pages/SharedRingDB.qml
@@ -112,11 +112,8 @@ Rectangle {
MoneroComponents.LabelSubheader {
Layout.fillWidth: true
textFormat: Text.RichText
- text: "<style type='text/css'>a {text-decoration: none; color: #FF6C3C; font-size: 14px;}</style>" +
- qsTr("Outputs marked as spent") + " <a href='#'>" + qsTr("Help") + "</a>" + translationManager.emptyString
- onLinkActivated: {
- sharedRingDBDialog.title = qsTr("Outputs marked as spent") + translationManager.emptyString;
- sharedRingDBDialog.text = qsTr(
+ text: qsTr("Outputs marked as spent") + translationManager.emptyString
+ tooltip: qsTr(
"In order to obscure which inputs in a Monero transaction are being spent, a third party should not be able " +
"to tell which inputs in a ring are already known to be spent. Being able to do so would weaken the protection " +
"afforded by ring signatures. If all but one of the inputs are known to be already spent, then the input being " +
@@ -128,9 +125,6 @@ Rectangle {
"Alternatively, you can scan the blockchain (and the blockchain of key-reusing Monero clones) yourself " +
"using the monero-blockchain-mark-spent-outputs tool to create a list of known spent outputs.<br>"
) + translationManager.emptyString
- sharedRingDBDialog.icon = StandardIcon.Information
- sharedRingDBDialog.open()
- }
}
MoneroComponents.TextPlain {
@@ -249,11 +243,8 @@ Rectangle {
Layout.fillWidth: true
Layout.topMargin: 24
textFormat: Text.RichText
- text: "<style type='text/css'>a {text-decoration: none; color: #FF6C3C; font-size: 14px;}</style>" +
- qsTr("Rings") + " <a href='#'>" + qsTr("Help") + "</a>" + translationManager.emptyString
- onLinkActivated: {
- sharedRingDBDialog.title = qsTr("Rings") + translationManager.emptyString;
- sharedRingDBDialog.text = qsTr(
+ text: qsTr("Rings") + translationManager.emptyString
+ tooltip: qsTr(
"In order to avoid nullifying the protection afforded by Monero's ring signatures, an output should not " +
"be spent with different rings on different blockchains. While this is normally not a concern, it can become one " +
"when a key-reusing Monero clone allows you to spend existing outputs. In this case, you need to ensure this " +
@@ -266,9 +257,6 @@ Rectangle {
"If you do not use a key-reusing Monero clone without these safety features, then you do not need to do anything " +
"as it is all automated.<br>"
) + translationManager.emptyString
- sharedRingDBDialog.icon = StandardIcon.Information
- sharedRingDBDialog.open()
- }
}
MoneroComponents.TextPlain {