feat: refactor the element tree to make inline recipe name change possible

This commit is contained in:
Zhongheng Liu 2025-12-04 13:32:32 +01:00
commit 805c8fd6ea
Signed by: steven
GPG key ID: F69B980899C1C09D

View file

@ -101,17 +101,16 @@
<!-- CENTER: RECIPE DETAILS --> <!-- CENTER: RECIPE DETAILS -->
<center> <center>
<VBox spacing="20"> <VBox spacing="20" visible="false" fx:id="detailsScreen">
<padding> <padding>
<Insets bottom="10" left="10" right="10" top="10" /> <Insets bottom="10" left="10" right="10" top="10" />
</padding> </padding>
<!-- Recipe title row --> <!-- Recipe title row -->
<HBox spacing="10"> <HBox spacing="10">
<Label fx:id="recipeNameLabel" text="Recipe Name"> <HBox fx:id="editableTitleArea">
<font> </HBox>
<Font name="System Bold" size="14.0" />
</font></Label>
<Button fx:id="editRecipeTitleButton" onAction="#editRecipeTitle" text="Edit" /> <Button fx:id="editRecipeTitleButton" onAction="#editRecipeTitle" text="Edit" />
<Button fx:id="RemoveRecipeButton2" mnemonicParsing="false" onAction="#removeSelectedRecipe" text="Remove Recipe" /> <Button fx:id="RemoveRecipeButton2" mnemonicParsing="false" onAction="#removeSelectedRecipe" text="Remove Recipe" />
<Button fx:id="printRecipe" mnemonicParsing="false" onAction="#makePrintable" text="Print Recipe" /> <Button fx:id="printRecipe" mnemonicParsing="false" onAction="#makePrintable" text="Print Recipe" />