Basic structure for GUI

This commit is contained in:
Clément
2025-03-05 23:29:58 +01:00
parent f87145ed69
commit 6950810b95
3 changed files with 44 additions and 6 deletions

View File

@@ -7,6 +7,6 @@
<StackPane xmlns="http://javafx.com/javafx" xmlns:fx="http://javafx.com/fxml"
fx:controller="client.ClientLoading" style="-fx-background-color: lightgrey;">
<Arc fx:id="spinnerArc" centerX="50" centerY="50" radiusX="30" radiusY="30"
startAngle="30" length="330" fill="transparent" stroke="blue" strokeWidth="5"
startAngle="30" length="330" fill="transparent" stroke="blue" strokeWidth="5" onMouseClicked="#login"
/>
</StackPane>

View File

@@ -7,15 +7,39 @@
<?import javafx.scene.layout.*?>
<?import javafx.geometry.Insets?>
<?import javafx.scene.image.ImageView?>
<?import javafx.scene.image.Image?>
<AnchorPane xmlns="http://javafx.com/javafx"
xmlns:fx="http://javafx.com/fxml"
fx:controller="client.ClientGuiController"
prefHeight="400.0" prefWidth="600.0">
<HBox>
<VBox>
<padding>
<Insets bottom="20.0" left="20.0" right="20.0" top="20.0"/>
</padding>
</HBox>
<!-- Logo -->
<HBox alignment="CENTER">
<ImageView fitHeight="50.0" fitWidth="50.0">
<Image url="@/liscord.png" />
</ImageView>
<Label text="Liscord" style="-fx-font-size: 24px; -fx-font-weight: bold; -fx-padding: 0 0 0 10px"/>
</HBox>
<!-- Client -->
<HBox>
<!-- Rooms -->
<ScrollPane>
<VBox fx:id="rooms" spacing="10.0">
<Label text="Rooms" style="-fx-font-size: 18px;"/>
<VBox fx:id="roomList" spacing="5.0"/>
</VBox>
</ScrollPane>
<!-- Chat -->
<ScrollPane>
<VBox fx:id="chat" spacing="10.0">
<Label text="Chat" style="-fx-font-size: 18px;"/>
<VBox fx:id="chatList" spacing="5.0"/>
</VBox>
</ScrollPane>
</HBox>
</VBox>
</AnchorPane>