summaryrefslogtreecommitdiff
path: root/client/index.js
diff options
context:
space:
mode:
authorjulian laplace <julescarbon@gmail.com>2025-07-15 14:49:01 +0200
committerjulian laplace <julescarbon@gmail.com>2025-07-15 14:49:01 +0200
commit38b1babb974dc943d21e358c6ff63c993d747f6b (patch)
treec504bc6d8cbb0d7afc4cff1b4eaacbf37e121c49 /client/index.js
parentb68e5f30225595abbff4b787d8348c9ea4700d1f (diff)
edit copy
Diffstat (limited to 'client/index.js')
-rw-r--r--client/index.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/client/index.js b/client/index.js
index a50208c..8c53cb6 100644
--- a/client/index.js
+++ b/client/index.js
@@ -528,7 +528,12 @@ function bindRoot() {
}).forEach(([key, fn], index) => {
const el = document.querySelector(`.root-select .${key}`);
el.addEventListener("click", fn);
- el.style.background = color(Math.pow(2, index / 12), 0, 1.6);
+ el.style.background = color(
+ Math.pow(2, index / 12),
+ key.length === 6 ? 0 : -0.15,
+ key.length === 6 ? 0.95 : 0.4,
+ 1,
+ );
});
}