css + png hinzugefügt

This commit is contained in:
Richard Reiswich 2023-01-18 02:41:25 +01:00
parent f8673ca92a
commit a7bcaf13ce
22 changed files with 120 additions and 25 deletions

View File

@ -2,7 +2,6 @@ package com.bib.essensbestellungsverwaltung;
import javafx.application.Application;
import javafx.fxml.FXMLLoader;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
@ -10,17 +9,17 @@ import java.io.IOException;
public class HelloApplication extends Application {
@Override
public void start(Stage primaryStage) throws IOException {
Parent fxmlStartSeiteLoader = FXMLLoader.load(HelloApplication.class.getResource("menue-view.fxml"));
public void start(Stage stage) throws IOException {
FXMLLoader fxmlLoader = new FXMLLoader(HelloApplication.class.getResource("hello-view.fxml"));
/**
* @author: Reshad Meher
* @autor: Reshad Meher
* Fenstergrößer
* Fenstertitle
*/
primaryStage.setTitle("Essen Bestellung im Kindergarten");
primaryStage.setScene(new Scene(fxmlStartSeiteLoader,950,480));
primaryStage.show();
Scene scene = new Scene(fxmlLoader.load(), 480, 280);
stage.setTitle("Essen Bestellung im Kindergarten");
stage.setScene(scene);
stage.show();
}
public static void main(String[] args) {

View File

@ -1,4 +0,0 @@
package com.bib.essensbestellungsverwaltung;
public class LaunchController {
}

View File

@ -1,24 +1,12 @@
package com.bib.essensbestellungsverwaltung;
import javafx.event.ActionEvent;
import javafx.fxml.FXMLLoader;
import javafx.scene.Node;
import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.stage.Stage;
import java.io.IOException;
import java.util.Objects;
public class SceneController {
private Stage stage;
private Scene scene;
private Parent root;
public void switchToLoginScene(ActionEvent event) throws IOException{
Parent root = FXMLLoader.load(getClass().getResource("login-view.fxml"));
stage = (Stage) ((Node)event.getSource()).getScene().getWindow();
scene = new Scene(root);
stage.setScene(scene);
stage.show();
}
}

View File

@ -0,0 +1,12 @@
#buttons:hover{
-fx-underline: true;
-fx-background-color: rgba(85, 103, 136, 0.64);
}
#optionsContainer{
-fx-background-color: lightblue;
}
#optionsContainer{
-fx-background-color: darkblue;
}

View File

@ -0,0 +1,5 @@
#btAddChild{
-fx-background-color: lightblue;
-fx-border-color: transparent;
-fx-text-fill: white;
}

View File

@ -0,0 +1,26 @@
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.image.Image?>
<?import javafx.scene.image.ImageView?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.text.Font?>
<?import javafx.scene.text.Text?>
<AnchorPane prefHeight="400.0" prefWidth="600.0" stylesheets="@deleteChild.css" xmlns="http://javafx.com/javafx/19" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.bib.essensbestellungsverwaltung.ParentController">
<children>
<Text layoutX="253.0" layoutY="180.0" strokeType="OUTSIDE" strokeWidth="0.0" text="[Name vom Kind] löschen?" wrappingWidth="274.130859375">
<font>
<Font size="23.0" />
</font>
</Text>
<ImageView fitHeight="150.0" fitWidth="200.0" layoutX="66.0" layoutY="97.0" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@pics/trash-can.png" />
</image>
</ImageView>
<Button id="btDeletConfim" layoutX="390.0" layoutY="315.0" mnemonicParsing="false" prefHeight="53.0" prefWidth="141.0" text="Bestätigen" />
<Button id="btDeleteDeny" layoutX="71.0" layoutY="315.0" mnemonicParsing="false" prefHeight="53.0" prefWidth="141.0" text="zurück" />
</children>
</AnchorPane>

View File

@ -0,0 +1,18 @@
#btDeletConfim{
-fx-background-color: lightblue;
-fx-text-fill: white;
}
#btDeletConfim:hover{
-fx-underline: true;
-fx-text-fill: black;
}
#btDeleteDeny{
-fx-background-color: transparent;
-fx-underline: true;
}
#btDeleteDeny:hover{
-fx-text-fill: lightblue;
}

View File

@ -0,0 +1,25 @@
#btFoodChoice{
-fx-background-color: transparent;
}
#btFoodChoice:hover{
-fx-underline: true;
-fx-text-fill: black;
}
#btPlaceOrder{
-fx-background-color: lightblue;
-fx-text-fill: white;
-fx-background-radius: 25;
}
#btPlaceOrder:hover{
-fx-border-width: 0;
-fx-text-fill: black;
-fx-underline: true;
}
#cbChooseChild{
-fx-background-color: lightgray;
}

View File

@ -0,0 +1,26 @@
#contentContainer{
-fx-background-color: #add8e6;
}
#contentContainer2{
-fx-background-color: lightblue;
}
#contentButton{
-fx-background-color: transparent;
}
#contentButton:hover{
-fx-underline: true;
-fx-background-color: #78939d;
-fx-text-fill: white;
}
#btLogOut{
-fx-background-color: transparent;
-fx-pref-height: 40px;
}
#btLogOut:hover{
-fx-underline: true;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB