diff --git a/web/src/components/canvas/canvas-node-prompt-panel.tsx b/web/src/components/canvas/canvas-node-prompt-panel.tsx index 8711bb547..d77b5af9b 100644 --- a/web/src/components/canvas/canvas-node-prompt-panel.tsx +++ b/web/src/components/canvas/canvas-node-prompt-panel.tsx @@ -57,7 +57,17 @@ export function CanvasNodePromptPanel({ node, isRunning, onPromptChange, onConfi const videoFrameOptions = mentionReferences .filter((item) => item.active && item.kind === "image") .map((item) => ({ nodeId: item.nodeId, label: item.label, title: item.title, previewUrl: item.previewUrl })); - const composerSurface = theme.spatial.dropzone; + const darkSurface = themeName === "dark"; + const monochromeAccent = theme.node.activeStroke; + const shellBorder = darkSurface ? "rgba(255,255,255,.08)" : "rgba(17,24,39,.12)"; + const insetBorder = darkSurface ? "rgba(255,255,255,.06)" : "rgba(17,24,39,.10)"; + const shellSurface = darkSurface + ? theme.canvas.background + : `linear-gradient(180deg, rgba(255,255,255,.94), rgba(248,250,252,.86)), ${theme.spatial.elevated}`; + const composerSurface = darkSurface + ? theme.canvas.background + : `linear-gradient(180deg, rgba(255,255,255,.7), rgba(248,250,252,.72)), ${theme.spatial.dropzone}`; + const controlSurface = darkSurface ? theme.canvas.background : "rgba(17,24,39,.045)"; const referenceShelfHeight = activeReferenceCount ? 42 : 0; const composerMinHeight = activeReferenceCount ? 82 : 58; const composerHeight = Math.min(144, Math.max(composerMinHeight, Math.ceil(promptContentHeight + referenceShelfHeight))); @@ -130,8 +140,8 @@ export function CanvasNodePromptPanel({ node, isRunning, onPromptChange, onConfi onChange={(portraitTexture) => onConfigChange(node.id, { portraitTexture })} /> ) : ( -
- +
+ {modeDisplayName(mode)}创作 @@ -148,13 +158,13 @@ export function CanvasNodePromptPanel({ node, isRunning, onPromptChange, onConfi /> ) : null}
- {activeReferenceCount ? } label={`已连接 ${activeReferenceCount} 个`} active /> : null} + {activeReferenceCount ? } label={`已连接 ${activeReferenceCount} 个`} /> : null} {!expanded && canExpandPrompt ? (
) : ( -
+
onConfigChange(node.id, { model })} capability={mode} onMissingConfig={() => navigateToSettings({ continueCreation: true })} showSelectedPrice={false} />
@@ -207,10 +217,10 @@ export function CanvasNodePromptPanel({ node, isRunning, onPromptChange, onConfi