mirror of
https://github.com/monero-project/monero-gui.git
synced 2025-01-10 11:52:05 +02:00
Receive: fix priority dropdown alignment
Also remove unnecessary row layout.
This commit is contained in:
parent
48a267f631
commit
7fe69cac94
@ -130,33 +130,27 @@ Rectangle {
|
|||||||
|
|
||||||
ColumnLayout {
|
ColumnLayout {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
|
Layout.minimumWidth: 200 * scaleRatio
|
||||||
|
|
||||||
RowLayout {
|
// Amount input
|
||||||
id: amountRow
|
LineEdit {
|
||||||
|
id: amountLine
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.minimumWidth: 200
|
inlineIcon: true
|
||||||
|
labelText: qsTr("Amount") + translationManager.emptyString
|
||||||
// Amount input
|
placeholderText: qsTr("") + translationManager.emptyString
|
||||||
LineEdit {
|
width: 100 * scaleRatio
|
||||||
id: amountLine
|
fontBold: true
|
||||||
Layout.fillWidth: true
|
inlineButtonText: qsTr("All") + translationManager.emptyString
|
||||||
inlineIcon: true
|
inlineButton.onClicked: amountLine.text = "(all)"
|
||||||
labelText: qsTr("Amount") + translationManager.emptyString
|
onTextChanged: {
|
||||||
placeholderText: qsTr("") + translationManager.emptyString
|
if(amountLine.text.indexOf('.') === 0){
|
||||||
width: 100
|
amountLine.text = '0' + amountLine.text;
|
||||||
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 {
|
validator: RegExpValidator {
|
||||||
regExp: /^(\d{1,8})?([\.]\d{1,12})?$/
|
regExp: /^(\d{1,8})?([\.]\d{1,12})?$/
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -165,7 +159,7 @@ Rectangle {
|
|||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Label {
|
Label {
|
||||||
id: transactionPriority
|
id: transactionPriority
|
||||||
Layout.topMargin: 14
|
Layout.topMargin: 12 * scaleRatio
|
||||||
text: qsTr("Transaction priority") + translationManager.emptyString
|
text: qsTr("Transaction priority") + translationManager.emptyString
|
||||||
fontBold: false
|
fontBold: false
|
||||||
fontSize: 16
|
fontSize: 16
|
||||||
@ -191,7 +185,7 @@ Rectangle {
|
|||||||
StandardDropdown {
|
StandardDropdown {
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
id: priorityDropdown
|
id: priorityDropdown
|
||||||
Layout.topMargin: 6
|
Layout.topMargin: 5 * scaleRatio
|
||||||
shadowReleasedColor: "#FF4304"
|
shadowReleasedColor: "#FF4304"
|
||||||
shadowPressedColor: "#B32D00"
|
shadowPressedColor: "#B32D00"
|
||||||
releasedColor: "#363636"
|
releasedColor: "#363636"
|
||||||
|
Loading…
Reference in New Issue
Block a user