Committed first files

Committed first files
main
Kaabp 5 years ago
parent e2951c958a
commit 5541ba2c0f

8
.idea/.gitignore vendored

@ -0,0 +1,8 @@
# Default ignored files
/shelf/
/workspace.xml
# Datasource local storage ignored files
/../../../../:\1_java\Genologie\.idea/dataSources/
/dataSources.local.xml
# Editor-based HTTP Client requests
/httpRequests/

@ -0,0 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="CompilerConfiguration">
<option name="DEFAULT_COMPILER" value="Javac" />
<resourceExtensions />
<wildcardResourcePatterns>
<entry name="!?*.java" />
<entry name="!?*.form" />
<entry name="!?*.class" />
<entry name="!?*.groovy" />
<entry name="!?*.scala" />
<entry name="!?*.flex" />
<entry name="!?*.kt" />
<entry name="!?*.clj" />
</wildcardResourcePatterns>
<annotationProcessing>
<profile default="true" name="Default" enabled="false">
<processorPath useClasspath="true" />
</profile>
</annotationProcessing>
</component>
</project>

@ -0,0 +1,2 @@
<html>Simple <b>JavaFX 2.0</b> application that includes simple .fxml file with attached controller and Main class to quick start. Artifact to build JavaFX application is provided.
</html>

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding">
<file url="PROJECT" charset="UTF-8" />
</component>
</project>

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="GradleMigrationSettings" migrationVersion="1" />
</project>

File diff suppressed because it is too large Load Diff

@ -0,0 +1,16 @@
<component name="libraryTable">
<library name="javafx-swt">
<CLASSES>
<root url="jar://$USER_HOME$/Documents/Lib/javafx-sdk-11.0.2/lib/javafx-swt.jar!/" />
<root url="jar://$USER_HOME$/Documents/Lib/javafx-sdk-11.0.2/lib/javafx.base.jar!/" />
<root url="jar://$USER_HOME$/Documents/Lib/javafx-sdk-11.0.2/lib/javafx.controls.jar!/" />
<root url="jar://$USER_HOME$/Documents/Lib/javafx-sdk-11.0.2/lib/javafx.fxml.jar!/" />
<root url="jar://$USER_HOME$/Documents/Lib/javafx-sdk-11.0.2/lib/javafx.graphics.jar!/" />
<root url="jar://$USER_HOME$/Documents/Lib/javafx-sdk-11.0.2/lib/javafx.swing.jar!/" />
<root url="jar://$USER_HOME$/Documents/Lib/javafx-sdk-11.0.2/lib/javafx.media.jar!/" />
<root url="jar://$USER_HOME$/Documents/Lib/javafx-sdk-11.0.2/lib/javafx.web.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</component>

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="EntryPointsManager">
<list size="1">
<item index="0" class="java.lang.String" itemvalue="javafx.fxml.FXML" />
</list>
</component>
<component name="ProjectKey">
<option name="state" value="project://e79810c8-c5c8-43b1-b19c-90c1f4095425" />
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_11" project-jdk-name="11" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/Genologie.iml" filepath="$PROJECT_DIR$/Genologie.iml" />
</modules>
</component>
</project>

