!100 fix:修复文本编辑器和上方距离过近的bug

Merge pull request !100 from Luke/release-v1.1.13
This commit is contained in:
Luke 2023-09-17 12:35:42 +00:00 committed by Gitee
commit b3c39137d5
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 5 additions and 0 deletions

View File

@ -1,5 +1,6 @@
package org.jcnc.jnotepad.ui.module;
import javafx.geometry.Insets;
import org.fxmisc.richtext.LineNumberFactory;
import org.fxmisc.richtext.StyleClassedTextArea;
import org.jcnc.jnotepad.util.LogUtil;
@ -34,6 +35,9 @@ public class LineNumberTextArea extends StyleClassedTextArea {
* 用于创建 LineNumberTextArea 对象
*/
public LineNumberTextArea() {
//
setPadding(new Insets(8, 0, 0, 0));
// 设置 LineNumberTextArea 的样式包括边框和背景颜色
getStyleClass().add("line-number-text-area");
this.setParagraphGraphicFactory(LineNumberFactory.get(this));

View File

@ -26,6 +26,7 @@
-fx-background-color: -color-neutral-muted
}
.line-number-text-area .paragraph-box .text {
/*-fx-fill: -color-fg-default;*/
/* -fx-font-size: 18px;*/