aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2018-12-29 15:07:58 -0600
committerluigi1111 <luigi1111w@gmail.com>2018-12-29 15:07:58 -0600
commit97de72b27d56e7869c5e3c13ed3a15db033d0043 (patch)
treee731aca34eeb6e688e4f881ecbecc893aa2ccfd2
parent4320ead7f874f7f46c89cee01694c9f8e7a2a54b (diff)
parent7fe69cac9411c956a02f0de1fd57063bcb495bdf (diff)
downloadmonzero-gui-97de72b27d56e7869c5e3c13ed3a15db033d0043.tar.gz
monzero-gui-97de72b27d56e7869c5e3c13ed3a15db033d0043.tar.xz
monzero-gui-97de72b27d56e7869c5e3c13ed3a15db033d0043.zip
Merge pull request #1869
7fe69ca Receive: fix priority dropdown alignment (selsta)
-rw-r--r--pages/Transfer.qml44
1 files changed, 19 insertions, 25 deletions
diff --git a/pages/Transfer.qml b/pages/Transfer.qml
index 0a1693ef..0b480414 100644
--- a/pages/Transfer.qml
+++ b/pages/Transfer.qml
@@ -130,33 +130,27 @@ Rectangle {
ColumnLayout {
Layout.fillWidth: true
+ Layout.minimumWidth: 200 * scaleRatio
- RowLayout {
- id: amountRow
-
+ // Amount input
+ LineEdit {
+ id: amountLine
Layout.fillWidth: true
- Layout.minimumWidth: 200
-
- // Amount input
- LineEdit {
- id: amountLine
- Layout.fillWidth: true
- inlineIcon: true
- labelText: qsTr("Amount") + translationManager.emptyString
- placeholderText: qsTr("") + translationManager.emptyString
- width: 100
- fontBold: true
- inlineButtonText: qsTr("All") + translationManager.emptyString
- inlineButton.onClicked: amountLine.text = "(all)"
- onTextChanged: {
- if(amountLine.text.indexOf('.') === 0){
- amountLine.text = '0' + amountLine.text;
- }
+ inlineIcon: true
+ labelText: qsTr("Amount") + translationManager.emptyString
+ placeholderText: qsTr("") + translationManager.emptyString
+ width: 100 * scaleRatio
+ fontBold: true
+ inlineButtonText: qsTr("All") + translationManager.emptyString
+ inlineButton.onClicked: amountLine.text = "(all)"
+ onTextChanged: {
+ if(amountLine.text.indexOf('.') === 0){
+ amountLine.text = '0' + amountLine.text;
}
+ }
- validator: RegExpValidator {
- regExp: /^(\d{1,8})?([\.]\d{1,12})?$/
- }
+ validator: RegExpValidator {
+ regExp: /^(\d{1,8})?([\.]\d{1,12})?$/
}
}
}
@@ -165,7 +159,7 @@ Rectangle {
Layout.fillWidth: true
Label {
id: transactionPriority
- Layout.topMargin: 14
+ Layout.topMargin: 12 * scaleRatio
text: qsTr("Transaction priority") + translationManager.emptyString
fontBold: false
fontSize: 16
@@ -191,7 +185,7 @@ Rectangle {
StandardDropdown {
Layout.fillWidth: true
id: priorityDropdown
- Layout.topMargin: 6
+ Layout.topMargin: 5 * scaleRatio
shadowReleasedColor: "#FF4304"
shadowPressedColor: "#B32D00"
releasedColor: "#363636"