WIP desktop client for Chatto reimplemented in ScalaFX and Sapphire Framework
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

67 lines
2.8 KiB

<?xml version="1.0" encoding="UTF-8" ?>
<?import java.net.URL ?>
<?import javafx.geometry.Insets ?>
<?import javafx.scene.control.Button ?>
<?import javafx.scene.control.Label ?>
<?import javafx.scene.control.ListView ?>
<?import javafx.scene.control.TextArea ?>
<?import javafx.scene.layout.BorderPane ?>
<?import javafx.scene.layout.FlowPane ?>
<?import javafx.scene.layout.HBox ?>
<?import javafx.scene.layout.VBox ?>
<!-- <?import com.example.javafx.control.UserBox?> -->
<!-- fx:controller="com.example.javafx.controller.SimpleUiController" -->
<BorderPane minHeight="533.0" minWidth="800.0" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="wow.doge.chatto.controller.ChatController">
<left>
<VBox fx:id="usersVBox" alignment="TOP_CENTER" prefHeight="200.0" prefWidth="175.0" BorderPane.alignment="CENTER">
<children>
<Button mnemonicParsing="false" styleClass="userButton" text="User1" VBox.vgrow="ALWAYS">
<VBox.margin>
<Insets />
</VBox.margin>
</Button>
<Button mnemonicParsing="false" styleClass="userButton" text="User2">
<VBox.margin>
<Insets />
</VBox.margin>
</Button>
</children>
</VBox>
</left>
<center>
<VBox prefHeight="200.0" prefWidth="100.0" spacing="5.0" BorderPane.alignment="CENTER">
<children>
<ListView fx:id="chatListView" prefHeight="792.0" prefWidth="610.0" />
<TextArea id="chatTextArea" fx:id="chatTextArea" editable="false" prefHeight="474.0" prefWidth="690.0" styleClass="lead" visible="false" VBox.vgrow="ALWAYS">
<VBox.margin>
<Insets />
</VBox.margin>
</TextArea>
<HBox prefHeight="50.0" prefWidth="790.0" spacing="2.0">
<children>
<Label fx:id="label" contentDisplay="CENTER" maxWidth="100.0" prefHeight="30.0" prefWidth="52.0" text="Label" />
<TextArea fx:id="chatInput" prefHeight="15.0" prefWidth="250.0" HBox.hgrow="ALWAYS" />
<FlowPane alignment="CENTER" hgap="2.0" prefHeight="47.0" prefWidth="221.0">
<children>
<Button fx:id="logoutButton" styleClass="btn, btn-primary" text="Logout" />
<Button fx:id="submitButton" styleClass="btn, btn-primary" text="Submit" />
</children>
</FlowPane>
</children>
</HBox>
</children>
<BorderPane.margin>
<Insets left="5.0" />
</BorderPane.margin>
</VBox>
</center>
<stylesheets>
<URL value="@../styles/ui.css" />
<URL value="@../styles/bootstrapfx.css" />
</stylesheets>
</BorderPane>