|
@ -13,8 +13,8 @@ Pane { |
|
|
GridLayout { |
|
|
GridLayout { |
|
|
id: form |
|
|
id: form |
|
|
width: parent.width |
|
|
width: parent.width |
|
|
rowSpacing: 10 |
|
|
rowSpacing: constants.paddingSmall |
|
|
columnSpacing: 10 |
|
|
columnSpacing: constants.paddingSmall |
|
|
columns: 4 |
|
|
columns: 4 |
|
|
|
|
|
|
|
|
Label { |
|
|
Label { |
|
@ -23,22 +23,22 @@ Pane { |
|
|
|
|
|
|
|
|
TextField { |
|
|
TextField { |
|
|
id: message |
|
|
id: message |
|
|
|
|
|
placeholderText: qsTr('Description of payment request') |
|
|
Layout.columnSpan: 3 |
|
|
Layout.columnSpan: 3 |
|
|
Layout.fillWidth: true |
|
|
Layout.fillWidth: true |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
Label { |
|
|
Label { |
|
|
text: qsTr('Requested Amount') |
|
|
text: qsTr('Request') |
|
|
wrapMode: Text.WordWrap |
|
|
wrapMode: Text.WordWrap |
|
|
Layout.preferredWidth: 50 // trigger wordwrap |
|
|
|
|
|
Layout.rightMargin: constants.paddingXLarge |
|
|
Layout.rightMargin: constants.paddingXLarge |
|
|
Layout.rowSpan: 2 |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
TextField { |
|
|
TextField { |
|
|
id: amount |
|
|
id: amount |
|
|
font.family: FixedFont |
|
|
font.family: FixedFont |
|
|
Layout.fillWidth: true |
|
|
Layout.preferredWidth: parent.width /2 |
|
|
|
|
|
placeholderText: qsTr('Amount') |
|
|
inputMethodHints: Qt.ImhPreferNumbers |
|
|
inputMethodHints: Qt.ImhPreferNumbers |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -47,10 +47,26 @@ Pane { |
|
|
color: Material.accentColor |
|
|
color: Material.accentColor |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
ColumnLayout { |
|
|
Item { width: 1; height: 1; Layout.fillWidth: true } |
|
|
Layout.rowSpan: 2 |
|
|
|
|
|
Layout.preferredWidth: rootItem.width /3 |
|
|
Item { visible: Daemon.fx.enabled; width: 1; height: 1 } |
|
|
Layout.leftMargin: constants.paddingXLarge |
|
|
|
|
|
|
|
|
TextField { |
|
|
|
|
|
id: amountFiat |
|
|
|
|
|
visible: Daemon.fx.enabled |
|
|
|
|
|
font.family: FixedFont |
|
|
|
|
|
Layout.preferredWidth: parent.width /2 |
|
|
|
|
|
placeholderText: qsTr('Amount') |
|
|
|
|
|
inputMethodHints: Qt.ImhDigitsOnly |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Label { |
|
|
|
|
|
visible: Daemon.fx.enabled |
|
|
|
|
|
text: Daemon.fx.fiatCurrency |
|
|
|
|
|
color: Material.accentColor |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Item { width: 1; height: 1; Layout.fillWidth: true } |
|
|
|
|
|
|
|
|
Label { |
|
|
Label { |
|
|
text: qsTr('Expires after') |
|
|
text: qsTr('Expires after') |
|
@ -59,7 +75,8 @@ Pane { |
|
|
|
|
|
|
|
|
ComboBox { |
|
|
ComboBox { |
|
|
id: expires |
|
|
id: expires |
|
|
Layout.fillWidth: true |
|
|
Layout.columnSpan: 2 |
|
|
|
|
|
|
|
|
textRole: 'text' |
|
|
textRole: 'text' |
|
|
valueRole: 'value' |
|
|
valueRole: 'value' |
|
|
|
|
|
|
|
@ -76,73 +93,16 @@ Pane { |
|
|
expires.currentIndex = 0 |
|
|
expires.currentIndex = 0 |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
TextField { |
|
|
// redefine contentItem, as the default crops the widest item |
|
|
id: amountFiat |
|
|
contentItem: Label { |
|
|
visible: Daemon.fx.fiatCurrency != '' |
|
|
text: expires.currentText |
|
|
font.family: FixedFont |
|
|
padding: constants.paddingLarge |
|
|
Layout.fillWidth: true |
|
|
font.pixelSize: constants.fontSizeMedium |
|
|
inputMethodHints: Qt.ImhDigitsOnly |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
Label { |
|
|
|
|
|
visible: Daemon.fx.fiatCurrency != '' |
|
|
|
|
|
text: Daemon.fx.fiatCurrency |
|
|
|
|
|
color: Material.accentColor |
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
Item { visible: Daemon.fx.fiatCurrency == ''; width: 1; height: 1; Layout.columnSpan: 2 } |
|
|
Item { width: 1; height: 1; Layout.fillWidth: true } |
|
|
|
|
|
|
|
|
RowLayout { |
|
|
|
|
|
Layout.columnSpan: 4 |
|
|
|
|
|
Layout.alignment: Qt.AlignHCenter |
|
|
|
|
|
visible: false |
|
|
|
|
|
CheckBox { |
|
|
|
|
|
id: cb_onchain |
|
|
|
|
|
text: qsTr('Onchain') |
|
|
|
|
|
checked: true |
|
|
|
|
|
contentItem: RowLayout { |
|
|
|
|
|
Text { |
|
|
|
|
|
text: cb_onchain.text |
|
|
|
|
|
font: cb_onchain.font |
|
|
|
|
|
opacity: enabled ? 1.0 : 0.3 |
|
|
|
|
|
color: Material.foreground |
|
|
|
|
|
verticalAlignment: Text.AlignVCenter |
|
|
|
|
|
leftPadding: cb_onchain.indicator.width + cb_onchain.spacing |
|
|
|
|
|
} |
|
|
|
|
|
Image { |
|
|
|
|
|
x: 16 |
|
|
|
|
|
Layout.preferredWidth: 16 |
|
|
|
|
|
Layout.preferredHeight: 16 |
|
|
|
|
|
source: '../../icons/bitcoin.png' |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
CheckBox { |
|
|
|
|
|
id: cb_lightning |
|
|
|
|
|
text: qsTr('Lightning') |
|
|
|
|
|
enabled: false |
|
|
|
|
|
contentItem: RowLayout { |
|
|
|
|
|
Text { |
|
|
|
|
|
text: cb_lightning.text |
|
|
|
|
|
font: cb_lightning.font |
|
|
|
|
|
opacity: enabled ? 1.0 : 0.3 |
|
|
|
|
|
color: Material.foreground |
|
|
|
|
|
verticalAlignment: Text.AlignVCenter |
|
|
|
|
|
leftPadding: cb_lightning.indicator.width + cb_lightning.spacing |
|
|
|
|
|
} |
|
|
|
|
|
Image { |
|
|
|
|
|
x: 16 |
|
|
|
|
|
Layout.preferredWidth: 16 |
|
|
|
|
|
Layout.preferredHeight: 16 |
|
|
|
|
|
source: '../../icons/lightning.png' |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Button { |
|
|
Button { |
|
|
Layout.columnSpan: 4 |
|
|
Layout.columnSpan: 4 |
|
|