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
3.2 KiB
67 lines
3.2 KiB
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<?import com.jfoenix.controls.JFXListView?>
|
|
<?import javafx.geometry.Insets?>
|
|
<?import javafx.scene.control.Button?>
|
|
<?import javafx.scene.control.Label?>
|
|
<?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 org.kordamp.ikonli.javafx.FontIcon?>
|
|
|
|
<!-- <?import com.example.javafx.control.UserBox?> -->
|
|
<!-- fx:controller="com.example.javafx.controller.SimpleUiController" -->
|
|
|
|
<BorderPane fx:id="chatMainPane" minWidth="800.0" prefHeight="600.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="CENTER" prefHeight="200.0" prefWidth="175.0" BorderPane.alignment="CENTER">
|
|
<children>
|
|
<JFXListView fx:id="usersListView" prefHeight="561.0" prefWidth="175.0" styleClass="my-list-view" VBox.vgrow="ALWAYS" />
|
|
</children>
|
|
</VBox>
|
|
</left>
|
|
<center>
|
|
<VBox alignment="CENTER" prefHeight="200.0" prefWidth="100.0" spacing="5.0" BorderPane.alignment="CENTER">
|
|
<children>
|
|
<BorderPane prefHeight="41.0" prefWidth="620.0">
|
|
<center>
|
|
<HBox fx:id="selectedUserBox" alignment="CENTER" spacing="5.0" styleClass="chat-background">
|
|
<children>
|
|
<Label id="currentUser" fx:id="curUsr" styleClass="text-white" text="User1" />
|
|
<Label id="lastActive" fx:id="lastActiveLabel" styleClass="text-white" text="User2" />
|
|
<Label id="online" fx:id="isOnlineLabel" styleClass="text-white" text="User2" />
|
|
</children>
|
|
</HBox>
|
|
</center>
|
|
</BorderPane>
|
|
<JFXListView fx:id="chatListView" minWidth="100.0" prefHeight="477.0" prefWidth="608.0" styleClass="my-list-view" VBox.vgrow="ALWAYS" />
|
|
<HBox prefHeight="50.0" prefWidth="790.0" spacing="2.0" styleClass="chat-background">
|
|
<children>
|
|
<TextArea fx:id="chatInput" prefHeight="15.0" prefWidth="250.0" HBox.hgrow="ALWAYS" />
|
|
<FlowPane alignment="CENTER" hgap="2.0" prefHeight="50.0" prefWidth="181.0">
|
|
<children>
|
|
|
|
<Button fx:id="logoutButton" onAction="#actionLogout" styleClass="btn, btn-primary" text="Logout" />
|
|
<Button fx:id="submitButton" style="-fx-background-color: transparent;">
|
|
<graphic>
|
|
<FontIcon accessibleText="Submit" fill="#2f91c9" iconLiteral="fa-chevron-circle-right" iconSize="40" />
|
|
</graphic>
|
|
</Button>
|
|
|
|
</children>
|
|
</FlowPane>
|
|
</children>
|
|
</HBox>
|
|
</children>
|
|
<BorderPane.margin>
|
|
<Insets left="5.0" />
|
|
</BorderPane.margin>
|
|
</VBox>
|
|
</center>
|
|
<!-- <stylesheets>
|
|
<URL value="@../styles/chat.css" />
|
|
<URL value="@../styles/bootstrapfx.css" />
|
|
</stylesheets> -->
|
|
</BorderPane>
|