feat(image-vectorize): v0.4.2 顶栏「保存为节点」与「取消」互换,四颗按钮统一描边配色

This commit is contained in:
qiqi committed 2026-11-09 23:41:50 +08:00
1 parent 9bbb94b789
commit 89c8e0a1d8
6 files changed
+25 -23

No files matched your search

+2 -8
View File
@@ -75,14 +75,8 @@
.vz-btn:hover { background: #34343f; border-color: #4a4a5c; }
.vz-btn:active { background: #2f2f3a; }
.vz-btn:disabled { opacity: 0.45; cursor: default; }
.vz-btn-primary {
background: #1f7a52;
border-color: #27875c;
color: #eafff5;
}
.vz-btn-primary:hover { background: #248a5d; border-color: #2f9c69; }
.vz-btn-primary:disabled { background: #24503e; border-color: #2a5c47; }
/* 顶栏四颗按钮统一走上面这套描边配色(曾经有一颗 .vz-btn-primary 绿色主按钮,
2026-11-09 用户要求「颜色都用取消按钮的配色」,已去掉)。 */
/* ---------- 主体 ---------- */
.vz-body {
+4 -2
View File
@@ -128,10 +128,12 @@ function viewHTML(name) {
'<header class="vz-header">' +
'<span class="vz-title">位图转矢量<em data-meta>' + esc(name) + '</em></span>' +
'<div class="vz-spacer"></div>' +
'<button type="button" class="vz-btn" data-act="cancel">取消</button>' +
// 顺序:主操作在左,取消在最右(用户 2026-11-09 要求与原先互换)。
// 四颗按钮同一套描边配色,不再给主操作上绿色填充 —— 用户口径「颜色都用取消按钮的配色」。
'<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 vz-btn-primary" data-act="save">保存为节点</button>' +
'<button type="button" class="vz-btn" data-act="cancel">取消</button>' +
'</header>' +
'<div class="vz-body">' +
'<div class="vz-preview" data-preview>' +