Browse Source

qml: styling ImportAddressesKeysDialog

master
Sander van Grieken 3 years ago
parent
commit
9d4e00d582
  1. 20
      electrum/gui/qml/components/ImportAddressesKeysDialog.qml

20
electrum/gui/qml/components/ImportAddressesKeysDialog.qml

@ -9,6 +9,10 @@ import "controls"
ElDialog { ElDialog {
id: root id: root
title: Daemon.currentWallet.isWatchOnly
? qsTr('Import additional addresses')
: qsTr('Import additional keys')
property bool valid: false property bool valid: false
modal: true modal: true
@ -16,12 +20,11 @@ ElDialog {
Overlay.modal: Rectangle { Overlay.modal: Rectangle {
color: "#aa000000" color: "#aa000000"
} }
width: parent.width width: parent.width
height: parent.height height: parent.height
title: Daemon.currentWallet.isWatchOnly padding: 0
? qsTr('Import additional addresses')
: qsTr('Import additional keys')
function verify(text) { function verify(text) {
if (Daemon.currentWallet.isWatchOnly) if (Daemon.currentWallet.isWatchOnly)
@ -38,8 +41,14 @@ ElDialog {
} }
ColumnLayout { ColumnLayout {
width: parent.width anchors.fill: parent
height: parent.height spacing: 0
ColumnLayout {
Layout.fillWidth: true
Layout.fillHeight: true
Layout.leftMargin: constants.paddingLarge
Layout.rightMargin: constants.paddingLarge
Label { Label {
text: Daemon.currentWallet.isWatchOnly text: Daemon.currentWallet.isWatchOnly
@ -94,6 +103,7 @@ ElDialog {
Layout.preferredWidth: 1 Layout.preferredWidth: 1
Layout.fillHeight: true Layout.fillHeight: true
} }
}
FlatButton { FlatButton {
Layout.fillWidth: true Layout.fillWidth: true

Loading…
Cancel
Save