1
0

qml: add show seed on WalletDetails.qml

This commit is contained in:
Sander van Grieken
2023-01-09 11:51:33 +01:00
parent 3271eadbd2
commit becd46fbf6
2 changed files with 47 additions and 0 deletions

View File

@@ -174,6 +174,46 @@ Pane {
visible: Daemon.currentWallet
columns: 2
Label {
Layout.columnSpan: 2
visible: Daemon.currentWallet.hasSeed
text: qsTr('Seed')
color: Material.accentColor
}
TextHighlightPane {
Layout.columnSpan: 2
Layout.fillWidth: true
visible: Daemon.currentWallet.hasSeed
RowLayout {
width: parent.width
Label {
id: seedText
visible: false
Layout.fillWidth: true
text: Daemon.currentWallet.seed
wrapMode: Text.Wrap
font.family: FixedFont
font.pixelSize: constants.fontSizeMedium
}
Label {
id: showSeedText
Layout.fillWidth: true
horizontalAlignment: Text.AlignHCenter
text: qsTr('Tap to show seed')
wrapMode: Text.Wrap
font.pixelSize: constants.fontSizeLarge
}
MouseArea {
anchors.fill: parent
onClicked: {
seedText.visible = true
showSeedText.visible = false
}
}
}
}
Label {
Layout.columnSpan: 2
visible: Daemon.currentWallet.isLightning