Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
yahoozhu opened this issue Apr 27, 2024 · 8 comments
Closed

Comments

@yahoozhu
Copy link

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

@xulihang
Copy link
Owner

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

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

image

@xulihang
Copy link
Owner

xulihang commented May 2, 2024

加在v2.11.2里了。

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

image

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

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

@xulihang xulihang closed this as completed May 2, 2024
@lhj5426
Copy link

lhj5426 commented May 2, 2024

加在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像素 */
}
除了第一个 把 虚线改成实线之外其他都不好使

@xulihang
Copy link
Owner

xulihang commented May 3, 2024

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

@xulihang
Copy link
Owner

xulihang commented May 3, 2024

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

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

@xulihang
Copy link
Owner

xulihang commented May 3, 2024

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

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

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

@xulihang
Copy link
Owner

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;
}

@lhj5426
Copy link

lhj5426 commented May 11, 2024

bandicam.2024-05-12.01-16-49-769.mp4

哈哈 好玩

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants