pace: use layout `bgCol`

master
Rob Pilling 2025-05-14 22:30:12 +01:00
parent 0b9f64dea7
commit 54c85720fc
1 changed files with 1 additions and 2 deletions

View File

@ -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",