@ -0,0 +1,125 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Palette2">
<group name="Swing">
<item class="com.intellij.uiDesigner.HSpacer" tooltip-text="Horizontal Spacer" icon="/com/intellij/uiDesigner/icons/hspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="1" hsize-policy="6" anchor="0" fill="1" />
</item>
<item class="com.intellij.uiDesigner.VSpacer" tooltip-text="Vertical Spacer" icon="/com/intellij/uiDesigner/icons/vspacer.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="1" anchor="0" fill="2" />
</item>
<item class="javax.swing.JPanel" icon="/com/intellij/uiDesigner/icons/panel.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3" />
</item>
<item class="javax.swing.JScrollPane" icon="/com/intellij/uiDesigner/icons/scrollPane.png" removable="false" auto-create-binding="false" can-attach-label="true">
<default-constraints vsize-policy="7" hsize-policy="7" anchor="0" fill="3" />
</item>
<item class="javax.swing.JButton" icon="/com/intellij/uiDesigner/icons/button.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="3" anchor="0" fill="1" />
<initial-values>
<property name="text" value="Button" />
</initial-values>
</item>
<item class="javax.swing.JRadioButton" icon="/com/intellij/uiDesigner/icons/radioButton.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
<initial-values>
<property name="text" value="RadioButton" />
</initial-values>
</item>
<item class="javax.swing.JCheckBox" icon="/com/intellij/uiDesigner/icons/checkBox.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="3" anchor="8" fill="0" />
<initial-values>
<property name="text" value="CheckBox" />
</initial-values>
</item>
<item class="javax.swing.JLabel" icon="/com/intellij/uiDesigner/icons/label.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="0" anchor="8" fill="0" />
<initial-values>
<property name="text" value="Label" />
</initial-values>
</item>
<item class="javax.swing.JTextField" icon="/com/intellij/uiDesigner/icons/textField.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
<preferred-size width="150" height="-1" />
</default-constraints>
</item>
<item class="javax.swing.JPasswordField" icon="/com/intellij/uiDesigner/icons/passwordField.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
<preferred-size width="150" height="-1" />
</default-constraints>
</item>
<item class="javax.swing.JFormattedTextField" icon="/com/intellij/uiDesigner/icons/formattedTextField.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1">
<preferred-size width="150" height="-1" />
</default-constraints>
</item>
<item class="javax.swing.JTextArea" icon="/com/intellij/uiDesigner/icons/textArea.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JTextPane" icon="/com/intellij/uiDesigner/icons/textPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JEditorPane" icon="/com/intellij/uiDesigner/icons/editorPane.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JComboBox" icon="/com/intellij/uiDesigner/icons/comboBox.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="2" anchor="8" fill="1" />
</item>
<item class="javax.swing.JTable" icon="/com/intellij/uiDesigner/icons/table.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JList" icon="/com/intellij/uiDesigner/icons/list.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="2" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JTree" icon="/com/intellij/uiDesigner/icons/tree.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3">
<preferred-size width="150" height="50" />
</default-constraints>
</item>
<item class="javax.swing.JTabbedPane" icon="/com/intellij/uiDesigner/icons/tabbedPane.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
<preferred-size width="200" height="200" />
</default-constraints>
</item>
<item class="javax.swing.JSplitPane" icon="/com/intellij/uiDesigner/icons/splitPane.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="3" hsize-policy="3" anchor="0" fill="3">
<preferred-size width="200" height="200" />
</default-constraints>
</item>
<item class="javax.swing.JSpinner" icon="/com/intellij/uiDesigner/icons/spinner.png" removable="false" auto-create-binding="true" can-attach-label="true">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
</item>
<item class="javax.swing.JSlider" icon="/com/intellij/uiDesigner/icons/slider.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="8" fill="1" />
</item>
<item class="javax.swing.JSeparator" icon="/com/intellij/uiDesigner/icons/separator.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="6" anchor="0" fill="3" />
</item>
<item class="javax.swing.JProgressBar" icon="/com/intellij/uiDesigner/icons/progressbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1" />
</item>
<item class="javax.swing.JToolBar" icon="/com/intellij/uiDesigner/icons/toolbar.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="6" anchor="0" fill="1">
<preferred-size width="-1" height="20" />
</default-constraints>
</item>
<item class="javax.swing.JToolBar$Separator" icon="/com/intellij/uiDesigner/icons/toolbarSeparator.png" removable="false" auto-create-binding="false" can-attach-label="false">
<default-constraints vsize-policy="0" hsize-policy="0" anchor="0" fill="1" />
</item>
<item class="javax.swing.JScrollBar" icon="/com/intellij/uiDesigner/icons/scrollbar.png" removable="false" auto-create-binding="true" can-attach-label="false">
<default-constraints vsize-policy="6" hsize-policy="0" anchor="0" fill="2" />
</item>
</group>
</component>
</project>

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="" />
</component>
</project>

@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" name="javafx-swt" level="application" />
<orderEntry type="library" name="fontawesomefx-8.1" level="application" />
<orderEntry type="library" name="FX-BorderlessScene-4.0.0" level="application" />
<orderEntry type="module-library">
<library>
<CLASSES>
<root url="jar://$MAVEN_REPOSITORY$/org/jetbrains/annotations/20.1.0/annotations-20.1.0.jar!/" />
</CLASSES>
<JAVADOC />
<SOURCES />
</library>
</orderEntry>
<orderEntry type="library" name="jfoenix-9.0.10" level="application" />
</component>
</module>

