Remove hover text from the painting canvas
Hovering the image showed a hint in every mode. Drop the canvas title entirely so no hover text appears over the picture, keep the instructions on the bottom controls and their button tooltips, and delete the now-unused hint entries from the locale dictionary.
This commit is contained in:
+2
-2
@@ -2,8 +2,8 @@
|
||||
|
||||
## 0.6.8
|
||||
|
||||
- Move the selected-region painting help from the canvas hover text to the repaint mask button, so the crop canvas no longer repeats it while a region is locked.
|
||||
- Remove the now-unused repaint mask description entry from the locale dictionary.
|
||||
- Move the selected-region painting help onto the repaint mask button, and remove hover text from the painting canvas entirely: hovering the image no longer shows any hint in any mode. The bottom controls and their button tooltips keep the instructions.
|
||||
- Remove the now-unused canvas and repaint mask hint entries from the locale dictionary.
|
||||
|
||||
## 0.6.7
|
||||
|
||||
|
||||
@@ -13,11 +13,7 @@ const ZH = {
|
||||
"Merge the visible result and blend mask into the source image. After merging, right-click releases the selected region.": "将当前可见结果和融合蒙版合并到原图。合并后,右键恢复为取消选区。",
|
||||
"Undo the last stroke in the active repaint or blend mask (Ctrl+Z). Redo with Ctrl+Shift+Z.": "撤销当前重绘蒙版或融合蒙版的上一笔(Ctrl+Z);Ctrl+Shift+Z 可重做。",
|
||||
"Custom crop dimension in 64-pixel steps. Changing it releases the selected region.": "自定义裁切宽高,按 64 像素递增;修改尺寸会取消当前选定。",
|
||||
"Paint a mask. Alt: temporary eraser. Ctrl+wheel: brush size. Shift+wheel: hardness. Undo: bottom return arrow or Ctrl+Z.": "涂抹蒙版。Alt 临时擦除;Ctrl+滚轮调笔径;Shift+滚轮调硬度;下方返回箭头或 Ctrl+Z 撤销。",
|
||||
"Unmerged result: hold right-click to see the original; release to see the workspace. In the blend mask, brush keeps new pixels and Alt restores old pixels. Ctrl+wheel: size; Shift+wheel: hardness. Click the check mark to merge.": "结果尚未合并:按住右键看原图,松开恢复当前工作区。融合蒙版中画笔保留新图、Alt 擦回原图;Ctrl+滚轮调笔径,Shift+滚轮调硬度;点击 √ 合并。",
|
||||
"Paint inside the selected region. Right-click releases the selection; left-click places a new one. Alt: erase. Ctrl+wheel: brush size; Shift+wheel: hardness.": "在选区内涂蒙版。右键取消选定,再左键选择新区域;Alt 擦除;Ctrl+滚轮调笔径,Shift+滚轮调硬度。",
|
||||
"Move the dashed frame and left-click to select a region. Paint a mask inside it, generate, then use Adopt this result in Image Compare.": "移动虚线框,左键点击选定区域;在里面画蒙版并生成,再到图像对比点击「采用此结果」回贴。",
|
||||
|
||||
"Select a crop region before adopting a result": "请先选择裁切区域再采用结果",
|
||||
"Finish editing before adopting a result": "请结束当前编辑后再采用结果",
|
||||
"This result belongs to another crop; generate a result for the current region": "该结果来自其他选区,请为当前选区重新生成",
|
||||
|
||||
+2
-9
@@ -315,15 +315,8 @@ export class InlineCropController {
|
||||
sync() {
|
||||
this.editor.root.classList.toggle("dd-crop-mode", this.mode === "crop");
|
||||
this.modeSelect.value = this.mode;
|
||||
this.editor.canvas.title = T(!this.editor.ready
|
||||
? "Upload an image, or drop / paste one"
|
||||
: this.mode !== "crop"
|
||||
? "Paint a mask. Alt: temporary eraser. Ctrl+wheel: brush size. Shift+wheel: hardness. Undo: bottom return arrow or Ctrl+Z."
|
||||
: this.layer
|
||||
? "Unmerged result: hold right-click to see the original; release to see the workspace. In the blend mask, brush keeps new pixels and Alt restores old pixels. Ctrl+wheel: size; Shift+wheel: hardness. Click the check mark to merge."
|
||||
: this.region.locked
|
||||
? ""
|
||||
: "Move the dashed frame and left-click to select a region. Paint a mask inside it, generate, then use Adopt this result in Image Compare.");
|
||||
// No hover text on the painting canvas; the bottom controls carry the hints.
|
||||
this.editor.canvas.removeAttribute("title");
|
||||
for (const control of [this.preset, this.swapButton, this.maskButton, this.blendButton, this.commitButton]) {
|
||||
control.hidden = this.mode !== "crop";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user