Remove scaleRatio

This commit is contained in:
dsc
2019-04-25 21:09:23 +02:00
parent e1c429110f
commit 62285b01dc
80 changed files with 1070 additions and 1075 deletions

View File

@@ -45,21 +45,21 @@ Rectangle {
/* main layout */
ColumnLayout {
id: mainLayout
anchors.margins: (isMobile)? 17 * scaleRatio : 20 * scaleRatio
anchors.topMargin: 40 * scaleRatio
anchors.margins: (isMobile)? 17 : 20
anchors.topMargin: 40
anchors.left: parent.left
anchors.top: parent.top
anchors.right: parent.right
spacing: 20 * scaleRatio
spacing: 20
// solo
ColumnLayout {
id: soloBox
spacing: 20 * scaleRatio
spacing: 20
MoneroComponents.Label {
id: soloTitleLabel
fontSize: 24 * scaleRatio
fontSize: 24
text: qsTr("Prove Transaction") + translationManager.emptyString
}
@@ -69,17 +69,17 @@ Rectangle {
"For the case of outgoing payments, you can get a 'Spend Proof' that proves the authorship of a transaction. In this case, you don't need to specify the recipient address.") + translationManager.emptyString
wrapMode: Text.Wrap
font.family: MoneroComponents.Style.fontRegular.name
font.pixelSize: 14 * scaleRatio
font.pixelSize: 14
color: MoneroComponents.Style.defaultFontColor
}
MoneroComponents.LineEdit {
id: getProofTxIdLine
Layout.fillWidth: true
labelFontSize: 14 * scaleRatio
labelFontSize: 14
labelText: qsTr("Transaction ID") + translationManager.emptyString
fontSize: 16 * scaleRatio
placeholderFontSize: 16 * scaleRatio
fontSize: 16
placeholderFontSize: 16
placeholderText: qsTr("Paste tx ID") + translationManager.emptyString
readOnly: false
copyButton: true
@@ -88,10 +88,10 @@ Rectangle {
MoneroComponents.LineEdit {
id: getProofAddressLine
Layout.fillWidth: true
labelFontSize: 14 * scaleRatio
labelFontSize: 14
labelText: qsTr("Address") + translationManager.emptyString
fontSize: 16 * scaleRatio
placeholderFontSize: 16 * scaleRatio
fontSize: 16
placeholderFontSize: 16
placeholderText: qsTr("Recipient's wallet address") + translationManager.emptyString;
readOnly: false
copyButton: true
@@ -100,17 +100,17 @@ Rectangle {
MoneroComponents.LineEdit {
id: getProofMessageLine
Layout.fillWidth: true
fontSize: 16 * scaleRatio
labelFontSize: 14 * scaleRatio
fontSize: 16
labelFontSize: 14
labelText: qsTr("Message") + translationManager.emptyString
placeholderFontSize: 16 * scaleRatio
placeholderFontSize: 16
placeholderText: qsTr("Optional message against which the signature is signed") + translationManager.emptyString;
readOnly: false
copyButton: true
}
MoneroComponents.StandardButton {
Layout.topMargin: 16 * scaleRatio
Layout.topMargin: 16
small: true
text: qsTr("Generate") + translationManager.emptyString
enabled: TxUtils.checkTxID(getProofTxIdLine.text) && (getProofAddressLine.text.length == 0 || TxUtils.checkAddress(getProofAddressLine.text, appWindow.persistentSettings.nettype))
@@ -127,12 +127,12 @@ Rectangle {
opacity: MoneroComponents.Style.dividerOpacity
Layout.fillWidth: true
Layout.alignment: Qt.AlignHCenter
anchors.bottomMargin: 3 * scaleRatio
anchors.bottomMargin: 3
}
MoneroComponents.Label {
id: soloTitleLabel2
fontSize: 24 * scaleRatio
fontSize: 24
text: qsTr("Check Transaction") + translationManager.emptyString
}
@@ -142,17 +142,17 @@ Rectangle {
wrapMode: Text.Wrap
Layout.fillWidth: true
font.family: MoneroComponents.Style.fontRegular.name
font.pixelSize: 14 * scaleRatio
font.pixelSize: 14
color: MoneroComponents.Style.defaultFontColor
}
MoneroComponents.LineEdit {
id: checkProofTxIdLine
Layout.fillWidth: true
labelFontSize: 14 * scaleRatio
labelFontSize: 14
labelText: qsTr("Transaction ID") + translationManager.emptyString
fontSize: 16 * scaleRatio
placeholderFontSize: 16 * scaleRatio
fontSize: 16
placeholderFontSize: 16
placeholderText: qsTr("Paste tx ID") + translationManager.emptyString
readOnly: false
copyButton: true
@@ -161,10 +161,10 @@ Rectangle {
MoneroComponents.LineEdit {
id: checkProofAddressLine
Layout.fillWidth: true
labelFontSize: 14 * scaleRatio
labelFontSize: 14
labelText: qsTr("Address") + translationManager.emptyString
fontSize: 16 * scaleRatio
placeholderFontSize: 16 * scaleRatio
fontSize: 16
placeholderFontSize: 16
placeholderText: qsTr("Recipient's wallet address") + translationManager.emptyString;
readOnly: false
copyButton: true
@@ -173,10 +173,10 @@ Rectangle {
MoneroComponents.LineEdit {
id: checkProofMessageLine
Layout.fillWidth: true
fontSize: 16 * scaleRatio
labelFontSize: 14 * scaleRatio
fontSize: 16
labelFontSize: 14
labelText: qsTr("Message") + translationManager.emptyString
placeholderFontSize: 16 * scaleRatio
placeholderFontSize: 16
placeholderText: qsTr("Optional message against which the signature is signed") + translationManager.emptyString;
readOnly: false
copyButton: true
@@ -185,17 +185,17 @@ Rectangle {
MoneroComponents.LineEdit {
id: checkProofSignatureLine
Layout.fillWidth: true
fontSize: 16 * scaleRatio
labelFontSize: 14 * scaleRatio
fontSize: 16
labelFontSize: 14
labelText: qsTr("Signature") + translationManager.emptyString
placeholderFontSize: 16 * scaleRatio
placeholderFontSize: 16
placeholderText: qsTr("Paste tx proof") + translationManager.emptyString;
readOnly: false
copyButton: true
}
MoneroComponents.StandardButton {
Layout.topMargin: 16 * scaleRatio
Layout.topMargin: 16
small: true
text: qsTr("Check") + translationManager.emptyString
enabled: TxUtils.checkTxID(checkProofTxIdLine.text) && TxUtils.checkSignature(checkProofSignatureLine.text) && ((checkProofSignatureLine.text.indexOf("SpendProofV") === 0 && checkProofAddressLine.text.length == 0) || (checkProofSignatureLine.text.indexOf("SpendProofV") !== 0 && TxUtils.checkAddress(checkProofAddressLine.text, appWindow.persistentSettings.nettype)))
@@ -212,7 +212,7 @@ Rectangle {
opacity: MoneroComponents.Style.dividerOpacity
Layout.fillWidth: true
Layout.alignment: Qt.AlignHCenter
anchors.bottomMargin: 3 * scaleRatio
anchors.bottomMargin: 3
}
MoneroComponents.TextPlain {
@@ -220,7 +220,7 @@ Rectangle {
wrapMode: Text.Wrap
Layout.fillWidth: true
font.family: MoneroComponents.Style.fontRegular.name
font.pixelSize: 14 * scaleRatio
font.pixelSize: 14
color: MoneroComponents.Style.defaultFontColor
}
}