Merge pull request #1 from Kaabp/Menus

Menus
main
Kaabp 5 years ago committed by GitHub
commit 86b0ed314d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -925,7 +925,11 @@
</inspection_tool>
<inspection_tool class="DuplicateThrows" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="DuplicatedBeanNamesInspection" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="DuplicatedCode" enabled="true" level="WEAK WARNING" enabled_by_default="true" />
<inspection_tool class="DuplicatedCode" enabled="true" level="WEAK WARNING" enabled_by_default="true">
<Languages>
<language minSize="79" name="Java" />
</Languages>
</inspection_tool>
<inspection_tool class="DuplicatedDataProviderNames" enabled="true" level="ERROR" enabled_by_default="true" />
<inspection_tool class="DynamicRegexReplaceableByCompiledPattern" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="DynamicallyGeneratedCodeJS" enabled="false" level="WARNING" enabled_by_default="false" />
@ -1717,6 +1721,7 @@
<inspection_tool class="KotlinLoggerInitializedWithForeignClass" enabled="false" level="WARNING" enabled_by_default="false" />
<inspection_tool class="KotlinMavenPluginPhase" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="KotlinRedundantOverride" enabled="true" level="WEAK WARNING" enabled_by_default="true" />
<inspection_tool class="KotlinSealedInheritorsInJava" enabled="false" level="ERROR" enabled_by_default="false" />
<inspection_tool class="KotlinTestJUnit" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="KotlinThrowableNotThrown" enabled="true" level="WARNING" enabled_by_default="true" />
<inspection_tool class="KotlinUnusedImport" enabled="true" level="WARNING" enabled_by_default="true" />
@ -3158,5 +3163,17 @@
</value>
</option>
</inspection_tool>
<inspection_tool class="unused" enabled="false" level="WARNING" enabled_by_default="false">
<option name="LOCAL_VARIABLE" value="true" />
<option name="FIELD" value="true" />
<option name="METHOD" value="true" />
<option name="CLASS" value="true" />
<option name="PARAMETER" value="true" />
<option name="REPORT_PARAMETER_FOR_PUBLIC_METHODS" value="true" />
<option name="ADD_MAINS_TO_ENTRIES" value="true" />
<option name="ADD_APPLET_TO_ENTRIES" value="true" />
<option name="ADD_SERVLET_TO_ENTRIES" value="true" />
<option name="ADD_NONJAVA_TO_ENTRIES" value="true" />
</inspection_tool>
</profile>
</component>

@ -6,6 +6,8 @@
}
#topbar {
-fx-background-color: #0b111a;
-fx-border-color: #6b6868;
-fx-border-width: 0px 0px 0.5px 0px;
}
#men {
-fx-background-color: #252530;
@ -31,4 +33,8 @@
-fx-background-color: #252530;
-fx-border-color: #6b6868;
-fx-border-width: 0px 0.5px 0.5px 0.5px;
}
#buttonStammbaum {
-fx-background-color: #252530;
-fx-text-fill: white;
}

@ -32,6 +32,7 @@
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-->
<?import com.jfoenix.controls.JFXListCell?>
<?import de.jensd.fx.glyphs.fontawesome.FontAwesomeIcon?>
<?import javafx.geometry.Insets?>
<?import javafx.scene.control.Label?>
@ -98,7 +99,9 @@
<Font size="30.0" />
</font>
</Text>
<VBox id="menuslide" fx:id="menuslideV" prefHeight="622.0" prefWidth="200.0" stylesheets="@home.css" visible="false" />
<VBox id="menuslide" fx:id="menuslideV" prefHeight="622.0" prefWidth="200.0" stylesheets="@home.css" visible="false">
<JFXListCell id="buttonStammbaum" fx:id="buttonStammbaum" onMouseClicked="#buttonStammbaumClicked" prefHeight="33.0" prefWidth="208.0" stylesheets="@home.css" text="Stammbaum" textFill="WHITE" />
</VBox>
<VBox id="filesmenu" fx:id="filesmenu" layoutX="57.0" onMouseExited="#filesOpenPaneExited" prefHeight="250.0" prefWidth="150.0" stylesheets="@home.css" visible="false" />
<VBox id="filesmenu" fx:id="optionsmenu" layoutX="94.0" onMouseExited="#optionsOpenPaneExited" prefHeight="250.0" prefWidth="150.0" stylesheets="@home.css" visible="false" />
</Pane>

