1
0

use configured units everywhere

This commit is contained in:
Sander van Grieken
2022-03-23 14:00:46 +01:00
parent 5cfa1fd772
commit a75960a70d
4 changed files with 196 additions and 50 deletions

View File

@@ -1,6 +1,7 @@
import QtQuick 2.6
import QtQuick.Controls 2.0
import QtQuick.Layouts 1.0
import QtQuick.Controls.Material 2.0
Pane {
id: rootItem
@@ -11,7 +12,7 @@ Pane {
BalanceSummary {
Layout.columnSpan: 4
//Layout.alignment: Qt.AlignHCenter
Layout.alignment: Qt.AlignHCenter
}
Label {
@@ -20,11 +21,18 @@ Pane {
TextField {
id: address
Layout.columnSpan: 3
Layout.columnSpan: 2
placeholderText: 'Paste address or invoice'
Layout.fillWidth: true
}
ToolButton {
icon.source: '../../icons/copy.png'
icon.color: 'transparent'
icon.height: 16
icon.width: 16
}
Label {
text: "Amount"
}
@@ -34,6 +42,12 @@ Pane {
placeholderText: 'Amount'
}
Label {
text: Config.baseUnit
color: Material.accentColor
Layout.columnSpan: 2
}
Label {
text: "Fee"
}
@@ -41,6 +55,7 @@ Pane {
TextField {
id: fee
placeholderText: 'sat/vB'
Layout.columnSpan: 2
}
Item {
@@ -51,7 +66,6 @@ Pane {
spacing: 10
anchors.horizontalCenter: parent.horizontalCenter
Button {
// anchors.horizontalCenter: parent.horizontalCenter
text: 'Pay'
enabled: address.text != '' && amount.text != '' && fee.text != '' // TODO proper validation
onClicked: {