Fix energy canvas scaling problems on iOS

This commit is contained in:
Michael Zanetti 2022-12-02 00:04:40 +01:00
parent 0bdeb10eb8
commit 578dd377b1

View File

@ -88,7 +88,8 @@ Item {
id: canvas
anchors.fill: parent
renderTarget: Canvas.FramebufferObject
// Breaks scaling on iOS
// renderTarget: Canvas.FramebufferObject
renderStrategy: Canvas.Cooperative
onPaint: {
@ -489,7 +490,7 @@ Item {
PieSlice {
color: energyManager.currentPowerStorage == 0
? Style.foregroundColor
? Style.lime
: root.toStorage > 0
? Style.purple
: Style.orange