@ -0,0 +1,33 @@
/* css */
#borderpane {
-fx-background-color: #252526;
}
#topbar {
-fx-background-color: #0b111a;
}
#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;
}

@ -0,0 +1,108 @@
<?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 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.homeController">
<BorderPane id="borderpane" layoutX="162.0" layoutY="64.0" prefHeight="200.0" prefWidth="200.0" stylesheets="@home.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="@home.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="@home.css" BorderPane.alignment="CENTER">
<Label id="menubutton" onMouseClicked="#menuOpenClicked" onMouseEntered="#menuOpenEntered" stylesheets="@home.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="@home.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="@home.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="@home.css" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
<Text fill="WHITE" layoutX="492.0" layoutY="316.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Dashboard und so, lol.">
<font>
<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="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>
</AnchorPane>
</center>
</BorderPane>
</AnchorPane>

@ -0,0 +1,16 @@
/* css */
#button {
-fx-background-color: #0b111a;
-fx-border-color: white;
}
#button:hover {
-fx-background-color: #111928;
-fx-background-insets: 0;
}
/*style="-fx-background-color: #0b111a; -fx-border-color: white;" */
/*Senet Diving Cup 2017, B C Platform*/
#menubar {
-fx-border-color: white;
-fx-background-color: #0b111a;
}

@ -0,0 +1,84 @@
<?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 de.jensd.fx.glyphs.fontawesome.FontAwesomeIcon?>
<?import javafx.geometry.Insets?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.layout.BorderPane?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.Pane?>
<?import javafx.scene.text.Font?>
<BorderPane fx:id="bpane01" maxHeight="1080.0" maxWidth="1920.0" minHeight="-Infinity" minWidth="-Infinity" onKeyPressed="#pressedkey" prefHeight="700.0" prefWidth="1280.0" style="-fx-background-color: #252526;" xmlns="http://javafx.com/javafx/15.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="controller.homeController">
<left>
<Pane id="slidemenu" fx:id="slidemenu" onMouseEntered="#onMouseHover" onMouseExited="#onMouseExited" prefHeight="700.0" prefWidth="181.0" style="-fx-background-color: #0b111a; -fx-border-color: white;" stylesheets="@home.css" BorderPane.alignment="CENTER">
<Button id="button" layoutX="1.0" mnemonicParsing="false" prefHeight="69.0" prefWidth="180.0" styleClass="slidemenubutton" stylesheets="@home.css" text="Suche" textFill="WHITE" />
<Button id="button" layoutY="69.0" mnemonicParsing="false" prefHeight="69.0" prefWidth="180.0" styleClass="slidemenubutton" stylesheets="@home.css" text="Home" textFill="WHITE" />
<Button id="button" layoutX="1.0" layoutY="136.0" mnemonicParsing="false" prefHeight="69.0" prefWidth="180.0" styleClass="slidemenubutton" stylesheets="@home.css" text="Profile" textFill="WHITE" />
<Button id="button" layoutX="1.0" layoutY="205.0" mnemonicParsing="false" prefHeight="69.0" prefWidth="180.0" styleClass="slidemenubutton" stylesheets="@home.css" text="Stammbaum" textFill="WHITE" />
<Button id="button" layoutX="1.0" layoutY="274.0" mnemonicParsing="false" prefHeight="69.0" prefWidth="180.0" styleClass="slidemenubutton" stylesheets="@home.css" text="Personen" textFill="WHITE" />
<Button id="button" layoutY="343.0" mnemonicParsing="false" prefHeight="69.0" prefWidth="180.0" styleClass="slidemenubutton" stylesheets="@home.css" text="Forschung" textFill="WHITE" />
<Button id="button" layoutY="412.0" mnemonicParsing="false" prefHeight="69.0" prefWidth="180.0" styleClass="slidemenubutton" stylesheets="@home.css" text="Geld" textFill="WHITE" />
<Button id="button" layoutX="1.0" layoutY="481.0" mnemonicParsing="false" prefHeight="69.0" prefWidth="180.0" styleClass="slidemenubutton" stylesheets="@home.css" text="Settings" textFill="WHITE" />
</Pane>
</left>
<top>
<HBox id="menubar" alignment="CENTER_RIGHT" onMouseDragged="#dragged" onMousePressed="#pressed" stylesheets="@home.css" BorderPane.alignment="CENTER">
<BorderPane.margin>
<Insets />
</BorderPane.margin>
<padding>
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0" />
</padding>
<FontAwesomeIcon fill="WHITE" iconName="MINUS" onMouseClicked="#min" textAlignment="JUSTIFY">
<HBox.margin>
<Insets left="5.0" right="5.0" top="5.0" />
</HBox.margin>
</FontAwesomeIcon>
<FontAwesomeIcon fill="WHITE" iconName="CIRCLE" onMouseClicked="#max" textAlignment="JUSTIFY">
<HBox.margin>
<Insets bottom="4.0" left="5.0" right="5.0" top="5.0" />
</HBox.margin>
</FontAwesomeIcon>
<FontAwesomeIcon fill="WHITE" iconName="CLOSE" onMouseClicked="#close">
<HBox.margin>
<Insets bottom="4.0" left="5.0" right="5.0" top="5.0" />
</HBox.margin>
<font>
<Font size="14.0" />
</font>
</FontAwesomeIcon>
</HBox>
</top>
</BorderPane>

