Fixes in the energy view
parent
feb7b08b78
commit
f77845f835
|
|
@ -5218,7 +5218,7 @@ Möchtest Du fortfahren?</translation>
|
|||
</message>
|
||||
<message>
|
||||
<source>From battery</source>
|
||||
<translation>Betterie</translation>
|
||||
<translation>Batterie</translation>
|
||||
</message>
|
||||
<message>
|
||||
<source>From grid</source>
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ MainViewBase {
|
|||
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 {
|
||||
|
|
@ -90,12 +90,6 @@ MainViewBase {
|
|||
shownInterfaces: ["smartmeterproducer"]
|
||||
}
|
||||
|
||||
ThingsProxy {
|
||||
id: batteries
|
||||
engine: _engine
|
||||
shownInterfaces: ["energystorage"]
|
||||
}
|
||||
|
||||
Flickable {
|
||||
id: flickable
|
||||
anchors.fill: parent
|
||||
|
|
|
|||
|
|
@ -162,7 +162,6 @@ Item {
|
|||
legend.labelColor: Style.foregroundColor
|
||||
legend.font: Style.extraSmallFont
|
||||
|
||||
|
||||
ValueAxis {
|
||||
id: valueAxis
|
||||
min: 0
|
||||
|
|
|
|||
|
|
@ -16,6 +16,11 @@ ChartView {
|
|||
|
||||
property EnergyManager energyManager: null
|
||||
|
||||
ThingsProxy {
|
||||
id: batteries
|
||||
engine: _engine
|
||||
shownInterfaces: ["energystorage"]
|
||||
}
|
||||
PieSeries {
|
||||
id: productionBalanceSeries
|
||||
size: 0.9
|
||||
|
|
|
|||
|
|
@ -147,6 +147,6 @@ Item {
|
|||
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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue