Add separator between 7G & 0G

This commit is contained in:
Alex Spataru 2020-12-25 18:49:03 -06:00
parent 80ccd12a90
commit ae7276d13c
2 changed files with 14 additions and 0 deletions

View File

@ -155,6 +155,20 @@ Window {
ctx.font = "bold 18px " + app.monoFont
ctx.fillStyle = accel.indicatorColor
ctx.fillText(i, dX, dY)
if (i === 7) {
var x = gauge.width / 2
var y = gauge.height / 2
ctx.lineWidth = 2
ctx.strokeStyle = accel.indicatorColor
ctx.beginPath();
ctx.arc(x, y, Math.abs(dX - x) + 21, theta * 1.05, Math.PI * 0.95)
ctx.stroke()
ctx.beginPath();
ctx.arc(x, y, Math.abs(dX - x) + 15, theta * 1.05, Math.PI * 0.95)
ctx.stroke()
}
}
}
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 49 KiB

After

Width:  |  Height:  |  Size: 52 KiB