feat(image-vectorize): 顶栏「取消」改「关闭」并按主色调取色;补同步全屏到源码 v0.6.0

- ui.js: 顶栏最右按钮 data-act=cancel 文本「取消」→「关闭」,加 class vz-btn-close(行为不变)
- ui.css: 新增 .vz-btn-close 用编辑器主色调 #33566f(.vz-seg 选中态同款)填充 + #eaf6ff 文字,与左边三颗灰色产出按钮区分;hover/active 提亮
- ⚠ 重要修正:0.5.0 的全屏改动当时只改了产物 src/index.js,源码 plugin/ui.css 没同步(仍是 92vw 居中卡片)—— 若将来 build 会回退。本次把全屏(100vw×100vh、去圆角/阴影/边框)补进 plugin/ui.css 源码 + 重新 build 产物,源码与产物一致。
- version 0.5.0→0.6.0(package.json,build 注入 banner)
- build image-vectorize 通过,validate 10/10
This commit is contained in:
qiqi committed 2026-11-19 15:01:23 +08:00
1 parent e5e1c25c24
commit fe1d3fcaa6
4 files changed
+33 -17

No files matched your search

+19 -11
View File
@@ -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; }
}
+1 -1
View File
@@ -133,7 +133,7 @@ function viewHTML(name) {
'<button type="button" class="vz-btn" data-act="save">保存为节点</button>' +
'<button type="button" class="vz-btn" data-act="copy">复制 SVG</button>' +
'<button type="button" class="vz-btn" data-act="svg">下载 SVG</button>' +
'<button type="button" class="vz-btn" data-act="cancel">取消</button>' +
'<button type="button" class="vz-btn vz-btn-close" data-act="cancel">关闭</button>' +
'</header>' +
'<div class="vz-body">' +
'<div class="vz-preview" data-preview>' +