diff --git a/src/board/buttons.ts b/src/board/buttons.ts index c2898e44..a7877726 100644 --- a/src/board/buttons.ts +++ b/src/board/buttons.ts @@ -103,7 +103,7 @@ export class Button { } render() { - const fill = !!this.state.value ? "#d3b12c" : "none"; + const fill = !!this.state.value ? "#00c800" : "#000000"; this.element.querySelectorAll("circle").forEach((c) => { c.style.fill = fill; }); diff --git a/src/board/pins.ts b/src/board/pins.ts index fab88dc5..76d5515f 100644 --- a/src/board/pins.ts +++ b/src/board/pins.ts @@ -106,9 +106,11 @@ export class Pin { render() { if (this.ui) { - const fill = !!this.state.value ? "red" : "url(#an)"; + const fill = !!this.state.value ? "#00c800" : "url(#an)"; this.ui.element.querySelectorAll("path").forEach((p) => { - p.style.fill = fill; + if (!p.classList.contains("no-edit")) { + p.style.fill = fill; + } }); } } diff --git a/src/microbit-drawing.svg b/src/microbit-drawing.svg index e1d0cda4..115210aa 100644 --- a/src/microbit-drawing.svg +++ b/src/microbit-drawing.svg @@ -307,6 +307,7 @@ @@ -349,10 +347,7 @@ - - - - +