Fix energy canvas scaling problems on iOS
This commit is contained in:
parent
0bdeb10eb8
commit
578dd377b1
@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user