@ -0,0 +1,161 @@
package controller;
import javafx.fxml.FXML;
import javafx.geometry.Rectangle2D;
import javafx.scene.Node;
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 helper.menuCloser;
/**
* @author Lukas Martin
*/
public class homeController {
menuCloser mCloser = new menuCloser(); //menu closer
Boolean sliderClicked = false; //Menu slider activated
//Menu slider
@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
}
}

@ -0,0 +1,33 @@
package genologie_app;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
import javafx.stage.StageStyle;
/**
* @author Lukas Martin
*/
public class Main extends Application {
public static void main(String[] args) { //Main function
launch(args); //Starts the program
}
@Override
public void start(Stage primaryStage) { //Start function
try { //Try (check for runtime errors)
Parent root = FXMLLoader.load(getClass().getResource("/resources/home.fxml")); //Gets the start FXML
primaryStage.setTitle("Genologie"); //Sets the title of the start FXML
primaryStage.initStyle(StageStyle.UNDECORATED); //Sets the style of the window to "UNDECORATED"
primaryStage.setScene(new Scene(root, 1280, 680)); //Sets the scene for the start and sets the size
helper.ResizeHelper.addResizeListener(primaryStage); //Test
primaryStage.setResizable(true); //Sets the resizability to true
primaryStage.show(); //Starts the window (therefore the program)
} catch (Exception e) { //Catches the error
e.printStackTrace(); //Prints out the error into the console
}
}
}

