样式修改
parent
13069894aa
commit
a1336d1c29
7
pom.xml
7
pom.xml
|
@ -130,12 +130,7 @@
|
||||||
<artifactId>easypoi-annotation</artifactId>
|
<artifactId>easypoi-annotation</artifactId>
|
||||||
<version>4.0.0</version>
|
<version>4.0.0</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<!-- https://mvnrepository.com/artifact/org.controlsfx/controlsfx -->
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.controlsfx</groupId>
|
|
||||||
<artifactId>controlsfx</artifactId>
|
|
||||||
<version>8.40.14</version>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
|
|
|
@ -156,7 +156,7 @@ public class BuilderPackageEcology extends Application {
|
||||||
root.setBottom(buttonBox);
|
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.getStylesheets().add(getClass().getResource("style.css").toExternalForm()); // 加载自定义的 CSS 文件
|
||||||
scene.getRoot().setStyle("-fx-font-family: 'serif'");
|
scene.getRoot().setStyle("-fx-font-family: 'serif'");
|
||||||
primaryStage.setScene(scene);
|
primaryStage.setScene(scene);
|
||||||
|
|
|
@ -2,12 +2,13 @@
|
||||||
|
|
||||||
|
|
||||||
.tree-view {
|
.tree-view {
|
||||||
-fx-padding: 10px;
|
-fx-padding: 15px;
|
||||||
|
-fx-start-margin: 5px;
|
||||||
-fx-alignment: center;
|
-fx-alignment: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tree-cell {
|
.tree-cell {
|
||||||
-fx-padding: 6px;
|
-fx-padding: 0;
|
||||||
-fx-font-size: 14px;
|
-fx-font-size: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue