diff --git a/image-annotate/package.json b/image-annotate/package.json index ff29f1c..7a187bc 100644 --- a/image-annotate/package.json +++ b/image-annotate/package.json @@ -1,7 +1,7 @@ { "name": "@iwb-plugin/image-annotate", "private": true, - "version": "1.2.10", + "version": "1.2.11", "description": "IWB 插件:图片标注 / 修图(编辑器移植自 iwb-plaus 扩展,纯 Canvas 2D)", "ibwPlugin": { "id": "image-annotate", diff --git a/image-annotate/plugin/editor.css b/image-annotate/plugin/editor.css index 0073aa6..59ef562 100755 --- a/image-annotate/plugin/editor.css +++ b/image-annotate/plugin/editor.css @@ -1546,6 +1546,9 @@ border: 1px solid #45475a; border-radius: 4px; } .iwb-editor-optionbar-body .iwb-editor-size-input:focus { outline: none; border-color: #4488ff; } +/* 硬度滑杆加宽:参数太密时默认 84px 拉不开,用户反馈「软度调节不明显」(2026-11-04) */ +.iwb-editor-optionbar-body .iwb-opt-range-wide { width: 140px; } +.iwb-editor-optionbar-body .iwb-opt-dots { margin-left: 2px; } .iwb-editor-optionbar-body .iwb-editor-size-input::-webkit-inner-spin-button { -webkit-appearance: none; } .iwb-editor-optionbar-body .iwb-editor-crop-confirm, .iwb-editor-optionbar-body .iwb-editor-crop-cancel { @@ -1589,10 +1592,19 @@ .iwb-opt-selcmd:hover { background: #45475a; } /* ================================================================ - v1.2.9:顶栏「新建/覆盖/退出」移到最左(用户裁定 2026-11-04) - 布局:⟨新建·覆盖·退出⟩ 标题 | 撤销·重做·还原 | 顺序·视图 | …… | 输出·导出 - 会话组不设 order(默认 0 且是 header 第一个子元素)→ 与标题同序时按 DOM 排最前 + v1.2.11:顶栏次序与配色(用户裁定 2026-11-04 晚) + 布局:标题 | ⟨新建·覆盖·退出⟩ | 撤销·重做·还原 | 顺序·视图 | …… | 输出·导出 + 标题在前(它是标题,不能跑到按钮后面);会话组三键统一中性色,不再花 ================================================================ */ -.iwb-editor-header > .iwb-editor-session { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; } +.iwb-editor-header > .iwb-editor-title { order: 0; } +.iwb-editor-header > .iwb-editor-session { order: 1; display: flex; align-items: center; gap: 6px; flex: 0 0 auto; margin-left: 8px; } .iwb-editor-header > .iwb-editor-session .iwb-editor-btn { padding: 6px 10px; font-size: 11px; min-width: 56px; white-space: nowrap; } -.iwb-editor-header > .iwb-editor-session .iwb-editor-btn-download { min-width: 72px; } +.iwb-editor-header > .iwb-editor-session .iwb-editor-btn-new, +.iwb-editor-header > .iwb-editor-session .iwb-editor-btn-replace, +.iwb-editor-header > .iwb-editor-session .iwb-editor-btn-cancel { background: #45475a; color: #cdd6f4; } +.iwb-editor-header > .iwb-editor-session .iwb-editor-btn-new:hover, +.iwb-editor-header > .iwb-editor-session .iwb-editor-btn-replace:hover, +.iwb-editor-header > .iwb-editor-session .iwb-editor-btn-cancel:hover { background: #585b70; } +/* 标题与会话组之间、撤销组与命令带之间的竖分隔 */ +.iwb-editor-header > .iwb-editor-session { margin-right: 4px; } +.iwb-editor-header > .iwb-editor-divider { width: 1px; height: 20px; background: #313244; flex: 0 0 auto; margin: 0 4px; } diff --git a/image-annotate/plugin/editor/dom.js b/image-annotate/plugin/editor/dom.js index 5b1b8e4..4c6ffcb 100644 --- a/image-annotate/plugin/editor/dom.js +++ b/image-annotate/plugin/editor/dom.js @@ -19,18 +19,19 @@ import { bindEvents } from './events.js' runtime.el.innerHTML = `