@ -0,0 +1,125 @@
package helper;
import javafx.collections.ObservableList;
import javafx.event.EventHandler;
import javafx.event.EventType;
import javafx.scene.Cursor;
import javafx.scene.Node;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.input.MouseEvent;
import javafx.stage.Stage;
//created by Alexander Berg
public class ResizeHelper {
public static void addResizeListener(Stage stage) {
ResizeListener resizeListener = new ResizeListener(stage);
stage.getScene().addEventHandler(MouseEvent.MOUSE_MOVED, resizeListener);
stage.getScene().addEventHandler(MouseEvent.MOUSE_PRESSED, resizeListener);
stage.getScene().addEventHandler(MouseEvent.MOUSE_DRAGGED, resizeListener);
stage.getScene().addEventHandler(MouseEvent.MOUSE_EXITED, resizeListener);
stage.getScene().addEventHandler(MouseEvent.MOUSE_EXITED_TARGET, resizeListener);
ObservableList<Node> children = stage.getScene().getRoot().getChildrenUnmodifiable();
for (Node child : children) {
addListenerDeeply(child, resizeListener);
}
}
public static void addListenerDeeply(Node node, EventHandler<MouseEvent> listener) {
node.addEventHandler(MouseEvent.MOUSE_MOVED, listener);
node.addEventHandler(MouseEvent.MOUSE_PRESSED, listener);
node.addEventHandler(MouseEvent.MOUSE_DRAGGED, listener);
node.addEventHandler(MouseEvent.MOUSE_EXITED, listener);
node.addEventHandler(MouseEvent.MOUSE_EXITED_TARGET, listener);
if (node instanceof Parent) {
Parent parent = (Parent) node;
ObservableList<Node> children = parent.getChildrenUnmodifiable();
for (Node child : children) {
addListenerDeeply(child, listener);
}
}
}
static class ResizeListener implements EventHandler<MouseEvent> {
private Stage stage;
private Cursor cursorEvent = Cursor.DEFAULT;
private int border = 4;
private double startX = 0;
private double startY = 0;
public ResizeListener(Stage stage) {
this.stage = stage;
}
@Override
public void handle(MouseEvent mouseEvent) {
EventType<? extends MouseEvent> mouseEventType = mouseEvent.getEventType();
Scene scene = stage.getScene();
double mouseEventX = mouseEvent.getSceneX(),
mouseEventY = mouseEvent.getSceneY(),
sceneWidth = scene.getWidth(),
sceneHeight = scene.getHeight();
if (MouseEvent.MOUSE_MOVED.equals(mouseEventType) == true) {
if (mouseEventX < border && mouseEventY < border) {
cursorEvent = Cursor.NW_RESIZE;
} else if (mouseEventX < border && mouseEventY > sceneHeight - border) {
cursorEvent = Cursor.SW_RESIZE;
} else if (mouseEventX > sceneWidth - border && mouseEventY < border) {
cursorEvent = Cursor.NE_RESIZE;
} else if (mouseEventX > sceneWidth - border && mouseEventY > sceneHeight - border) {
cursorEvent = Cursor.SE_RESIZE;
} else if (mouseEventX < border) {
cursorEvent = Cursor.W_RESIZE;
} else if (mouseEventX > sceneWidth - border) {
cursorEvent = Cursor.E_RESIZE;
} else if (mouseEventY < border) {
cursorEvent = Cursor.N_RESIZE;
} else if (mouseEventY > sceneHeight - border) {
cursorEvent = Cursor.S_RESIZE;
} else {
cursorEvent = Cursor.DEFAULT;
}
scene.setCursor(cursorEvent);
} else if(MouseEvent.MOUSE_EXITED.equals(mouseEventType) || MouseEvent.MOUSE_EXITED_TARGET.equals(mouseEventType)){
scene.setCursor(Cursor.DEFAULT);
} else if (MouseEvent.MOUSE_PRESSED.equals(mouseEventType) == true) {
startX = stage.getWidth() - mouseEventX;
startY = stage.getHeight() - mouseEventY;
} else if (MouseEvent.MOUSE_DRAGGED.equals(mouseEventType) == true) {
if (Cursor.DEFAULT.equals(cursorEvent) == false) {
if (Cursor.W_RESIZE.equals(cursorEvent) == false && Cursor.E_RESIZE.equals(cursorEvent) == false) {
double minHeight = stage.getMinHeight() > (border*2) ? stage.getMinHeight() : (border*2);
if (Cursor.NW_RESIZE.equals(cursorEvent) == true || Cursor.N_RESIZE.equals(cursorEvent) == true || Cursor.NE_RESIZE.equals(cursorEvent) == true) {
if (stage.getHeight() > minHeight || mouseEventY < 0) {
stage.setHeight(stage.getY() - mouseEvent.getScreenY() + stage.getHeight());
stage.setY(mouseEvent.getScreenY());
}
} else {
if (stage.getHeight() > minHeight || mouseEventY + startY - stage.getHeight() > 0) {
stage.setHeight(mouseEventY + startY);
}
}
}
if (Cursor.N_RESIZE.equals(cursorEvent) == false && Cursor.S_RESIZE.equals(cursorEvent) == false) {
double minWidth = stage.getMinWidth() > (border*2) ? stage.getMinWidth() : (border*2);
if (Cursor.NW_RESIZE.equals(cursorEvent) == true || Cursor.W_RESIZE.equals(cursorEvent) == true || Cursor.SW_RESIZE.equals(cursorEvent) == true) {
if (stage.getWidth() > minWidth || mouseEventX < 0) {
stage.setWidth(stage.getX() - mouseEvent.getScreenX() + stage.getWidth());
stage.setX(mouseEvent.getScreenX());
}
} else {
if (stage.getWidth() > minWidth || mouseEventX + startX - stage.getWidth() > 0) {
stage.setWidth(mouseEventX + startX);
}
}
}
}
}
}
}
}

