diff options
Diffstat (limited to 'src/main/resources/fxml/filterEmployeesControl.fxml')
-rw-r--r-- | src/main/resources/fxml/filterEmployeesControl.fxml | 32 |
1 files changed, 23 insertions, 9 deletions
diff --git a/src/main/resources/fxml/filterEmployeesControl.fxml b/src/main/resources/fxml/filterEmployeesControl.fxml index 68a6f3e..8f7e72f 100644 --- a/src/main/resources/fxml/filterEmployeesControl.fxml +++ b/src/main/resources/fxml/filterEmployeesControl.fxml @@ -3,17 +3,31 @@ <?import javafx.scene.control.Button?> <?import javafx.scene.control.Label?> <?import javafx.scene.control.TextField?> +<?import javafx.scene.image.Image?> +<?import javafx.scene.image.ImageView?> <?import javafx.scene.layout.AnchorPane?> - -<AnchorPane prefHeight="86.0" prefWidth="740.0" style="-fx-background-color: white;" +<AnchorPane fx:id="apFilterEmployees" prefHeight="80" prefWidth="${apFilterEmployees.parent.width}" + style="-fx-background-color: white;" stylesheets="/styles/main.css" xmlns="http://javafx.com/javafx/9.0.1" xmlns:fx="http://javafx.com/fxml/1" - fx:controller="at.ac.tuwien.sepm.assignment.groupphase.einsatzverwaltung.controller.FilterEmployeesController"> + fx:controller="at.ac.tuwien.sepm.assignment.groupphase.missioncontrol.controller.FilterEmployeesController"> <children> - <Label layoutX="14.0" layoutY="14.0" text="Filtern nach Name"/> - <TextField fx:id="inputFilterString" layoutX="22.0" layoutY="41.0" - onKeyReleased="#onFilterTextChanged" promptText="Name eingeben"/> - <Button layoutX="698.0" layoutY="48.0" mnemonicParsing="false" onAction="#onAddEmployeeClicked" - onInputMethodTextChanged="#onFilterTextChanged" text="Person hinzufügen" - AnchorPane.rightAnchor="10.0"/> + <Label text="Filtern nach Name" AnchorPane.leftAnchor="20.0" + AnchorPane.topAnchor="15.0" styleClass="text-medium, text-bold"/> + <TextField fx:id="inputFilterString" + onKeyReleased="#onFilterTextChanged" promptText="Name eingeben" + styleClass="text-medium" + AnchorPane.leftAnchor="20.0" AnchorPane.topAnchor="45.0"/> + <Button mnemonicParsing="false" onAction="#onAddEmployeeClicked" + onInputMethodTextChanged="#onFilterTextChanged" + style="-fx-background-color: green; -fx-border-width: 1px; -fx-border-radius: 25px; -fx-background-radius: 25px; -fx-border-color: black; -fx-min-width: 50px; -fx-min-height: 50px; -fx-max-width: 50px; -fx-max-height: 50px;" + AnchorPane.bottomAnchor="-10.0" AnchorPane.rightAnchor="10.0"> + <graphic> + <ImageView fitHeight="30.0" fitWidth="30.0" pickOnBounds="true" preserveRatio="true"> + <image> + <Image url="/images/PlusButton.png"/> + </image> + </ImageView> + </graphic> + </Button> </children> </AnchorPane> |