diff options
| -rw-r--r-- | src/main/resources/fxml/CreateOperationController.fxml | 30 | ||||
| -rw-r--r-- | src/main/resources/styles/main.css | 4 | 
2 files changed, 25 insertions, 9 deletions
diff --git a/src/main/resources/fxml/CreateOperationController.fxml b/src/main/resources/fxml/CreateOperationController.fxml index 88fe26a..54e08b0 100644 --- a/src/main/resources/fxml/CreateOperationController.fxml +++ b/src/main/resources/fxml/CreateOperationController.fxml @@ -10,19 +10,31 @@  <?import javafx.scene.layout.FlowPane?>  <?import javafx.scene.text.Font?> +<?import javafx.scene.control.ScrollPane?> +<?import javafx.geometry.Insets?>  <AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity"    prefHeight="650.0" prefWidth="1200.0" xmlns="http://javafx.com/javafx/9.0.1"    xmlns:fx="http://javafx.com/fxml/1"    fx:controller="at.ac.tuwien.sepm.assignment.groupphase.einsatzverwaltung.userInterface.CreateOperationController"    stylesheets="@/styles/main.css"> -  <AnchorPane prefHeight="182.0" style="-fx-background-color: #2D75B6;" AnchorPane.leftAnchor="0.0" AnchorPane.topAnchor="0.0" AnchorPane.rightAnchor="0.0"/> +  <ScrollPane layoutX="34.0" prefWidth="932.0" AnchorPane.bottomAnchor="0" AnchorPane.topAnchor="222" vbarPolicy="NEVER"> +    <FlowPane fx:id="fpVehicles" hgap="12" vgap="12" prefWidth="918"> +      <padding> +        <Insets topRightBottomLeft="6"/> +      </padding> +    </FlowPane> +  </ScrollPane> +  <AnchorPane prefHeight="182.0" style="-fx-background-color: #2D75B6;" AnchorPane.leftAnchor="0.0" +    AnchorPane.topAnchor="0.0" AnchorPane.rightAnchor="0.0"/>    <AnchorPane fx:id="apCreateOperation" layoutX="40.0" layoutY="71.0" prefHeight="151.0"      prefWidth="920.0"      styleClass="shadowed-white"> -    <Label layoutX="14.0" layoutY="14.0" prefHeight="30.0" prefWidth="62.0" text="Code" styleClass="text-medium"/> +    <Label layoutX="14.0" layoutY="14.0" prefHeight="30.0" prefWidth="62.0" text="Code" +      styleClass="text-medium"/>      <Label layoutX="185.0" layoutY="14.0" prefHeight="30.0" prefWidth="94.0" text="Adresse"        styleClass="text-medium"/> -    <Label layoutX="587.0" layoutY="14.0" prefHeight="30.0" prefWidth="121.0" text="Anmerkung" styleClass="text-medium"/> +    <Label layoutX="587.0" layoutY="14.0" prefHeight="30.0" prefWidth="121.0" text="Anmerkung" +      styleClass="text-medium"/>      <TextField fx:id="txtCode" layoutX="14.0" layoutY="48.0" prefHeight="39.0"        prefWidth="163.0" styleClass="text-big">        <font> @@ -45,7 +57,8 @@        text="Fahrzeuge:" styleClass="text-medium"/>      <Label fx:id="lblChosenVehicles" layoutX="116.0" layoutY="102.0" prefHeight="30.0"        prefWidth="610.0" text="keine ausgewählt" styleClass="text-big"/> -    <Button fx:id="btnCreateOperation" layoutX="747.0" styleClass="text-big" layoutY="95.0" mnemonicParsing="false" +    <Button fx:id="btnCreateOperation" layoutX="747.0" styleClass="text-big" layoutY="95.0" +      mnemonicParsing="false"        onAction="#createOperationClicked" prefHeight="0.0" prefWidth="158.0" text="Erstellen">        <font>          <Font name="System Bold"/> @@ -55,10 +68,12 @@    <Hyperlink layoutX="44.0" layoutY="38.0" onAction="#onRegistrationLinkClicked" text="Anmeldungen"      textFill="WHITE" styleClass="text-small">    </Hyperlink> -  <Hyperlink layoutX="802.0" layoutY="38.0" onAction="#onEmployeeLinkClicked" text="Personen" styleClass="text-small" +  <Hyperlink layoutX="802.0" layoutY="38.0" onAction="#onEmployeeLinkClicked" text="Personen" +    styleClass="text-small"      textFill="WHITE">    </Hyperlink> -  <Hyperlink layoutX="877.0" layoutY="38.0" onAction="#onVehicleLinkClicked" text="Fahrzeuge" styleClass="text-small" +  <Hyperlink layoutX="877.0" layoutY="38.0" onAction="#onVehicleLinkClicked" text="Fahrzeuge" +    styleClass="text-small"      textFill="WHITE">    </Hyperlink>    <!--<AnchorPane fx:id="apActiveOperations" layoutX="968.0" layoutY="71.0" prefHeight="315.0" prefWidth="207.0" style="-fx-background-color: white; -fx-effect: dropshadow(gaussian, rgba(0.5,0.5,0.5,0.8), 5, 0, 0, 3);">--> @@ -73,7 +88,4 @@      <Label layoutY="12.0" text="Archiv" styleClass="text-medium" AnchorPane.rightAnchor="12">      </Label>    </AnchorPane> -  <FlowPane fx:id="fpVehicles" hgap="12" layoutX="40.0" layoutY="228.0" prefHeight="388.0" -    prefWidth="920.0" vgap="12"> -  </FlowPane>  </AnchorPane> diff --git a/src/main/resources/styles/main.css b/src/main/resources/styles/main.css index 11a069e..c4af039 100644 --- a/src/main/resources/styles/main.css +++ b/src/main/resources/styles/main.css @@ -25,4 +25,8 @@    -fx-background-color: darkgreen;    -fx-text-fill: white;    -fx-font-weight: bold; +} + +.scroll-pane { +  -fx-background-color:transparent;  }
\ No newline at end of file  | 
