|
1 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
2 | 2 |
|
3 | | -<?import javafx.geometry.*?> |
4 | | -<?import javafx.scene.*?> |
5 | 3 | <?import javafx.scene.control.*?> |
6 | 4 | <?import javafx.scene.image.*?> |
7 | 5 | <?import javafx.scene.layout.*?> |
8 | 6 | <?import javafx.scene.text.*?> |
9 | 7 |
|
10 | 8 | <BorderPane xmlns="http://javafx.com/javafx/17.0.2-ea" xmlns:fx="http://javafx.com/fxml/1" fx:controller="pn.app_wish.AppWish"> |
11 | | - <center> |
12 | | - <AnchorPane prefHeight="400.0" prefWidth="600.0" style="-fx-background-color: #213c9c;"> |
13 | | - <BorderPane fx:id="bp_main" prefHeight="400.0" prefWidth="600.0" style="-fx-background-color: #00277c;"> |
14 | | - <bottom> |
15 | | - <VBox styleClass="sidebar-section"> |
16 | | - <Label fx:id="output_label" alignment="CENTER" contentDisplay="CENTER" prefHeight="21.0" prefWidth="723.0" textAlignment="JUSTIFY" textFill="WHITE" BorderPane.alignment="BOTTOM_RIGHT"> |
17 | | - <font> |
18 | | - <Font name="Century" size="18.0" /> |
19 | | - </font> |
20 | | - </Label> |
21 | | - <Button fx:id="btn_continue_on_application" mnemonicParsing="false" onAction="#continueOnExistingApplication" style="-fx-background-color: #00328c; -fx-padding:3" text="Continue an app" textFill="WHITE" BorderPane.alignment="BOTTOM_LEFT" /> |
22 | | - <Button fx:id="btn_super_app_creation" mnemonicParsing="false" onAction="#OnSuperAppCreationButton" style="-fx-background-color: #00328c; -fx-padding:3" text="Code Base" textFill="WHITE" BorderPane.alignment="BOTTOM_LEFT" /> |
23 | | - </VBox> |
24 | | - </bottom> |
25 | | - <top> |
26 | | - <StackPane maxHeight="-Infinity" maxWidth="-Infinity" style="-fx-border-style: solid; -fx-background-radius: 2px; -fx-border-color: #00328c; -fx-border-width: 1px;" BorderPane.alignment="CENTER"> |
27 | | - <ImageView fx:id="logo" pickOnBounds="true" preserveRatio="true"> |
28 | | - <Image url="@shooting_star.png" /> |
29 | | - </ImageView> |
30 | | - </StackPane> |
31 | | - </top> |
32 | | - <center> |
33 | | - <TextField fx:id="tf_input" alignment="CENTER" style="-fx-border-color: blue; -fx-focus-traversable: true; -fx-padding: 3; position:center" BorderPane.alignment="CENTER"> |
34 | | - <font> |
35 | | - <Font name="Aria" size="12.0" /> |
36 | | - </font> |
37 | | - |
38 | | - <BorderPane.margin> |
39 | | - <Insets /> |
40 | | - </BorderPane.margin> |
41 | | - <cursor> |
42 | | - <Cursor fx:constant="TEXT" /> |
43 | | - </cursor> |
44 | | - <opaqueInsets> |
45 | | - <Insets /> |
46 | | - </opaqueInsets> |
47 | | - <padding> |
48 | | - <Insets top="50.0" /> |
49 | | - </padding> |
50 | | - </TextField> |
51 | | - </center> |
52 | | - <left> |
53 | | - <Button fx:id="btn_create_application" mnemonicParsing="false" onAction="#createApplication" style="-fx-background-color: #00328c" text="New App" textFill="WHITE" BorderPane.alignment="BOTTOM_LEFT" /> |
54 | | - </left> |
55 | | - <right> |
56 | | - <Button fx:id="btn_app_history" mnemonicParsing="false" onAction="#onViewAppHistory" style="-fx-background-color: #00328c" text="Apps" textFill="WHITE" BorderPane.alignment="CENTER_RIGHT" /> |
57 | | - </right> |
58 | | - </BorderPane> |
59 | | - <Button fx:id="btn_run_application" mnemonicParsing="false" onAction="#onRunJavaApp" style="-fx-background-color: green;" text="Run application" textFill="WHITE" visible="false" /> |
60 | | - <Button fx:id="btn_StopGeneratedApp" mnemonicParsing="false" onAction="#stopExecutedGeneratedJavaApp" style="-fx-background-color: red" text="Stop app" textFill="WHITE" visible="false" /> |
61 | | - </AnchorPane> |
62 | | - </center> |
| 9 | + <top> |
| 10 | + <!-- Title Bar --> |
| 11 | + <HBox alignment="CENTER" style="-fx-background-color: #00277c; -fx-padding: 10;"> |
| 12 | + <ImageView fx:id="logo" fitHeight="36" fitWidth="36" preserveRatio="true"> |
| 13 | + <image> |
| 14 | + <Image url="@shooting_star.png" /> |
| 15 | + </image> |
| 16 | + </ImageView> |
| 17 | + <Text style="-fx-fill: white;" text="App Wish"> |
| 18 | + <font> |
| 19 | + <Font name="Arial" size="24" /> |
| 20 | + </font> |
| 21 | + </Text> |
| 22 | + |
| 23 | + |
| 24 | + </HBox> |
| 25 | + |
| 26 | + </top> |
| 27 | + <center> |
| 28 | + <VBox alignment="CENTER" spacing="15" style="-fx-background-color: #003366;"> |
| 29 | + <TextField fx:id="tf_input" prefWidth="400.0" promptText="Enter Application Name" style="-fx-padding: 8; -fx-focus-traversable: true;" /> |
| 30 | + |
| 31 | + <!-- Buttons --> |
| 32 | + <HBox spacing="15"> |
| 33 | + <Button fx:id="btn_create_application" onAction="#createApplication" style="-fx-background-color: #00328c; -fx-text-fill: white;" text="New App" /> |
| 34 | + <Button fx:id="btn_run_application" onAction="#onRunJavaApp" style="-fx-background-color: green; -fx-text-fill: white;" text="Run Application" visible="false" /> |
| 35 | + <Button fx:id="btn_StopGeneratedApp" onAction="#stopExecutedGeneratedJavaApp" style="-fx-background-color: red; -fx-text-fill: white;" text="Stop App" visible="false" /> |
| 36 | + |
| 37 | + </HBox> |
| 38 | + |
| 39 | + <!-- More Buttons --> |
| 40 | + <HBox spacing="15"> |
| 41 | + <Button fx:id="btn_super_app_creation" onAction="#OnSuperAppCreationButton" style="-fx-background-color: #00328c; -fx-text-fill: white;" text="Code Base" /> |
| 42 | + <Button fx:id="btn_continue_on_application" onAction="#continueOnExistingApplication" style="-fx-background-color: #00328c;" text="Continue an app" textFill="WHITE" /> |
| 43 | + <Button fx:id="btn_app_history" onAction="#onViewAppHistory" style="-fx-background-color: #00328c; -fx-text-fill: white;" text="App History" /> |
| 44 | + |
| 45 | + </HBox> |
| 46 | + </VBox> |
| 47 | + </center> |
| 48 | + <bottom> |
| 49 | + <!-- Output Label --> |
| 50 | + <Label fx:id="output_label" style="-fx-background-color: #00277c; -fx-text-fill: white;"> |
| 51 | + <font> |
| 52 | + <Font size="18.0" /> |
| 53 | + </font> |
| 54 | + </Label> |
| 55 | + </bottom> |
63 | 56 | </BorderPane> |
0 commit comments