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