-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
105 additions
and
24 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
client/src/main/java/de/schlunzis/client/controller/MainMenuController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package de.schlunzis.client.controller; | ||
|
||
import com.google.common.eventbus.EventBus; | ||
import javafx.fxml.FXML; | ||
import lombok.extern.slf4j.Slf4j; | ||
import org.springframework.stereotype.Component; | ||
|
||
@Slf4j | ||
@Component | ||
public class MainMenuController { | ||
|
||
private final EventBus eventBus; | ||
|
||
public MainMenuController(EventBus eventBus) { | ||
this.eventBus = eventBus; | ||
eventBus.register(this); | ||
} | ||
|
||
@FXML | ||
private void logout() { | ||
log.info("Logout button clicked"); | ||
// TODO implement, see issue | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,6 @@ | |
public enum Scene { | ||
|
||
LOGIN, | ||
CHAT; | ||
MAIN | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
GridPane { | ||
-fx-pref-width: 500px; | ||
-fx-pref-height: 250px; | ||
-fx-alignment: center; | ||
-fx-hgap: 10px; | ||
-fx-vgap: 10px; | ||
-fx-padding: 20px; | ||
-fx-background-color: #ffffff; | ||
} | ||
|
||
Label { | ||
-fx-text-fill: black; | ||
} | ||
|
||
TextField, PasswordField { | ||
-fx-padding: 10px; | ||
-fx-pref-width: 300px; | ||
} | ||
|
||
#loginButton { | ||
-fx-max-width: 99999px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
* { | ||
-fx-font-size: 14px; | ||
} | ||
|
||
Button { | ||
-fx-pref-height: 40px; | ||
-fx-background-color: #8f8f8f; | ||
-fx-text-fill: white; | ||
} | ||
|
||
Button:hover { | ||
-fx-background-color: #c2c2c2; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
|
||
<?import javafx.scene.control.Button?> | ||
<?import javafx.scene.layout.AnchorPane?> | ||
<?import java.net.URL?> | ||
<AnchorPane xmlns:fx="http://javafx.com/fxml" | ||
xmlns="http://javafx.com/javafx" | ||
fx:controller="de.schlunzis.client.controller.MainMenuController" | ||
prefHeight="400.0" prefWidth="600.0"> | ||
<stylesheets> | ||
<URL value="@css/style.css"/> | ||
</stylesheets> | ||
|
||
<fx:include source="chat.fxml"/> | ||
<Button mnemonicParsing="false" onAction="#logout" text="Logout"/> | ||
|
||
</AnchorPane> |