Skip to content

Commit

Permalink
Edit dialog box layout
Browse files Browse the repository at this point in the history
  • Loading branch information
NereusWB922 committed Sep 17, 2023
1 parent 5e6492a commit ac11b52
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/main/java/corgi/ui/DialogBox.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ private void flip() {
ObservableList<Node> tmp = FXCollections.observableArrayList(this.getChildren());
Collections.reverse(tmp);
getChildren().setAll(tmp);
setAlignment(Pos.CENTER_LEFT);
setAlignment(Pos.TOP_LEFT);
}

/**
Expand Down
9 changes: 6 additions & 3 deletions src/main/resources/view/DialogBox.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,13 @@
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.shape.Circle?>

<fx:root alignment="CENTER_RIGHT" maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" prefWidth="400.0" spacing="10" style="-fx-padding: 10;" stylesheets="@../css/DialogBoxStyle.css" type="javafx.scene.layout.HBox" xmlns="http://javafx.com/javafx/20.0.1" xmlns:fx="http://javafx.com/fxml/1">
<fx:root alignment="TOP_RIGHT" maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" prefWidth="400.0" spacing="10" style="-fx-padding: 10;" stylesheets="@../css/DialogBoxStyle.css" type="javafx.scene.layout.HBox" xmlns="http://javafx.com/javafx/20.0.1" xmlns:fx="http://javafx.com/fxml/1">
<children>
<Label fx:id="dialog" minHeight="-Infinity" text="Label" />
<Circle fx:id="displayPicture" fill="DODGERBLUE" radius="52.0" stroke="WHITE" strokeType="INSIDE" strokeWidth="3.0" />
<Label fx:id="dialog" minHeight="-Infinity" text="Label">
<HBox.margin>
<Insets top="15.0" />
</HBox.margin></Label>
<Circle fx:id="displayPicture" fill="DODGERBLUE" radius="40.0" stroke="WHITE" strokeType="INSIDE" strokeWidth="3.0" />
</children>
<padding>
<Insets bottom="15.0" left="5.0" right="5.0" top="15.0" />
Expand Down

0 comments on commit ac11b52

Please sign in to comment.