@ -0,0 +1,61 @@
package helper;
import javafx.scene.layout.Pane;
/**
* @author Lukas Martin
*/
public class menuCloser {
/**
* @param closemenu0 one menu that gets closed
* @author Lukas Martin
*/
public <T0 extends Pane> void closeOneMenu(T0 closemenu0) {
closemenu0.setVisible(false);
}
/**
* @param openmenu the menu that gets opend
* @param closemenu one menu that gets closed
* @author Lukas Martin
*/
public <T0 extends Pane, T1 extends Pane> void openMenu(T0 openmenu, T1 closemenu, Boolean canOpen) {
if (closemenu.isVisible() && canOpen) {
closemenu.setVisible(false);
openmenu.setVisible(true);
} else openmenu.setVisible(!openmenu.isVisible() && canOpen);
}
/**
* @param openmenu the menu that gets opend
* @param closemenu1 one menu that gets closed
* @param closemenu2 one menu that gets closed
* @author Lukas Martin
*/
public <T0 extends Pane, T1 extends Pane, T2 extends Pane> void openMenu(T0 openmenu, T1 closemenu1, T2 closemenu2, Boolean canOpen) {
if (closemenu1.isVisible() || closemenu2.isVisible() && canOpen) {
closemenu1.setVisible(false);
closemenu2.setVisible(false);
openmenu.setVisible(true);
} else openmenu.setVisible(!openmenu.isVisible() && canOpen);
}
/**
* @param openmenu the menu that gets opend
* @param closemenu1 one menu that gets closed
* @param closemenu2 one menu that gets closed
* @param closemenu3 one menu that gets closed
* @author Lukas Martin
*/
public <T0 extends Pane, T1 extends Pane, T2 extends Pane, T3 extends Pane> void openMenu(T0 openmenu, T1 closemenu1, T2 closemenu2, T3 closemenu3, Boolean canOpen) {
if (closemenu1.isVisible() || closemenu2.isVisible() || closemenu3.isVisible() && canOpen) {
closemenu1.setVisible(false);
closemenu2.setVisible(false);
closemenu3.setVisible(false);
openmenu.setVisible(true);
} else openmenu.setVisible(!openmenu.isVisible() && canOpen);
}
}

@ -0,0 +1,14 @@
module Genologie {
requires javafx.fxml;
requires javafx.controls;
requires javafx.base;
requires javafx.graphics;
requires javafx.media;
requires javafx.swing;
requires javafx.web;
requires javafx.swt;
requires FX.BorderlessScene;
opens genologie_app;
opens controller;
}

@ -0,0 +1,34 @@
/* css */
/* Author Lukas Martin */
#borderpane {
-fx-background-color: #252526;
}
#topbar {
-fx-background-color: #0b111a;
}
#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;
}

@ -0,0 +1,108 @@
<?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 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.homeController">
<BorderPane id="borderpane" layoutX="162.0" layoutY="64.0" prefHeight="200.0" prefWidth="200.0" stylesheets="@home.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="@home.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="@home.css" BorderPane.alignment="CENTER">
<Label id="menubutton" onMouseClicked="#menuOpenClicked" onMouseEntered="#menuOpenEntered" stylesheets="@home.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="@home.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="@home.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="@home.css" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
<Text fill="WHITE" layoutX="492.0" layoutY="316.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Dashboard und so, lol.">
<font>
<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="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>
</AnchorPane>
</center>
</BorderPane>
</AnchorPane>

@ -0,0 +1,16 @@
/* css */
#button {
-fx-background-color: #0b111a;
-fx-border-color: white;
}
#button:hover {
-fx-background-color: #111928;
-fx-background-insets: 0;
}
/*style="-fx-background-color: #0b111a; -fx-border-color: white;" */
/*Senet Diving Cup 2017, B C Platform*/
#menubar {
-fx-border-color: white;
-fx-background-color: #0b111a;
}

