Browse Source

PIN dialog: display auth message as title, if available

master
ThomasV 3 years ago
parent
commit
e430063351
  1. 9
      electrum/gui/qml/components/Pin.qml
  2. 1
      electrum/gui/qml/components/controls/ElDialog.qml

9
electrum/gui/qml/components/Pin.qml

@ -18,7 +18,7 @@ ElDialog {
property int _phase: mode == 'enter' ? 1 : 0 // 0 = existing pin, 1 = new pin, 2 = re-enter new pin property int _phase: mode == 'enter' ? 1 : 0 // 0 = existing pin, 1 = new pin, 2 = re-enter new pin
property string _pin property string _pin
title: qsTr('PIN') title: authMessage ? authMessage : qsTr('PIN')
iconSource: '../../../icons/lock.png' iconSource: '../../../icons/lock.png'
width: parent.width * 3/4 width: parent.width * 3/4
z: 1000 z: 1000
@ -70,13 +70,6 @@ ElDialog {
ColumnLayout { ColumnLayout {
width: parent.width width: parent.width
Label {
Layout.fillWidth: true
visible: authMessage
text: authMessage
wrapMode: Text.Wrap
}
Label { Label {
text: [qsTr('Enter PIN'), qsTr('Enter New PIN'), qsTr('Re-enter New PIN')][_phase] text: [qsTr('Enter PIN'), qsTr('Enter New PIN'), qsTr('Re-enter New PIN')][_phase]
font.pixelSize: constants.fontSizeXXLarge font.pixelSize: constants.fontSizeXXLarge

1
electrum/gui/qml/components/controls/ElDialog.qml

@ -73,6 +73,7 @@ Dialog {
Label { Label {
text: title text: title
wrapMode: Text.Wrap
elide: Label.ElideRight elide: Label.ElideRight
Layout.fillWidth: true Layout.fillWidth: true
leftPadding: constants.paddingXLarge leftPadding: constants.paddingXLarge

Loading…
Cancel
Save