Skip to content

Free games for graphing calculators: NumWorks, TI-Nspire CX, Casio fx-CG50 and soon TI-84 Plus CE. Balatro, Celeste, Hollow Knight, Minecraft and more.

NumPlay Studio: light only, the space counter never starts below zero, and the blank icon has an edge

Mason363ce0537adcfc0
diff --git a/customize/app.css b/customize/app.css
index d6aa7490..53586129 100644
--- a/customize/app.css
+++ b/customize/app.css
@@ -13,19 +13,6 @@
--t: 210ms;
--cw: clamp(240px, min(27vw, calc((100vh - 150px) * 0.509)), 380px);
}
-@media (prefers-color-scheme: dark) {
- :root {
- --bg: #141518;
- --ink: #f2f2f4;
- --mute: #9a9fa6;
- --track: #2b2d33;
- --card: #23252a;
- --btn: #f2f2f4;
- --btn-ink: #141518;
- --line: #5b6068;
- --shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
- }
-}
* { box-sizing: border-box; }
html, body { margin: 0; }
@@ -167,7 +154,7 @@ body.dragging .drop-hint { opacity: 1; }
width: 30px; height: 30px; padding: 0; border: 0; border-radius: 8px; background: transparent; cursor: pointer;
opacity: 0.45; transition: opacity var(--t) var(--ease), transform var(--t) var(--spring);
}
-.variants button img { width: 100%; height: 100%; display: block; border-radius: 7px; }
+.variants button img { width: 100%; height: 100%; display: block; border-radius: 7px; outline: 1px solid rgba(0, 0, 0, 0.1); outline-offset: -1px; }
.variants button[aria-checked="true"] { opacity: 1; transform: scale(1.08); }
.variants button:hover { opacity: 0.85; }
.install {
diff --git a/customize/app.js b/customize/app.js
index 79c8f4c8..1a2cd7e4 100644
--- a/customize/app.js
+++ b/customize/app.js
@@ -170,7 +170,7 @@
const from = shownUsed, t0 = performance.now(), cancel = ++tween;
const step = (now) => {
if (cancel !== tween) return;
- const k = Math.min(1, (now - t0) / 220), e = 1 - Math.pow(1 - k, 3);
+ const k = Math.min(1, Math.max(0, (now - t0) / 220)), e = 1 - Math.pow(1 - k, 3); // (a frame's time can be before t0)
shownUsed = from + (used - from) * e;
$('#used').textContent = (shownUsed / MiB).toFixed(2);
$('#status-line').textContent = (shownUsed / MiB).toFixed(2) + ' OF ' + +(cap / MiB).toFixed(2) + ' MB';
diff --git a/customize/index.html b/customize/index.html
index 4adbfce3..8b832eb6 100644
--- a/customize/index.html
+++ b/customize/index.html
@@ -3,6 +3,7 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
+<meta name="color-scheme" content="light">
<title>NumPlay Studio</title>
<meta name="description" content="Pick the NumWorks games you want, add your own Game Boy and NES games for Retro-Go, and get one NumPlay app with all of them.">
<link rel="icon" href="kit/variants/NumPlay.png">