diff --git a/client/app/src/main/java/main/CreateEventController.java b/client/app/src/main/java/main/CreateEventController.java index f98ffd7..132d8af 100644 --- a/client/app/src/main/java/main/CreateEventController.java +++ b/client/app/src/main/java/main/CreateEventController.java @@ -7,9 +7,15 @@ import javafx.scene.Node; import javafx.scene.control.*; import javafx.scene.layout.GridPane; import javafx.stage.Stage; +import javafx.util.StringConverter; +import javafx.util.converter.LocalTimeStringConverter; import res.DataController; import res.Event; +import java.time.LocalTime; +import java.time.format.FormatStyle; +import java.util.Locale; + public class CreateEventController { @FXML @@ -65,8 +71,8 @@ public class CreateEventController { ComboBoxPriotity.getSelectionModel().getSelectedIndex(), checkBoxIsFullDay.isSelected(), checkBoxIsPrivate.isSelected(), - timeStart.toString(), - timeEnd.toString(), + timeStart.getValue().toString(), + timeEnd.getValue().toString(), datePickerDate.getValue().atStartOfDay(), (int) DataController.USER_ID ); diff --git a/client/app/src/main/java/main/MainController.java b/client/app/src/main/java/main/MainController.java index 5354d3a..0b2649d 100644 --- a/client/app/src/main/java/main/MainController.java +++ b/client/app/src/main/java/main/MainController.java @@ -154,7 +154,7 @@ public class MainController { MainApplication.class.getResource("edit-event.fxml")); Scene scene = new Scene(fxmlLoader.load(), 650, 650); scene.getStylesheets().add(Objects.requireNonNull( - MainApplication.class.getResource("edit-event.css")).toExternalForm()); + MainApplication.class.getResource("create-event.css")).toExternalForm()); Stage stage = new Stage(); stage.setTitle("Termin bearbeiten"); stage.setScene(scene); diff --git a/client/app/src/main/resources/main/create-event.css b/client/app/src/main/resources/main/create-event.css index 442c669..0b7b085 100644 --- a/client/app/src/main/resources/main/create-event.css +++ b/client/app/src/main/resources/main/create-event.css @@ -43,4 +43,9 @@ Label{ -fx-max-height: 400px; -fx-wrap-text: true; -fx-font-size: 16px; +} + +.timePicker{ + -fx-background-color: white; + -fx-max-width: 150px; } \ No newline at end of file diff --git a/client/app/src/main/resources/main/edit-event.css b/client/app/src/main/resources/main/edit-event.css deleted file mode 100644 index 442c669..0000000 --- a/client/app/src/main/resources/main/edit-event.css +++ /dev/null @@ -1,46 +0,0 @@ -GridPane{ - -fx-background-color: #3E415F; - -fx-padding: 20px; - -fx-font-size: 20px; - -fx-font-family: Segoe UI; - - -fx-border-insets: 1; - -fx-border-color: #B0B0B0; - -fx-border-style: solid; - -fx-border-width: 2; - -fx-effect: dropshadow(three-pass-box, rgba(100, 100, 100, 1), 24, 0.5, 0, 0); -} - -Label{ - -fx-text-fill: white; - -fx-max-width: 150px; - -fx-min-width: 150px; -} - -.mainLabel{ - -fx-background-color: #8D99AE; - -fx-padding: 10px; - -fx-max-width: 200px; - -fx-min-width: 200px; - -fx-font-weight: bold; - -fx-alignment: center; -} - -.inputField{ - -fx-padding: 10px; -} - -.mainButton{ - -fx-font-weight: bold; -} - -#labelError{ - -fx-font-weight: bold; - -fx-max-width: 1000px; - -fx-text-fill: #ff5555; - -fx-padding: 16px; - -fx-min-height: 140px; - -fx-max-height: 400px; - -fx-wrap-text: true; - -fx-font-size: 16px; -} \ No newline at end of file diff --git a/client/app/src/main/resources/main/edit-event.fxml b/client/app/src/main/resources/main/edit-event.fxml index b3e3021..1d56f3d 100644 --- a/client/app/src/main/resources/main/edit-event.fxml +++ b/client/app/src/main/resources/main/edit-event.fxml @@ -5,7 +5,7 @@ -