<?xml version="1.0" encoding="UTF-8"?>

<!--suppress JavaFxUnresolvedFxIdReference -->
<?import javafx.geometry.Insets?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.ListView?>
<?import javafx.scene.layout.*?>
<AnchorPane xmlns:fx="http://javafx.com/fxml/1"
            xmlns="http://javafx.com/javafx/11.0.1" fx:controller="fr.insa.clavardator.client.ui.chat.ChatController"
            stylesheets="@../styles.css" styleClass="container">
  <StackPane AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0"
             AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
    <VBox fx:id="chatContainer">
      <fx:include source="chatHeader.fxml" fx:id="chatHeader"/>
      <StackPane VBox.vgrow="ALWAYS">
        <padding>
          <Insets left="10" right="10"/>
        </padding>
        <ListView fx:id="messageList"/>
        <fx:include source="../loadingScreen.fxml" fx:id="loading"/>
      </StackPane>
      <fx:include source="chatFooter.fxml" fx:id="chatFooter"/>
    </VBox>
    <VBox alignment="CENTER" fx:id="emptyContainer" styleClass="container">
      <Label>Cliquez sur utilisateur pour ouvrir la discussion</Label>
    </VBox>
  </StackPane>

</AnchorPane>
