Browse Source

A lot of appearance additions and fixes

toomanysugar 4 years ago
parent
commit
4ee86ed2db

+ 1 - 65
src/main/java/com/moviesdb/AddMovieController.java

@@ -83,71 +83,7 @@ public class AddMovieController extends Controller {
 
     public void open(Object caller) {
         prepare();
-        borderTop.setOnMousePressed(pressEvent -> {
-            borderTop.setOnMouseDragged(dragEvent -> {
-                stage.setX(dragEvent.getScreenX() - pressEvent.getSceneX());
-                stage.setY(dragEvent.getScreenY() - pressEvent.getSceneY());
-            });
-        });
-
-        borderLeft.setOnMousePressed(new EventHandler<MouseEvent>() {
-            @Override
-            public void handle(MouseEvent event) {
-                xOffset = stage.getWidth() + event.getScreenX();
-                basePos = event.getScreenX();
-                baseWidth = stage.getWidth();
-            }
-        });
-
-        borderLeft.setOnMouseDragged(new EventHandler<MouseEvent>() {
-            @Override
-            public void handle(MouseEvent event) {
-                if ((xOffset - event.getScreenX()) >= stage.getMinWidth()) {
-                    stage.setWidth(xOffset - event.getScreenX());
-                    stage.setX(event.getScreenX());
-                } else {
-                    stage.setX(xOffset - stage.getMinWidth());
-                    stage.setWidth(stage.getMinWidth());
-                }
-            }
-        });
-
-        borderBottom.setOnMousePressed(new EventHandler<MouseEvent>() {
-            @Override
-            public void handle(MouseEvent event) {
-                yOffset = stage.getHeight() - event.getScreenY();
-            }
-        });
-
-
-        borderBottom.setOnMouseDragged(new EventHandler<MouseEvent>() {
-            @Override
-            public void handle(MouseEvent event) {
-
-                //stage.setWidth(event.getScreenX()  + xOffset);
-                if (event.getScreenY() + yOffset >= stage.getMinHeight())
-                    stage.setHeight(event.getScreenY() + yOffset);
-                else
-                    stage.setHeight(stage.getMinHeight());
-            }
-        });
-
-        borderRight.setOnMousePressed(new EventHandler<MouseEvent>() {
-            @Override
-            public void handle(MouseEvent event) {
-                xOffset = stage.getWidth() - event.getScreenX();
-            }
-        });
-
-        borderRight.setOnMouseDragged(new EventHandler<MouseEvent>() {
-            @Override
-            public void handle(MouseEvent event) {
-                if (event.getScreenX()  + xOffset >= stage.getMinWidth())
-                    stage.setWidth(event.getScreenX()  + xOffset);
-                else
-                    stage.setWidth(stage.getMinWidth());
-            }
-        });
+        initStandardWindowDecoratorsEvents();
 
 
         stage.initModality(Modality.WINDOW_MODAL);

+ 8 - 39
src/main/java/com/moviesdb/BrowserController.java

@@ -117,42 +117,9 @@ public class BrowserController extends Controller {
 
     public void initialize(Stage primaryStage) {
         prepare();
+        initStandardWindowDecoratorsEvents();
         stage = primaryStage;
 
-        menuPane.setOnMousePressed(new EventHandler<javafx.scene.input.MouseEvent>() {
-            @Override
-            public void handle(MouseEvent event) {
-                xOffset = primaryStage.getX() - event.getScreenX();
-                yOffset = primaryStage.getY() - event.getScreenY();
-            }
-        });
-
-        menuPane.setOnMouseDragged(new EventHandler<MouseEvent>() {
-            @Override
-            public void handle(MouseEvent event) {
-                primaryStage.setX(event.getScreenX() + xOffset);
-                primaryStage.setY(event.getScreenY() + yOffset);
-            }
-        });
-
-        resizerPoly.setOnMousePressed(new EventHandler<javafx.scene.input.MouseEvent>() {
-            @Override
-            public void handle(MouseEvent event) {
-                xOffset = primaryStage.getWidth() - event.getScreenX();
-                yOffset = primaryStage.getHeight() - event.getScreenY();
-            }
-        });
-
-        resizerPoly.setOnMouseDragged(new EventHandler<MouseEvent>() {
-            @Override
-            public void handle(MouseEvent event) {
-
-                primaryStage.setWidth(event.getScreenX() + xOffset);
-                primaryStage.setHeight(event.getScreenY() + yOffset);
-            }
-        });
-
-
         workParams = new ConnectionParams("connection.properties");
         if (!workParams.initilized())
             //TODO this is temporal handler
@@ -180,10 +147,12 @@ public class BrowserController extends Controller {
     }
 
     public void loadPosters() {
-        if (my_connector.initialized() & my_connector.granted("INSERT")) {
-            addMenu.setDisable(false);
-        } else
-            addMenu.setDisable(true);
+        if (addMenu != null) {
+            if (my_connector.initialized() & my_connector.granted("INSERT")) {
+                addMenu.setDisable(false);
+            } else
+                addMenu.setDisable(true);
+        }
         //detailsPane.setMinWidth(300);
         //get movies array
         if (my_connector.initialized() & (my_connector.granted("USAGE") || my_connector.granted("SELECT"))) {
@@ -613,7 +582,7 @@ public class BrowserController extends Controller {
             Parent root = loader.load();
             editWindow = loader.getController();
             editWindow.stage = new Stage();
-            editWindow.stage.setScene(new Scene(root, 629, 700));
+            editWindow.stage.setScene(new Scene(root, 629, 561));
             editWindow.stage.initStyle(StageStyle.UNDECORATED);
             editWindow.stage.setMinWidth(629); //+16
             editWindow.stage.setMinHeight(561); //+31+16

+ 1 - 65
src/main/java/com/moviesdb/EditMovieController.java

@@ -25,71 +25,7 @@ public class EditMovieController extends AddMovieController {
 
     public void open(Object caller) {
         prepare();
-        borderTop.setOnMousePressed(pressEvent -> {
-            borderTop.setOnMouseDragged(dragEvent -> {
-                stage.setX(dragEvent.getScreenX() - pressEvent.getSceneX());
-                stage.setY(dragEvent.getScreenY() - pressEvent.getSceneY());
-            });
-        });
-
-        borderLeft.setOnMousePressed(new EventHandler<MouseEvent>() {
-            @Override
-            public void handle(MouseEvent event) {
-                xOffset = stage.getWidth() + event.getScreenX();
-                basePos = event.getScreenX();
-                baseWidth = stage.getWidth();
-            }
-        });
-
-        borderLeft.setOnMouseDragged(new EventHandler<MouseEvent>() {
-            @Override
-            public void handle(MouseEvent event) {
-                if ((xOffset - event.getScreenX()) >= stage.getMinWidth()) {
-                    stage.setWidth(xOffset - event.getScreenX());
-                    stage.setX(event.getScreenX());
-                } else {
-                    stage.setX(xOffset - stage.getMinWidth());
-                    stage.setWidth(stage.getMinWidth());
-                }
-            }
-        });
-
-        borderBottom.setOnMousePressed(new EventHandler<MouseEvent>() {
-            @Override
-            public void handle(MouseEvent event) {
-                yOffset = stage.getHeight() - event.getScreenY();
-            }
-        });
-
-
-        borderBottom.setOnMouseDragged(new EventHandler<MouseEvent>() {
-            @Override
-            public void handle(MouseEvent event) {
-
-                //stage.setWidth(event.getScreenX()  + xOffset);
-                if (event.getScreenY() + yOffset >= stage.getMinHeight())
-                    stage.setHeight(event.getScreenY() + yOffset);
-                else
-                    stage.setHeight(stage.getMinHeight());
-            }
-        });
-
-        borderRight.setOnMousePressed(new EventHandler<MouseEvent>() {
-            @Override
-            public void handle(MouseEvent event) {
-                xOffset = stage.getWidth() - event.getScreenX();
-            }
-        });
-
-        borderRight.setOnMouseDragged(new EventHandler<MouseEvent>() {
-            @Override
-            public void handle(MouseEvent event) {
-                if (event.getScreenX() + xOffset >= stage.getMinWidth())
-                    stage.setWidth(event.getScreenX() + xOffset);
-                else
-                    stage.setWidth(stage.getMinWidth());
-            }
-        });
+        initStandardWindowDecoratorsEvents();
 
 
         stage.initModality(Modality.WINDOW_MODAL);

+ 3 - 1
src/main/java/com/moviesdb/Main.java

@@ -21,7 +21,9 @@ public class Main extends Application {
         primaryStage.initStyle(StageStyle.UNDECORATED);
         primaryStage.setUserData(loader);
         primaryStage.setTitle("Hello World");
-        primaryStage.setScene(new Scene(root, 1280, 720));
+        primaryStage.setScene(new Scene(root, 1290, 730));
+        primaryStage.setMinWidth(900);
+        primaryStage.setMinHeight(600);
         BrowserController browserController = loader.getController();
         primaryStage.setOnShown(new EventHandler<WindowEvent>() {
             @Override

+ 33 - 17
src/main/resources/AddMovieWindow.fxml

@@ -20,10 +20,25 @@
          </cursor></Pane>
    </right>
    <bottom>
-      <Pane fx:id="borderBottom" prefHeight="5.0" prefWidth="755.0" style="-fx-background-color: #121212;" BorderPane.alignment="CENTER">
-         <cursor>
-            <Cursor fx:constant="S_RESIZE" />
-         </cursor></Pane>
+	   <AnchorPane>
+		   <Pane fx:id="cornerBottomLeft" maxHeight="5.0" maxWidth="5.0" minHeight="5.0" minWidth="5.0" prefHeight="5.0" prefWidth="5.0" style="-fx-background-color: #121212;" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0">
+			   <cursor>
+				   <Cursor fx:constant="NE_RESIZE" />
+			   </cursor>
+		   </Pane>
+		   <Pane fx:id="borderBottom" prefHeight="5.0" prefWidth="745.0" style="-fx-background-color: #121212;" AnchorPane.leftAnchor="5.0" AnchorPane.rightAnchor="5.0" BorderPane.alignment="CENTER">
+			   <cursor>
+				   <Cursor fx:constant="S_RESIZE" />
+			   </cursor></Pane>
+		   <Pane fx:id="cornerBottomRight" maxHeight="5.0" maxWidth="5.0" minHeight="5.0" minWidth="5.0" prefHeight="5.0" prefWidth="5.0" style="-fx-background-color: #121212;" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
+			   <cursor>
+				   <Cursor fx:constant="SE_RESIZE" />
+			   </cursor>
+		   </Pane>
+		   <cursor>
+			   <Cursor fx:constant="DEFAULT" />
+		   </cursor>
+	   </AnchorPane>
    </bottom>
    <center>
       <AnchorPane minHeight="0.0" minWidth="0.0" style="-fx-background-color: #212121;" BorderPane.alignment="CENTER">
@@ -189,25 +204,26 @@
    <top>
       <AnchorPane fx:id="borderTop" maxHeight="24.0" prefHeight="24.0" style="-fx-background-color: #121212;" BorderPane.alignment="CENTER">
          <children>
-   	  	   		<Label fx:id="closeButton" onMouseClicked="#closeStage" prefHeight="16.0" prefWidth="16.0" AnchorPane.bottomAnchor="4.0" AnchorPane.rightAnchor="4.0" AnchorPane.topAnchor="4.0">
-   	  		      <font>
-   	  		          <Font name="Arimo" size="12.0" />
-   	  		      </font>
-   	  		    </Label>
-   		    <Label fx:id="minimizeButton" onMouseClicked="#minimizeStage" prefHeight="16.0" prefWidth="16.0" AnchorPane.bottomAnchor="4.0" AnchorPane.rightAnchor="24.0" AnchorPane.topAnchor="4.0">
-   		        <font>
-   		            <Font name="Arimo" size="12.0" />
-   		        </font>
-   		    </Label>
+				 <AnchorPane id="closeButton" onMouseClicked="#closeStage" prefHeight="22.0" prefWidth="36.0" AnchorPane.bottomAnchor="1.0" AnchorPane.rightAnchor="1.0" AnchorPane.topAnchor="1.0">
+					 <Label  fx:id="closeButton" prefHeight="16.0" prefWidth="16.0" AnchorPane.bottomAnchor="3.0" AnchorPane.rightAnchor="10.0" AnchorPane.topAnchor="3.0">
+						 <font>
+							 <Font name="Arimo" size="12.0" />
+						 </font>
+					 </Label>
+				 </AnchorPane>
+				 <AnchorPane id="minimizeButton" onMouseClicked="#minimizeStage" prefHeight="22.0" prefWidth="36.0" AnchorPane.bottomAnchor="1.0" AnchorPane.rightAnchor="38.0" AnchorPane.topAnchor="1.0">
+					 <Label fx:id="minimizeButton" prefHeight="16.0" prefWidth="16.0" AnchorPane.bottomAnchor="3.0" AnchorPane.rightAnchor="10.0" AnchorPane.topAnchor="3.0">
+						 <font>
+							 <Font name="Arimo" size="12.0" />
+						 </font>
+					 </Label>
+				 </AnchorPane>
             <Label layoutX="10.0" layoutY="2.0" text="Title" textFill="#9f9f9f" visible="false" AnchorPane.bottomAnchor="2.0" AnchorPane.leftAnchor="10.0" AnchorPane.topAnchor="2.0">
                <font>
                   <Font size="14.0" />
                </font>
             </Label>
          </children>
-         <cursor>
-            <Cursor fx:constant="MOVE" />
-         </cursor>
       </AnchorPane>
    </top>
 </BorderPane>

+ 9 - 0
src/main/resources/AddMovieWindowStyle.css

@@ -73,4 +73,13 @@
 .combo-box-popup .list-view .scroll-bar:vertical .thumb:pressed {
     -fx-color:  #9F9F9F;
     -fx-pref-width: 12;
+}
+
+#closeButton:hover {
+    -fx-background-color: #A12C2C;
+}
+
+#minimizeButton:hover,
+#maximizeButton:hover {
+    -fx-background-color: #2C2C2C;
 }

+ 272 - 196
src/main/resources/BrowserWindow.fxml

@@ -45,216 +45,292 @@
 <?import javafx.scene.control.TextField?>
 <?import javafx.scene.image.ImageView?>
 <?import javafx.scene.layout.AnchorPane?>
+<?import javafx.scene.layout.BorderPane?>
 <?import javafx.scene.layout.FlowPane?>
 <?import javafx.scene.layout.HBox?>
 <?import javafx.scene.layout.Pane?>
 <?import javafx.scene.layout.VBox?>
 <?import javafx.scene.paint.Color?>
-<?import javafx.scene.shape.Polyline?>
 <?import javafx.scene.text.Font?>
 <?import javafx.scene.text.TextFlow?>
 
-<VBox prefHeight="600.0" prefWidth="900.0" style="-fx-background-color: #121212;" xmlns="http://javafx.com/javafx/16" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.moviesdb.BrowserController">
-  <children>
-      <AnchorPane prefHeight="25.0" prefWidth="900.0">
-         <children>
-            <MenuBar fx:id="menuPane" prefHeight="25.0" prefWidth="827.0" style="-fx-background-color: #121212; -fx-text-fill: #9f9f9f;" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="73.0">
-              <menus>
-                <Menu mnemonicParsing="false" text="File">
-                  <items>
-                      <MenuItem mnemonicParsing="false" onAction="#openStatsStudioForm" text="Studio stats" />
-                      <MenuItem fx:id="statsMenu" mnemonicParsing="false" onAction="#openStatsGenreForm" text="Genre stats" />
-                      <MenuItem fx:id="reloadMenu" mnemonicParsing="false" onAction="#loadPosters" text="Reload" />
-                      <MenuItem mnemonicParsing="false" onAction="#closeStage" text="Close" />
-                  </items>
+<BorderPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="600.0" minWidth="900.0" prefHeight="720.0" prefWidth="1280.0" stylesheets="@BrowserWindowStyle.css" xmlns="http://javafx.com/javafx/16" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.moviesdb.BrowserController">
+    <right>
+        <Pane fx:id="borderRight" maxWidth="5.0" minWidth="0.0" prefHeight="520.0" prefWidth="230.0" style="-fx-background-color: #121212;" BorderPane.alignment="CENTER">
+            <cursor>
+                <Cursor fx:constant="E_RESIZE" />
+            </cursor></Pane>
+    </right>
+    <bottom>
+        <AnchorPane>
+            <Pane fx:id="cornerBottomLeft" maxHeight="5.0" maxWidth="5.0" minHeight="5.0" minWidth="5.0" prefHeight="5.0" prefWidth="5.0" style="-fx-background-color: #121212;" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0">
+                <cursor>
+                    <Cursor fx:constant="NE_RESIZE" />
+                </cursor>
+            </Pane>
+            <Pane fx:id="borderBottom" prefHeight="5.0" prefWidth="745.0" style="-fx-background-color: #121212;" AnchorPane.leftAnchor="5.0" AnchorPane.rightAnchor="5.0" BorderPane.alignment="CENTER">
+                <cursor>
+                    <Cursor fx:constant="S_RESIZE" />
+                </cursor></Pane>
+            <Pane fx:id="cornerBottomRight" maxHeight="5.0" maxWidth="5.0" minHeight="5.0" minWidth="5.0" prefHeight="5.0" prefWidth="5.0" style="-fx-background-color: #121212;" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
+                <cursor>
+                    <Cursor fx:constant="SE_RESIZE" />
+                </cursor>
+            </Pane>
+        </AnchorPane>
+    </bottom>
+    <center>
+        <VBox minHeight="0.0" minWidth="0.0" prefHeight="600.0" prefWidth="900.0" style="-fx-background-color: #121212;">
+            <children>
+                <SplitPane dividerPositions="0.5, 0.5" maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" minWidth="0.0" prefHeight="538.0" prefWidth="900.0" style="-fx-background-color: magenta;" stylesheets="@style.css" VBox.vgrow="ALWAYS">
+                    <items>
+                        <AnchorPane fx:id="filterPane" maxWidth="0.0" minHeight="0.0" minWidth="0.0" prefHeight="550.0" prefWidth="500.0" style="-fx-background-color: #212121;" SplitPane.resizableWithParent="false">
+                            <children>
+                                <Label alignment="CENTER" layoutX="14.0" layoutY="14.0" minWidth="60.0" prefWidth="-1.0" style="&#10;" text="Filter" textAlignment="CENTER" wrapText="false">
+                                    <font>
+                                        <Font size="18.0" fx:id="x1" />
+                                    </font>
+                                    <textFill>
+                                        <Color red="0.624" green="0.624" blue="0.624" fx:id="x2" />
+                                    </textFill>
+                                </Label>
+                                <Label layoutX="24.0" layoutY="50.0" text="Name" textFill="#9f9f9f">
+                                    <font>
+                                        <Font size="14.0" />
+                                    </font>
+                                </Label>
+                                <TextField fx:id="titleTextBox" layoutX="82.0" layoutY="48.0" onKeyTyped="#getFilterMovies" prefHeight="25.0" prefWidth="205.0" style="-fx-text-fill: #9f9f9f; -fx-background-color: #212121; -fx-border-color: #121212;" AnchorPane.rightAnchor="18.0" />
+                                <Label layoutX="24.0" layoutY="84.0" text="Genre" textFill="#9f9f9f">
+                                    <font>
+                                        <Font size="14.0" />
+                                    </font>
+                                </Label>
+                                <TextField fx:id="genreTextBox" layoutX="82.0" layoutY="82.0" onKeyTyped="#getFilterMovies" prefHeight="25.0" prefWidth="205.0" style="-fx-text-fill: #9f9f9f; -fx-background-color: #212121; -fx-border-color: #121212;" AnchorPane.rightAnchor="18.0" />
+                                <Label layoutX="24.0" layoutY="118.0" text="Year" textFill="#9f9f9f">
+                                    <font>
+                                        <Font size="14.0" />
+                                    </font>
+                                </Label>
+                                <TextField fx:id="yearTextBox" layoutX="82.0" layoutY="116.0" onKeyTyped="#getFilterMovies" prefHeight="25.0" prefWidth="205.0" style="-fx-text-fill: #9f9f9f; -fx-background-color: #212121; -fx-border-color: #121212;" AnchorPane.rightAnchor="18.0" />
+                                <Label layoutX="24.0" layoutY="152.0" text="Duration" textFill="#9f9f9f">
+                                    <font>
+                                        <Font size="14.0" />
+                                    </font>
+                                </Label>
+                                <TextField fx:id="timeTextBox" layoutX="82.0" layoutY="150.0" onKeyTyped="#getFilterMovies" prefHeight="25.0" prefWidth="205.0" style="-fx-text-fill: #9f9f9f; -fx-background-color: #212121; -fx-border-color: #121212;" AnchorPane.rightAnchor="18.0" />
+                                <Label layoutX="24.0" layoutY="186.0" text="Studio" textFill="#9f9f9f">
+                                    <font>
+                                        <Font size="14.0" />
+                                    </font>
+                                </Label>
+                                <TextField fx:id="studioTextBox" layoutX="82.0" layoutY="184.0" onKeyTyped="#getFilterMovies" prefHeight="25.0" prefWidth="205.0" style="-fx-text-fill: #9f9f9f; -fx-background-color: #212121; -fx-border-color: #121212;" AnchorPane.rightAnchor="18.0" />
+                                <Label layoutX="24.0" layoutY="220.0" text="Director" textFill="#9f9f9f">
+                                    <font>
+                                        <Font size="14.0" />
+                                    </font>
+                                </Label>
+                                <TextField fx:id="directorTextBox" layoutX="82.0" layoutY="218.0" onKeyTyped="#getFilterMovies" prefHeight="25.0" prefWidth="205.0" style="-fx-text-fill: #9f9f9f; -fx-background-color: #212121; -fx-border-color: #121212;" AnchorPane.rightAnchor="18.0" />
+                                <Label layoutX="24.0" layoutY="254.0" text="Actor" textFill="#9f9f9f">
+                                    <font>
+                                        <Font size="14.0" />
+                                    </font>
+                                </Label>
+                                <Label layoutX="24.0" layoutY="288.0" text="Role" textFill="#9f9f9f">
+                                    <font>
+                                        <Font size="14.0" />
+                                    </font>
+                                </Label>
+                                <TextField fx:id="roleTextBox" layoutX="82.0" layoutY="286.0" onKeyTyped="#getFilterMovies" prefHeight="25.0" prefWidth="205.0" style="-fx-text-fill: #9f9f9f; -fx-background-color: #212121; -fx-border-color: #121212;" AnchorPane.rightAnchor="18.0" />
+                                <Label layoutX="24.0" layoutY="322.0" text="Rating" textFill="#9f9f9f">
+                                    <font>
+                                        <Font size="14.0" />
+                                    </font>
+                                </Label>
+                                <TextField fx:id="rateTextBox" layoutX="82.0" layoutY="320.0" onKeyTyped="#getFilterMovies" prefHeight="25.0" prefWidth="205.0" style="-fx-text-fill: #9f9f9f; -fx-background-color: #212121; -fx-border-color: #121212;" AnchorPane.rightAnchor="18.0" />
+                                <Label layoutX="24.0" layoutY="353.0" text="Desc" textFill="#9f9f9f">
+                                    <font>
+                                        <Font size="14.0" />
+                                    </font>
+                                </Label>
+                                <TextArea fx:id="descriptionTextBox" layoutX="80.0" layoutY="353.0" minHeight="70.0" onKeyTyped="#getFilterMovies" prefHeight="162.0" prefWidth="209.0" style="-fx-text-fill: #9f9f9f; -fx-background-color: #212121; -fx-border-color: #212121;" stylesheets="@FilterBlockStyle.css" wrapText="true" AnchorPane.bottomAnchor="36.0" AnchorPane.rightAnchor="18.0" AnchorPane.topAnchor="353.0">
+                                    <font>
+                                        <Font size="14.0" />
+                                    </font>
+                                </TextArea>
+                                <Label fx:id="filterButton" alignment="CENTER" layoutX="252.0" layoutY="519.0" onMouseClicked="#getFilterMovies" style="&#10;" text="Filter" textAlignment="CENTER" wrapText="false" AnchorPane.bottomAnchor="5.0" AnchorPane.rightAnchor="20.0">
+                                    <font>
+                                        <Font size="16.0" fx:id="x1111" />
+                                    </font>
+                                    <textFill>
+                                        <Color red="0.624" green="0.624" blue="0.624" fx:id="x2111" />
+                                    </textFill>
+                                </Label>
+                                <TextField fx:id="actorTextBox" layoutX="82.0" layoutY="252.0" onKeyTyped="#getFilterMovies" prefHeight="25.0" prefWidth="205.0" style="-fx-text-fill: #9f9f9f; -fx-background-color: #212121; -fx-border-color: #121212;" AnchorPane.rightAnchor="18.0" />
+                        <Pane maxWidth="5.0" minWidth="5.0" prefWidth="5.0" style="-fx-background-color: #121212;" AnchorPane.bottomAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0" />
+                            </children>
+                        </AnchorPane>
+                        <AnchorPane id="Content" fx:id="browserPane" minHeight="0.0" minWidth="0.0" prefHeight="269.0" prefWidth="789.0" style="-fx-background-color: #212121;">
+                            <children>
+                                <Label alignment="CENTER" layoutX="11.0" layoutY="14.0" prefWidth="80.0" style="&#10;" text="Browser" textAlignment="CENTER" wrapText="false" AnchorPane.topAnchor="14.0">
+                                    <font>
+                                        <Font size="18.0" fx:id="x11" />
+                                    </font>
+                                    <textFill>
+                                        <Color red="0.624" green="0.624" blue="0.624" fx:id="x21" />
+                                    </textFill>
+                                </Label>
+                                <ScrollPane fx:id="scrollPane" fitToHeight="true" fitToWidth="true" hbarPolicy="NEVER" layoutX="14.0" layoutY="48.0" maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" minWidth="400.0" prefHeight="470.0" prefWidth="858.0" style="-fx-background-color: transparent; -fx-border-color: #212121;" vbarPolicy="NEVER" AnchorPane.bottomAnchor="31.0" AnchorPane.leftAnchor="14.0" AnchorPane.rightAnchor="8.0" AnchorPane.topAnchor="48.0">
+                                    <styleClass>
+                                        <String fx:value="split-pane" />
+                                        <String fx:value="split-pane-divider" />
+                                    </styleClass>
+                                    <content>
+                                        <AnchorPane prefHeight="200.0" prefWidth="200.0">
+                                            <children>
+                                                <FlowPane fx:id="moviesGrid" prefHeight="200.0" prefWidth="200.0" style="-fx-background-color: #212121;" AnchorPane.bottomAnchor="0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0" />
+                                            </children>
+                                        </AnchorPane>
+                                    </content>
+                                </ScrollPane>
+                                <Label alignment="CENTER" layoutX="11.0" layoutY="520.0" onMouseClicked="#openFilter" style="&#10;" text="Search" textAlignment="CENTER" wrapText="false" AnchorPane.bottomAnchor="5.0" AnchorPane.leftAnchor="11.0">
+                                    <font>
+                                        <Font size="16.0" fx:id="x111" />
+                                    </font>
+                                    <textFill>
+                                        <Color red="0.624" green="0.624" blue="0.624" fx:id="x211" />
+                                    </textFill>
+                                </Label>
+                            </children>
+                        </AnchorPane>
+                        <AnchorPane fx:id="detailsPane" maxWidth="0.0" minHeight="0.0" minWidth="0.0" prefHeight="550.0" prefWidth="0.0" style="-fx-background-color: #212121;" SplitPane.resizableWithParent="false">
+                            <children>
+                        <Pane maxWidth="5.0" minWidth="5.0" prefWidth="5.0" style="-fx-background-color: #121212;" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.topAnchor="0.0" />
+                                <Label alignment="CENTER" font="$x1" layoutX="14.0" layoutY="14.0" style="&#10;" text="Details" textAlignment="CENTER" textFill="#9f9f9f" wrapText="false" />
+                                <ImageView fx:id="detailsPicPane" fitHeight="222.0" fitWidth="150.0" layoutX="14.0" layoutY="41.0" pickOnBounds="true" AnchorPane.bottomAnchor="287.0" AnchorPane.leftAnchor="75.0" AnchorPane.rightAnchor="75.0" AnchorPane.topAnchor="41.0" />
+                                <Label fx:id="detailsNameLabel" layoutX="14.0" layoutY="265.0" text="Info" textFill="#9f9f9f">
+                                    <font>
+                                        <Font size="16.0" />
+                                    </font>
+                                </Label>
+                                <Label fx:id="deleteMovieButton" layoutX="-14.0" layoutY="528.0" onMouseClicked="#openDeleteForm" text="Delete" textFill="#9f9f9f" AnchorPane.bottomAnchor="14.0" AnchorPane.rightAnchor="14.0">
+                                    <font>
+                                        <Font size="16.0" />
+                                    </font>
+                                </Label>
+                                <Label fx:id="editMovieButton" layoutX="212.0" layoutY="534.0" text="Edit" textFill="#9f9f9f" AnchorPane.bottomAnchor="14.0" AnchorPane.rightAnchor="71.0">
+                                    <font>
+                                        <Font size="16.0" />
+                                    </font>
+                                </Label>
+                                <ScrollPane fitToHeight="true" fitToWidth="true" layoutX="14.0" layoutY="290.0" prefHeight="222.0" prefWidth="277.0" style="-fx-background-color: transparent;" AnchorPane.bottomAnchor="39.0" AnchorPane.topAnchor="290.0">
+                                    <content>
+                                        <TextFlow fx:id="detailsContent" prefHeight="222.0" prefWidth="277.0" style="-fx-background-color: #212121;" />
+                                    </content>
+                                </ScrollPane>
+
+
+                            </children>
+                        </AnchorPane>
+                    </items>
+                    <opaqueInsets>
+                        <Insets />
+                    </opaqueInsets>
+                    <VBox.margin>
+                        <Insets />
+                    </VBox.margin>
+                </SplitPane>
+                <HBox id="HBox" alignment="CENTER_LEFT" minWidth="0.0" spacing="5.0" VBox.vgrow="NEVER">
+                    <children>
+                        <Label fx:id="userLabel" maxHeight="1.7976931348623157E308" maxWidth="-1.0" minWidth="0.0" style="-fx-background-color: #121212;" text="Logged in as Guest" HBox.hgrow="ALWAYS">
+                            <font>
+                                <Font size="11.0" fx:id="x3" />
+                            </font>
+                            <textFill>
+                                <Color red="0.625" green="0.625" blue="0.625" fx:id="x4" />
+                            </textFill>
+                        </Label>
+                        <Pane minWidth="0.0" prefHeight="-1.0" prefWidth="-1.0" style="-fx-background-color: #121212;" HBox.hgrow="ALWAYS" />
+                        <Label fx:id="logInButton" font="$x3" maxWidth="-1.0" minWidth="0.0" onMouseClicked="#openLoginForm" style="-fx-background-color: #121212;" text="Log in" textFill="$x4" HBox.hgrow="NEVER" />
+                    </children>
+                    <padding>
+                        <Insets bottom="3.0" left="3.0" right="3.0" top="3.0" />
+                    </padding>
+                </HBox>
+            </children>
+        </VBox>
+    </center>
+    <left>
+        <Pane fx:id="borderLeft" maxWidth="5.0" prefWidth="10.0" style="-fx-background-color: #121212;" BorderPane.alignment="CENTER">
+            <cursor>
+                <Cursor fx:constant="W_RESIZE" />
+            </cursor></Pane>
+    </left>
+
+    <top>
+        <AnchorPane maxHeight="-Infinity" minHeight="-Infinity" prefHeight="24.0" prefWidth="900.0" style="-fx-background-color: #121212;" VBox.vgrow="NEVER">
+            <!---->
+            <MenuBar fx:id="menuPane" maxHeight="22" minWidth="0.0" prefHeight="22.0" style="-fx-background-color: #121212; -fx-text-fill: #9f9f9f;" AnchorPane.leftAnchor="1.0" AnchorPane.topAnchor="1.0">
+                <Menu mnemonicParsing="false" style="-fx-font-size: 10.1;" text="File">
+                    <items>
+                        <MenuItem mnemonicParsing="false" onAction="#openStatsStudioForm" text="Studio stats" />
+                        <MenuItem mnemonicParsing="false" onAction="#openStatsGenreForm" text="Genre stats" />
+                        <MenuItem fx:id="reloadMenu" mnemonicParsing="false" onAction="#loadPosters" text="Reload" />
+                        <MenuItem mnemonicParsing="false" onAction="#closeStage" text="Close" />
+                    </items>
                 </Menu>
-                <Menu mnemonicParsing="false" text="Edit">
-                  <items>
+                <Menu mnemonicParsing="false" style="-fx-font-size: 10.1;" text="Edit">
                     <MenuItem fx:id="addMenu" mnemonicParsing="false" onAction="#openAddForm" text="Add" />
-                  </items>
                 </Menu>
-                <Menu mnemonicParsing="false" text="Help">
-                  <items>
+                <Menu mnemonicParsing="false" style="-fx-font-size: 10.1;" text="Help">
                     <MenuItem mnemonicParsing="false" text="About" />
-                  </items>
                 </Menu>
-              </menus>
+                <padding>
+                    <Insets left="4.0" right="1.0" />
+                </padding>
+                <!--
+                -->
             </MenuBar>
-            <Label fx:id="closeButton" layoutX="876.0" layoutY="4.0" onMouseClicked="#closeStage" prefHeight="16.0" prefWidth="16.0" AnchorPane.rightAnchor="8.0" AnchorPane.topAnchor="4.0" />
-            <Label fx:id="maximizeButton" layoutX="854.0" layoutY="4.0" onMouseClicked="#maximizeStageChange" prefHeight="16.0" prefWidth="16.0" AnchorPane.rightAnchor="30.0" AnchorPane.topAnchor="4.0" />
-            <Label fx:id="minimizeButton" layoutX="832.0" layoutY="4.0" onMouseClicked="#minimizeStage" prefHeight="16.0" prefWidth="16.0" AnchorPane.rightAnchor="52.0" AnchorPane.topAnchor="4.0" />
-         </children>
-      </AnchorPane>
-    <SplitPane dividerPositions="0.3392857142857143, 0.9955357142857143" focusTraversable="true" maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" prefHeight="-1.0" prefWidth="-1.0" style="-fx-background-color: #121212; -fx-border-color: #121212;" stylesheets="@style.css" VBox.vgrow="ALWAYS">
-      <items>
-        <AnchorPane fx:id="filterPane" maxWidth="0.0" minWidth="0.0" prefHeight="550.0" prefWidth="120.0" style="-fx-background-color: #212121;" SplitPane.resizableWithParent="false">
-          <children>
-            <Label alignment="CENTER" layoutX="14.0" layoutY="14.0" minWidth="60.0" prefWidth="-1.0" style="&#10;" text="Filter" textAlignment="CENTER" wrapText="false">
-              <font>
-                <Font size="18.0" fx:id="x1" />
-              </font>
-              <textFill>
-                <Color red="0.624" green="0.624" blue="0.624" fx:id="x2" />
-              </textFill>
-            </Label>
-                  <Label layoutX="24.0" layoutY="50.0" text="Name" textFill="#9f9f9f">
-                     <font>
-                        <Font size="14.0" />
-                     </font>
-                  </Label>
-                  <TextField fx:id="titleTextBox" layoutX="82.0" layoutY="48.0" onKeyTyped="#getFilterMovies" prefHeight="25.0" prefWidth="205.0" style="-fx-text-fill: #9f9f9f; -fx-background-color: #212121; -fx-border-color: #121212;" />
-                  <Label layoutX="24.0" layoutY="84.0" text="Genre" textFill="#9f9f9f">
-                     <font>
-                        <Font size="14.0" />
-                     </font>
-                  </Label>
-                  <TextField fx:id="genreTextBox" layoutX="82.0" layoutY="82.0" onKeyTyped="#getFilterMovies" prefHeight="25.0" prefWidth="205.0" style="-fx-text-fill: #9f9f9f; -fx-background-color: #212121; -fx-border-color: #121212;" />
-                  <Label layoutX="24.0" layoutY="118.0" text="Year" textFill="#9f9f9f">
-                     <font>
-                        <Font size="14.0" />
-                     </font>
-                  </Label>
-                  <TextField fx:id="yearTextBox" layoutX="82.0" layoutY="116.0" onKeyTyped="#getFilterMovies" prefHeight="25.0" prefWidth="205.0" style="-fx-text-fill: #9f9f9f; -fx-background-color: #212121; -fx-border-color: #121212;" />
-                  <Label layoutX="24.0" layoutY="152.0" text="Duration" textFill="#9f9f9f">
-                     <font>
-                        <Font size="14.0" />
-                     </font>
-                  </Label>
-                  <TextField fx:id="timeTextBox" layoutX="82.0" layoutY="150.0" onKeyTyped="#getFilterMovies" prefHeight="25.0" prefWidth="205.0" style="-fx-text-fill: #9f9f9f; -fx-background-color: #212121; -fx-border-color: #121212;" />
-                  <Label layoutX="24.0" layoutY="186.0" text="Studio" textFill="#9f9f9f">
-                     <font>
-                        <Font size="14.0" />
-                     </font>
-                  </Label>
-                  <TextField fx:id="studioTextBox" layoutX="82.0" layoutY="184.0" onKeyTyped="#getFilterMovies" prefHeight="25.0" prefWidth="205.0" style="-fx-text-fill: #9f9f9f; -fx-background-color: #212121; -fx-border-color: #121212;" />
-                  <Label layoutX="24.0" layoutY="220.0" text="Director" textFill="#9f9f9f">
-                     <font>
-                        <Font size="14.0" />
-                     </font>
-                  </Label>
-                  <TextField fx:id="directorTextBox" layoutX="82.0" layoutY="218.0" onKeyTyped="#getFilterMovies" prefHeight="25.0" prefWidth="205.0" style="-fx-text-fill: #9f9f9f; -fx-background-color: #212121; -fx-border-color: #121212;" />
-                  <Label layoutX="24.0" layoutY="254.0" text="Actor" textFill="#9f9f9f">
-                     <font>
-                        <Font size="14.0" />
-                     </font>
-                  </Label>
-                  <Label layoutX="24.0" layoutY="288.0" text="Role" textFill="#9f9f9f">
-                     <font>
-                        <Font size="14.0" />
-                     </font>
-                  </Label>
-                  <TextField fx:id="roleTextBox" layoutX="82.0" layoutY="286.0" onKeyTyped="#getFilterMovies" prefHeight="25.0" prefWidth="205.0" style="-fx-text-fill: #9f9f9f; -fx-background-color: #212121; -fx-border-color: #121212;" />
-                  <Label layoutX="24.0" layoutY="322.0" text="Rating" textFill="#9f9f9f">
-                     <font>
-                        <Font size="14.0" />
-                     </font>
-                  </Label>
-                  <TextField fx:id="rateTextBox" layoutX="82.0" layoutY="320.0" onKeyTyped="#getFilterMovies" prefHeight="25.0" prefWidth="205.0" style="-fx-text-fill: #9f9f9f; -fx-background-color: #212121; -fx-border-color: #121212;" />
-                  <Label layoutX="24.0" layoutY="353.0" text="Desc" textFill="#9f9f9f">
-                     <font>
-                        <Font size="14.0" />
-                     </font>
-                  </Label>
-                  <TextArea fx:id="descriptionTextBox" layoutX="80.0" layoutY="353.0" minHeight="70.0" onKeyTyped="#getFilterMovies" prefHeight="162.0" prefWidth="209.0" style="-fx-text-fill: #9f9f9f; -fx-background-color: #212121; -fx-border-color: #212121;" stylesheets="@FilterBlockStyle.css" wrapText="true" AnchorPane.bottomAnchor="36.0" AnchorPane.topAnchor="353.0">
-                     <font>
+
+            <Pane fx:id="borderTop" minWidth="0.0" prefHeight="22.0" AnchorPane.leftAnchor="106.0" AnchorPane.rightAnchor="112.0" AnchorPane.topAnchor="1.0" />
+        <!---->
+            <AnchorPane id="closeButton" onMouseClicked="#closeStage" prefHeight="22.0" prefWidth="36.0" AnchorPane.rightAnchor="1.0" AnchorPane.topAnchor="1.0">
+                <Label fx:id="closeButton" prefHeight="16.0" prefWidth="16.0" AnchorPane.rightAnchor="10.0" AnchorPane.topAnchor="2.0" />
+            </AnchorPane>
+            <AnchorPane id="maximizeButton" onMouseClicked="#maximizeStageChange" prefHeight="22.0" prefWidth="36.0" AnchorPane.rightAnchor="38.0" AnchorPane.topAnchor="1.0">
+                <Label fx:id="maximizeButton" prefHeight="16.0" prefWidth="16.0" AnchorPane.rightAnchor="10.0" AnchorPane.topAnchor="2.0" />
+            </AnchorPane>
+            <AnchorPane id="minimizeButton" fx:id="test" onMouseClicked="#minimizeStage" prefHeight="22.0" prefWidth="36.0" AnchorPane.rightAnchor="75.0" AnchorPane.topAnchor="1.0">
+                <Label fx:id="minimizeButton" prefHeight="16.0" prefWidth="16.0" AnchorPane.rightAnchor="10.0" AnchorPane.topAnchor="2.0" />
+                <!--
+                <Label fx:id="minimizeButton" prefHeight="16.0" prefWidth="16.0" AnchorPane.bottomAnchor="3.0" AnchorPane.rightAnchor="10.0" AnchorPane.topAnchor="3.0"/>
+                -->
+            </AnchorPane>
+        </AnchorPane>
+    <!--
+        <AnchorPane fx:id="borderTop" maxHeight="24.0" prefHeight="24.0" style="-fx-background-color: #121212;" BorderPane.alignment="CENTER">
+            <children>
+                <AnchorPane id="closeButton" onMouseClicked="#closeStage" prefHeight="22.0" prefWidth="36.0" AnchorPane.bottomAnchor="1.0" AnchorPane.rightAnchor="1.0" AnchorPane.topAnchor="1.0">
+                    <Label  fx:id="closeButton" prefHeight="16.0" prefWidth="16.0" AnchorPane.bottomAnchor="3.0" AnchorPane.rightAnchor="10.0" AnchorPane.topAnchor="3.0">
+                        <font>
+                            <Font name="Arimo" size="12.0" />
+                        </font>
+                    </Label>
+                </AnchorPane>
+                <AnchorPane fx:id="test" id="minimizeButton" onMouseClicked="#minimizeStage" prefHeight="22.0" prefWidth="36.0" AnchorPane.bottomAnchor="1.0" AnchorPane.rightAnchor="38.0" AnchorPane.topAnchor="1.0">
+                    <Label fx:id="minimizeButton" prefHeight="16.0" prefWidth="16.0" AnchorPane.bottomAnchor="3.0" AnchorPane.rightAnchor="10.0" AnchorPane.topAnchor="3.0">
+                        <font>
+                            <Font name="Arimo" size="12.0" />
+                        </font>
+                    </Label>
+                </AnchorPane>
+                <Label layoutX="10.0" layoutY="2.0" text="Title" textFill="#9f9f9f" visible="false" AnchorPane.bottomAnchor="2.0" AnchorPane.leftAnchor="10.0" AnchorPane.topAnchor="2.0">
+                    <font>
                         <Font size="14.0" />
-                     </font>
-                  </TextArea>
-                  <Label fx:id="filterButton" alignment="CENTER" layoutX="252.0" layoutY="519.0" onMouseClicked="#getFilterMovies" style="&#10;" text="Filter" textAlignment="CENTER" wrapText="false" AnchorPane.bottomAnchor="5.0" AnchorPane.rightAnchor="15.0">
-                     <font>
-                        <Font size="16.0" fx:id="x1111" />
-                     </font>
-                     <textFill>
-                        <Color red="0.624" green="0.624" blue="0.624" fx:id="x2111" />
-                     </textFill>
-                  </Label>
-                  <TextField fx:id="actorTextBox" layoutX="82.0" layoutY="252.0" onKeyTyped="#getFilterMovies" prefHeight="25.0" prefWidth="205.0" style="-fx-text-fill: #9f9f9f; -fx-background-color: #212121; -fx-border-color: #121212;" />
-          </children>
+                    </font>
+                </Label>
+            </children>
         </AnchorPane>
-            <AnchorPane id="Content" fx:id="browserPane" minHeight="-1.0" minWidth="-1.0" prefHeight="551.0" prefWidth="566.0" style="-fx-background-color: #212121;">
-               <children>
-                  <Label alignment="CENTER" layoutX="11.0" layoutY="14.0" prefWidth="80.0" style="&#10;" text="Browser" textAlignment="CENTER" wrapText="false" AnchorPane.topAnchor="14.0">
-                     <font>
-                        <Font size="18.0" fx:id="x11" />
-                     </font>
-                     <textFill>
-                        <Color red="0.624" green="0.624" blue="0.624" fx:id="x21" />
-                     </textFill>
-                  </Label>
-                  <ScrollPane fx:id="scrollPane" fitToHeight="true" fitToWidth="true" hbarPolicy="NEVER" layoutX="14.0" layoutY="48.0" maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" minWidth="400.0" prefHeight="470.0" prefWidth="858.0" style="-fx-background-color: transparent; -fx-border-color: #212121;" vbarPolicy="NEVER" AnchorPane.bottomAnchor="31.0" AnchorPane.leftAnchor="14.0" AnchorPane.rightAnchor="8.0" AnchorPane.topAnchor="48.0">
-                     <styleClass>
-                        <String fx:value="split-pane" />
-                        <String fx:value="split-pane-divider" />
-                     </styleClass>
-                     <content>
-                        <AnchorPane prefHeight="200.0" prefWidth="200.0">
-                           <children>
-                              <FlowPane fx:id="moviesGrid" prefHeight="200.0" prefWidth="200.0" style="-fx-background-color: #212121;" AnchorPane.bottomAnchor="0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0" />
-                           </children>
-                        </AnchorPane>
-                     </content>
-                  </ScrollPane>
-                  <Label alignment="CENTER" layoutX="11.0" layoutY="520.0" onMouseClicked="#openFilter" style="&#10;" text="Search" textAlignment="CENTER" wrapText="false" AnchorPane.bottomAnchor="5.0" AnchorPane.leftAnchor="11.0">
-                     <font>
-                        <Font size="16.0" fx:id="x111" />
-                     </font>
-                     <textFill>
-                        <Color red="0.624" green="0.624" blue="0.624" fx:id="x211" />
-                     </textFill>
-                  </Label>
-               </children>
-            </AnchorPane>
-        <AnchorPane fx:id="detailsPane" maxWidth="0.0" minWidth="0.0" prefHeight="550.0" prefWidth="318.0" style="-fx-background-color: #212121;" SplitPane.resizableWithParent="false">
-          <children>
-              <Label alignment="CENTER" font="$x1" layoutX="14.0" layoutY="14.0" style="&#10;" text="Details" textAlignment="CENTER" textFill="#9f9f9f" wrapText="false" />
-              <ImageView fx:id="detailsPicPane" fitHeight="222.0" fitWidth="150.0" layoutX="14.0" layoutY="41.0" pickOnBounds="true" AnchorPane.bottomAnchor="287.0" AnchorPane.leftAnchor="75.0" AnchorPane.rightAnchor="75.0" AnchorPane.topAnchor="41.0" />
-              <Label fx:id="detailsNameLabel" layoutX="14.0" layoutY="265.0" text="Info" textFill="#9f9f9f">
-                 <font>
-                    <Font size="16.0" />
-                 </font>
-              </Label>
-              <Label fx:id="deleteMovieButton" layoutX="-14.0" layoutY="528.0" onMouseClicked="#openDeleteForm" text="Delete" textFill="#9f9f9f" AnchorPane.bottomAnchor="14.0" AnchorPane.rightAnchor="14.0">
-                 <font>
-                    <Font size="16.0" />
-                 </font>
-              </Label>
-              <Label fx:id="editMovieButton" layoutX="212.0" layoutY="534.0" text="Edit" textFill="#9f9f9f" AnchorPane.bottomAnchor="14.0" AnchorPane.rightAnchor="71.0">
-                 <font>
-                    <Font size="16.0" />
-                 </font>
-              </Label>
-                  <ScrollPane fitToHeight="true" fitToWidth="true" layoutX="14.0" layoutY="290.0" prefHeight="222.0" prefWidth="277.0" style="-fx-background-color: transparent;" AnchorPane.bottomAnchor="39.0" AnchorPane.topAnchor="290.0">
-                     <content>
-                    <TextFlow fx:id="detailsContent" prefHeight="222.0" prefWidth="277.0" style="-fx-background-color: #212121;" />
-                     </content>
-                  </ScrollPane>
-
+        -->
+    </top>
 
-          </children>
-        </AnchorPane>
-      </items>
-    </SplitPane>
-    <HBox id="HBox" alignment="CENTER_LEFT" spacing="5.0" VBox.vgrow="NEVER">
-      <children>
-        <Label fx:id="userLabel" maxHeight="1.7976931348623157E308" maxWidth="-1.0" style="-fx-background-color: #121212;" text="Logged in as Guest" HBox.hgrow="ALWAYS">
-          <font>
-            <Font size="11.0" fx:id="x3" />
-          </font>
-          <textFill>
-            <Color red="0.625" green="0.625" blue="0.625" fx:id="x4" />
-          </textFill>
-        </Label>
-        <Pane prefHeight="-1.0" prefWidth="-1.0" style="-fx-background-color: #121212;" HBox.hgrow="ALWAYS" />
-        <Label fx:id="logInButton" font="$x3" maxWidth="-1.0" onMouseClicked="#openLoginForm" style="-fx-background-color: #121212;" text="Log in" textFill="$x4" HBox.hgrow="NEVER" />
-            <Polyline fx:id="resizerPoly" fill="#9f9f9f" points="233.0, -3.0, 251.0, -20.0, 251.0, -3.0, 233.0, -3.0" strokeType="INSIDE">
-               <cursor>
-                  <Cursor fx:constant="SE_RESIZE" />
-               </cursor>
-            </Polyline>
-      </children>
-      <padding>
-        <Insets bottom="3.0" left="3.0" right="3.0" top="3.0" />
-      </padding>
-    </HBox>
-  </children>
-</VBox>
+</BorderPane>

+ 41 - 0
src/main/resources/BrowserWindowStyle.css

@@ -0,0 +1,41 @@
+#closeButton:hover {
+    -fx-background-color: #A12C2C;
+}
+
+#minimizeButton:hover,
+#maximizeButton:hover {
+    -fx-background-color: #2C2C2C;
+}
+
+.split-pane {
+    -fx-border-width: 0 0 0 0;
+    -fx-padding: 0 0 0 0;
+}
+
+.menu-button:hover,
+.menu-item:selected,
+.menu-item:hover,
+.menu-item:focused,
+.context-menu:hover > .menu-button {
+    -fx-background-color: #2C2C2C;
+}
+
+.menu-bar .menu-button:hover,
+.menu-bar .menu-button:focused,
+.menu-bar .menu-button:showing {
+    -fx-background: #2C2C2C;
+    -fx-text-fill: white;
+}
+
+.menu-button:selected {
+    -fx-background-color: red;
+}
+
+.context-menu {
+    -fx-background-color:  #121212;
+    -fx-text-fill: #9F9F9F;
+}
+
+.menu .label {
+    -fx-text-fill: #9F9F9F;
+}

+ 24 - 15
src/main/resources/EditMovieWindow.fxml

@@ -20,10 +20,25 @@
          </cursor></Pane>
    </right>
    <bottom>
-      <Pane fx:id="borderBottom" prefHeight="5.0" prefWidth="755.0" style="-fx-background-color: #121212;" BorderPane.alignment="CENTER">
+      <AnchorPane>
+         <Pane fx:id="cornerBottomLeft" maxHeight="5.0" maxWidth="5.0" minHeight="5.0" minWidth="5.0" prefHeight="5.0" prefWidth="5.0" style="-fx-background-color: #121212;" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0">
+            <cursor>
+               <Cursor fx:constant="NE_RESIZE" />
+            </cursor>
+         </Pane>
+         <Pane fx:id="borderBottom" prefHeight="5.0" prefWidth="745.0" style="-fx-background-color: #121212;" AnchorPane.leftAnchor="5.0" AnchorPane.rightAnchor="5.0" BorderPane.alignment="CENTER">
+            <cursor>
+               <Cursor fx:constant="S_RESIZE" />
+            </cursor></Pane>
+         <Pane fx:id="cornerBottomRight" maxHeight="5.0" maxWidth="5.0" minHeight="5.0" minWidth="5.0" prefHeight="5.0" prefWidth="5.0" style="-fx-background-color: #121212;" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
+            <cursor>
+               <Cursor fx:constant="SE_RESIZE" />
+            </cursor>
+         </Pane>
          <cursor>
-            <Cursor fx:constant="S_RESIZE" />
-         </cursor></Pane>
+            <Cursor fx:constant="DEFAULT" />
+         </cursor>
+      </AnchorPane>
    </bottom>
    <center>
       <AnchorPane minHeight="0.0" minWidth="0.0" style="-fx-background-color: #212121;" BorderPane.alignment="CENTER">
@@ -188,26 +203,20 @@
    </left>
    <top>
       <AnchorPane fx:id="borderTop" maxHeight="24.0" prefHeight="24.0" style="-fx-background-color: #121212;" BorderPane.alignment="CENTER">
-         <children>
-            <Label fx:id="closeButton" onMouseClicked="#closeStage" prefHeight="16.0" prefWidth="16.0" AnchorPane.bottomAnchor="4.0" AnchorPane.rightAnchor="4.0" AnchorPane.topAnchor="4.0">
+         <AnchorPane id="closeButton" onMouseClicked="#closeStage" prefHeight="22.0" prefWidth="36.0" AnchorPane.bottomAnchor="1.0" AnchorPane.rightAnchor="1.0" AnchorPane.topAnchor="1.0">
+            <Label  fx:id="closeButton" prefHeight="16.0" prefWidth="16.0" AnchorPane.bottomAnchor="3.0" AnchorPane.rightAnchor="10.0" AnchorPane.topAnchor="3.0">
                <font>
                   <Font name="Arimo" size="12.0" />
                </font>
             </Label>
-            <Label fx:id="minimizeButton" onMouseClicked="#minimizeStage" prefHeight="16.0" prefWidth="16.0" AnchorPane.bottomAnchor="4.0" AnchorPane.rightAnchor="24.0" AnchorPane.topAnchor="4.0">
+         </AnchorPane>
+         <AnchorPane id="minimizeButton" onMouseClicked="#minimizeStage" prefHeight="22.0" prefWidth="36.0" AnchorPane.bottomAnchor="1.0" AnchorPane.rightAnchor="38.0" AnchorPane.topAnchor="1.0">
+            <Label fx:id="minimizeButton" prefHeight="16.0" prefWidth="16.0" AnchorPane.bottomAnchor="3.0" AnchorPane.rightAnchor="10.0" AnchorPane.topAnchor="3.0">
                <font>
                   <Font name="Arimo" size="12.0" />
                </font>
             </Label>
-            <Label layoutX="10.0" layoutY="2.0" text="Title" textFill="#9f9f9f" visible="false" AnchorPane.bottomAnchor="2.0" AnchorPane.leftAnchor="10.0" AnchorPane.topAnchor="2.0">
-               <font>
-                  <Font size="14.0" />
-               </font>
-            </Label>
-         </children>
-         <cursor>
-            <Cursor fx:constant="MOVE" />
-         </cursor>
+         </AnchorPane>
       </AnchorPane>
    </top>
 </BorderPane>

+ 21 - 10
src/main/resources/GenreStatisticsWindow.fxml

@@ -48,16 +48,27 @@
    <top>
       <AnchorPane fx:id="borderTop" maxHeight="24.0" prefHeight="24.0" style="-fx-background-color: #121212;" BorderPane.alignment="CENTER">
          <children>
-            <Label fx:id="closeButton" onMouseClicked="#closeStage" prefHeight="16.0" prefWidth="16.0" AnchorPane.bottomAnchor="4.0" AnchorPane.rightAnchor="4.0" AnchorPane.topAnchor="4.0">
-               <font>
-                  <Font name="Arimo" size="12.0" />
-               </font>
-            </Label>
-            <Label fx:id="minimizeButton" onMouseClicked="#minimizeStage" prefHeight="16.0" prefWidth="16.0" AnchorPane.bottomAnchor="4.0" AnchorPane.rightAnchor="24.0" AnchorPane.topAnchor="4.0">
-               <font>
-                  <Font name="Arimo" size="12.0" />
-               </font>
-            </Label>
+            <AnchorPane id="closeButton" onMouseClicked="#closeStage" prefHeight="22.0" prefWidth="36.0" AnchorPane.bottomAnchor="1.0" AnchorPane.rightAnchor="1.0" AnchorPane.topAnchor="1.0">
+               <Label  fx:id="closeButton" prefHeight="16.0" prefWidth="16.0" AnchorPane.bottomAnchor="3.0" AnchorPane.rightAnchor="10.0" AnchorPane.topAnchor="3.0">
+                  <font>
+                     <Font name="Arimo" size="12.0" />
+                  </font>
+               </Label>
+            </AnchorPane>
+            <AnchorPane id="maximizeButton" onMouseClicked="#maximizeStageChange" prefHeight="22.0" prefWidth="36.0" AnchorPane.bottomAnchor="1.0" AnchorPane.rightAnchor="38.0" AnchorPane.topAnchor="1.0">
+               <Label fx:id="maximizeButton" prefHeight="16.0" prefWidth="16.0" AnchorPane.bottomAnchor="3.0" AnchorPane.rightAnchor="10.0" AnchorPane.topAnchor="3.0">
+                  <font>
+                     <Font name="Arimo" size="12.0" />
+                  </font>
+               </Label>
+            </AnchorPane>
+            <AnchorPane id="minimizeButton" onMouseClicked="#minimizeStage" prefHeight="22.0" prefWidth="36.0" AnchorPane.bottomAnchor="1.0" AnchorPane.rightAnchor="76.0" AnchorPane.topAnchor="1.0">
+               <Label fx:id="minimizeButton" prefHeight="16.0" prefWidth="16.0" AnchorPane.bottomAnchor="3.0" AnchorPane.rightAnchor="10.0" AnchorPane.topAnchor="3.0">
+                  <font>
+                     <Font name="Arimo" size="12.0" />
+                  </font>
+               </Label>
+            </AnchorPane>
             <Label fx:id="borderTopTitle" layoutX="10.0" layoutY="2.0" text="Title" textFill="#9f9f9f" AnchorPane.bottomAnchor="2.0" AnchorPane.leftAnchor="10.0" AnchorPane.topAnchor="2.0">
                <font>
                   <Font size="14.0" />

+ 10 - 6
src/main/resources/LogInController.fxml

@@ -58,16 +58,20 @@
    <top>
       <AnchorPane fx:id="borderTop" maxHeight="24.0" prefHeight="24.0" style="-fx-background-color: #121212;" BorderPane.alignment="CENTER">
          <children>
-   	  	   		<Label fx:id="closeButton" onMouseClicked="#closeStage" prefHeight="16.0" prefWidth="16.0" AnchorPane.bottomAnchor="4.0" AnchorPane.rightAnchor="4.0" AnchorPane.topAnchor="4.0">
+             <AnchorPane id="closeButton" onMouseClicked="#closeStage" prefHeight="22.0" prefWidth="36.0" AnchorPane.bottomAnchor="1.0" AnchorPane.rightAnchor="1.0" AnchorPane.topAnchor="1.0">
+   	  	   		<Label  fx:id="closeButton" prefHeight="16.0" prefWidth="16.0" AnchorPane.bottomAnchor="3.0" AnchorPane.rightAnchor="10.0" AnchorPane.topAnchor="3.0">
    	  		      <font>
    	  		          <Font name="Arimo" size="12.0" />
    	  		      </font>
    	  		    </Label>
-   		    <Label fx:id="minimizeButton" onMouseClicked="#minimizeStage" prefHeight="16.0" prefWidth="16.0" AnchorPane.bottomAnchor="4.0" AnchorPane.rightAnchor="24.0" AnchorPane.topAnchor="4.0">
-   		        <font>
-   		            <Font name="Arimo" size="12.0" />
-   		        </font>
-   		    </Label>
+             </AnchorPane>
+             <AnchorPane id="minimizeButton" onMouseClicked="#minimizeStage" prefHeight="22.0" prefWidth="36.0" AnchorPane.bottomAnchor="1.0" AnchorPane.rightAnchor="38.0" AnchorPane.topAnchor="1.0">
+                <Label fx:id="minimizeButton" prefHeight="16.0" prefWidth="16.0" AnchorPane.bottomAnchor="3.0" AnchorPane.rightAnchor="10.0" AnchorPane.topAnchor="3.0">
+                    <font>
+                        <Font name="Arimo" size="12.0" />
+                    </font>
+                </Label>
+             </AnchorPane>
             <Label layoutX="10.0" layoutY="2.0" text="Title" textFill="#9f9f9f" visible="false" AnchorPane.bottomAnchor="2.0" AnchorPane.leftAnchor="10.0" AnchorPane.topAnchor="2.0">
                <font>
                   <Font size="14.0" />

+ 1 - 0
src/main/resources/style.css

@@ -1,4 +1,5 @@
 .split-pane:horizontal > .split-pane-divider {
+   -fx-padding: 0 -1em 0 -1em;
    -fx-background-color: #121212;
    -fx-border-color: transparent
 }