Skip to content
Snippets Groups Projects
Commit 20055e23 authored by Eilert Tunheim's avatar Eilert Tunheim
Browse files

Updated GUI to display popup window at the launch of the application

parent 46aa23f2
No related branches found
No related tags found
No related merge requests found
...@@ -91,7 +91,7 @@ public class InputPopUpWindow { ...@@ -91,7 +91,7 @@ public class InputPopUpWindow {
sawsetInputLabel, sawsetInputText, moistureGoalInputLabel, moistureGoalInputText, startButton); sawsetInputLabel, sawsetInputText, moistureGoalInputLabel, moistureGoalInputText, startButton);
layout.setAlignment(Pos.CENTER); layout.setAlignment(Pos.CENTER);
Scene scene = new Scene(layout, 600, 600); Scene scene = new Scene(layout, 600, 500);
scene.getStylesheets().add(InputPopUpWindow.class.getResource("/com.application/CSS/styleSheet.css").toExternalForm()); scene.getStylesheets().add(InputPopUpWindow.class.getResource("/com.application/CSS/styleSheet.css").toExternalForm());
window.setScene(scene); window.setScene(scene);
window.showAndWait(); window.showAndWait();
......
...@@ -111,6 +111,9 @@ public class Main extends Application { ...@@ -111,6 +111,9 @@ public class Main extends Application {
primaryStage.setMinWidth(1200); primaryStage.setMinWidth(1200);
primaryStage.setScene(scene); primaryStage.setScene(scene);
primaryStage.show(); primaryStage.show();
// Displays the input parameters popup window
InputPopUpWindow.display();
} }
/** /**
......
...@@ -17,6 +17,10 @@ ...@@ -17,6 +17,10 @@
-fx-alignment: center; -fx-alignment: center;
} }
/*
Sidebar styling
*/
#sideBar { #sideBar {
-fx-pref-width: 250; -fx-pref-width: 250;
} }
...@@ -39,11 +43,21 @@ ...@@ -39,11 +43,21 @@
-fx-font-family: Arial; -fx-font-family: Arial;
} }
#sideBarButtonFinish { #sideBarButtonInputParameters {
-fx-translate-x: 5; -fx-translate-x: 5;
-fx-translate-y: 20; -fx-translate-y: 20;
-fx-pref-width: infinity; -fx-pref-width: infinity;
-fx-pref-height: 25; -fx-pref-height: 25;
-fx-font-size: 16;
-fx-font-weight: 200;
-fx-font-family: Arial;
}
#sideBarButtonFinish {
-fx-translate-x: 5;
-fx-translate-y: 50;
-fx-pref-width: infinity;
-fx-pref-height: 25;
-fx-font-size: 20; -fx-font-size: 20;
-fx-font-family: Arial; -fx-font-family: Arial;
-fx-background-color: rgba(104, 229, 59, 1); -fx-background-color: rgba(104, 229, 59, 1);
......
No preview for this file type
No preview for this file type
No preview for this file type
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