@ -0,0 +1,40 @@
/* css */
/* Author Lukas Martin */
#borderpane {
-fx-background-color: #252526;
}
#topbar {
-fx-background-color: #0b111a;
-fx-border-color: #6b6868;
-fx-border-width: 0px 0px 0.5px 0px;
}
#men {
-fx-background-color: #252530;
-fx-border-color: #6b6868;
-fx-border-width: 0px 0.5px 0.5px 0.5px;
}
#menuslide {
-fx-background-color: #252530;
-fx-border-color: #6b6868;
-fx-border-width: 0px 0.5px 0.5px 0.5px;
border-top: none;
}
#menubutton {
-fx-text-fill: white;
}
#menubutton:hover {
-fx-text-fill: grey;
}
#panehome {
-fx-background-color: #252526;
}
#filesmenu {
-fx-background-color: #252530;
-fx-border-color: #6b6868;
-fx-border-width: 0px 0.5px 0.5px 0.5px;
}
#buttonStammbaum {
-fx-background-color: #252530;
-fx-text-fill: white;
}

@ -0,0 +1,111 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2015, 2019, Gluon and/or its affiliates.
All rights reserved. Use is subject to license terms.
This file is available and licensed under the following license:
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
- Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in
the documentation and/or other materials provided with the distribution.
- Neither the name of Oracle Corporation nor the names of its
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-->
<?import com.jfoenix.controls.JFXListCell?>
<?import de.jensd.fx.glyphs.fontawesome.FontAwesomeIcon?>
<?import javafx.geometry.Insets?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.layout.BorderPane?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.Pane?>
<?import javafx.scene.layout.VBox?>
<?import javafx.scene.text.Font?>
<?import javafx.scene.text.Text?>
<AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" onKeyPressed="#pressedkey" prefHeight="680.0" prefWidth="1280.0" xmlns="http://javafx.com/javafx/15.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="controller.stammbaumController">
<BorderPane id="borderpane" layoutX="162.0" layoutY="64.0" prefHeight="200.0" prefWidth="200.0" stylesheets="@stammbaum.css" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
<top>
<BorderPane prefHeight="0.0" prefWidth="1280.0" BorderPane.alignment="CENTER">
<top>
<HBox id="topbar" fx:id="hboxmen" alignment="TOP_RIGHT" onMouseDragged="#dragged" onMouseEntered="#topBarEntered" onMousePressed="#pressed" prefHeight="25.0" stylesheets="@stammbaum.css" BorderPane.alignment="CENTER">
<FontAwesomeIcon fill="WHITE" iconName="MINUS" onMouseClicked="#min" textAlignment="CENTER" translateY="2.0">
<HBox.margin>
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0" />
</HBox.margin>
</FontAwesomeIcon>
<FontAwesomeIcon fill="#86ff6b" iconName="CIRCLE" onMouseClicked="#max" textAlignment="CENTER" translateY="1.0">
<HBox.margin>
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0" />
</HBox.margin>
</FontAwesomeIcon>
<FontAwesomeIcon fill="RED" iconName="CLOSE" onMouseClicked="#close" scaleX="1.2" scaleY="1.2" scaleZ="1.2" selectionFill="#f20000" size="1.1em" textAlignment="CENTER">
<HBox.margin>
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0" />
</HBox.margin>
</FontAwesomeIcon>
<padding>
<Insets bottom="2.0" left="5.0" right="5.0" top="2.0" />
</padding>
</HBox>
</top>
<center>
<HBox id="men" prefHeight="25.0" prefWidth="1920.0" stylesheets="@stammbaum.css" BorderPane.alignment="CENTER">
<Label id="menubutton" onMouseClicked="#menuOpenClicked" onMouseEntered="#menuOpenEntered" stylesheets="@stammbaum.css" text="Menu" textAlignment="CENTER" textFill="WHITE" translateX="10.0">
<padding>
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0" />
</padding>
</Label>
<Label id="menubutton" onMouseClicked="#filesButtonClicked" onMouseEntered="#filesButtonEntred" stylesheets="@stammbaum.css" text="Files" textFill="WHITE" translateX="10.0">
<padding>
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0" />
</padding>
</Label>
<Label id="menubutton" onMouseClicked="#optionButtonClicked" onMouseEntered="#optionButtonEntered" stylesheets="@stammbaum.css" text="Options" textFill="WHITE" translateX="10.0">
<padding>
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0" />
</padding>
</Label>
</HBox>
</center>
</BorderPane>
</top>
<center>
<AnchorPane onMouseClicked="#bodyOnClick" onMouseEntered="#bodyMouseEntred" prefHeight="627.0" prefWidth="1135.0" BorderPane.alignment="CENTER">
<Pane id="panehome" stylesheets="@stammbaum.css" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
<Text fill="WHITE" layoutX="444.0" layoutY="322.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Stammbaum und so, lol.">
<font>
<Font size="30.0" />
</font>
</Text>
<VBox id="menuslide" fx:id="menuslideV" prefHeight="622.0" prefWidth="200.0" stylesheets="@stammbaum.css" visible="false">
<JFXListCell id="buttonStammbaum" fx:id="buttonStammbaum" onMouseClicked="#buttonMenuClicked" prefHeight="33.0" prefWidth="208.0" stylesheets="@stammbaum.css" text="Menu" textFill="WHITE" />
</VBox>
<VBox id="filesmenu" fx:id="filesmenu" layoutX="57.0" onMouseExited="#filesOpenPaneExited" prefHeight="250.0" prefWidth="150.0" stylesheets="@stammbaum.css" visible="false" />
<VBox id="filesmenu" fx:id="optionsmenu" layoutX="94.0" onMouseExited="#optionsOpenPaneExited" prefHeight="250.0" prefWidth="150.0" stylesheets="@stammbaum.css" visible="false" />
</Pane>
</AnchorPane>
</center>
</BorderPane>
</AnchorPane>

