修改行号外观

This commit is contained in:
许轲 2023-08-19 22:05:30 +08:00
parent f5cca69c50
commit 7138ef02a1

View File

@ -19,7 +19,7 @@ public class LineNumberTextArea extends BorderPane {
lineNumberArea.setEditable(false);
lineNumberArea.setPrefWidth(30);
mainTextArea.setStyle("-fx-border-color:white;-fx-background-color:white;");
lineNumberArea.setStyle("-fx-border-color:white;-fx-background-color:white;");
// lineNumberArea.setStyle("-fx-border-color:white;-fx-background-color:white;");
// 设置显示滚动条样式类
lineNumberArea.getStyleClass().add("text-line-number");
lineNumberArea.textProperty().addListener((observable, oldValue, newValue) -> updateLineNumberWidth());