diff --git a/src/main/java/Main.java b/src/main/java/Main.java index f0379f8..b360568 100644 --- a/src/main/java/Main.java +++ b/src/main/java/Main.java @@ -2,14 +2,17 @@ import javafx.application.Application; import javafx.fxml.FXMLLoader; +import javafx.geometry.Rectangle2D; import javafx.scene.Parent; import javafx.scene.Scene; +import javafx.stage.Screen; import javafx.stage.Stage; public class Main extends Application { @Override public void start(Stage primaryStage) throws Exception{ + setUserAgentStylesheet(STYLESHEET_CASPIAN); /* Button btn = new Button(); btn.setText("This is a test"); @@ -19,9 +22,15 @@ public void handle(ActionEvent event) { System.out.print("Bingo you did something!"); } });*/ + Parent root = FXMLLoader.load(getClass().getResource("StartPage.fxml")); + Scene scene = primaryStage.getScene(); + Rectangle2D screenBounds = Screen.getPrimary().getVisualBounds(); + + //scene.getStylesheets().add(""); + primaryStage.setTitle("Iron-gate!"); - primaryStage.setScene(new Scene(root, 788, 576)); + primaryStage.setScene(new Scene(root, screenBounds.getWidth(), screenBounds.getHeight())); primaryStage.show(); } public static void main(String[] args) { diff --git a/src/main/java/StartPage.fxml b/src/main/java/StartPage.fxml index f1a4077..be913a5 100644 --- a/src/main/java/StartPage.fxml +++ b/src/main/java/StartPage.fxml @@ -2,45 +2,100 @@ + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+
+ +
+ + + + + +