From 41da04a1e5b6d4b431caab3aef20ffca2f24d916 Mon Sep 17 00:00:00 2001 From: Ari Sulistiono Date: Mon, 2 Nov 2026 22:25:22 +0700 Subject: [PATCH 01/21] feat(gui): add V5 single-cutout hardware key renderer for mixer toggles --- web/hardware-keys.js | 169 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 169 insertions(+) create mode 100644 web/hardware-keys.js diff --git a/web/hardware-keys.js b/web/hardware-keys.js new file mode 100644 index 000000000..f98d94ea4 --- /dev/null +++ b/web/hardware-keys.js @@ -0,0 +1,169 @@ +/* ArSonMix hardware backlit keys — approved owner V5 geometry/occluded light. + UI-only decoration: existing data-*, click handlers and native ACK remain + the sole authority. No audio state is inferred or dispatched here. */ +(function(){ + 'use strict'; + const RULES=[ + ['#mixer .channel-actions [data-mute],#masterMute','mute','MUTE'], + ['#mixer .channel-actions [data-solo]','solo','SOLO'], + ['#mixer .utility-row [data-pre]','phase','Ø'], + ['#mixer .utility-row [data-hpf]','processing','HPF'], + ['#mixer [data-channel-format-toggle]','neutral',null], + ['#masterMode','neutral',null], + ['#mixer [data-fxpower],#masterLeft [data-master-power]','processing','FX'], + ['#app .arV6Console [data-op="SET_MUTE"]','mute','M'], + ['#app .arV6Console [data-op="SET_SOLO"]','solo','S'], + ['#app .arV6Console [data-op="SET_CUE"]','cue','C'], + ['#app .arV6Console [data-op="SET_INSERT_BYPASS"]','processing','FX'], + ['#app .arV6Console [data-op="SET_SEND_TAP"]','cue',null], + ['#app [data-sof-toggle]','cue','SEND'], + ['#app [data-chainbypass]','processing','FX'] + ]; + const PALETTE={ + mute:'255,64,85',solo:'255,208,44',cue:'90,200,231', + processing:'87,211,189',phase:'243,164,81', + link:'163,141,235',neutral:'210,225,234' + }; + const TARGET=RULES.map(rule=>rule[0]).join(','); + const instances=new Map(); + let serial=0; + let observer=null; + const escapeXml=(value)=>String(value).replace(/&/g,'&').replace(//g,'>').replace(/"/g,'"').replace(/'/g,'''); + function source(button){ + for(const [selector,semantic,label] of RULES) { + if(button.matches(selector))return {semantic,label}; + } + return null; + } + function rawLabel(button){ + // Native accepted values can change PRE ↔ POST, MONO ↔ STEREO, etc. + return (button.textContent||'').trim().replace(/\s+/g,' '); + } + function classifyOn(button,legend){ + const pressed=button.getAttribute('aria-pressed'); + if(pressed!==null)return pressed==='true'; + if(button.dataset.op==='SET_SEND_TAP')return legend==='PRE'; + return button.classList.contains('active')||button.classList.contains('selected')|| + button.classList.contains('power-on')||button.classList.contains('on'); + } + function svgMarkup(legend,w,h,id){ + // V5: a SINGLE SVG mask text cut-out; never overlay duplicate text paints. + // ViewBox follows actual key size, preventing distorted glyphs in 28px strips. + const safe=escapeXml(legend); + const rx=Math.min(6,Math.max(2.5,h*.135)); + const fontSize=Math.max(8,Math.min(15,h*.46,(w-7)/(Math.max(1,legend.length)*.70))); + const x=w/2,y=h*.615,capW=Math.max(1,w-3),capH=Math.max(1,h-3); + const left=Math.max(3,w*.07),right=w-left,shineY=2.65; + const r=n=>Number(n.toFixed(2)); + return ''; + } + function render(button,force){ + if(!button.isConnected)return; + const record=instances.get(button); + if(!record)return; + const rect=button.getBoundingClientRect(); + const w=Math.max(16,rect.width-4),h=Math.max(16,rect.height-4); + const legend=button.dataset.mxHwLegend||record.legend; + const size=w.toFixed(1)+'x'+h.toFixed(1)+'/'+legend; + if(!force&&record.size===size&&button.querySelector(':scope > svg.mx-hw-face'))return; + record.size=size; + button.innerHTML=''+escapeXml(legend)+''+svgMarkup(legend,w,h,record.id); + } + function upgrade(button){ + if(!(button instanceof HTMLButtonElement))return; + const rule=source(button); + if(!rule)return; + const existing=instances.get(button); + if(existing&&button.querySelector(':scope > svg.mx-hw-face'))return; + const original=rawLabel(button); + let legend=rule.label||original||'ON'; + // A source text replacement (e.g. native PRE/POST) is authoritative. + if(existing&&original&&original!==existing.legend&&original!=='')legend=original; + if(!/^[\wØ/+\- ]{1,10}$/.test(legend))return; + if(!existing){ + // Drop the broken BTN-180 visual skin, retaining functionality/data hooks. + button.classList.remove('btn-180','candy'); + button.classList.add('mx-hw-key','mx-hw-'+rule.semantic); + if(!button.hasAttribute('aria-label'))button.setAttribute('aria-label',original||legend); + button.style.setProperty('--mx-hw-led',PALETTE[rule.semantic]); + instances.set(button,{id:++serial,legend,size:''}); + if(resizer)resizer.observe(button); + }else{ + existing.legend=legend; + } + if(button.dataset.op==='SET_SEND_TAP')button.dataset.mxHwOn=String(classifyOn(button,legend)); + button.dataset.mxHwLegend=legend; + render(button,true); + } + function scan(root){ + if(!root||root.nodeType!==1)return; + if(root.matches('button.mx-hw-key')&&!root.querySelector('svg.mx-hw-face')){ + // An existing app handler replaced the button's textContent. + const prev=instances.get(root),changed=rawLabel(root); + if(prev&&changed&&changed!==prev.legend){ + root.dataset.mxHwLegend=changed; + prev.legend=changed; + } + upgrade(root); + }else if(root.matches(TARGET))upgrade(root); + for(const button of root.querySelectorAll(TARGET))upgrade(button); + } + const resizer=typeof ResizeObserver==='function'?new ResizeObserver(entries=>{ + for(const entry of entries)render(entry.target,false); + }):null; + const pending=new Set(); + let scheduled=false; + function flush(){ + scheduled=false; + for(const node of pending)scan(node); + pending.clear(); + } + function schedule(node){ + if(!node||node.nodeType!==1)return; + pending.add(node); + if(!scheduled){scheduled=true;queueMicrotask(flush)} + } + function install(){ + if(observer)return; + scan(document.body); + observer=new MutationObserver(records=>{ + for(const record of records){ + if(record.target instanceof HTMLButtonElement&&record.target.classList.contains('mx-hw-key') && + !record.target.querySelector('svg.mx-hw-face'))schedule(record.target); + for(const node of record.addedNodes)if(node.nodeType===1&& + (node.matches?.(TARGET)||node.querySelector?.(TARGET)))schedule(node); + } + }); + // Watch DOM replacement only, not high-frequency meter/style attributes. + observer.observe(document.body,{childList:true,subtree:true}); + } + window.ArSonMixHardwareKeys=Object.freeze({install,upgrade,scan,PALETTE}); + if(document.readyState==='loading')document.addEventListener('DOMContentLoaded',install,{once:true}); + else install(); +})(); \ No newline at end of file From f0f4a7adb4705f87c7a5e095e9cc1b98dc9d7db9 Mon Sep 17 00:00:00 2001 From: Ari Sulistiono Date: Mon, 2 Nov 2026 22:26:03 +0700 Subject: [PATCH 02/21] feat(gui): V5 recessed graphite/backlit material, context LED and no-hover occluded leakage --- web/styles-src/43-hardware-backlit.css | 148 +++++++++++++++++++++++++ 1 file changed, 148 insertions(+) create mode 100644 web/styles-src/43-hardware-backlit.css diff --git a/web/styles-src/43-hardware-backlit.css b/web/styles-src/43-hardware-backlit.css new file mode 100644 index 000000000..dabbe27c8 --- /dev/null +++ b/web/styles-src/43-hardware-backlit.css @@ -0,0 +1,148 @@ +/* Owner-approved V5 graphite hardware keys, production native/legacy console. + ONE SVG cutout legend, ONE white edge shine, asymmetric occluded leakage. + No hover repaint, SVG filters, blur, infinite animation, or fake audio state. + This module is LAST in the deterministic CSS build, replacing BTN-180 only + on opt-in tactile mixer buttons. Navigation, routing pins, meters, faders, + editor launchers, dropdowns and ordinary dialog actions are NOT backlit. */ +#app button.mx-hw-key { + --mx-hw-led:210,225,234; + position:relative!important; + display:inline-block!important; + box-sizing:border-box!important; + min-width:0!important; + padding:2px!important; + overflow:hidden!important; + isolation:isolate!important; + border:1px solid #0c151b!important; + border-radius:5px!important; + background:linear-gradient(180deg,#0b141b,#25343d)!important; + box-shadow:inset 0 2px 4px #03080db5!important; + color:transparent!important; + text-shadow:none!important; + letter-spacing:0!important; + line-height:normal!important; + filter:none!important; + backdrop-filter:none!important; + -webkit-backdrop-filter:none!important; + transform:none!important; + transition:none!important; + text-align:center!important; + cursor:pointer; + touch-action:manipulation; +} +#app button.mx-hw-key.mx-hw-mute {--mx-hw-led:255,64,85} +#app button.mx-hw-key.mx-hw-solo {--mx-hw-led:255,208,44} +#app button.mx-hw-key.mx-hw-cue {--mx-hw-led:90,200,231} +#app button.mx-hw-key.mx-hw-processing {--mx-hw-led:87,211,189} +#app button.mx-hw-key.mx-hw-phase {--mx-hw-led:243,164,81} +#app button.mx-hw-key.mx-hw-link {--mx-hw-led:163,141,235} +#app button.mx-hw-key.mx-hw-neutral {--mx-hw-led:210,225,234} +/* V5 leakage strategy: four tiny STATIC gradients only in the closest + 1–2px gap, unequal sides, lower-center stronger; top almost occluded. */ +#app button.mx-hw-key::before { + content:""!important; + display:block!important; + position:absolute!important; + inset:1px!important; + border:0!important; + border-radius:4px!important; + width:auto!important;height:auto!important; + transform:none!important; + pointer-events:none!important; + z-index:2!important; + opacity:0!important; + box-shadow:none!important; + background: + linear-gradient(90deg,transparent 0%,rgba(var(--mx-hw-led),.035) 18%, + rgba(var(--mx-hw-led),.16) 33%,rgba(var(--mx-hw-led),.46) 49%, + rgba(var(--mx-hw-led),.27) 63%,rgba(var(--mx-hw-led),.07) 80%,transparent 100%) + center bottom / calc(100% - 12px) 2px no-repeat, + linear-gradient(180deg,transparent 0%,transparent 30%, + rgba(var(--mx-hw-led),.045) 50%,rgba(var(--mx-hw-led),.21) 75%, + rgba(var(--mx-hw-led),.1) 88%,transparent 100%) + left bottom / 2px 100% no-repeat, + linear-gradient(180deg,transparent 0%,transparent 44%, + rgba(var(--mx-hw-led),.075) 65%,rgba(var(--mx-hw-led),.17) 85%, + transparent 100%) + right bottom / 2px 100% no-repeat, + linear-gradient(90deg,transparent 0%,transparent 34%, + rgba(var(--mx-hw-led),.055) 50%,transparent 67%,transparent 100%) + center top / calc(100% - 18px) 1px no-repeat!important; +} +#app button.mx-hw-key::after{content:none!important;display:none!important} +#app button.mx-hw-key[aria-pressed="true"]::before, +#app button.mx-hw-key.active::before, +#app button.mx-hw-key.selected::before, +#app button.mx-hw-key.power-on::before, +#app button.mx-hw-key[data-mx-hw-on="true"]::before {opacity:1!important} +#app button.mx-hw-key > svg.mx-hw-face { + position:absolute!important; + z-index:1!important; + top:2px!important;right:2px!important;bottom:2px!important;left:2px!important; + width:calc(100% - 4px)!important; + height:calc(100% - 4px)!important; + display:block!important; + min-height:0!important; + overflow:hidden!important; + pointer-events:none!important; + transform:translateY(0)!important; + transition:none!important; + filter:none!important; +} +#app button.mx-hw-key svg .mx-hw-lamp {opacity:0!important} +#app button.mx-hw-key[aria-pressed="true"] svg .mx-hw-lamp, +#app button.mx-hw-key.active svg .mx-hw-lamp, +#app button.mx-hw-key.selected svg .mx-hw-lamp, +#app button.mx-hw-key.power-on svg .mx-hw-lamp, +#app button.mx-hw-key[data-mx-hw-on="true"] svg .mx-hw-lamp {opacity:1!important} +#app button.mx-hw-key[aria-pressed="true"] > svg.mx-hw-face, +#app button.mx-hw-key.active > svg.mx-hw-face, +#app button.mx-hw-key[data-mx-hw-on="true"] > svg.mx-hw-face { + transform:translateY(1px)!important; +} +#app button.mx-hw-key > .mx-hw-screen-reader{ + position:absolute!important; + width:1px!important;height:1px!important; + margin:-1px!important;padding:0!important; + border:0!important;overflow:hidden!important; + clip-path:inset(50%)!important; + white-space:nowrap!important; +} +#app button.mx-hw-key:hover:not(:disabled){ + filter:none!important; + background:linear-gradient(180deg,#0b141b,#25343d)!important; + box-shadow:inset 0 2px 4px #03080db5!important; +} +#app button.mx-hw-key:active:not(:disabled){ + transform:none!important; + background:linear-gradient(180deg,#0b141b,#25343d)!important; + box-shadow:inset 0 2px 4px #03080db5!important; +} +#app button.mx-hw-key:active:not(:disabled) > svg.mx-hw-face{ + transform:translateY(1px)!important; +} +#app button.mx-hw-key:focus-visible{ + outline:2px solid #9bbecd!important; + outline-offset:2px!important; +} +#app button.mx-hw-key:disabled { + cursor:not-allowed!important; + opacity:.47!important; + filter:none!important; +} +#app button.mx-hw-key:disabled::before{opacity:0!important} +#app button.mx-hw-key:disabled svg .mx-hw-lamp{opacity:0!important} +/* Keep target strip geometry intact, bypassing the legacy BTN-180 face. */ +#app #mixer .channel-actions button.mx-hw-key, +#app #mixer .utility-row button.mx-hw-key { + flex:1 1 0; +} +#app #mixer [data-channel-format-toggle].mx-hw-key{ + min-width:20px!important; +} +#app .arV6Controls button.mx-hw-key{width:28px!important;height:28px!important;padding:2px!important} +#app .arV6FxSlot button.mx-hw-key{min-width:27px!important;min-height:22px!important;padding:2px!important} +#app .arV6Send button.mx-hw-key{min-width:34px!important;min-height:20px!important;padding:2px!important} +@media(prefers-reduced-motion:reduce){ + #app button.mx-hw-key,#app button.mx-hw-key > svg.mx-hw-face{transition:none!important} +} From dabfd60a6a8ee8155705c375ff6978a9b12b5007 Mon Sep 17 00:00:00 2001 From: Ari Sulistiono Date: Mon, 2 Nov 2026 22:26:30 +0700 Subject: [PATCH 03/21] build(gui): include V5 hardware key source and standalone runtime parity --- scripts/build_ui_css.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/build_ui_css.py b/scripts/build_ui_css.py index 86f81f5f2..0f3b79676 100644 --- a/scripts/build_ui_css.py +++ b/scripts/build_ui_css.py @@ -3,7 +3,7 @@ import argparse ROOT=Path(__file__).resolve().parents[1] SOURCE=ROOT/'web/styles-src' -MODULES=('00-font-and-assets.css','10-console-legacy.css','20-button-180.css','21-navigation-fx-power.css','30-selection-effects.css','40-rail-pan.css','41-mixer-performance.css','42-mixer-premium.css') +MODULES=('00-font-and-assets.css','10-console-legacy.css','20-button-180.css','21-navigation-fx-power.css','30-selection-effects.css','40-rail-pan.css','41-mixer-performance.css','42-mixer-premium.css','43-hardware-backlit.css') CSS=ROOT/'web/styles.css' HTML=ROOT/'AR-MIX-Live-FX-Host-Standalone-v0.3.html' def compile_css(): @@ -41,6 +41,7 @@ def embed_all(page,css): ('style','arsonmix-mixer-layout-css','web/mixer-layout.css'), ('script','arsonmix-mixer-io-js','web/mixer-io.js'), ('script','arsonmix-mixer-layout-js','web/mixer-layout.js'), + ('script','arsonmix-hardware-keys-js','web/hardware-keys.js'), ): built=embed_managed(built,tag,slot,(ROOT/path).read_text(encoding='utf-8')) return built From 7572a641f634659b5fb51e09c786cf4019a1abc1 Mon Sep 17 00:00:00 2001 From: Ari Sulistiono Date: Mon, 2 Nov 2026 22:26:33 +0700 Subject: [PATCH 04/21] feat(gui): load shared V5 hardware key renderer in WebView --- web/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/index.html b/web/index.html index 4b3852300..069ec9cf1 100644 --- a/web/index.html +++ b/web/index.html @@ -47,5 +47,5 @@
UI PREVIEW · Native audio engine is not connectedFader · PAN · VST3 FXPREVIEWArSonMix · Live VST3 Host
- + From bc02c5cfc665a452f009e0fde8e7aa6d411c3e2f Mon Sep 17 00:00:00 2001 From: Ari Sulistiono Date: Mon, 2 Nov 2026 22:27:34 +0700 Subject: [PATCH 05/21] build(gui): regenerate production stylesheet with V5 hardware controls --- web/styles.css | 148 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 148 insertions(+) diff --git a/web/styles.css b/web/styles.css index 8483175cb..9c92c385d 100644 --- a/web/styles.css +++ b/web/styles.css @@ -1447,3 +1447,151 @@ html:not([data-mixperf="baseline"]):not([data-mixperf="layers-off"]):not([data-m background-clip:content-box;border:0;box-shadow:none; } #app #mixer .meter .clip-led.latched{box-shadow:none!important} +/* Owner-approved V5 graphite hardware keys, production native/legacy console. + ONE SVG cutout legend, ONE white edge shine, asymmetric occluded leakage. + No hover repaint, SVG filters, blur, infinite animation, or fake audio state. + This module is LAST in the deterministic CSS build, replacing BTN-180 only + on opt-in tactile mixer buttons. Navigation, routing pins, meters, faders, + editor launchers, dropdowns and ordinary dialog actions are NOT backlit. */ +#app button.mx-hw-key { + --mx-hw-led:210,225,234; + position:relative!important; + display:inline-block!important; + box-sizing:border-box!important; + min-width:0!important; + padding:2px!important; + overflow:hidden!important; + isolation:isolate!important; + border:1px solid #0c151b!important; + border-radius:5px!important; + background:linear-gradient(180deg,#0b141b,#25343d)!important; + box-shadow:inset 0 2px 4px #03080db5!important; + color:transparent!important; + text-shadow:none!important; + letter-spacing:0!important; + line-height:normal!important; + filter:none!important; + backdrop-filter:none!important; + -webkit-backdrop-filter:none!important; + transform:none!important; + transition:none!important; + text-align:center!important; + cursor:pointer; + touch-action:manipulation; +} +#app button.mx-hw-key.mx-hw-mute {--mx-hw-led:255,64,85} +#app button.mx-hw-key.mx-hw-solo {--mx-hw-led:255,208,44} +#app button.mx-hw-key.mx-hw-cue {--mx-hw-led:90,200,231} +#app button.mx-hw-key.mx-hw-processing {--mx-hw-led:87,211,189} +#app button.mx-hw-key.mx-hw-phase {--mx-hw-led:243,164,81} +#app button.mx-hw-key.mx-hw-link {--mx-hw-led:163,141,235} +#app button.mx-hw-key.mx-hw-neutral {--mx-hw-led:210,225,234} +/* V5 leakage strategy: four tiny STATIC gradients only in the closest + 1–2px gap, unequal sides, lower-center stronger; top almost occluded. */ +#app button.mx-hw-key::before { + content:""!important; + display:block!important; + position:absolute!important; + inset:1px!important; + border:0!important; + border-radius:4px!important; + width:auto!important;height:auto!important; + transform:none!important; + pointer-events:none!important; + z-index:2!important; + opacity:0!important; + box-shadow:none!important; + background: + linear-gradient(90deg,transparent 0%,rgba(var(--mx-hw-led),.035) 18%, + rgba(var(--mx-hw-led),.16) 33%,rgba(var(--mx-hw-led),.46) 49%, + rgba(var(--mx-hw-led),.27) 63%,rgba(var(--mx-hw-led),.07) 80%,transparent 100%) + center bottom / calc(100% - 12px) 2px no-repeat, + linear-gradient(180deg,transparent 0%,transparent 30%, + rgba(var(--mx-hw-led),.045) 50%,rgba(var(--mx-hw-led),.21) 75%, + rgba(var(--mx-hw-led),.1) 88%,transparent 100%) + left bottom / 2px 100% no-repeat, + linear-gradient(180deg,transparent 0%,transparent 44%, + rgba(var(--mx-hw-led),.075) 65%,rgba(var(--mx-hw-led),.17) 85%, + transparent 100%) + right bottom / 2px 100% no-repeat, + linear-gradient(90deg,transparent 0%,transparent 34%, + rgba(var(--mx-hw-led),.055) 50%,transparent 67%,transparent 100%) + center top / calc(100% - 18px) 1px no-repeat!important; +} +#app button.mx-hw-key::after{content:none!important;display:none!important} +#app button.mx-hw-key[aria-pressed="true"]::before, +#app button.mx-hw-key.active::before, +#app button.mx-hw-key.selected::before, +#app button.mx-hw-key.power-on::before, +#app button.mx-hw-key[data-mx-hw-on="true"]::before {opacity:1!important} +#app button.mx-hw-key > svg.mx-hw-face { + position:absolute!important; + z-index:1!important; + top:2px!important;right:2px!important;bottom:2px!important;left:2px!important; + width:calc(100% - 4px)!important; + height:calc(100% - 4px)!important; + display:block!important; + min-height:0!important; + overflow:hidden!important; + pointer-events:none!important; + transform:translateY(0)!important; + transition:none!important; + filter:none!important; +} +#app button.mx-hw-key svg .mx-hw-lamp {opacity:0!important} +#app button.mx-hw-key[aria-pressed="true"] svg .mx-hw-lamp, +#app button.mx-hw-key.active svg .mx-hw-lamp, +#app button.mx-hw-key.selected svg .mx-hw-lamp, +#app button.mx-hw-key.power-on svg .mx-hw-lamp, +#app button.mx-hw-key[data-mx-hw-on="true"] svg .mx-hw-lamp {opacity:1!important} +#app button.mx-hw-key[aria-pressed="true"] > svg.mx-hw-face, +#app button.mx-hw-key.active > svg.mx-hw-face, +#app button.mx-hw-key[data-mx-hw-on="true"] > svg.mx-hw-face { + transform:translateY(1px)!important; +} +#app button.mx-hw-key > .mx-hw-screen-reader{ + position:absolute!important; + width:1px!important;height:1px!important; + margin:-1px!important;padding:0!important; + border:0!important;overflow:hidden!important; + clip-path:inset(50%)!important; + white-space:nowrap!important; +} +#app button.mx-hw-key:hover:not(:disabled){ + filter:none!important; + background:linear-gradient(180deg,#0b141b,#25343d)!important; + box-shadow:inset 0 2px 4px #03080db5!important; +} +#app button.mx-hw-key:active:not(:disabled){ + transform:none!important; + background:linear-gradient(180deg,#0b141b,#25343d)!important; + box-shadow:inset 0 2px 4px #03080db5!important; +} +#app button.mx-hw-key:active:not(:disabled) > svg.mx-hw-face{ + transform:translateY(1px)!important; +} +#app button.mx-hw-key:focus-visible{ + outline:2px solid #9bbecd!important; + outline-offset:2px!important; +} +#app button.mx-hw-key:disabled { + cursor:not-allowed!important; + opacity:.47!important; + filter:none!important; +} +#app button.mx-hw-key:disabled::before{opacity:0!important} +#app button.mx-hw-key:disabled svg .mx-hw-lamp{opacity:0!important} +/* Keep target strip geometry intact, bypassing the legacy BTN-180 face. */ +#app #mixer .channel-actions button.mx-hw-key, +#app #mixer .utility-row button.mx-hw-key { + flex:1 1 0; +} +#app #mixer [data-channel-format-toggle].mx-hw-key{ + min-width:20px!important; +} +#app .arV6Controls button.mx-hw-key{width:28px!important;height:28px!important;padding:2px!important} +#app .arV6FxSlot button.mx-hw-key{min-width:27px!important;min-height:22px!important;padding:2px!important} +#app .arV6Send button.mx-hw-key{min-width:34px!important;min-height:20px!important;padding:2px!important} +@media(prefers-reduced-motion:reduce){ + #app button.mx-hw-key,#app button.mx-hw-key > svg.mx-hw-face{transition:none!important} +} From d97d6a40276967606ac437e087bcb9266d4ec52f Mon Sep 17 00:00:00 2001 From: Ari Sulistiono Date: Mon, 2 Nov 2026 22:27:41 +0700 Subject: [PATCH 06/21] build(gui): embed V5 hardware renderer and CSS into offline standalone preview --- AR-MIX-Live-FX-Host-Standalone-v0.3.html | 317 +++++++++++++++++++++++ 1 file changed, 317 insertions(+) diff --git a/AR-MIX-Live-FX-Host-Standalone-v0.3.html b/AR-MIX-Live-FX-Host-Standalone-v0.3.html index 3085897e1..684e85eb7 100644 --- a/AR-MIX-Live-FX-Host-Standalone-v0.3.html +++ b/AR-MIX-Live-FX-Host-Standalone-v0.3.html @@ -1448,6 +1448,154 @@ background-clip:content-box;border:0;box-shadow:none; } #app #mixer .meter .clip-led.latched{box-shadow:none!important} +/* Owner-approved V5 graphite hardware keys, production native/legacy console. + ONE SVG cutout legend, ONE white edge shine, asymmetric occluded leakage. + No hover repaint, SVG filters, blur, infinite animation, or fake audio state. + This module is LAST in the deterministic CSS build, replacing BTN-180 only + on opt-in tactile mixer buttons. Navigation, routing pins, meters, faders, + editor launchers, dropdowns and ordinary dialog actions are NOT backlit. */ +#app button.mx-hw-key { + --mx-hw-led:210,225,234; + position:relative!important; + display:inline-block!important; + box-sizing:border-box!important; + min-width:0!important; + padding:2px!important; + overflow:hidden!important; + isolation:isolate!important; + border:1px solid #0c151b!important; + border-radius:5px!important; + background:linear-gradient(180deg,#0b141b,#25343d)!important; + box-shadow:inset 0 2px 4px #03080db5!important; + color:transparent!important; + text-shadow:none!important; + letter-spacing:0!important; + line-height:normal!important; + filter:none!important; + backdrop-filter:none!important; + -webkit-backdrop-filter:none!important; + transform:none!important; + transition:none!important; + text-align:center!important; + cursor:pointer; + touch-action:manipulation; +} +#app button.mx-hw-key.mx-hw-mute {--mx-hw-led:255,64,85} +#app button.mx-hw-key.mx-hw-solo {--mx-hw-led:255,208,44} +#app button.mx-hw-key.mx-hw-cue {--mx-hw-led:90,200,231} +#app button.mx-hw-key.mx-hw-processing {--mx-hw-led:87,211,189} +#app button.mx-hw-key.mx-hw-phase {--mx-hw-led:243,164,81} +#app button.mx-hw-key.mx-hw-link {--mx-hw-led:163,141,235} +#app button.mx-hw-key.mx-hw-neutral {--mx-hw-led:210,225,234} +/* V5 leakage strategy: four tiny STATIC gradients only in the closest + 1–2px gap, unequal sides, lower-center stronger; top almost occluded. */ +#app button.mx-hw-key::before { + content:""!important; + display:block!important; + position:absolute!important; + inset:1px!important; + border:0!important; + border-radius:4px!important; + width:auto!important;height:auto!important; + transform:none!important; + pointer-events:none!important; + z-index:2!important; + opacity:0!important; + box-shadow:none!important; + background: + linear-gradient(90deg,transparent 0%,rgba(var(--mx-hw-led),.035) 18%, + rgba(var(--mx-hw-led),.16) 33%,rgba(var(--mx-hw-led),.46) 49%, + rgba(var(--mx-hw-led),.27) 63%,rgba(var(--mx-hw-led),.07) 80%,transparent 100%) + center bottom / calc(100% - 12px) 2px no-repeat, + linear-gradient(180deg,transparent 0%,transparent 30%, + rgba(var(--mx-hw-led),.045) 50%,rgba(var(--mx-hw-led),.21) 75%, + rgba(var(--mx-hw-led),.1) 88%,transparent 100%) + left bottom / 2px 100% no-repeat, + linear-gradient(180deg,transparent 0%,transparent 44%, + rgba(var(--mx-hw-led),.075) 65%,rgba(var(--mx-hw-led),.17) 85%, + transparent 100%) + right bottom / 2px 100% no-repeat, + linear-gradient(90deg,transparent 0%,transparent 34%, + rgba(var(--mx-hw-led),.055) 50%,transparent 67%,transparent 100%) + center top / calc(100% - 18px) 1px no-repeat!important; +} +#app button.mx-hw-key::after{content:none!important;display:none!important} +#app button.mx-hw-key[aria-pressed="true"]::before, +#app button.mx-hw-key.active::before, +#app button.mx-hw-key.selected::before, +#app button.mx-hw-key.power-on::before, +#app button.mx-hw-key[data-mx-hw-on="true"]::before {opacity:1!important} +#app button.mx-hw-key > svg.mx-hw-face { + position:absolute!important; + z-index:1!important; + top:2px!important;right:2px!important;bottom:2px!important;left:2px!important; + width:calc(100% - 4px)!important; + height:calc(100% - 4px)!important; + display:block!important; + min-height:0!important; + overflow:hidden!important; + pointer-events:none!important; + transform:translateY(0)!important; + transition:none!important; + filter:none!important; +} +#app button.mx-hw-key svg .mx-hw-lamp {opacity:0!important} +#app button.mx-hw-key[aria-pressed="true"] svg .mx-hw-lamp, +#app button.mx-hw-key.active svg .mx-hw-lamp, +#app button.mx-hw-key.selected svg .mx-hw-lamp, +#app button.mx-hw-key.power-on svg .mx-hw-lamp, +#app button.mx-hw-key[data-mx-hw-on="true"] svg .mx-hw-lamp {opacity:1!important} +#app button.mx-hw-key[aria-pressed="true"] > svg.mx-hw-face, +#app button.mx-hw-key.active > svg.mx-hw-face, +#app button.mx-hw-key[data-mx-hw-on="true"] > svg.mx-hw-face { + transform:translateY(1px)!important; +} +#app button.mx-hw-key > .mx-hw-screen-reader{ + position:absolute!important; + width:1px!important;height:1px!important; + margin:-1px!important;padding:0!important; + border:0!important;overflow:hidden!important; + clip-path:inset(50%)!important; + white-space:nowrap!important; +} +#app button.mx-hw-key:hover:not(:disabled){ + filter:none!important; + background:linear-gradient(180deg,#0b141b,#25343d)!important; + box-shadow:inset 0 2px 4px #03080db5!important; +} +#app button.mx-hw-key:active:not(:disabled){ + transform:none!important; + background:linear-gradient(180deg,#0b141b,#25343d)!important; + box-shadow:inset 0 2px 4px #03080db5!important; +} +#app button.mx-hw-key:active:not(:disabled) > svg.mx-hw-face{ + transform:translateY(1px)!important; +} +#app button.mx-hw-key:focus-visible{ + outline:2px solid #9bbecd!important; + outline-offset:2px!important; +} +#app button.mx-hw-key:disabled { + cursor:not-allowed!important; + opacity:.47!important; + filter:none!important; +} +#app button.mx-hw-key:disabled::before{opacity:0!important} +#app button.mx-hw-key:disabled svg .mx-hw-lamp{opacity:0!important} +/* Keep target strip geometry intact, bypassing the legacy BTN-180 face. */ +#app #mixer .channel-actions button.mx-hw-key, +#app #mixer .utility-row button.mx-hw-key { + flex:1 1 0; +} +#app #mixer [data-channel-format-toggle].mx-hw-key{ + min-width:20px!important; +} +#app .arV6Controls button.mx-hw-key{width:28px!important;height:28px!important;padding:2px!important} +#app .arV6FxSlot button.mx-hw-key{min-width:27px!important;min-height:22px!important;padding:2px!important} +#app .arV6Send button.mx-hw-key{min-width:34px!important;min-height:20px!important;padding:2px!important} +@media(prefers-reduced-motion:reduce){ + #app button.mx-hw-key,#app button.mx-hw-key > svg.mx-hw-face{transition:none!important} +}