@ -1,8 +1,12 @@
package controller;
import com.jfoenix.controls.JFXListCell;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.geometry.Rectangle2D;
import javafx.scene.Node;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.input.KeyCode;
import javafx.scene.input.KeyEvent;
import javafx.scene.input.MouseEvent;
@ -12,15 +16,19 @@ import javafx.stage.Screen;
import javafx.stage.Stage;
import helper.menuCloser;
import java.io.IOException;
/**
* @author Lukas Martin
*/
public class homeController {
menuCloser mCloser = new menuCloser(); //menu closer
Boolean sliderClicked = false; //Menu slider activated
//Menu slider
@FXML private JFXListCell buttonStammbaum; //Button Stammbaum
@FXML private VBox filesmenu; //Files Menu Slider
@FXML private HBox hboxmen; //Unused
@FXML private VBox optionsmenu; //Options Menu Button
@ -158,4 +166,19 @@ public class homeController {
public void bodyMouseEntred(MouseEvent mouseEvent) { //Body Mouse Entered
optionsmenu.setVisible(false); //Deactivates optionmenu
}
//Stammbaum Button Clicked
public void buttonStammbaumClicked(MouseEvent mouseEvent) throws IOException { //Stammbaum button clicked
Stage stage = (Stage) ((Node) mouseEvent.getSource()).getScene().getWindow(); //Gets the current windows
Rectangle2D primaryScreenBounds = Screen.getPrimary().getVisualBounds(); //Gets the monitor size
Parent stammbaum = FXMLLoader.load(getClass().getResource("/resources/stammbaum.fxml")); //Gets the resource stammbaum
stage.setScene(new Scene(stammbaum, 1920, 1080)); //Sets the Scene
stage.centerOnScreen(); //Centeres the Screen
stage.setX(primaryScreenBounds.getMinX()); //Sets the windows x cord to 0
stage.setY(primaryScreenBounds.getMinY()); //Sets the windows y cord to 0
stage.setWidth(primaryScreenBounds.getWidth()); //Sets the windows width to the max width of the monitor
stage.setHeight(primaryScreenBounds.getHeight()); //Sets the windows height to the max height of the monitor
stage.show(); //Opens the given Scene
}
}

@ -0,0 +1,181 @@
package controller;
import com.jfoenix.controls.JFXListCell;
import helper.menuCloser;
import javafx.fxml.FXML;
import javafx.fxml.FXMLLoader;
import javafx.geometry.Rectangle2D;
import javafx.scene.Node;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.input.KeyCode;
import javafx.scene.input.KeyEvent;
import javafx.scene.input.MouseEvent;
import javafx.scene.layout.HBox;
import javafx.scene.layout.VBox;
import javafx.stage.Screen;
import javafx.stage.Stage;
import java.io.IOException;
/**
* @author Lukas Martin
*/
public class stammbaumController {
menuCloser mCloser = new menuCloser(); //menu closer
Boolean sliderClicked = false; //Menu slider activated
//Menu slider
@FXML private JFXListCell buttonStammbaum; //Button Stammbaum
@FXML private VBox filesmenu; //Files Menu Slider
@FXML private HBox hboxmen; //Unused
@FXML private VBox optionsmenu; //Options Menu Button
@FXML private VBox menuslideV; //Menu slider
//coordinates
double x,y; //x and y coordinates from monitor
//top menu
public void dragged(MouseEvent mouseEvent) { //Window dragging
Stage stage = (Stage) ((Node) mouseEvent.getSource()).getScene().getWindow(); //Gets the current window
if(!stage.isFullScreen()) { //Checks if the window is != fullscreen
stage.setX(mouseEvent.getScreenX() - x); //Sets the new screen cords x while dragging
stage.setY(mouseEvent.getScreenY() - y); //Sets the new screen cords y while dragging
}
}
//top menu
public void pressed(MouseEvent mouseEvent) { //For window drag
x = mouseEvent.getSceneX(); //Gets the x cord
y = mouseEvent.getSceneY(); //Gets the y cord
}
//minus button
public void min(MouseEvent mouseEvent) {
Stage stage = (Stage) ((Node) mouseEvent.getSource()).getScene().getWindow(); //Gets the current window
stage.setIconified(true); //Put windows into the background
}
//circle button
public void max(MouseEvent mouseEvent) { //Max Button
Stage stage = (Stage) ((Node) mouseEvent.getSource()).getScene().getWindow(); //Gets the current windows
Rectangle2D primaryScreenBounds = Screen.getPrimary().getVisualBounds(); //Gets the screen sizes
if(stage.getWidth() == 1280) { //Checks if windows width is ==
stage.setX(primaryScreenBounds.getMinX()); //Sets the windows x cord to 0
stage.setY(primaryScreenBounds.getMinY()); //Sets the windows y cord to 0
stage.setWidth(primaryScreenBounds.getWidth()); //Sets the windows width to the max width of the monitor
stage.setHeight(primaryScreenBounds.getHeight()); //Sets the windows height to the max height of the monitor
} else if(stage.getWidth() != 1280) { //Checks if windows width is !=
stage.setHeight(680); //Sets window height
stage.setWidth(1280); //Sets window width
stage.centerOnScreen(); //Centers the current window
}
}
//close button
public void close(MouseEvent mouseEvent) { //Close Button
Stage stage = (Stage) ((Node) mouseEvent.getSource()).getScene().getWindow(); //Gets the current windows
stage.close(); //Closes the current windows and therefore the program
}
//Top Bar
public void topBarEntered(MouseEvent mouseEvent) {
filesmenu.setVisible(false);
optionsmenu.setVisible(false);
}
//Border Pane !!! NOT WORKING !!!
public void pressedkey(KeyEvent keyEvent) {
Stage stage = (Stage) ((Node) keyEvent.getSource()).getScene().getWindow(); //Gets the current windows
if(keyEvent.getCode() == KeyCode.F11) {
stage.setFullScreen(!stage.isFullScreen());
}
}
//Menu Slider Button
public void menuOpenClicked(MouseEvent mouseEvent) { //Menu Button Click
mCloser.openMenu(menuslideV, filesmenu, optionsmenu, true); //Opens first given menu and closes the others
Stage stage = (Stage) ((Node) mouseEvent.getSource()).getScene().getWindow(); //Gets the current windows
menuslideV.prefHeightProperty().bind(stage.heightProperty()); //Bind the menu height to the current window height.
}
//Menu Slider Button Entered
public void menuOpenEntered(MouseEvent mouseEvent) { //Menu Slider Button Entered
filesmenu.setVisible(false); //Deactivates filesmenu
}
//Files Slieder Button
public void filesButtonEntred(MouseEvent mouseEvent) { //Files Menu Button Click
mCloser.openMenu(filesmenu, optionsmenu, sliderClicked); //Opens first given menu and closes the others
}
//Files Slider Exit
public void filesOpenPaneExited(MouseEvent mouseEvent) { //Files Menu Buttpn Exit
filesmenu.setVisible(false); //Files Menu Disable
}
//Files Button Clicked
public void filesButtonClicked(MouseEvent mouseEvent) { //Files Button Clicked
sliderClicked = true; //Buttons Activated
mCloser.openMenu(filesmenu, optionsmenu, true); //Opens first given menu and closes the others
}
//Option slieder Entered
public void optionButtonEntered(MouseEvent mouseEvent) { //Option Slider Entered
mCloser.openMenu(optionsmenu, filesmenu, sliderClicked); //Opens first given menu and closes the others
}
//Options Slieder Exit
public void optionsOpenPaneExited(MouseEvent mouseEvent) { //Options Slieder Exit
optionsmenu.setVisible(false); //Option Slider Deactivated
}
//Option Button Clicked
public void optionButtonClicked(MouseEvent mouseEvent) { ///Option Button Clicked
sliderClicked = true; //Buttons Activated
mCloser.openMenu(optionsmenu, filesmenu, true); //Opens first given menu and closes the others
}
//Body Clicked
public void bodyOnClick(MouseEvent mouseEvent) { //Body Clicked (Anchor Pane)
sliderClicked = false; //Disables the buttons
}
//Body Mouse Entered
public void bodyMouseEntred(MouseEvent mouseEvent) { //Body Mouse Entered
optionsmenu.setVisible(false); //Deactivates optionmenu
}
//Menu Button Clicked
public void buttonMenuClicked(MouseEvent mouseEvent) throws IOException { //Menu button clicked event
Stage stage = (Stage) ((Node) mouseEvent.getSource()).getScene().getWindow(); //Gets the current windows
Parent home = FXMLLoader.load(getClass().getResource("/resources/home.fxml")); //Gets the Scene
stage.setScene(new Scene(home, 1280, 680)); //Sets the Scene
stage.setWidth(1280); //Sets the width
stage.setHeight(680); //Sets the height
stage.centerOnScreen(); //Centeres the Screen
stage.show(); //Opens the given Scene
}
}

@ -8,6 +8,7 @@ module Genologie {
requires javafx.web;
requires javafx.swt;
requires FX.BorderlessScene;
requires com.jfoenix;
opens genologie_app;
opens controller;

@ -6,6 +6,8 @@
}
#topbar {
-fx-background-color: #0b111a;
-fx-border-color: #6b6868;
-fx-border-width: 0px 0px 0.5px 0px;
}
#men {
-fx-background-color: #252530;
@ -31,4 +33,8 @@
-fx-background-color: #252530;
-fx-border-color: #6b6868;
-fx-border-width: 0px 0.5px 0.5px 0.5px;
}
#buttonStammbaum {
-fx-background-color: #252530;
-fx-text-fill: white;
}

