diff --git a/src/main/resources/fxml/Tasty_Pages_Main_Page.fxml b/src/main/resources/fxml/Tasty_Pages_Main_Page.fxml new file mode 100644 index 0000000000000000000000000000000000000000..348c6b4e5b019903d18da241b5ddafc1deb7b308 --- /dev/null +++ b/src/main/resources/fxml/Tasty_Pages_Main_Page.fxml @@ -0,0 +1,164 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- + Copyright (c) 2015, 2019, Gluon and/or its affiliates. + All rights reserved. Use is subject to license terms. + + This file is available and licensed under the following license: + + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + + - Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + - Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in + the documentation and/or other materials provided with the distribution. + - Neither the name of Oracle Corporation nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +--> + +<?import javafx.geometry.Insets?> +<?import javafx.scene.Cursor?> +<?import javafx.scene.control.Button?> +<?import javafx.scene.control.MenuButton?> +<?import javafx.scene.control.MenuItem?> +<?import javafx.scene.control.TextField?> +<?import javafx.scene.image.Image?> +<?import javafx.scene.image.ImageView?> +<?import javafx.scene.layout.AnchorPane?> +<?import javafx.scene.layout.ColumnConstraints?> +<?import javafx.scene.layout.GridPane?> +<?import javafx.scene.layout.Pane?> +<?import javafx.scene.layout.RowConstraints?> +<?import javafx.scene.layout.VBox?> +<?import javafx.scene.text.Font?> +<?import javafx.scene.text.Text?> + +<VBox prefHeight="400.0" prefWidth="640.0" xmlns="http://javafx.com/javafx/19" xmlns:fx="http://javafx.com/fxml/1"> + <children> + <AnchorPane maxHeight="-1.0" maxWidth="-1.0" prefHeight="-1.0" prefWidth="-1.0" style="-fx-background-color: ffffff;" VBox.vgrow="ALWAYS"> + <children> + <MenuButton contentDisplay="GRAPHIC_ONLY" graphicTextGap="0.0" layoutX="18.0" layoutY="21.0" mnemonicParsing="false" style="-fx-background-color: transparent;" textFill="TRANSPARENT"> + <items> + <MenuItem mnemonicParsing="false" text="Home" /> + <MenuItem mnemonicParsing="false" text="Meal Plan" /> + <MenuItem mnemonicParsing="false" text="Shopping List" /> + </items> + <graphic> + <ImageView fitHeight="30.0" fitWidth="45.0" pickOnBounds="true" preserveRatio="true"> + <image> + <Image url="@../images/Tasty_Pages_Menu_Button.png" /> + </image> + </ImageView> + </graphic> + <cursor> + <Cursor fx:constant="DEFAULT" /> + </cursor> + <font> + <Font size="1.0E-4" /> + </font> + </MenuButton> + <TextField layoutX="450.0" layoutY="27.0" style="-fx-border-color: D91c1c; -fx-border-width: 2; -fx-border-radius: 10; -fx-background-radius: 10;" /> + <GridPane layoutX="58.0" layoutY="99.0" prefHeight="390.0" prefWidth="512.0"> + <columnConstraints> + <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" /> + <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" /> + <ColumnConstraints hgrow="SOMETIMES" minWidth="10.0" prefWidth="100.0" /> + </columnConstraints> + <rowConstraints> + <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> + <RowConstraints minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" /> + </rowConstraints> + <children> + <Pane prefHeight="192.0" prefWidth="159.0" style="-fx-background-color: dedede; -fx-background-radius: 15;"> + <GridPane.margin> + <Insets bottom="6.0" left="6.0" right="6.0" top="6.0" /> + </GridPane.margin> + <children> + <Button contentDisplay="CENTER" layoutX="8.0" layoutY="6.0" mnemonicParsing="false" prefHeight="169.0" prefWidth="144.0" style="-fx-background-color: transparent;" text="Button" textFill="TRANSPARENT"> + <graphic> + <ImageView fitHeight="67.0" fitWidth="64.0" pickOnBounds="true" preserveRatio="true"> + <image> + <Image url="@../images/Tasty_Pages_Plus_Icon.png" /> + </image> + </ImageView> + </graphic> + </Button> + </children> + </Pane> + <Pane prefHeight="155.0" prefWidth="154.0" style="-fx-background-color: dedede; -fx-background-radius: 15;" GridPane.columnIndex="1"> + <GridPane.margin> + <Insets bottom="40.0" left="6.0" right="6.0" top="6.0" /> + </GridPane.margin> + </Pane> + <Pane prefHeight="155.0" prefWidth="154.0" style="-fx-background-color: dedede; -fx-background-radius: 15;" GridPane.columnIndex="2"> + <GridPane.margin> + <Insets bottom="40.0" left="6.0" right="6.0" top="6.0" /> + </GridPane.margin> + </Pane> + <Pane prefHeight="198.0" prefWidth="163.0" style="-fx-background-color: dedede; -fx-background-radius: 15;" GridPane.rowIndex="1"> + <GridPane.margin> + <Insets bottom="40.0" left="6.0" right="6.0" top="6.0" /> + </GridPane.margin> + </Pane> + <Pane prefHeight="155.0" prefWidth="154.0" style="-fx-background-color: dedede; -fx-background-radius: 15;" GridPane.columnIndex="1" GridPane.rowIndex="1"> + <GridPane.margin> + <Insets bottom="40.0" left="6.0" right="6.0" top="6.0" /> + </GridPane.margin> + </Pane> + <Pane prefHeight="155.0" prefWidth="154.0" style="-fx-background-color: dedede; -fx-background-radius: 15;" GridPane.columnIndex="2" GridPane.rowIndex="1"> + <GridPane.margin> + <Insets bottom="40.0" left="6.0" right="6.0" top="6.0" /> + </GridPane.margin> + </Pane> + <Text strokeType="OUTSIDE" strokeWidth="0.0" text="Text" wrappingWidth="122.73394775390625" GridPane.columnIndex="1" GridPane.valignment="BOTTOM"> + <GridPane.margin> + <Insets bottom="18.0" left="6.0" /> + </GridPane.margin> + </Text> + <Text strokeType="OUTSIDE" strokeWidth="0.0" text="Text" wrappingWidth="122.73394775390625" GridPane.columnIndex="2" GridPane.valignment="BOTTOM"> + <GridPane.margin> + <Insets bottom="18.0" left="6.0" /> + </GridPane.margin> + </Text> + <Text strokeType="OUTSIDE" strokeWidth="0.0" text="Text" wrappingWidth="122.73394775390625" GridPane.rowIndex="1" GridPane.valignment="BOTTOM"> + <GridPane.margin> + <Insets bottom="18.0" left="6.0" /> + </GridPane.margin> + </Text> + <Text strokeType="OUTSIDE" strokeWidth="0.0" text="Text" wrappingWidth="122.73394775390625" GridPane.columnIndex="1" GridPane.rowIndex="1" GridPane.valignment="BOTTOM"> + <GridPane.margin> + <Insets bottom="18.0" left="6.0" /> + </GridPane.margin> + </Text> + <Text strokeType="OUTSIDE" strokeWidth="0.0" text="Text" wrappingWidth="122.73394775390625" GridPane.columnIndex="2" GridPane.rowIndex="1" GridPane.valignment="BOTTOM"> + <GridPane.margin> + <Insets bottom="18.0" left="6.0" /> + </GridPane.margin> + </Text> + </children> + </GridPane> + <ImageView fitHeight="28.0" fitWidth="28.0" layoutX="453.0" layoutY="28.0" pickOnBounds="true" preserveRatio="true"> + <image> + <Image url="@../images/Tasty_Pages_Search_Material_Design_Icons.png" /> + </image> + </ImageView> + </children> + </AnchorPane> + </children> +</VBox>