Browse Source

qml: fix create/confirm seed_variant parameter, styling receivedetailsdialog

master
Sander van Grieken 3 years ago
parent
commit
fbc5be54a9
  1. 17
      electrum/gui/qml/components/ReceiveDetailsDialog.qml
  2. 1
      electrum/gui/qml/components/wizard/WCCreateSeed.qml

17
electrum/gui/qml/components/ReceiveDetailsDialog.qml

@ -19,18 +19,25 @@ ElDialog {
parent: Overlay.overlay
modal: true
standardButtons: Dialog.Close
standardButtons: Dialog.Cancel
iconSource: Qt.resolvedUrl('../../icons/pen.png')
Overlay.modal: Rectangle {
color: "#aa000000"
}
implicitWidth: parent.width
padding: 0
ColumnLayout {
width: parent.width
GridLayout {
id: form
width: parent.width
Layout.fillWidth: true
Layout.leftMargin: constants.paddingLarge
Layout.rightMargin: constants.paddingLarge
Layout.bottomMargin: constants.paddingLarge
rowSpacing: constants.paddingSmall
columnSpacing: constants.paddingSmall
columns: 4
@ -91,11 +98,9 @@ ElDialog {
id: expires
Layout.columnSpan: 2
}
Item { width: 1; height: 1; Layout.fillWidth: true }
}
FlatButton {
Layout.columnSpan: 4
Layout.fillWidth: true
text: qsTr('Apply')
icon.source: '../../icons/confirmed.png'

1
electrum/gui/qml/components/wizard/WCCreateSeed.qml

@ -11,6 +11,7 @@ WizardComponent {
function apply() {
wizard_data['seed'] = seedtext.text
wizard_data['seed_variant'] = 'electrum' // generated seed always electrum variant
wizard_data['seed_extend'] = extendcb.checked
wizard_data['seed_extra_words'] = extendcb.checked ? customwordstext.text : ''
}

Loading…
Cancel
Save