@ -32,6 +32,7 @@
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-->
<?import com.jfoenix.controls.JFXListCell?>
<?import de.jensd.fx.glyphs.fontawesome.FontAwesomeIcon?>
<?import javafx.geometry.Insets?>
<?import javafx.scene.control.Label?>
@ -98,7 +99,9 @@
<Font size="30.0" />
</font>
</Text>
<VBox id="menuslide" fx:id="menuslideV" prefHeight="622.0" prefWidth="200.0" stylesheets="@home.css" visible="false" />
<VBox id="menuslide" fx:id="menuslideV" prefHeight="622.0" prefWidth="200.0" stylesheets="@home.css" visible="false">
<JFXListCell id="buttonStammbaum" fx:id="buttonStammbaum" onMouseClicked="#buttonStammbaumClicked" prefHeight="33.0" prefWidth="208.0" stylesheets="@home.css" text="Stammbaum" textFill="WHITE" />
</VBox>
<VBox id="filesmenu" fx:id="filesmenu" layoutX="57.0" onMouseExited="#filesOpenPaneExited" prefHeight="250.0" prefWidth="150.0" stylesheets="@home.css" visible="false" />
<VBox id="filesmenu" fx:id="optionsmenu" layoutX="94.0" onMouseExited="#optionsOpenPaneExited" prefHeight="250.0" prefWidth="150.0" stylesheets="@home.css" visible="false" />
</Pane>

