1
0

qml: fix network histogram gradient fee range to 600-1

This commit is contained in:
Sander van Grieken
2023-03-16 11:57:35 +01:00
parent 46d5fdbc86
commit b59a1410a2

View File

@@ -98,7 +98,7 @@ Pane {
Layout.preferredWidth: 300 * (modelData[1] / Network.feeHistogram.total)
Layout.fillWidth: true
height: parent.height
color: Qt.hsva(2/3-(2/3*(Math.log(modelData[0])/Math.log(Math.max(25, Network.feeHistogram.max_fee)))), 0.8, 1, 1)
color: Qt.hsva(2/3-(2/3*(Math.log(Math.min(600, modelData[0]))/Math.log(600))), 0.8, 1, 1)
}
}
}