Skip to content

Commit c70d15d

Browse files
Update active button and pin logo colours (#61)
Increase target size of the logo.
1 parent f5f999c commit c70d15d

File tree

3 files changed

+8
-11
lines changed

3 files changed

+8
-11
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 ? "#d3b12c" : "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: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,11 @@ export class Pin {
106106

107107
render() {
108108
if (this.ui) {
109-
const fill = !!this.state.value ? "red" : "url(#an)";
109+
const fill = !!this.state.value ? "#00c800" : "url(#an)";
110110
this.ui.element.querySelectorAll("path").forEach((p) => {
111-
p.style.fill = fill;
111+
if (!p.classList.contains("no-edit")) {
112+
p.style.fill = fill;
113+
}
112114
});
113115
}
114116
}

src/microbit-drawing.svg

Lines changed: 3 additions & 8 deletions
Loading

0 commit comments

Comments
 (0)