diff --git a/webui/app.js b/webui/app.js index 8296dfa..57bf1bb 100644 --- a/webui/app.js +++ b/webui/app.js @@ -1280,6 +1280,21 @@ function renderTimeline(containerId, timeline) { svg.setAttribute("height", String(H)); svg.classList.add("timelineSvg"); + // SVG glow filter(feGaussianBlur + feMerge)让折线带霓虹光晕 + const NS_FILTER = "http://www.w3.org/2000/svg"; + const defs = document.createElementNS(NS_FILTER, "defs"); + const filterId = (containerId || "timeline") + "Glow"; + defs.innerHTML = ` + + + + + + + + `; + svg.appendChild(defs); + const axis = document.createElementNS("http://www.w3.org/2000/svg", "path"); axis.setAttribute("d", `M ${padL} ${H - padB} L ${W - padR} ${H - padB}`); axis.setAttribute("stroke", "var(--border)"); @@ -1353,11 +1368,12 @@ function renderTimeline(containerId, timeline) { p.setAttribute("d", d); p.setAttribute("fill", "none"); p.setAttribute("stroke", TIMELINE_STROKES[k]?.stroke || "var(--primary)"); - p.setAttribute("stroke-width", "1.5"); + p.setAttribute("stroke-width", "1.8"); p.setAttribute("stroke-opacity", String(TIMELINE_STROKES[k]?.opacity ?? 1)); if (TIMELINE_STROKES[k]?.dash) p.setAttribute("stroke-dasharray", TIMELINE_STROKES[k].dash); p.setAttribute("stroke-linecap", "round"); p.setAttribute("stroke-linejoin", "round"); + p.setAttribute("filter", `url(#${filterId})`); svg.appendChild(p); } diff --git a/webui/index.html b/webui/index.html index cce6240..d246e7e 100644 --- a/webui/index.html +++ b/webui/index.html @@ -19,7 +19,7 @@ } catch (e) {} })(); - +
@@ -1274,6 +1274,6 @@ - + diff --git a/webui/styles.css b/webui/styles.css index ebe04c0..eeb2e9b 100644 --- a/webui/styles.css +++ b/webui/styles.css @@ -223,6 +223,32 @@ body::after { mix-blend-mode: overlay; } +/* When body.is-running: thin pink sweep glow line at top edge of viewport */ +body.is-running::before { + content: ""; + position: fixed; + left: 0; + right: 0; + top: 0; + height: 2px; + z-index: 1000; + pointer-events: none; + background: linear-gradient(90deg, transparent, var(--primary), var(--secondary), var(--primary), transparent); + background-size: 200% 100%; + animation: runningPulse 2.8s linear infinite; + filter: drop-shadow(0 0 4px color-mix(in oklab, var(--primary) 70%, transparent)); +} + +@keyframes runningPulse { + 0% { background-position: -100% 0; opacity: 0.85; } + 50% { opacity: 1; } + 100% { background-position: 200% 0; opacity: 0.85; } +} + +@media (prefers-reduced-motion: reduce) { + body.is-running::before { animation: none; } +} + /* When toggling theme, briefly enable transitions on common chrome surfaces. The .isThemeSwitching class is added by JS for ~250ms during the toggle. */ :root.isThemeSwitching .header, @@ -2665,6 +2691,13 @@ input[type="number"]::-webkit-outer-spin-button { pointer-events: none; border: 2px solid var(--primary); filter: drop-shadow(0 0 6px color-mix(in oklab, var(--primary) 50%, transparent)); + transition: width var(--motion), height var(--motion), border-color var(--motion-fast), filter var(--motion-fast); +} + +.preview:hover .previewBracket { + width: 22px; + height: 22px; + filter: drop-shadow(0 0 10px color-mix(in oklab, var(--primary) 75%, transparent)); } .previewBracketTL { top: 8px; left: 8px; border-right: 0; border-bottom: 0; border-top-left-radius: 4px; } @@ -3266,11 +3299,12 @@ details[open] > summary.sectionTitle::before { background: linear-gradient(90deg, transparent 0, - color-mix(in oklab, var(--text) 6%, transparent) 50%, + color-mix(in oklab, var(--primary) 22%, transparent) 35%, + color-mix(in oklab, var(--secondary) 22%, transparent) 65%, transparent 100%) var(--surface-muted); background-size: 200% 100%; background-repeat: no-repeat; - animation: skeletonShimmer 1.6s linear infinite; + animation: skeletonShimmer 1.8s linear infinite; border-radius: var(--radius-sm); color: transparent !important; user-select: none; @@ -3503,14 +3537,14 @@ details[open] > summary.sectionTitle::before { } *::-webkit-scrollbar-thumb { - background: var(--border-strong); + background: linear-gradient(180deg, color-mix(in oklab, var(--primary) 55%, var(--border-strong)), color-mix(in oklab, var(--secondary) 55%, var(--border-strong))); border: 2px solid transparent; background-clip: padding-box; border-radius: 99px; } *::-webkit-scrollbar-thumb:hover { - background: var(--hover-border); + background: linear-gradient(180deg, var(--primary), var(--secondary)); background-clip: padding-box; }