Skip to content
Snippets Groups Projects
Commit 24f12098 authored by Harry Linrui XU's avatar Harry Linrui XU
Browse files

Created new window for monthly budget overview. Added new images

parent 7e97c641
No related branches found
No related tags found
1 merge request!6Merging the frontend baseline to get up to date with the progress
Pipeline #205568 passed
src/main/resources/Images/add_expense.png

175 KiB

<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.geometry.Insets?>
<?import javafx.scene.Cursor?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.DatePicker?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.ProgressBar?>
<?import javafx.scene.image.Image?>
<?import javafx.scene.image.ImageView?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.layout.BorderPane?>
<?import javafx.scene.layout.ColumnConstraints?>
<?import javafx.scene.layout.GridPane?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.Region?>
<?import javafx.scene.layout.RowConstraints?>
<?import javafx.scene.text.Font?>
<?import javafx.scene.text.Text?>
<AnchorPane xmlns="http://javafx.com/javafx/19" xmlns:fx="http://javafx.com/fxml/1">
<children>
<ImageView fitHeight="400.0" fitWidth="600.0" pickOnBounds="true">
<cursor>
<Cursor fx:constant="DEFAULT" />
</cursor>
</ImageView>
<BorderPane prefHeight="400.0" prefWidth="600.0" AnchorPane.topAnchor="0.0">
<center>
<GridPane gridLinesVisible="true" BorderPane.alignment="CENTER">
<columnConstraints>
<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 minHeight="10.0" prefHeight="30.0" vgrow="SOMETIMES" />
</rowConstraints>
<children>
<HBox prefHeight="68.0" prefWidth="574.0" GridPane.columnSpan="2">
<children>
<Region prefHeight="108.0" prefWidth="270.0" />
<Label text="Label" />
<Region prefHeight="108.0" prefWidth="100.0" />
<DatePicker />
</children>
</HBox>
<AnchorPane GridPane.columnSpan="2" GridPane.rowIndex="1">
<children>
<ProgressBar layoutX="9.0" layoutY="41.0" prefHeight="18.0" prefWidth="554.0" progress="0.37" />
</children>
</AnchorPane>
<HBox alignment="CENTER" prefHeight="100.0" prefWidth="200.0" spacing="50.0" GridPane.columnSpan="2" GridPane.rowIndex="2">
<children>
<Button contentDisplay="TOP" mnemonicParsing="false" prefHeight="125.0" prefWidth="125.0" text="Food">
<graphic>
<ImageView fitHeight="63.0" fitWidth="87.0" pickOnBounds="true">
<cursor>
<Cursor fx:constant="DEFAULT" />
</cursor>
<image>
<Image url="@pizzaslice.png" />
</image>
</ImageView>
</graphic>
</Button>
<Button contentDisplay="TOP" mnemonicParsing="false" prefHeight="125.0" prefWidth="125.0" text="Add expense">
<graphic>
<ImageView fitHeight="79.0" fitWidth="87.0" pickOnBounds="true">
<cursor>
<Cursor fx:constant="DEFAULT" />
</cursor>
<image>
<Image url="@add_expense.png" />
</image>
</ImageView>
</graphic>
</Button>
<Button contentDisplay="TOP" mnemonicParsing="false" prefHeight="125.0" prefWidth="125.0" text="Overview">
<graphic>
<ImageView fitHeight="63.0" fitWidth="87.0" pickOnBounds="true">
<cursor>
<Cursor fx:constant="DEFAULT" />
</cursor>
<image>
<Image url="@overview_stonks.png" />
</image>
</ImageView>
</graphic>
</Button>
</children>
</HBox>
</children>
</GridPane>
</center>
<bottom>
<Region prefHeight="8.0" prefWidth="600.0" BorderPane.alignment="CENTER" />
</bottom>
<left>
<Region prefHeight="287.0" prefWidth="14.0" BorderPane.alignment="CENTER" />
</left>
<right>
<Region prefHeight="287.0" prefWidth="12.0" BorderPane.alignment="CENTER" />
</right>
<top>
<HBox BorderPane.alignment="CENTER">
<children>
<Button mnemonicParsing="false" onAction="#switchIncome" text="Return ">
<opaqueInsets>
<Insets left="100.0" />
</opaqueInsets>
<HBox.margin>
<Insets left="10.0" top="10.0" />
</HBox.margin>
</Button>
<Region prefHeight="70.0" prefWidth="103.0" />
<Text strokeType="OUTSIDE" strokeWidth="0.0" text="BUDGET FEBRUARY" textAlignment="CENTER">
<HBox.margin>
<Insets />
</HBox.margin>
<font>
<Font size="30.0" />
</font>
</Text>
</children>
<opaqueInsets>
<Insets bottom="10.0" left="10.0" right="10.0" top="10.0" />
</opaqueInsets>
</HBox>
</top>
</BorderPane>
</children>
</AnchorPane>
src/main/resources/Images/overview_stonks.png

17.6 KiB

src/main/resources/Images/pizzaslice.png

107 KiB

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