1
0

qml: styling fixes

This commit is contained in:
Sander van Grieken
2023-03-06 11:43:32 +01:00
parent d2883e19ac
commit ce5b6499fd
2 changed files with 5 additions and 1 deletions

View File

@@ -45,7 +45,7 @@ ElDialog {
Layout.columnSpan: 4
Layout.fillWidth: true
visible: Daemon.currentWallet.lightningCanReceive
visible: !Daemon.currentWallet.lightningCanReceive.isEmpty
RowLayout {
width: parent.width
@@ -55,6 +55,8 @@ ElDialog {
font.pixelSize: constants.fontSizeSmall
color: Material.accentColor
wrapMode: Text.Wrap
// try to fill/wrap in remaining space
Layout.preferredWidth: Math.min(implicitWidth, parent.width - 2*parent.spacing - constants.iconSizeSmall - lnMaxAmount.implicitWidth)
}
Image {
Layout.preferredWidth: constants.iconSizeSmall
@@ -62,6 +64,7 @@ ElDialog {
source: '../../icons/lightning.png'
}
FormattedAmount {
id: lnMaxAmount
amount: Daemon.currentWallet.lightningCanReceive
}
}

View File

@@ -39,6 +39,7 @@ Item {
}
Label {
Layout.alignment: Qt.AlignRight
font.pixelSize: constants.fontSizeXLarge
font.family: FixedFont
text: formattedTotalBalance