Browse Source

qml: padding around label above TextHighlightPanes

master
Sander van Grieken 3 years ago
parent
commit
b16fb5088b
  1. 6
      electrum/gui/qml/components/AddressDetails.qml
  2. 13
      electrum/gui/qml/components/InvoiceDialog.qml
  3. 9
      electrum/gui/qml/components/LightningPaymentDetails.qml
  4. 9
      electrum/gui/qml/components/TxDetails.qml
  5. 4
      electrum/gui/qml/components/WalletDetails.qml

6
electrum/gui/qml/components/AddressDetails.qml

@ -72,8 +72,9 @@ Pane {
} }
Label { Label {
text: qsTr('Label')
Layout.columnSpan: 2 Layout.columnSpan: 2
Layout.topMargin: constants.paddingSmall
text: qsTr('Label')
color: Material.accentColor color: Material.accentColor
} }
@ -130,8 +131,9 @@ Pane {
} }
Label { Label {
text: qsTr('Public keys')
Layout.columnSpan: 2 Layout.columnSpan: 2
Layout.topMargin: constants.paddingSmall
text: qsTr('Public keys')
color: Material.accentColor color: Material.accentColor
} }

13
electrum/gui/qml/components/InvoiceDialog.qml

@ -94,8 +94,9 @@ ElDialog {
} }
Label { Label {
visible: invoice.invoiceType == Invoice.OnchainInvoice
Layout.columnSpan: 2 Layout.columnSpan: 2
Layout.topMargin: constants.paddingSmall
visible: invoice.invoiceType == Invoice.OnchainInvoice
text: qsTr('Address') text: qsTr('Address')
color: Material.accentColor color: Material.accentColor
} }
@ -116,6 +117,8 @@ ElDialog {
} }
Label { Label {
Layout.columnSpan: 2
Layout.topMargin: constants.paddingSmall
visible: invoice.invoiceType == Invoice.LightningInvoice visible: invoice.invoiceType == Invoice.LightningInvoice
text: qsTr('Remote Pubkey') text: qsTr('Remote Pubkey')
color: Material.accentColor color: Material.accentColor
@ -152,6 +155,8 @@ ElDialog {
} }
Label { Label {
Layout.columnSpan: 2
Layout.topMargin: constants.paddingSmall
visible: invoice.invoiceType == Invoice.LightningInvoice visible: invoice.invoiceType == Invoice.LightningInvoice
text: qsTr('Payment hash') text: qsTr('Payment hash')
color: Material.accentColor color: Material.accentColor
@ -188,9 +193,10 @@ ElDialog {
} }
Label { Label {
Layout.columnSpan: 2
Layout.topMargin: constants.paddingSmall
text: qsTr('Description') text: qsTr('Description')
visible: invoice.message visible: invoice.message
Layout.columnSpan: 2
color: Material.accentColor color: Material.accentColor
} }
@ -211,9 +217,10 @@ ElDialog {
} }
Label { Label {
Layout.columnSpan: 2
Layout.topMargin: constants.paddingSmall
text: qsTr('Amount to send') text: qsTr('Amount to send')
color: Material.accentColor color: Material.accentColor
Layout.columnSpan: 2
} }
TextHighlightPane { TextHighlightPane {

9
electrum/gui/qml/components/LightningPaymentDetails.qml

@ -74,8 +74,9 @@ Pane {
} }
Label { Label {
text: qsTr('Label')
Layout.columnSpan: 2 Layout.columnSpan: 2
Layout.topMargin: constants.paddingSmall
text: qsTr('Label')
color: Material.accentColor color: Material.accentColor
} }
@ -132,8 +133,9 @@ Pane {
} }
Label { Label {
text: qsTr('Payment hash')
Layout.columnSpan: 2 Layout.columnSpan: 2
Layout.topMargin: constants.paddingSmall
text: qsTr('Payment hash')
color: Material.accentColor color: Material.accentColor
} }
@ -164,8 +166,9 @@ Pane {
} }
Label { Label {
text: qsTr('Preimage')
Layout.columnSpan: 2 Layout.columnSpan: 2
Layout.topMargin: constants.paddingSmall
text: qsTr('Preimage')
color: Material.accentColor color: Material.accentColor
} }

9
electrum/gui/qml/components/TxDetails.qml

@ -212,8 +212,9 @@ Pane {
} }
Label { Label {
text: qsTr('Label')
Layout.columnSpan: 2 Layout.columnSpan: 2
Layout.topMargin: constants.paddingSmall
text: qsTr('Label')
color: Material.accentColor color: Material.accentColor
} }
@ -270,8 +271,9 @@ Pane {
} }
Label { Label {
text: qsTr('Transaction ID')
Layout.columnSpan: 2 Layout.columnSpan: 2
Layout.topMargin: constants.paddingSmall
text: qsTr('Transaction ID')
color: Material.accentColor color: Material.accentColor
} }
@ -303,8 +305,9 @@ Pane {
} }
Label { Label {
text: qsTr('Outputs')
Layout.columnSpan: 2 Layout.columnSpan: 2
Layout.topMargin: constants.paddingSmall
text: qsTr('Outputs')
color: Material.accentColor color: Material.accentColor
} }

4
electrum/gui/qml/components/WalletDetails.qml

@ -227,6 +227,7 @@ Pane {
Label { Label {
Layout.columnSpan: 2 Layout.columnSpan: 2
Layout.topMargin: constants.paddingSmall
visible: Daemon.currentWallet.hasSeed visible: Daemon.currentWallet.hasSeed
text: qsTr('Seed') text: qsTr('Seed')
color: Material.accentColor color: Material.accentColor
@ -267,6 +268,7 @@ Pane {
Label { Label {
Layout.columnSpan: 2 Layout.columnSpan: 2
Layout.topMargin: constants.paddingSmall
visible: Daemon.currentWallet.isLightning visible: Daemon.currentWallet.isLightning
text: qsTr('Lightning Node ID') text: qsTr('Lightning Node ID')
color: Material.accentColor color: Material.accentColor
@ -330,6 +332,7 @@ Pane {
Label { Label {
Layout.columnSpan: 2 Layout.columnSpan: 2
Layout.topMargin: constants.paddingSmall
visible: _is2fa && !Daemon.currentWallet.canSignWithoutServer visible: _is2fa && !Daemon.currentWallet.canSignWithoutServer
text: qsTr('Billing') text: qsTr('Billing')
color: Material.accentColor color: Material.accentColor
@ -377,6 +380,7 @@ Pane {
model: Daemon.currentWallet.keystores model: Daemon.currentWallet.keystores
delegate: ColumnLayout { delegate: ColumnLayout {
Layout.columnSpan: 2 Layout.columnSpan: 2
Layout.topMargin: constants.paddingSmall
RowLayout { RowLayout {
Label { Label {
text: qsTr('Keystore') text: qsTr('Keystore')

Loading…
Cancel
Save