feat: integrate ingredient list updates

This commit is contained in:
Zhongheng Liu 2025-12-04 17:31:34 +01:00
commit 2ce855aa3d
Signed by: steven
GPG key ID: F69B980899C1C09D
5 changed files with 42 additions and 27 deletions

View file

@ -116,15 +116,7 @@
</HBox>
<!-- Ingredients -->
<VBox spacing="10">
<Label fx:id="ingredientsLabel" text="Ingredients">
<font>
<Font name="System Bold" size="14.0" />
</font>
</Label>
<ListView fx:id="ingredientsListView" prefHeight="167.0" prefWidth="912.0" />
<Button fx:id="addIngredientButton" onAction="#addIngredient" text="Add Ingredient" />
</VBox>
<fx:include fx:id="ingredientsListContainer" source="recipe/IngredientList.fxml" />
<!-- Preparation -->
<Label fx:id="preparationLabel" text="Preparation">

View file

@ -9,7 +9,7 @@
<?import javafx.scene.layout.VBox?>
<?import javafx.scene.text.Font?>
<AnchorPane xmlns="http://javafx.com/javafx/25" xmlns:fx="http://javafx.com/fxml/1" fx:controller="client.scenes.recipe.RecipeStepListCtrl">
<AnchorPane xmlns="http://javafx.com/javafx/25" xmlns:fx="http://javafx.com/fxml/1" fx:controller="client.scenes.recipe.IngredientListCtrl">
<children>
<VBox minHeight="200.0" minWidth="200.0">
<children>