Skip to content

Commit

Permalink
Merge pull request #112 from xGladiate/update-ui
Browse files Browse the repository at this point in the history
Update UI
  • Loading branch information
xGladiate authored Oct 25, 2024
2 parents 8fc8dbb + 7df38ea commit ea24f3c
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/main/java/seedu/address/MainApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
*/
public class MainApp extends Application {

public static final Version VERSION = new Version(0, 2, 2, true);
public static final Version VERSION = new Version(0, 2, 3, true);

private static final Logger logger = LogsCenter.getLogger(MainApp.class);

Expand Down
5 changes: 0 additions & 5 deletions src/main/java/seedu/address/ui/DeliveryCard.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ public class DeliveryCard extends UiPart<Region> {
@FXML
private FlowPane tags;
@FXML
private Label archive;
@FXML
private FlowPane items;

/**
Expand All @@ -73,9 +71,6 @@ public DeliveryCard(Delivery delivery, int displayedIndex) {
.sorted(Comparator.comparing(tag -> tag.tagName))
.forEach(tag -> tags.getChildren().add(new Label(tag.tagName)));

//Can be removed
archive.setText(delivery.getArchive().toString());

// Update the card style based on the archive status
if (delivery.isArchived()) {
cardPane.getStyleClass().add("archived");
Expand Down
9 changes: 3 additions & 6 deletions src/main/resources/view/DeliveryListCard.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<Label fx:id="deliveryId" styleClass="cell_small_label" text="deliveryId" />
<Label fx:id="address" styleClass="cell_small_label" text="address" />
<HBox fx:id="itemsContainer" styleClass="cell_small_label">
<Label fx:id="itemsLabel" minWidth="40" text="Items: " />
<Label fx:id="itemsLabel" styleClass="cell_small_label" text="Items: " />
<FlowPane fx:id="items" />
</HBox>
<!--<FlowPane fx:id="items" />-->
Expand All @@ -40,12 +40,9 @@
<Label fx:id="eta" styleClass="cell_small_label" text="eta" />
<Label fx:id="status" styleClass="cell_small_label" text="status" />
<HBox fx:id="tagsContainer" styleClass="cell_small_label">
<Label fx:id="tagsLabel" minWidth="40" text="Tags: "/>
<FlowPane fx:id="tags" />
<Label fx:id="tagsLabel" styleClass="cell_small_label" text="Tags: "/>
<FlowPane fx:id="tags" styleClass="cell_small_label" />
</HBox>

<!--Can be removed-->
<Label fx:id="archive" styleClass="cell_small_label" text="status" />
</VBox>
</GridPane>
</HBox>
2 changes: 1 addition & 1 deletion src/main/resources/view/DeliveryListPanel.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
<?import javafx.scene.control.ListView?>
<?import javafx.scene.layout.VBox?>

<VBox xmlns="http://javafx.com/javafx/17" xmlns:fx="http://javafx.com/fxml/1">
<VBox xmlns="http://javafx.com/javafx/17" xmlns:fx="http://javafx.com/fxml/1" VBox.vgrow="ALWAYS">
<ListView fx:id="deliveryListView" VBox.vgrow="ALWAYS" />
</VBox>
10 changes: 7 additions & 3 deletions src/main/resources/view/InspectWindow.fxml
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,20 @@
</padding>
</StackPane>

<SplitPane fx:id="mainSplitPane" VBox.vgrow="ALWAYS" dividerPositions="0.5">
<SplitPane fx:id="mainSplitPane" VBox.vgrow="ALWAYS" dividerPositions="0.3">
<items>
<VBox fx:id="personInfoSection">
<StackPane fx:id="personInfoPlaceholder" />
</VBox>
<VBox fx:id="deliveryListSection">
<StackPane fx:id="deliveryListPlaceholder" />
<VBox fx:id="deliveryListSection" styleClass="pane-with-border" VBox.vgrow="ALWAYS">
<padding>
<Insets top="10" right="10" bottom="10" left="10" />
</padding>
<StackPane fx:id="deliveryListPlaceholder" VBox.vgrow="ALWAYS" />
</VBox>
</items>
</SplitPane>

<StackPane fx:id="statusbarPlaceholder" VBox.vgrow="NEVER" />
</VBox>
</Scene>
Expand Down

0 comments on commit ea24f3c

Please sign in to comment.