diff --git a/src/pixelflow/api/static/index.html b/src/pixelflow/api/static/index.html index 7e05193..43c9084 100644 --- a/src/pixelflow/api/static/index.html +++ b/src/pixelflow/api/static/index.html @@ -964,6 +964,63 @@ color: #fff; } + .layer-stack-box { + display: flex; + flex-direction: column; + gap: 5px; + margin-bottom: 12px; + background: rgba(0, 0, 0, 0.28); + border: 1px solid rgba(255, 255, 255, 0.08); + border-radius: 8px; + padding: 8px; + } + + .layer-stack-header { + display: flex; + align-items: center; + justify-content: space-between; + margin-bottom: 4px; + padding: 0 2px 4px 2px; + border-bottom: 1px solid rgba(255, 255, 255, 0.06); + } + + .layer-stack-title { + font-size: 10px; + font-weight: 700; + color: #94a3b8; + text-transform: uppercase; + letter-spacing: 0.05em; + } + + .layer-stack-item { + display: flex; + align-items: center; + justify-content: space-between; + background: #101520; + border: 1px solid rgba(255, 255, 255, 0.06); + border-radius: 6px; + padding: 6px 8px; + cursor: pointer; + transition: all 0.14s ease; + user-select: none; + } + + .layer-stack-item:hover { + background: #171f2e; + border-color: rgba(56, 189, 248, 0.3); + } + + .layer-stack-item.selected { + background: #152238; + border-color: var(--pf-accent); + box-shadow: 0 0 10px rgba(56, 189, 248, 0.25); + } + + .layer-stack-item.disabled { + opacity: 0.45; + border-style: dashed; + } + .active-step-card { background: #111622; border: 1px solid rgba(255, 255, 255, 0.08); @@ -4286,6 +4343,43 @@

{ + savedEnabledStates[s.id] = (s.enabled !== false); + s.enabled = (s.id === id); + }); + statusMessage.textContent = (currentLang === "en") ? "Solo mode active" : "Solo mod aktif"; + } + pushHistory(); + renderStepsUI(); + scheduleRender(); + } + + function clearAllLayers() { + if (activeSteps.length === 0) return; + activeSteps = []; + selectedStepId = null; + soloStepId = null; + pushHistory(); + renderStepsUI(); + scheduleRender(); + statusMessage.textContent = (currentLang === "en") ? "All layers cleared" : "Tüm katmanlar temizlendi"; + } + function toggleStepVisibility(id) { const step = activeSteps.find(s => s.id === id); if (step) { @@ -4372,35 +4466,55 @@

{ - const sDef = EFFECT_DEFS[s.op] || { title: s.op }; - const sTitle = (currentLang === "en" && EFFECT_TITLE_EN[s.op]) ? EFFECT_TITLE_EN[s.op] : sDef.title; - const isCur = (s.id === activeStep.id); - const isHidden = (s.enabled === false); - const pill = document.createElement("div"); - pill.className = `tool-pill ${isCur ? "active" : ""}`; - if (isHidden) { - pill.style.opacity = "0.5"; - pill.style.border = "1px dashed rgba(255,255,255,0.2)"; - } - pill.innerHTML = ` - ${isHidden ? '🚫' : '👁️'} - ${sTitle} - × - `; - pillsRow.appendChild(pill); - }); - stepsList.appendChild(pillsRow); - } + const stackHeader = document.createElement("div"); + stackHeader.className = "layer-stack-header"; + stackHeader.innerHTML = ` + ${currentLang === "en" ? "ACTIVE LAYER STACK" : "KATMAN YIĞINI & SIRASI"} +
+ +
+ `; + stackBox.appendChild(stackHeader); + + activeSteps.forEach((s, idx) => { + const sDef = EFFECT_DEFS[s.op] || { title: s.op, tag: "Katman" }; + const sTitle = (currentLang === "en" && EFFECT_TITLE_EN[s.op]) ? EFFECT_TITLE_EN[s.op] : sDef.title; + const isCur = (s.id === activeStep.id); + const isHidden = (s.enabled === false); + const isSolo = (soloStepId === s.id); + + const item = document.createElement("div"); + item.className = `layer-stack-item ${isCur ? "selected" : ""} ${isHidden ? "disabled" : ""}`; + item.onclick = () => selectStep(s.id); + + item.innerHTML = ` +
+ + + #${idx+1} + + ${sTitle} + +
+
+ + + +
+ `; + stackBox.appendChild(item); + }); + stepsList.appendChild(stackBox); // Tek aktif aracın ayar paneli (artık katman katman alt alta sıralanmaz!) const def = EFFECT_DEFS[activeStep.op] || { title: activeStep.op, tag: "Özel", fields: [] };