Fixes in the energy view
This commit is contained in:
parent
feb7b08b78
commit
f77845f835
@ -5218,7 +5218,7 @@ Möchtest Du fortfahren?</translation>
|
|||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>From battery</source>
|
<source>From battery</source>
|
||||||
<translation>Betterie</translation>
|
<translation>Batterie</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<source>From grid</source>
|
<source>From grid</source>
|
||||||
|
|||||||
@ -60,7 +60,7 @@ MainViewBase {
|
|||||||
engine: _engine
|
engine: _engine
|
||||||
}
|
}
|
||||||
|
|
||||||
property var thingColors: [Style.blue, Style.green, Style.red, Style.yellow, Style.purple, Style.yellow, Style.lime]
|
property var thingColors: [Style.blue, Style.green, Style.red, Style.yellow, Style.purple, Style.orange, Style.lime]
|
||||||
|
|
||||||
|
|
||||||
ThingsProxy {
|
ThingsProxy {
|
||||||
@ -90,12 +90,6 @@ MainViewBase {
|
|||||||
shownInterfaces: ["smartmeterproducer"]
|
shownInterfaces: ["smartmeterproducer"]
|
||||||
}
|
}
|
||||||
|
|
||||||
ThingsProxy {
|
|
||||||
id: batteries
|
|
||||||
engine: _engine
|
|
||||||
shownInterfaces: ["energystorage"]
|
|
||||||
}
|
|
||||||
|
|
||||||
Flickable {
|
Flickable {
|
||||||
id: flickable
|
id: flickable
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
|
|||||||
@ -162,7 +162,6 @@ Item {
|
|||||||
legend.labelColor: Style.foregroundColor
|
legend.labelColor: Style.foregroundColor
|
||||||
legend.font: Style.extraSmallFont
|
legend.font: Style.extraSmallFont
|
||||||
|
|
||||||
|
|
||||||
ValueAxis {
|
ValueAxis {
|
||||||
id: valueAxis
|
id: valueAxis
|
||||||
min: 0
|
min: 0
|
||||||
|
|||||||
@ -16,6 +16,11 @@ ChartView {
|
|||||||
|
|
||||||
property EnergyManager energyManager: null
|
property EnergyManager energyManager: null
|
||||||
|
|
||||||
|
ThingsProxy {
|
||||||
|
id: batteries
|
||||||
|
engine: _engine
|
||||||
|
shownInterfaces: ["energystorage"]
|
||||||
|
}
|
||||||
PieSeries {
|
PieSeries {
|
||||||
id: productionBalanceSeries
|
id: productionBalanceSeries
|
||||||
size: 0.9
|
size: 0.9
|
||||||
|
|||||||
@ -147,6 +147,6 @@ Item {
|
|||||||
return (permissions & requestedScope) === requestedScope;
|
return (permissions & requestedScope) === requestedScope;
|
||||||
}
|
}
|
||||||
|
|
||||||
property bool inhibitChartsAnimation: ["SM-G950x", "SM-G955x", "SM-G892A"].indexOf(PlatformHelper.deviceModel) >= 0
|
property bool inhibitChartsAnimation: PlatformHelper.deviceModel.startsWith("SM-G950") // Samsung S8 has a buggy GPU driver :(
|
||||||
property int chartsAnimationOptions: !inhibitChartsAnimation ? ChartView.SeriesAnimations : ChartView.NoAnimation
|
property int chartsAnimationOptions: !inhibitChartsAnimation ? ChartView.SeriesAnimations : ChartView.NoAnimation
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user