Add more indicators that tools are currently active
This commit is contained in:
parent
d55c17f42c
commit
b3f7137d85
2 changed files with 17 additions and 1 deletions
|
|
@ -240,6 +240,9 @@ function colorGrid() {
|
|||
function changeColor() {
|
||||
const buttonID = this.id;
|
||||
|
||||
buttons.forEach(btn => btn.classList.remove("is-active"));
|
||||
this.classList.add("is-active");
|
||||
|
||||
if (buttonID === "rgbColor") {
|
||||
isRgb = true;
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Reference in a new issue