feat(studio & library): sync Light & Color tab parameters (vibrance, highlight, shadow, white, black) to Gradient Mask & add multi-field sorting options

This commit is contained in:
2026-10-07 12:36:55 +07:00
parent 1c7be6dfd4
commit eb47afc63e
6 changed files with 82 additions and 29 deletions
+2 -1
View File
@@ -2676,7 +2676,7 @@ export function Workspace() {
// this helper too: same ±10 unit, same ×10 ruler, same green↔magenta gain, read
// on the mask's pixels — a local white balance.
const maskKnobRow = (
key: 'highlights' | 'shadows' | 'whites' | 'blacks' | 'clarity' | 'dehaze' | 'tint',
key: 'highlights' | 'shadows' | 'whites' | 'blacks' | 'clarity' | 'dehaze' | 'tint' | 'vibrance',
label: string
): SliderDef => {
const v = selMask?.[key] ?? 0;
@@ -2752,6 +2752,7 @@ export function Workspace() {
onChange: (v) => setMaskKnob({ saturation: Math.round(v) / 10 }),
onReset: () => setMaskKnob({ saturation: 0 }),
},
maskKnobRow('vibrance', 'VIBRANCE'),
maskKnobRow('highlights', 'HIGHLIGHT'),
maskKnobRow('shadows', 'SHADOW'),
maskKnobRow('whites', 'WHITE'),