aboutsummaryrefslogtreecommitdiffstats
path: root/src/main
diff options
context:
space:
mode:
authorDominic Rogetzer <e1627756@student.tuwien.ac.at>2018-06-16 10:43:43 +0200
committerTharre <tharre3@gmail.com>2018-06-16 15:15:32 +0200
commit35af8bad8fd82f69c8050a4a6ea3817e7d997a76 (patch)
tree1fb384f552bc01368ff2c6c1566488e0e2329ba3 /src/main
parent06f8d1e973da89270e653dc4c0441891965d2d5b (diff)
downloadsepm-groupproject-35af8bad8fd82f69c8050a4a6ea3817e7d997a76.tar.gz
sepm-groupproject-35af8bad8fd82f69c8050a4a6ea3817e7d997a76.tar.xz
sepm-groupproject-35af8bad8fd82f69c8050a4a6ea3817e7d997a76.zip
Style add-employee button [#28618]
Diffstat (limited to 'src/main')
-rw-r--r--src/main/resources/fxml/filterEmployeesControl.fxml29
1 files changed, 21 insertions, 8 deletions
diff --git a/src/main/resources/fxml/filterEmployeesControl.fxml b/src/main/resources/fxml/filterEmployeesControl.fxml
index 8f24a74..67d9c78 100644
--- a/src/main/resources/fxml/filterEmployeesControl.fxml
+++ b/src/main/resources/fxml/filterEmployeesControl.fxml
@@ -1,22 +1,35 @@
<?xml version="1.0" encoding="UTF-8"?>
+<?import javafx.geometry.Rectangle2D?>
<?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 style="-fx-background-color: white;"
- xmlns="http://javafx.com/javafx/9.0.1" xmlns:fx="http://javafx.com/fxml/1"
- fx:id="apFilterEmployees"
- prefWidth="${apFilterEmployees.parent.width}"
- prefHeight="80"
+<AnchorPane fx:id="apFilterEmployees" prefHeight="80" prefWidth="${apFilterEmployees.parent.width}"
+ style="-fx-background-color: white;" xmlns="http://javafx.com/javafx/9.0.1"
+ stylesheets="/styles/main.css"
+ xmlns:fx="http://javafx.com/fxml/1"
fx:controller="at.ac.tuwien.sepm.assignment.groupphase.einsatzverwaltung.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"/>
+ 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>
+ <viewport>
+ <Rectangle2D/>
+ </viewport>
+ </ImageView>
+ </graphic>
+ </Button>
</children>
</AnchorPane>