@ -0,0 +1,84 @@
<?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 de.jensd.fx.glyphs.fontawesome.FontAwesomeIcon?>
<?import javafx.geometry.Insets?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.layout.BorderPane?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.Pane?>
<?import javafx.scene.text.Font?>
<BorderPane fx:id="bpane01" maxHeight="1080.0" maxWidth="1920.0" minHeight="-Infinity" minWidth="-Infinity" onKeyPressed="#pressedkey" prefHeight="700.0" prefWidth="1280.0" style="-fx-background-color: #252526;" xmlns="http://javafx.com/javafx/15.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="controller.homeController">
<left>
<Pane id="slidemenu" fx:id="slidemenu" onMouseEntered="#onMouseHover" onMouseExited="#onMouseExited" prefHeight="700.0" prefWidth="181.0" style="-fx-background-color: #0b111a; -fx-border-color: white;" stylesheets="@home.css" BorderPane.alignment="CENTER">
<Button id="button" layoutX="1.0" mnemonicParsing="false" prefHeight="69.0" prefWidth="180.0" styleClass="slidemenubutton" stylesheets="@home.css" text="Suche" textFill="WHITE" />
<Button id="button" layoutY="69.0" mnemonicParsing="false" prefHeight="69.0" prefWidth="180.0" styleClass="slidemenubutton" stylesheets="@home.css" text="Home" textFill="WHITE" />
<Button id="button" layoutX="1.0" layoutY="136.0" mnemonicParsing="false" prefHeight="69.0" prefWidth="180.0" styleClass="slidemenubutton" stylesheets="@home.css" text="Profile" textFill="WHITE" />
<Button id="button" layoutX="1.0" layoutY="205.0" mnemonicParsing="false" prefHeight="69.0" prefWidth="180.0" styleClass="slidemenubutton" stylesheets="@home.css" text="Stammbaum" textFill="WHITE" />
<Button id="button" layoutX="1.0" layoutY="274.0" mnemonicParsing="false" prefHeight="69.0" prefWidth="180.0" styleClass="slidemenubutton" stylesheets="@home.css" text="Personen" textFill="WHITE" />
<Button id="button" layoutY="343.0" mnemonicParsing="false" prefHeight="69.0" prefWidth="180.0" styleClass="slidemenubutton" stylesheets="@home.css" text="Forschung" textFill="WHITE" />
<Button id="button" layoutY="412.0" mnemonicParsing="false" prefHeight="69.0" prefWidth="180.0" styleClass="slidemenubutton" stylesheets="@home.css" text="Geld" textFill="WHITE" />
<Button id="button" layoutX="1.0" layoutY="481.0" mnemonicParsing="false" prefHeight="69.0" prefWidth="180.0" styleClass="slidemenubutton" stylesheets="@home.css" text="Settings" textFill="WHITE" />
</Pane>
</left>
<top>
<HBox id="menubar" alignment="CENTER_RIGHT" onMouseDragged="#dragged" onMousePressed="#pressed" stylesheets="@home.css" BorderPane.alignment="CENTER">
<BorderPane.margin>
<Insets />
</BorderPane.margin>
<padding>
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0" />
</padding>
<FontAwesomeIcon fill="WHITE" iconName="MINUS" onMouseClicked="#min" textAlignment="JUSTIFY">
<HBox.margin>
<Insets left="5.0" right="5.0" top="5.0" />
</HBox.margin>
</FontAwesomeIcon>
<FontAwesomeIcon fill="WHITE" iconName="CIRCLE" onMouseClicked="#max" textAlignment="JUSTIFY">
<HBox.margin>
<Insets bottom="4.0" left="5.0" right="5.0" top="5.0" />
</HBox.margin>
</FontAwesomeIcon>
<FontAwesomeIcon fill="WHITE" iconName="CLOSE" onMouseClicked="#close">
<HBox.margin>
<Insets bottom="4.0" left="5.0" right="5.0" top="5.0" />
</HBox.margin>
<font>
<Font size="14.0" />
</font>
</FontAwesomeIcon>
</HBox>
</top>
</BorderPane>
Loading…
Cancel
Save