mirror of
https://github.com/Stefan-5422/School-Programming-Projekt-022022.git
synced 2026-09-04 00:46:01 +02:00
Build Box UI improvments
This commit is contained in:
@@ -17,7 +17,7 @@ public class HubDisplay extends Entity {
|
||||
Rectangle r = new Rectangle(Chunk.ENTITY_SIZE, Chunk.ENTITY_SIZE);
|
||||
r.setFill(Color.PINK);
|
||||
|
||||
Text text = new Text("yes\nthis is a test sentence");
|
||||
Text text = new Text("yes\nthis is a test");
|
||||
text.setWrappingWidth(Chunk.ENTITY_SIZE);
|
||||
|
||||
StackPane stackPane = new StackPane();
|
||||
|
||||
@@ -17,6 +17,9 @@ public class BuildBox extends javafx.scene.Group {
|
||||
hbox.prefWidth(Double.POSITIVE_INFINITY);
|
||||
|
||||
pane.setContent(hbox);
|
||||
pane.setStyle("-fx-background-color: -fx-outer-border, -fx-inner-border, -fx-body-color;" +
|
||||
"-fx-background-insets: 0, 1, 2;" +
|
||||
"-fx-background-radius: 5, 4, 3;");
|
||||
|
||||
this.getChildren().add(pane);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user