Got the drag thingto work

This commit is contained in:
Michael-Jouanneau 2016-10-29 22:44:56 +02:00
parent d2be9f10bd
commit dad144eb64
3 changed files with 9 additions and 8 deletions

View File

@ -3,11 +3,14 @@
-fx-background-radius: 0; -fx-background-radius: 0;
} }
#exit:hover{ #exit:hover{
-fx-background-color: rgba(0, 0, 255, 0.5); -fx-border-radius: 12px;
-fx-background-color: cadetblue;
} }
#Pane { #Pane {
-fx-border-width: 1px; -fx-border-width: 1px;
-fx-border-color: black; -fx-border-color: black;
-fx-border-style: solid; -fx-border-style: solid;
}
#hyperlink {
} }

View File

@ -23,6 +23,7 @@ public class Main extends Application {
primaryStage.setTitle("Team-Avion Launcher [WIP]"); primaryStage.setTitle("Team-Avion Launcher [WIP]");
primaryStage.setScene(new Scene(root, 900, 500)); primaryStage.setScene(new Scene(root, 900, 500));
primaryStage.show(); primaryStage.show();
primaryStage.maximizedProperty().addListener((observable, oldValue, newValue) -> { primaryStage.maximizedProperty().addListener((observable, oldValue, newValue) -> {
if (newValue) { if (newValue) {
primaryStage.setMaximized(false); primaryStage.setMaximized(false);
@ -45,10 +46,7 @@ public class Main extends Application {
primaryStage.setY(event.getScreenY() - yOffset); primaryStage.setY(event.getScreenY() - yOffset);
} }
}); });
} }
public static void main(String[] args) { public static void main(String[] args) {
launch(args); launch(args);
} }

View File

@ -9,15 +9,15 @@
<Pane id="Pane" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="500" prefWidth="900" xmlns="http://javafx.com/javafx/8.0.112-ea" xmlns:fx="http://javafx.com/fxml/1"> <Pane id="Pane" maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="500" prefWidth="900" xmlns="http://javafx.com/javafx/8.0.112-ea" xmlns:fx="http://javafx.com/fxml/1">
<children> <children>
<Rectangle id="rectangle" arcHeight="5.0" arcWidth="5.0" fill="white" height="50.0" stroke="white" strokeType="INSIDE" width="900.0" /> <Rectangle id="rectangle" arcHeight="5.0" arcWidth="5.0" fill="white" height="50.0" strokeType="INSIDE" width="900.0" />
<Button id="exit" alignment="TOP_RIGHT" contentDisplay="RIGHT" layoutX="862.0" layoutY="13.0" mnemonicParsing="false" stylesheets="@../assets/style/nav.css" text="X" /> <Button id="exit" alignment="TOP_RIGHT" contentDisplay="RIGHT" layoutX="862.0" layoutY="13.0" mnemonicParsing="false" stylesheets="@../assets/style/nav.css" text="X" />
<Label layoutX="46.0" layoutY="11.0" text="Team Avion Launcher"> <Label layoutX="46.0" layoutY="11.0" text="Team Avion Launcher">
<font> <font>
<Font name="Centaur" size="24.0" /> <Font name="Centaur" size="24.0" />
</font> </font>
</Label> </Label>
<Rectangle arcHeight="5.0" arcWidth="5.0" fill="#e4e4e4" height="450.0" layoutX="-1.0" layoutY="50.0" stroke="TRANSPARENT" strokeType="INSIDE" width="145.0" /> <Rectangle arcHeight="5.0" arcWidth="5.0" fill="#e4e4e4" height="450.0" layoutX="-1.0" layoutY="50.0" strokeType="INSIDE" width="145.0" />
<Hyperlink layoutX="26.0" layoutY="66.0" text="Our Modpacks" /> <Hyperlink id="hyperlink" layoutX="26.0" layoutY="66.0" text="Our Modpacks" />
<Hyperlink layoutX="26.0" layoutY="102.0" text="Settings" /> <Hyperlink layoutX="26.0" layoutY="102.0" text="Settings" />
</children> </children>
</Pane> </Pane>