diff --git a/image-vectorize/package.json b/image-vectorize/package.json index 498e7e0..b0aaa0e 100644 --- a/image-vectorize/package.json +++ b/image-vectorize/package.json @@ -1,7 +1,7 @@ { "name": "@iwb-plugin/image-vectorize", "private": true, - "version": "0.5.0", + "version": "0.6.0", "description": "位图转矢量:potrace(纯 JS)单色/灰度描摹,输出 SVG 与 PNG 节点;对文字、logo、线稿保形好,不需要 wasm", "ibwPlugin": { "id": "image-vectorize", diff --git a/image-vectorize/plugin/ui.css b/image-vectorize/plugin/ui.css index 679c578..d8153ca 100644 --- a/image-vectorize/plugin/ui.css +++ b/image-vectorize/plugin/ui.css @@ -16,15 +16,15 @@ .vz-modal { display: flex; flex-direction: column; - width: 92vw; - height: 88vh; - min-width: 760px; - min-height: 520px; - max-width: 1680px; + width: 100vw; + height: 100vh; + min-width: 0; + min-height: 0; + max-width: none; background: #1b1b22; - border: 1px solid #33333f; - border-radius: 12px; - box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55); + border: 0; + border-radius: 0; + box-shadow: none; overflow: hidden; } @@ -75,8 +75,16 @@ .vz-btn:hover { background: #34343f; border-color: #4a4a5c; } .vz-btn:active { background: #2f2f3a; } .vz-btn:disabled { opacity: 0.45; cursor: default; } -/* 顶栏四颗按钮统一走上面这套描边配色(曾经有一颗 .vz-btn-primary 绿色主按钮, - 2026-11-09 用户要求「颜色都用取消按钮的配色」,已去掉)。 */ +/* 顶栏「保存为节点 / 复制 SVG / 下载 SVG」三颗走上面这套灰色描边配色。 + 「关闭」单独用编辑器主色调(.vz-seg 选中态同款 #33566f)填充,与产出操作区分、防误点。 + 2026-11-19:原「取消」改名「关闭」并按主色调取色(行为不变,仍是 data-act="cancel" 退出编辑器)。 */ +.vz-btn-close { + background: #33566f; + border-color: #33566f; + color: #eaf6ff; +} +.vz-btn-close:hover { background: #3d6480; border-color: #4a7394; } +.vz-btn-close:active { background: #2c4a60; } /* ---------- 主体 ---------- */ .vz-body { @@ -512,7 +520,7 @@ /* 窄屏:面板转到底部 */ @media (max-width: 900px) { - .vz-modal { width: 96vw; height: 92vh; min-width: 0; } + .vz-modal { width: 100vw; height: 100vh; min-width: 0; } .vz-body { flex-direction: column; } .vz-panel { width: auto; max-height: 46%; border-left: 0; border-top: 1px solid #2e2e3a; } } diff --git a/image-vectorize/plugin/ui.js b/image-vectorize/plugin/ui.js index c9378f0..ed189a5 100644 --- a/image-vectorize/plugin/ui.js +++ b/image-vectorize/plugin/ui.js @@ -133,7 +133,7 @@ function viewHTML(name) { '' + '' + '' + - '' + + '' + '' + '