choozi - Work indepent of the theme

pull/2415/head
Martin Boonk 2022-12-18 14:19:06 +01:00
parent 8425f0b50a
commit 3e32c00192
1 changed files with 2 additions and 1 deletions

View File

@ -81,6 +81,7 @@ function arc(minR, maxR, minAngle, maxAngle) {
// draw the arc segments around the perimeter
function drawPerimeter() {
g.setBgColor('#000000');
g.clear();
for (var i = 0; i < N; i++) {
g.setColor(colours[i%colours.length]);
@ -152,7 +153,7 @@ function choose() {
// draw the current value of N in the middle of the screen, with
// up/down arrows
function drawN() {
g.setColor(g.theme.fg);
g.setColor('#ffffff');
g.setFont("Vector",fontSize);
g.drawString(N,centreX-g.stringWidth(N)/2+4,centreY-fontSize/2);
if (N < maxN)