Skip to content

Commit a1ae9af

Browse files
Simplify buttons. Update colour.
1 parent 9b7d81c commit a1ae9af

File tree

3 files changed

+4
-10
lines changed

3 files changed

+4
-10
lines changed

src/board/buttons.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export class Button {
103103
}
104104

105105
render() {
106-
const fill = !!this.state.value ? "#f7febfdd" : "none";
106+
const fill = !!this.state.value ? "#00c800" : "#000000";
107107
this.element.querySelectorAll("circle").forEach((c) => {
108108
c.style.fill = fill;
109109
});

src/board/pins.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ export class Pin {
106106

107107
render() {
108108
if (this.ui) {
109-
const fill = !!this.state.value ? "#f7febfdd" : "url(#an)";
109+
const fill = !!this.state.value ? "#00c800" : "url(#an)";
110110
this.ui.element.querySelectorAll("path").forEach((p) => {
111111
if (!p.classList.contains("no-edit")) {
112112
p.style.fill = fill;

src/microbit-drawing.svg

Lines changed: 2 additions & 8 deletions
Loading

0 commit comments

Comments
 (0)