From a1336d1c29e385e7b5155d7e4d67d4c782efb943 Mon Sep 17 00:00:00 2001 From: "youhong.ai" Date: Tue, 11 Jul 2023 17:54:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 7 +------ src/test/java/BuilderPackageEcology.java | 2 +- src/test/resources/style.css | 5 +++-- 3 files changed, 5 insertions(+), 9 deletions(-) diff --git a/pom.xml b/pom.xml index 5221995..8509d5e 100644 --- a/pom.xml +++ b/pom.xml @@ -130,12 +130,7 @@ easypoi-annotation 4.0.0 - - - org.controlsfx - controlsfx - 8.40.14 - + diff --git a/src/test/java/BuilderPackageEcology.java b/src/test/java/BuilderPackageEcology.java index a11d4d3..f8b912f 100644 --- a/src/test/java/BuilderPackageEcology.java +++ b/src/test/java/BuilderPackageEcology.java @@ -156,7 +156,7 @@ public class BuilderPackageEcology extends Application { root.setBottom(buttonBox); - Scene scene = new Scene(root, 600, 400); + Scene scene = new Scene(root, 600, 600); scene.getStylesheets().add(getClass().getResource("style.css").toExternalForm()); // 加载自定义的 CSS 文件 scene.getRoot().setStyle("-fx-font-family: 'serif'"); primaryStage.setScene(scene); diff --git a/src/test/resources/style.css b/src/test/resources/style.css index 1d86afe..4388a4b 100644 --- a/src/test/resources/style.css +++ b/src/test/resources/style.css @@ -2,12 +2,13 @@ .tree-view { - -fx-padding: 10px; + -fx-padding: 15px; + -fx-start-margin: 5px; -fx-alignment: center; } .tree-cell { - -fx-padding: 6px; + -fx-padding: 0; -fx-font-size: 14px; }