Limiter tab: limiter LED dot next to the Channel button
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
9e2636c6d6
commit
a02e5dd53e
2 files changed
+5
-2
No files matched your search
+2
-2
@@ -553,7 +553,7 @@ const limitOn = new Map(); // "dev|idx" -> time it was last reported active
|
||||
let limEls = [];
|
||||
const LIM_HOLD = 300; // ms an LED stays lit, so short hits are visible
|
||||
const limLed = (devId, i, cls = "") => h("span", { class: "limled " + cls, "data-lim": `${devId}|${i}`, title: t("Limiter active"), "aria-hidden": "true" },
|
||||
cls ? "LIM" : null);
|
||||
cls && cls !== "dot" ? "LIM" : null);
|
||||
|
||||
function updateMeters(ev) {
|
||||
for (const kind of ["in", "out"])
|
||||
@@ -1898,7 +1898,7 @@ function limiterCard(d, o) {
|
||||
] : [];
|
||||
|
||||
const card = h("div", { class: "card limcard" },
|
||||
h("h3", {}, h("span", { class: "grow" }, chTitle(d, "out", o)), ledMeter(d.id, "out", o, "h"),
|
||||
h("h3", {}, h("span", { class: "grow" }, chTitle(d, "out", o)), ledMeter(d.id, "out", o, "h"), limLed(d.id, o, "dot"),
|
||||
h("button", { class: "small", onclick: () => openChannel("out", o) }, t("Channel"))),
|
||||
res,
|
||||
h("div", { class: "limgrid" },
|
||||
|
||||
@@ -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.dot { width: 9px; height: 9px; margin: 0 8px 0 4px; border-radius: 50%; }
|
||||
.limcard h3 > .grow { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
|
||||
.limcard h3 .led.h { width: 96px; }
|
||||
.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); }
|
||||
|
||||
Reference in new issue
Block a user