Add Base preset to reset all tone sliders to defaults

This commit is contained in:
facok
2026-03-17 05:25:54 +08:00
parent 7aa68375f9
commit e8f37b36d1
2 changed files with 3 additions and 2 deletions
+2 -2
View File
@@ -450,8 +450,8 @@ def _build_tone_fn(lcs_data, contrast, brightness, saturation, color_temperature
# Preset names for the combo widget. Actual values live in web/js/tone_preset.js
# which syncs them into the slider widgets on the frontend.
TONE_PRESET_NAMES = [
"Cinematic", "HDR", "Vivid", "Dramatic", "Low Key",
"High Key", "Warm", "Cool", "Desaturated", "Custom",
"Custom", "Base", "Cinematic", "HDR", "Vivid", "Dramatic",
"Low Key", "High Key", "Warm", "Cool", "Desaturated",
]
+1
View File
@@ -3,6 +3,7 @@ import { app } from "../../../scripts/app.js";
// Preset values — the single source of truth for preset parameters.
// TONE_PRESET_NAMES in nodes/intervene.py must list matching keys.
const TONE_PRESETS = {
"Base": { contrast: 1.0, brightness: 0.0, saturation: 1.0, color_temperature: 0.0 },
"Cinematic": { contrast: 1.20, brightness: -0.05, saturation: 0.90, color_temperature: 0.05 },
"HDR": { contrast: 1.40, brightness: 0.0, saturation: 1.20, color_temperature: 0.0 },
"Vivid": { contrast: 1.10, brightness: 0.0, saturation: 1.50, color_temperature: 0.0 },