aboutsummaryrefslogtreecommitdiffstats
path: root/ui-fx/src/main/resources/market/guess/ui/desktop
diff options
context:
space:
mode:
Diffstat (limited to 'ui-fx/src/main/resources/market/guess/ui/desktop')
-rw-r--r--ui-fx/src/main/resources/market/guess/ui/desktop/app_view.fxml13
-rw-r--r--ui-fx/src/main/resources/market/guess/ui/desktop/controllers/chat_panel.fxml36
-rw-r--r--ui-fx/src/main/resources/market/guess/ui/desktop/theme.css8
3 files changed, 57 insertions, 0 deletions
diff --git a/ui-fx/src/main/resources/market/guess/ui/desktop/app_view.fxml b/ui-fx/src/main/resources/market/guess/ui/desktop/app_view.fxml
index 3a34a7e..8dd7b4c 100644
--- a/ui-fx/src/main/resources/market/guess/ui/desktop/app_view.fxml
+++ b/ui-fx/src/main/resources/market/guess/ui/desktop/app_view.fxml
@@ -131,6 +131,11 @@
131 <children> 131 <children>
132 <Label fx:id="statusBarLabel" styleClass="gm-text-sm, gm-font-mono, gm-text-ink2" /> 132 <Label fx:id="statusBarLabel" styleClass="gm-text-sm, gm-font-mono, gm-text-ink2" />
133 <Region HBox.hgrow="ALWAYS" /> 133 <Region HBox.hgrow="ALWAYS" />
134 <Button fx:id="chatButton" onAction="#handleChatToggled" styleClass="gm-link-button">
135 <tooltip>
136 <Tooltip text="Chat" />
137 </tooltip>
138 </Button>
134 <Button fx:id="ejectButton" onAction="#handleEjectFile" styleClass="gm-link-button" text="󰮑" visible="false" /> 139 <Button fx:id="ejectButton" onAction="#handleEjectFile" styleClass="gm-link-button" text="󰮑" visible="false" />
135 </children> 140 </children>
136 </HBox> 141 </HBox>
@@ -138,6 +143,14 @@
138 </BorderPane> 143 </BorderPane>
139 </content> 144 </content>
140 </ScrollPane> 145 </ScrollPane>
146 <StackPane alignment="BOTTOM_RIGHT" pickOnBounds="false">
147 <padding>
148 <Insets bottom="30.0" right="14.0" />
149 </padding>
150 <children>
151 <fx:include fx:id="chatPanel" managed="false" source="controllers/chat_panel.fxml" visible="false" />
152 </children>
153 </StackPane>
141 <StackPane fx:id="dialogContainer" mouseTransparent="true" visible="false"> 154 <StackPane fx:id="dialogContainer" mouseTransparent="true" visible="false">
142 <children> 155 <children>
143 <fx:include fx:id="loadDialog" managed="false" source="controllers/dialog_load.fxml" visible="false" /> 156 <fx:include fx:id="loadDialog" managed="false" source="controllers/dialog_load.fxml" visible="false" />
diff --git a/ui-fx/src/main/resources/market/guess/ui/desktop/controllers/chat_panel.fxml b/ui-fx/src/main/resources/market/guess/ui/desktop/controllers/chat_panel.fxml
new file mode 100644
index 0000000..8c65cb1
--- /dev/null
+++ b/ui-fx/src/main/resources/market/guess/ui/desktop/controllers/chat_panel.fxml
@@ -0,0 +1,36 @@
1<?xml version="1.0" encoding="UTF-8"?>
2
3<?import javafx.geometry.Insets?>
4<?import javafx.scene.control.Button?>
5<?import javafx.scene.control.Label?>
6<?import javafx.scene.control.ScrollPane?>
7<?import javafx.scene.control.TextField?>
8<?import javafx.scene.layout.HBox?>
9<?import javafx.scene.layout.VBox?>
10
11<VBox maxHeight="380.0" maxWidth="320.0" minWidth="320.0" pickOnBounds="false" prefHeight="380.0" prefWidth="320.0" xmlns="http://javafx.com/javafx/21" xmlns:fx="http://javafx.com/fxml/1" fx:controller="market.guess.ui.desktop.controllers.ChatPanelController">
12 <padding>
13 <Insets bottom="6.0" />
14 </padding>
15 <children>
16 <VBox pickOnBounds="false" spacing="8.0" styleClass="gm-card, gm-chat-drawer" VBox.vgrow="ALWAYS">
17 <padding>
18 <Insets bottom="12.0" left="12.0" right="12.0" top="12.0" />
19 </padding>
20 <children>
21 <Label styleClass="gm-text-base, gm-font-semibold, gm-text-ink" text="Chat" />
22 <ScrollPane fx:id="scroll" fitToWidth="true" hbarPolicy="NEVER" styleClass="gm-scroll-transparent" VBox.vgrow="ALWAYS">
23 <content>
24 <VBox fx:id="messages" spacing="9.0" />
25 </content>
26 </ScrollPane>
27 <HBox spacing="8.0">
28 <children>
29 <TextField fx:id="input" onAction="#handleSend" promptText="Message everyone" styleClass="gm-textfield" HBox.hgrow="ALWAYS" />
30 <Button minWidth="-Infinity" onAction="#handleSend" styleClass="gm-btn, gm-btn-primary" text="Send" />
31 </children>
32 </HBox>
33 </children>
34 </VBox>
35 </children>
36</VBox>
diff --git a/ui-fx/src/main/resources/market/guess/ui/desktop/theme.css b/ui-fx/src/main/resources/market/guess/ui/desktop/theme.css
index 3f5d4b7..2f8246e 100644
--- a/ui-fx/src/main/resources/market/guess/ui/desktop/theme.css
+++ b/ui-fx/src/main/resources/market/guess/ui/desktop/theme.css
@@ -523,6 +523,14 @@
523 -fx-border-width: 0; 523 -fx-border-width: 0;
524} 524}
525 525
526.gm-link-button:selected {
527 -fx-text-fill: -gm-accent;
528}
529
530.gm-chat-drawer {
531 -fx-effect: dropshadow(gaussian, rgba(0, 0, 0, 0.3), 18, 0, 0, 4);
532}
533
526.gm-toast { 534.gm-toast {
527 -fx-background-color: -gm-ink; 535 -fx-background-color: -gm-ink;
528 -fx-text-fill: -gm-bg; 536 -fx-text-fill: -gm-bg;