diff --git a/components/canvas/EnhanceProWorkspace.tsx b/components/canvas/EnhanceProWorkspace.tsx index db578dfb7..27450a74f 100644 --- a/components/canvas/EnhanceProWorkspace.tsx +++ b/components/canvas/EnhanceProWorkspace.tsx @@ -104,38 +104,38 @@ const FALLBACK_CONFIG: EnhanceProClientConfig = { }; const PANEL_SHELL_CLASS = - "pointer-events-auto rounded-[30px] border border-[#eadfcb] bg-[linear-gradient(180deg,#fffdf9_0%,#fff7ed_100%)] shadow-[0_0_0_1px_rgba(234,223,203,0.88),0_24px_48px_rgba(15,23,42,0.06)]"; + "pointer-events-auto rounded-[28px] border border-[#e5e5e5] bg-white shadow-[0_0_0_1px_rgba(0,0,0,0.04),0_20px_40px_rgba(0,0,0,0.06)]"; const SOLID_PANEL_FIELD_CLASS = - "border-[#eadfcb] bg-[#fffdfa] text-[#1c1c1e] shadow-[inset_0_1px_0_rgba(255,255,255,0.95),0_1px_2px_rgba(28,28,30,0.04)]"; + "border-[#e5e5e5] bg-white text-[#111111] shadow-[inset_0_1px_0_rgba(255,255,255,0.95),0_1px_2px_rgba(0,0,0,0.04)]"; const SOLID_PANEL_CARD_CLASS = - "rounded-[22px] border border-white/90 bg-white/78 shadow-[inset_0_1px_0_rgba(255,255,255,0.95),0_10px_22px_rgba(15,23,42,0.05)]"; + "rounded-[22px] border border-[#ececec] bg-white shadow-[inset_0_1px_0_rgba(255,255,255,0.95),0_10px_22px_rgba(0,0,0,0.04)]"; const PANEL_SECTION_TITLE_CLASS = - "font-semibold text-[15px] tracking-[-0.04em] text-[#1c1c1e]"; + "font-semibold text-[15px] tracking-[-0.04em] text-[#111111]"; const PANEL_SECTION_NOTE_CLASS = - "text-[12px] leading-5 text-[#555a6a]"; + "text-[12px] leading-5 text-[#666666]"; const SOLID_PANEL_SELECT_CONTENT_CLASS = - "border-[#eadfcb] bg-[#fffdfa] shadow-[0_0_0_1px_rgba(234,223,203,0.88),0_18px_38px_rgba(15,23,42,0.08)]"; + "border-[#e5e5e5] bg-white shadow-[0_0_0_1px_rgba(0,0,0,0.04),0_18px_38px_rgba(0,0,0,0.08)]"; const PRIMARY_ACTION_BUTTON_CLASS = - "border border-[#5b76fe] bg-[linear-gradient(180deg,#6d87ff_0%,#516bf5_100%)] text-white shadow-[0_16px_30px_rgba(91,118,254,0.26)] transition hover:border-[#2a41b6] hover:bg-[linear-gradient(180deg,#5d78ff_0%,#2a41b6_100%)] disabled:border-[#e0e2e8] disabled:bg-[#eef1f6] disabled:text-[#a5a8b5] disabled:shadow-none"; + "border border-[#111111] bg-[#111111] text-white shadow-[0_16px_30px_rgba(0,0,0,0.18)] transition hover:bg-black hover:border-black disabled:border-[#e5e5e5] disabled:bg-[#f1f1f1] disabled:text-[#9a9a9a] disabled:shadow-none"; const SECONDARY_ACTION_BUTTON_CLASS = - "border border-[#d9e2fb] bg-[#f7f9ff] text-[#3150d3] shadow-[0_0_0_1px_rgba(217,226,251,0.75),0_10px_22px_rgba(91,118,254,0.08)] transition hover:border-[#5b76fe] hover:bg-[#edf2ff] hover:text-[#2a41b6] disabled:border-[#e0e2e8] disabled:bg-[#f7f8fb] disabled:text-[#a5a8b5] disabled:shadow-none"; + "border border-[#d9d9d9] bg-white text-[#111111] shadow-[0_0_0_1px_rgba(0,0,0,0.02),0_10px_22px_rgba(0,0,0,0.03)] transition hover:border-[#111111] hover:bg-[#fafafa] hover:text-black disabled:border-[#e5e5e5] disabled:bg-[#f7f7f7] disabled:text-[#a5a5a5] disabled:shadow-none"; const COMPACT_FIELD_CLASS = `${SOLID_PANEL_FIELD_CLASS} h-11 rounded-[16px] text-sm`; const COMPACT_LABEL_CLASS = - "font-medium text-[#555a6a] text-[11px] leading-4 tracking-[0.01em]"; + "font-medium text-[#666666] text-[11px] leading-4 tracking-[0.01em]"; const COMPACT_TOGGLE_CARD_CLASS = "flex items-center justify-between gap-2.5 px-3.5 py-3"; -const SLIDER_TRACK_CLASS = "h-2.5 bg-[#e9edf5] shadow-inner"; -const SLIDER_RANGE_CLASS = "bg-[#5b76fe]"; +const SLIDER_TRACK_CLASS = "h-2.5 bg-[#ededed] shadow-inner"; +const SLIDER_RANGE_CLASS = "bg-[#111111]"; const SLIDER_THUMB_CLASS = - "h-4 w-4 border border-[#d6d1c4] bg-white shadow-[0_0_0_4px_rgba(91,118,254,0.16)]"; + "h-4 w-4 border border-[#d4d4d4] bg-white shadow-[0_0_0_4px_rgba(0,0,0,0.08)]"; const SIDEBAR_SCROLL_CLASS = - "pr-1.5 [scrollbar-width:thin] [scrollbar-color:#d7cfbf_transparent] [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-track]:bg-transparent [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-[#d7cfbf] hover:[&::-webkit-scrollbar-thumb]:bg-[#c8bda9]"; + "pr-1.5 [scrollbar-width:thin] [scrollbar-color:#c8c8c8_transparent] [&::-webkit-scrollbar]:w-2 [&::-webkit-scrollbar-track]:bg-transparent [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-thumb]:bg-[#c8c8c8] hover:[&::-webkit-scrollbar-thumb]:bg-[#a8a8a8]"; const SIDEBAR_SECTION_CARD_CLASS = - "rounded-[30px] border p-3.5 shadow-[0_18px_36px_rgba(15,23,42,0.06)]"; + "rounded-[28px] border border-[#e5e5e5] bg-white p-3.5 shadow-[0_18px_36px_rgba(0,0,0,0.05)]"; const SECTION_EYEBROW_CLASS = - "inline-flex items-center gap-1.5 rounded-full border border-white/90 bg-white/72 px-2.5 py-1 font-semibold text-[10px] tracking-[0.14em] text-[#6b7280] uppercase"; + "inline-flex items-center gap-1.5 rounded-full border border-[#ebebeb] bg-[#fafafa] px-2.5 py-1 font-semibold text-[10px] tracking-[0.14em] text-[#666666] uppercase"; const INNER_PANEL_CLASS = - "rounded-[22px] border border-white/90 bg-white/76 p-3 shadow-[inset_0_1px_0_rgba(255,255,255,0.92)]"; + "rounded-[22px] border border-[#efefef] bg-[#fbfbfb] p-3 shadow-[inset_0_1px_0_rgba(255,255,255,0.92)]"; function clampNumber(value: number, min: number, max: number) { return Math.min(max, Math.max(min, value)); @@ -286,15 +286,15 @@ function ParameterSliderRow({ return (
-
+
{label}
-
+
{displayValue}
@@ -657,10 +657,10 @@ export function EnhanceProWorkspace({ }; return ( -
+
-
-
+
+
{activePreviewUrl ? (
-
-
-
-
+
+
{activePreviewLabel}
-
+
{activePreviewLabel}
-
+
双击回正
) : (
-
-
-
+
-
+
Enhance Pro Studio
-
+
还没有可增强的图片
-
+
先在主画布里选中一张图片,或者先在实时画布模式里生成结果, 再切回这里进行精修、增强和细节重建。
-
-
+
+
Step 01
-
+
选中一张图
-
+
从主画布中选择要增强的图片,系统会自动把它带入当前工作台。
-
-
+
+
Step 02
-
+
调参后开始增强
-
+
使用右侧工具卡片快速选择模式、强度和增强范围,生成后可直接发回画布。
@@ -745,7 +741,7 @@ export function EnhanceProWorkspace({ {generatedImages.length > 0 && sidePreviewItems.length > 0 ? (
-
+
{sidePreviewItems.map((item, index) => { const isActive = item.isSource ? selectedResultIndex < 0 @@ -755,8 +751,8 @@ export function EnhanceProWorkspace({ className={cn( "group flex h-16 w-16 shrink-0 overflow-hidden rounded-2xl border transition", isActive - ? "border-[#5b76fe] shadow-[0_0_0_1px_rgba(91,118,254,0.18),0_10px_20px_rgba(91,118,254,0.12)]" - : "border-[#e0e2e8] hover:shadow-sm" + ? "border-[#111111] shadow-[0_0_0_1px_rgba(0,0,0,0.08),0_10px_20px_rgba(0,0,0,0.08)]" + : "border-[#e5e5e5] hover:shadow-sm" )} key={item.key} onClick={() => @@ -778,15 +774,15 @@ export function EnhanceProWorkspace({ ) : null}
-
+
{selectedGeneratedImage ? ( - + ) : null} {actionHint}
-
+