change blue in power balance chart

This commit is contained in:
Michael Zanetti 2022-05-06 19:41:07 +02:00
parent 56a3d3db0d
commit d2bb3928e8

View File

@ -273,10 +273,9 @@ StatsBase {
function reset() { function reset() {
barSeries.clear(); barSeries.clear();
valueAxis.max = 0 valueAxis.max = 0
print("********** resetting chart")
if (root.hasProducers) { if (root.hasProducers) {
d.consumptionSet = barSeries.append(qsTr("Consumed"), []) d.consumptionSet = barSeries.append(qsTr("Consumed"), [])
d.consumptionSet.color = Style.darkBlue d.consumptionSet.color = Style.blue
d.consumptionSet.borderColor = d.consumptionSet.color d.consumptionSet.borderColor = d.consumptionSet.color
d.consumptionSet.borderWidth = 0 d.consumptionSet.borderWidth = 0
d.productionSet = barSeries.append(qsTr("Produced"), []) d.productionSet = barSeries.append(qsTr("Produced"), [])
@ -437,7 +436,7 @@ StatsBase {
Rectangle { Rectangle {
width: Style.extraSmallFont.pixelSize width: Style.extraSmallFont.pixelSize
height: width height: width
color: Style.darkBlue color: Style.blue
} }
Label { Label {
text: d.consumptionSet ? qsTr("Consumed: %1 kWh").arg(d.consumptionSet.at(toolTip.idx).toFixed(2)) : "" text: d.consumptionSet ? qsTr("Consumed: %1 kWh").arg(d.consumptionSet.at(toolTip.idx).toFixed(2)) : ""