|
|
|
@ -40,6 +40,7 @@ Item { |
|
|
|
rightPadding: constants.paddingXLarge |
|
|
|
rightPadding: constants.paddingXLarge |
|
|
|
|
|
|
|
|
|
|
|
GridLayout { |
|
|
|
GridLayout { |
|
|
|
|
|
|
|
id: balanceLayout |
|
|
|
columns: 3 |
|
|
|
columns: 3 |
|
|
|
opacity: Daemon.currentWallet.synchronizing ? 0 : 1 |
|
|
|
opacity: Daemon.currentWallet.synchronizing ? 0 : 1 |
|
|
|
|
|
|
|
|
|
|
|
@ -63,13 +64,15 @@ Item { |
|
|
|
|
|
|
|
|
|
|
|
Item { |
|
|
|
Item { |
|
|
|
visible: Daemon.fx.enabled && root.state == 'fiat' |
|
|
|
visible: Daemon.fx.enabled && root.state == 'fiat' |
|
|
|
Layout.preferredHeight: 1 |
|
|
|
// attempt at making fiat state as tall as btc state: |
|
|
|
|
|
|
|
Layout.preferredHeight: fontMetrics.lineSpacing * 2 + balanceLayout.rowSpacing + 2 |
|
|
|
Layout.preferredWidth: 1 |
|
|
|
Layout.preferredWidth: 1 |
|
|
|
} |
|
|
|
} |
|
|
|
Label { |
|
|
|
Label { |
|
|
|
Layout.alignment: Qt.AlignRight |
|
|
|
Layout.alignment: Qt.AlignRight |
|
|
|
visible: Daemon.fx.enabled && root.state == 'fiat' |
|
|
|
visible: Daemon.fx.enabled && root.state == 'fiat' |
|
|
|
font.pixelSize: constants.fontSizeLarge |
|
|
|
font.pixelSize: constants.fontSizeLarge |
|
|
|
|
|
|
|
font.family: FixedFont |
|
|
|
color: constants.mutedForeground |
|
|
|
color: constants.mutedForeground |
|
|
|
text: formattedTotalBalanceFiat |
|
|
|
text: formattedTotalBalanceFiat |
|
|
|
} |
|
|
|
} |
|
|
|
@ -120,6 +123,7 @@ Item { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
Label { |
|
|
|
Label { |
|
|
|
|
|
|
|
id: formattedConfirmedBalanceLabel |
|
|
|
visible: root.state == 'btc' |
|
|
|
visible: root.state == 'btc' |
|
|
|
Layout.alignment: Qt.AlignRight |
|
|
|
Layout.alignment: Qt.AlignRight |
|
|
|
text: formattedConfirmedBalance |
|
|
|
text: formattedConfirmedBalance |
|
|
|
@ -176,5 +180,10 @@ Item { |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
FontMetrics { |
|
|
|
|
|
|
|
id: fontMetrics |
|
|
|
|
|
|
|
font: formattedConfirmedBalanceLabel.font |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Component.onCompleted: setBalances() |
|
|
|
Component.onCompleted: setBalances() |
|
|
|
} |
|
|
|
} |
|
|
|
|