diff options
| author | skal <pascal.massimino@gmail.com> | 2026-02-19 06:46:57 +0100 |
|---|---|---|
| committer | skal <pascal.massimino@gmail.com> | 2026-02-19 06:46:57 +0100 |
| commit | 83eec3cece795f56f4edc1298a008216cb9511a0 (patch) | |
| tree | ab55930912d50b063838f92a2314598d6be0d291 /tools/mq_editor/style.css | |
| parent | c804808870cf3775362c02e40ea7d3d082ed0d91 (diff) | |
feat(mq_editor): UI revamp — params panel, layout, partial spectrum
- Move Synthesis controls (integratePhase, jitter, spread, resonator,
LP/HP filters) and Auto Spread All into the ⚙ Params dropdown
- Group Extract Partials / +Partial / ✕ Clear All in one toolbar group
- Add per-partial Sine/Res mode toggle in the property panel (Mode row)
- Move partial mini-spectrum below the right panel (right-col layout)
- Partial mini-spectrum: dynamic dB range scanned across full duration
(8 samples, [peak−60, peak]), cached on partial select
- Print bezier amplitude A= in red at top-right of partial spectrum
- Status/info messages set to 80% gray (#ccc)
handoff(Claude): UI revamp complete, TODO items implemented.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'tools/mq_editor/style.css')
| -rw-r--r-- | tools/mq_editor/style.css | 24 |
1 files changed, 17 insertions, 7 deletions
diff --git a/tools/mq_editor/style.css b/tools/mq_editor/style.css index 07a404a..2a9b5b7 100644 --- a/tools/mq_editor/style.css +++ b/tools/mq_editor/style.css @@ -12,6 +12,7 @@ input[type="file"] { display: none; } .main-area { display: flex; align-items: flex-start; gap: 10px; margin-top: 10px; } .canvas-col { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; } .canvas-wrap { position: relative; } +.right-col { display: flex; flex-direction: column; gap: 6px; } /* === Toolbar === */ .toolbar { margin-bottom: 10px; padding: 10px; background: #2a2a2a; border-radius: 4px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; } @@ -36,14 +37,25 @@ button.contour-active { background: #145; border-color: #0cc; color: #aff; } .param-group:last-child { border-bottom: none; } .group-label { grid-column: 1 / -1; font-size: 9px; color: #666; text-transform: uppercase; letter-spacing: 1px; } +/* Synthesis param group (column layout) */ +.param-synth { display: block; padding: 8px 14px; border-bottom: 1px solid #333; } +.param-synth:last-child { border-bottom: none; } +.param-synth .group-label { display: block; margin-bottom: 4px; } +.param-synth label { display: flex; align-items: center; gap: 6px; font-size: 12px; margin: 2px 0; cursor: pointer; white-space: nowrap; } +.param-synth label input[type="range"] { flex: 1; min-width: 80px; max-width: 120px; } +.param-synth #globalResParams { margin-top: 4px; padding: 4px 0 2px 12px; border-left: 2px solid #555; } + /* === Canvas & overlays === */ #canvas { border: 1px solid #555; background: #000; cursor: crosshair; display: block; flex-shrink: 0; } #cursorCanvas, #playheadCanvas { position: absolute; top: 0; left: 0; pointer-events: none; } -#partialSpectrumViewer { position: absolute; bottom: 10px; right: 420px; width: 200px; height: 100px; background: rgba(30,30,30,.9); border: 1px solid #555; border-radius: 3px; pointer-events: none; } #spectrumViewer { position: absolute; bottom: 10px; right: 10px; width: 400px; height: 100px; background: rgba(30,30,30,.9); border: 1px solid #555; border-radius: 3px; pointer-events: none; } #keepOverlay { position: absolute; bottom: 10px; left: 10px; background: rgba(30,30,30,.88); border: 1px solid #555; border-radius: 3px; padding: 4px 8px; display: flex; align-items: center; gap: 6px; font-size: 12px; color: #aaa; user-select: none; } #keepOverlay input[type="range"] { width: 90px; } +/* Partial spectrum (below right panel) */ +#partialSpectrumViewer { width: 260px; box-sizing: border-box; background: rgba(30,30,30,.9); border: 1px solid #555; border-radius: 3px; overflow: hidden; } +#partialSpectrumCanvas { display: block; } + /* === Amp edit panel === */ #ampEditPanel { display: none; } .amp-edit-header { font-size: 10px; color: #555; padding: 2px 0 3px 1px; display: flex; align-items: center; gap: 10px; text-transform: uppercase; letter-spacing: .5px; } @@ -59,7 +71,7 @@ button.contour-active { background: #145; border-color: #0cc; color: #aff; } #noSelMsg { color: #555; font-size: 13px; padding: 2px 0; } /* === Partial properties === */ -.prop-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; padding: 2px 0; } +.prop-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; padding: 2px 0; } .prop-label { color: #777; font-size: 12px; } #propSwatch { display: inline-block; width: 10px; height: 10px; border-radius: 2px; flex-shrink: 0; } .partial-actions { display: flex; gap: 4px; margin-top: 8px; } @@ -78,12 +90,10 @@ kbd { font-size: 10px; opacity: 0.55; } .synth-field-wrap input[type="number"]:focus, .synth-grid input[type="number"]:focus { border-color: #666; outline: none; } -/* === Synth section === */ -.synth-section { border-top: 1px solid #444; padding-top: 8px; margin-top: auto; } +/* === Synth grid (per-partial synth tab) === */ .synth-grid { display: grid; grid-template-columns: auto 1fr; gap: 4px 8px; align-items: center; } .synth-grid span { color: #888; font-size: 12px; } .synth-field-wrap { display: flex; align-items: center; gap: 4px; } -#globalResParams { margin-top: 4px; padding: 4px 0 2px 12px; border-left: 2px solid #555; } .slider-val { width: 44px; text-align: right; } /* === Jog slider === */ @@ -97,8 +107,8 @@ kbd { font-size: 10px; opacity: 0.55; } /* === Status & tooltip === */ #fileLabel { font-size: 13px; color: #8af; opacity: .8; } -#status { margin-top: 10px; padding: 8px; background: #2a2a2a; border-radius: 4px; min-height: 20px; } -.info { color: #4af; } +#status { margin-top: 10px; padding: 8px; background: #2a2a2a; border-radius: 4px; min-height: 20px; color: #ccc; } +.info { color: #ccc; } .warn { color: #fa4; } .error { color: #f44; } #tooltip { position: fixed; display: none; background: #2a2a2a; padding: 4px 8px; border: 1px solid #555; border-radius: 3px; pointer-events: none; font-size: 11px; z-index: 1000; } |
