Max level: confirm typed values above the limit, cleaner limit display

- typing a gain above the max level shows the limit and a warning; Apply has to be
  clicked twice ("Set anyway"), the forced value also passes the server's lock
- sliders and faders show the locked range as a subtle striped zone in the track with a
  stop edge at the limit, behind the knob (no more line drawn over the knob)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
GivouandClaude Opus 5.5 committed 2026-11-01 23:37:40 +01:00
1 parent 52695d20a5
commit 06bc767f2c
4 files changed
+72 -26

No files matched your search

+1 -1
View File
@@ -825,7 +825,7 @@ class App:
return {"ok": True}
if action == "set":
kind, idx, value = body["kind"], int(body["idx"]), body["value"]
if body["param"] == "gain":
if body["param"] == "gain" and not body.get("force"): # force: confirmed twice in the app
value = dev.gain_cap(kind, idx, int(value)) # software max level
dev.set_param(kind, idx, body["param"], value)
return {"ok": True, "value": value}