feat: add login.fxml for ui
This commit is contained in:
@@ -0,0 +1,29 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<?import javafx.scene.layout.*?>
|
||||||
|
<?import javafx.scene.control.*?>
|
||||||
|
|
||||||
|
<BorderPane xmlns="http://javafx.com/javafx" xmlns:fx="http://javafx.com/fxml"
|
||||||
|
fx:controller="com.university.chat.Client.UI.LoginController">
|
||||||
|
|
||||||
|
<top>
|
||||||
|
<BorderPane styleClass="title-bar">
|
||||||
|
<center><Label text="Login" styleClass="title-text"/></center>
|
||||||
|
<right>
|
||||||
|
<HBox fx:id="titleBar">
|
||||||
|
<Button text="—" styleClass="title-button" onAction="#minimize"/>
|
||||||
|
<Button text="▢" styleClass="title-button" onAction="#maximize"/>
|
||||||
|
<Button text="✕" styleClass="title-button, title-button-close" onAction="#closeApp"/>
|
||||||
|
</HBox>
|
||||||
|
</right>
|
||||||
|
</BorderPane>
|
||||||
|
</top>
|
||||||
|
|
||||||
|
<center>
|
||||||
|
<VBox alignment="CENTER" maxWidth="300" spacing="15">
|
||||||
|
<Label text="Welcome to UniChat" style="-fx-font-size: 20px; -fx-font-weight: bold;"/>
|
||||||
|
<TextField fx:id="usernameField" promptText="Enter your username"/>
|
||||||
|
<Button fx:id="nameButton" text="Connect" maxWidth="Infinity" onAction="#onConnectClicked"/>
|
||||||
|
</VBox>
|
||||||
|
</center>
|
||||||
|
|
||||||
|
</BorderPane>
|
||||||
Reference in New Issue
Block a user