Browse Source

qml: change piechart item order, less chance of overlap

master
Sander van Grieken 3 years ago
parent
commit
e59e1ec959
  1. 4
      electrum/gui/qml/components/WalletDetails.qml

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

@ -154,7 +154,7 @@ Pane {
id: piechart
visible: Daemon.currentWallet.totalBalance.satsInt > 0
Layout.preferredWidth: parent.width
implicitHeight: 200 // TODO: sane value dependent on screen
implicitHeight: 220 // TODO: sane value dependent on screen
innerOffset: 6
function updateSlices() {
var totalB = Daemon.currentWallet.totalBalance.satsInt
@ -162,9 +162,9 @@ Pane {
var frozenB = Daemon.currentWallet.frozenBalance.satsInt
var lnB = Daemon.currentWallet.lightningBalance.satsInt
piechart.slices = [
{ v: lnB/totalB, color: constants.colorPiechartLightning, text: 'Lightning' },
{ v: (onchainB-frozenB)/totalB, color: constants.colorPiechartOnchain, text: 'On-chain' },
{ v: frozenB/totalB, color: constants.colorPiechartFrozen, text: 'On-chain (frozen)' },
{ v: lnB/totalB, color: constants.colorPiechartLightning, text: 'Lightning' }
]
}
}

Loading…
Cancel
Save