@ -0,0 +1,40 @@
/* css */
/* Author Lukas Martin */
#borderpane {
-fx-background-color: #252526;
}
#topbar {
-fx-background-color: #0b111a;
-fx-border-color: #6b6868;
-fx-border-width: 0px 0px 0.5px 0px;
}
#men {
-fx-background-color: #252530;
-fx-border-color: #6b6868;
-fx-border-width: 0px 0.5px 0.5px 0.5px;
}
#menuslide {
-fx-background-color: #252530;
-fx-border-color: #6b6868;
-fx-border-width: 0px 0.5px 0.5px 0.5px;
border-top: none;
}
#menubutton {
-fx-text-fill: white;
}
#menubutton:hover {
-fx-text-fill: grey;
}
#panehome {
-fx-background-color: #252526;
}
#filesmenu {
-fx-background-color: #252530;
-fx-border-color: #6b6868;
-fx-border-width: 0px 0.5px 0.5px 0.5px;
}
#buttonStammbaum {
-fx-background-color: #252530;
-fx-text-fill: white;
}

@ -0,0 +1,111 @@
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2015, 2019, Gluon and/or its affiliates.
All rights reserved. Use is subject to license terms.
This file is available and licensed under the following license:
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
- Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in
the documentation and/or other materials provided with the distribution.
- Neither the name of Oracle Corporation nor the names of its
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-->
<?import com.jfoenix.controls.JFXListCell?>
<?import de.jensd.fx.glyphs.fontawesome.FontAwesomeIcon?>
<?import javafx.geometry.Insets?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.layout.BorderPane?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.Pane?>
<?import javafx.scene.layout.VBox?>
<?import javafx.scene.text.Font?>
<?import javafx.scene.text.Text?>
<AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" onKeyPressed="#pressedkey" prefHeight="680.0" prefWidth="1280.0" xmlns="http://javafx.com/javafx/15.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="controller.stammbaumController">
<BorderPane id="borderpane" layoutX="162.0" layoutY="64.0" prefHeight="200.0" prefWidth="200.0" stylesheets="@stammbaum.css" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
<top>
<BorderPane prefHeight="0.0" prefWidth="1280.0" BorderPane.alignment="CENTER">
<top>
<HBox id="topbar" fx:id="hboxmen" alignment="TOP_RIGHT" onMouseDragged="#dragged" onMouseEntered="#topBarEntered" onMousePressed="#pressed" prefHeight="25.0" stylesheets="@stammbaum.css" BorderPane.alignment="CENTER">
<FontAwesomeIcon fill="WHITE" iconName="MINUS" onMouseClicked="#min" textAlignment="CENTER" translateY="2.0">
<HBox.margin>
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0" />
</HBox.margin>
</FontAwesomeIcon>
<FontAwesomeIcon fill="#86ff6b" iconName="CIRCLE" onMouseClicked="#max" textAlignment="CENTER" translateY="1.0">
<HBox.margin>
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0" />
</HBox.margin>
</FontAwesomeIcon>
<FontAwesomeIcon fill="RED" iconName="CLOSE" onMouseClicked="#close" scaleX="1.2" scaleY="1.2" scaleZ="1.2" selectionFill="#f20000" size="1.1em" textAlignment="CENTER">
<HBox.margin>
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0" />
</HBox.margin>
</FontAwesomeIcon>
<padding>
<Insets bottom="2.0" left="5.0" right="5.0" top="2.0" />
</padding>
</HBox>
</top>
<center>
<HBox id="men" prefHeight="25.0" prefWidth="1920.0" stylesheets="@stammbaum.css" BorderPane.alignment="CENTER">
<Label id="menubutton" onMouseClicked="#menuOpenClicked" onMouseEntered="#menuOpenEntered" stylesheets="@stammbaum.css" text="Menu" textAlignment="CENTER" textFill="WHITE" translateX="10.0">
<padding>
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0" />
</padding>
</Label>
<Label id="menubutton" onMouseClicked="#filesButtonClicked" onMouseEntered="#filesButtonEntred" stylesheets="@stammbaum.css" text="Files" textFill="WHITE" translateX="10.0">
<padding>
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0" />
</padding>
</Label>
<Label id="menubutton" onMouseClicked="#optionButtonClicked" onMouseEntered="#optionButtonEntered" stylesheets="@stammbaum.css" text="Options" textFill="WHITE" translateX="10.0">
<padding>
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0" />
</padding>
</Label>
</HBox>
</center>
</BorderPane>
</top>
<center>
<AnchorPane onMouseClicked="#bodyOnClick" onMouseEntered="#bodyMouseEntred" prefHeight="627.0" prefWidth="1135.0" BorderPane.alignment="CENTER">
<Pane id="panehome" stylesheets="@stammbaum.css" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
<Text fill="WHITE" layoutX="444.0" layoutY="322.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Stammbaum und so, lol.">
<font>
<Font size="30.0" />
</font>
</Text>
<VBox id="menuslide" fx:id="menuslideV" prefHeight="622.0" prefWidth="200.0" stylesheets="@stammbaum.css" visible="false">
<JFXListCell id="buttonStammbaum" fx:id="buttonStammbaum" onMouseClicked="#buttonMenuClicked" prefHeight="33.0" prefWidth="208.0" stylesheets="@stammbaum.css" text="Menu" textFill="WHITE" />
</VBox>
<VBox id="filesmenu" fx:id="filesmenu" layoutX="57.0" onMouseExited="#filesOpenPaneExited" prefHeight="250.0" prefWidth="150.0" stylesheets="@stammbaum.css" visible="false" />
<VBox id="filesmenu" fx:id="optionsmenu" layoutX="94.0" onMouseExited="#optionsOpenPaneExited" prefHeight="250.0" prefWidth="150.0" stylesheets="@stammbaum.css" visible="false" />
</Pane>
</AnchorPane>
</center>
</BorderPane>
</AnchorPane>
Loading…
Cancel
Save