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

<!--suppress JavaFxUnresolvedFxIdReference -->
<?import javafx.scene.layout.*?>
<StackPane xmlns:fx="http://javafx.com/fxml/1"
           xmlns="http://javafx.com/javafx/11.0.1"
           fx:controller="fr.insa.clavardator.client.ui.MainController"
           stylesheets="@styles.css"
           styleClass="container"
           fx:id="root">
  <StackPane fx:id="mainContainer">
    <fx:include source="dialogs/editUsernameDialog.fxml" fx:id="editUserDialog"/>
    <fx:include source="dialogs/aboutDialog.fxml" fx:id="aboutDialog"/>
    <VBox>
      <fx:include source="toolbar.fxml" fx:id="toolbar"/>
      <HBox VBox.vgrow="ALWAYS">
        <fx:include source="users/userList.fxml" fx:id="list"/>
        <fx:include source="chat/chat.fxml" fx:id="chat" HBox.hgrow="ALWAYS"/>
      </HBox>
    </VBox>
  </StackPane>
  <fx:include source="errorScreen.fxml" fx:id="error"/>
  <fx:include source="loadingScreen.fxml" fx:id="loading"/>
</StackPane>
