Skip to content

Commit 54c8572

Browse files
committed
pace: use layout bgCol
1 parent 0b9f64d commit 54c8572

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

apps/pace/app.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ const drawGpsLvl = (l: Layout.RenderedHierarchy) => {
4545
else
4646
g.setColor("#00FF00");
4747

48-
g.clearRect(l.x, l.y, l.x + l.w, l.y + l.h);
49-
5048
g.fillRect(
5149
l.x,
5250
l.y + l.h - 10 - (l.h - 10) * ((nsats > 12 ? 12 : nsats) / 12),
@@ -63,6 +61,7 @@ const layout = new Layout({
6361
render: drawGpsLvl,
6462
filly: 1,
6563
width: 10,
64+
bgCol: g.theme.bg, // automatically clears before render()
6665
},
6766
{
6867
type: "v",

0 commit comments

Comments
 (0)