Fixes in the energy view

pull/765/head
Michael Zanetti 2022-02-10 14:04:16 +01:00
parent feb7b08b78
commit f77845f835
5 changed files with 8 additions and 10 deletions

View File

@ -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>

View File

@ -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

View File

@ -162,7 +162,6 @@ Item {
legend.labelColor: Style.foregroundColor
legend.font: Style.extraSmallFont
ValueAxis {
id: valueAxis
min: 0

View File

@ -16,6 +16,11 @@ ChartView {
property EnergyManager energyManager: null
ThingsProxy {
id: batteries
engine: _engine
shownInterfaces: ["energystorage"]
}
PieSeries {
id: productionBalanceSeries
size: 0.9

View File

@ -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
}