From 9e2636c6d6d28b2a15a2744fde19317c536b2ab9 Mon Sep 17 00:00:00 2001 From: Givou Date: Mon, 2 Nov 2026 17:55:00 +0100 Subject: [PATCH] Mixer: limiter as glowing LIM text instead of a bar Co-Authored-By: Claude Opus 5.5 --- static/app.js | 2 +- static/style.css | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/static/app.js b/static/app.js index ade3542..c1ce37d 100644 --- a/static/app.js +++ b/static/app.js @@ -908,7 +908,7 @@ function strip(d, kind, i) { el.append( h("button", { class: "strip-head", onclick: () => openChannel(kind, i), title: t("Edit channel") }, h("span", { class: "kind" }, chLabel(kind, i), linkBadge(d, kind, i), polBadge(d, kind, i)), h("span", { class: "nm" }, ch.name || " "), - kind === "out" ? limLed(d.id, i) : h("span", { class: "limled ph", "aria-hidden": "true" })), // keeps faders level with the outputs + kind === "out" ? limLed(d.id, i, "txt") : h("span", { class: "limled txt ph", "aria-hidden": "true" }, "LIM")), // keeps faders level with the outputs h("div", { class: "faderbox" }, ledMeter(d.id, kind, i), f), db, toggleBtn("MUTE", kind, i, "mute", "mute", v => el.classList.toggle("muted", v))); diff --git a/static/style.css b/static/style.css index 551c391..75d71ea 100644 --- a/static/style.css +++ b/static/style.css @@ -467,6 +467,9 @@ body.locked #statusbar :is(button, select):not([data-view-ok]) { cursor: not-all .limled { flex: none; display: block; width: 34px; height: 4px; margin-top: 3px; border-radius: 1px; background: color-mix(in srgb, var(--led-o) 16%, transparent); transition: background .08s, box-shadow .08s; } .limled.ph { visibility: hidden; } +.limled.txt { width: auto; height: auto; margin: 1px 0 0; background: none; font-size: 9px; line-height: 11px; font-weight: 800; letter-spacing: .08em; + color: color-mix(in srgb, var(--led-o) 22%, transparent); transition: color .08s; } +.limled.txt.on { background: none; box-shadow: none; color: var(--led-o); text-shadow: 0 0 5px color-mix(in srgb, var(--led-o) 55%, transparent); } .limled.on { background: var(--led-o); box-shadow: 0 0 6px var(--led-o), 0 0 2px var(--led-o); } .limled.h { width: auto; height: auto; margin: 0; padding: 2px 6px; font-size: 10px; font-weight: 700; letter-spacing: .06em; color: color-mix(in srgb, var(--led-o) 45%, transparent); }