ImageTrans-docs icon indicating copy to clipboard operation
ImageTrans-docs copied to clipboard

可以让气泡框在排版模式时勾选一直隐藏不显示吗?

Open yahoozhu opened this issue 1 year ago • 1 comments

主要气泡框调整位置时容易造成视错觉,明明居中了也看不出来,要点过去移动时才能进行隐藏,经常要移动后才发现已经居中了 希望能勾选一直隐藏,这样在翻译校对完,字体大小角度调整完,最后进行居中对准的时候我也不需要出现气泡框了,只要点选字体中央直接拖动就行,或者让气泡框颜色可编辑也行,最后切换个背景色也好

yahoozhu avatar Apr 27 '24 00:04 yahoozhu

我加个设置吧,可以自己用CSS去定义边框样式,比如用下面的样式让边框变成一个个点的样式。

#textBox {
  -fx-border-style:dotted
}

image

xulihang avatar Apr 28 '24 13:04 xulihang

加在v2.11.2里了。

需要在偏好设置的主题选项卡里设置外部CSS的文件夹:

image

文件夹里放一个css文件,比如下面这样的来指定样式:

#textBox {
  -fx-border-style:dashed 
}

xulihang avatar May 02 '24 13:05 xulihang

加在v2.11.2里了。

需要在偏好设置的主题选项卡里设置外部CSS的文件夹:

image

文件夹里放一个css文件,比如下面这样的来指定样式:

#textBox {
  -fx-border-style:dashed 
}

这个设置我想给框框改个颜色 还有粗细不能改吗? GPT给代码是这样的 #textBox { -fx-border-style: solid; -fx-border-color: #0000ff; /* 蓝色 / -fx-border-width: 2px; / 设置边框宽度为2像素 */ } 除了第一个 把 虚线改成实线之外其他都不好使

lhj5426 avatar May 02 '24 18:05 lhj5426

宽度颜色这些在代码里写死了,CSS没有效

xulihang avatar May 03 '24 04:05 xulihang

要强制使用的话得这样用,加个!important

#textBox {
  -fx-border-style: dashed;
  -fx-border-color: blue !important;
  -fx-border-width: 10 !important;
}

xulihang avatar May 03 '24 04:05 xulihang

下个版本再完善下,选中和不选中的样式可以这样设:

#textBox {
  -fx-border-style: dashed;
}

#textBox:focused {
  -fx-border-style: dashed;
  -fx-border-color: blue !important;
}

xulihang avatar May 03 '24 04:05 xulihang

v2.12.0对CSS做了完善。选中、拖动状态下的样式也能设了

#textBox {
  -fx-border-style: dashed;
}

#textBox:focused {
  -fx-border-style: dashed;
  -fx-border-color: blue !important;
}

#textBox:hold {
  -fx-border-width: 0 !important;
}

xulihang avatar May 11 '24 08:05 xulihang

https://github.com/xulihang/ImageTrans-docs/assets/30548000/5dc47b50-ba38-4f40-b0ff-e30063a0f2c1

哈哈 好玩

lhj5426 avatar May 11 '24 17:05 lhj5426