feat: ingredient adding, deletion and editing

This commit is contained in:
Natalia Cholewa 2025-11-27 16:25:44 +01:00
commit bdf6f71c01
2 changed files with 81 additions and 15 deletions

View file

@ -1,9 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.geometry.Insets?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.ListView?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.VBox?>
<?import javafx.scene.text.Font?>
@ -11,14 +13,27 @@
<children>
<VBox minHeight="200.0" minWidth="200.0">
<children>
<Label text="Ingredients">
<HBox alignment="CENTER_LEFT" spacing="20.0">
<children>
<Label text="Ingredients">
<padding>
<Insets bottom="5.0" top="5.0" />
</padding>
<font>
<Font name="System Bold" size="16.0" />
</font>
</Label>
<HBox alignment="CENTER" spacing="10.0">
<children>
<Button fx:id="addIngredientButton" mnemonicParsing="false" text="Add" />
<Button fx:id="deleteIngredientButton" mnemonicParsing="false" text="Delete" />
</children>
</HBox>
</children>
<padding>
<Insets bottom="5.0" left="10.0" right="10.0" top="5.0" />
<Insets left="10.0" right="10.0" />
</padding>
<font>
<Font name="System Bold" size="16.0" />
</font>
</Label>
</HBox>
<ListView fx:id="ingredientListView" prefHeight="200.0" prefWidth="200.0" />
</children>
</VBox>