pace: use layout `bgCol`
parent
0b9f64dea7
commit
54c85720fc
|
|
@ -45,8 +45,6 @@ const drawGpsLvl = (l: Layout.RenderedHierarchy) => {
|
||||||
else
|
else
|
||||||
g.setColor("#00FF00");
|
g.setColor("#00FF00");
|
||||||
|
|
||||||
g.clearRect(l.x, l.y, l.x + l.w, l.y + l.h);
|
|
||||||
|
|
||||||
g.fillRect(
|
g.fillRect(
|
||||||
l.x,
|
l.x,
|
||||||
l.y + l.h - 10 - (l.h - 10) * ((nsats > 12 ? 12 : nsats) / 12),
|
l.y + l.h - 10 - (l.h - 10) * ((nsats > 12 ? 12 : nsats) / 12),
|
||||||
|
|
@ -63,6 +61,7 @@ const layout = new Layout({
|
||||||
render: drawGpsLvl,
|
render: drawGpsLvl,
|
||||||
filly: 1,
|
filly: 1,
|
||||||
width: 10,
|
width: 10,
|
||||||
|
bgCol: g.theme.bg, // automatically clears before render()
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
type: "v",
|
type: "v",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue