Skip to content
Snippets Groups Projects
Commit 961b4889 authored by Blersch Lara's avatar Blersch Lara
Browse files

setup for demo recipes and background song

parent 516b0586
No related branches found
No related tags found
No related merge requests found
......@@ -35,6 +35,7 @@ public class FileManager {
//TODO: how are we going to check for deleted recipes?
private final static String PATH_TO_DEFAULT_INGREDIENTS = "/data/simple_nutrition.csv";
private final static String PATH_TO_USER_DATA = System.getProperty("user.home") + "\\AppData\\Roaming\\TastyPages";
private final static String PATH_TO_DEMO_RECIPES = "/recipes/";
private final static Logger log = LogManager.getLogger(FileManager.class);
......@@ -85,7 +86,7 @@ public class FileManager {
} else {
log.info("Could not find recipe folder, creating empty instance of RecipeManger");
recipeFolder.toFile().mkdir();
recipeManager = new RecipeManager();
recipeManager = deserializeRecipeManager(Path.of(getAbsolutePathFromResourceFolder(FileManager.PATH_TO_DEMO_RECIPES)));
}
}
//Deserialize category manager
......
......@@ -21,7 +21,7 @@
<RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
</rowConstraints>
<children>
<Label fx:id="recipeName" alignment="TOP_CENTER" prefHeight="54.0" prefWidth="207.0" text="Recipe Name" textFill="#d91c1c" GridPane.columnIndex="1" GridPane.halignment="CENTER" GridPane.valignment="TOP">
<Label fx:id="recipeName" alignment="TOP_CENTER" prefHeight="54.0" prefWidth="1000.0" text="Recipe Name" textFill="#d91c1c" GridPane.columnIndex="1" GridPane.halignment="CENTER" GridPane.valignment="TOP">
<font>
<Font name="Arial" size="34.0" />
</font>
......
File added
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment