aboutsummaryrefslogtreecommitdiffstats
path: root/ui-desktop/src/main/resources/market/guess/ui/desktop/app_view.fxml
blob: 855b787574a7ed4be595f74727aa0addd915d848 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
<?xml version="1.0" encoding="UTF-8"?>

<?import javafx.geometry.Insets?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.ComboBox?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.ScrollPane?>
<?import javafx.scene.control.Tab?>
<?import javafx.scene.control.TabPane?>
<?import javafx.scene.control.Tooltip?>
<?import javafx.scene.layout.BorderPane?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.Region?>
<?import javafx.scene.layout.StackPane?>
<?import javafx.scene.layout.VBox?>
<?import javafx.scene.shape.SVGPath?>

<StackPane fx:id="rootStack" styleClass="gm-root" xmlns="http://javafx.com/javafx/21" xmlns:fx="http://javafx.com/fxml/1" fx:controller="market.guess.ui.desktop.controllers.AppController">
   <children>
      <!-- Safety net: scrolls only if the viewport gets smaller than AppView.MIN_WIDTH x MIN_HEIGHT. -->
      <ScrollPane fitToHeight="true" fitToWidth="true" styleClass="gm-app-scroll">
         <content>
            <BorderPane fx:id="chrome" styleClass="gm-chrome">
               <top>
                  <VBox>
                     <children>
                        <!-- Window Bar -->
                        <HBox fx:id="windowBar" alignment="CENTER_LEFT" prefHeight="32.0" spacing="10.0" styleClass="gm-bg-panel2, gm-divider-bottom">
                           <padding>
                              <Insets left="14.0" right="14.0" />
                           </padding>
                           <children>
                              <HBox alignment="CENTER_LEFT" spacing="8.0" styleClass="gm-traffic-lights">
                                 <children>
                                    <StackPane maxHeight="12.0" maxWidth="12.0" minHeight="12.0" minWidth="12.0" onMouseClicked="#handleClose" prefHeight="12.0" prefWidth="12.0" styleClass="gm-traffic-dot, gm-traffic-dot-no">
                                       <children>
                                          <SVGPath content="M 0 0 L 5 5 M 5 0 L 0 5" styleClass="gm-traffic-icon" />
                                       </children>
                                    </StackPane>
                                    <StackPane maxHeight="12.0" maxWidth="12.0" minHeight="12.0" minWidth="12.0" onMouseClicked="#handleMinimize" prefHeight="12.0" prefWidth="12.0" styleClass="gm-traffic-dot, gm-traffic-dot-accent">
                                       <children>
                                          <SVGPath content="M 0 2.5 L 6 2.5" styleClass="gm-traffic-icon" />
                                       </children>
                                    </StackPane>
                                    <StackPane maxHeight="12.0" maxWidth="12.0" minHeight="12.0" minWidth="12.0" onMouseClicked="#handleMaximize" prefHeight="12.0" prefWidth="12.0" styleClass="gm-traffic-dot, gm-traffic-dot-yes">
                                       <children>
                                          <SVGPath content="M 0 2.5 L 5 2.5 M 2.5 0 L 2.5 5" styleClass="gm-traffic-icon" />
                                       </children>
                                    </StackPane>
                                 </children>
                              </HBox>
                              <Label styleClass="gm-text-base, gm-font-semibold, gm-text-ink2" text="Guess Market" />
                           </children>
                        </HBox>
                        <!-- Toolbar -->
                        <HBox alignment="CENTER_LEFT" spacing="12.0" styleClass="gm-bg-panel, gm-divider-bottom">
                           <padding>
                              <Insets bottom="12.0" left="16.0" right="16.0" top="12.0" />
                           </padding>
                           <children>
                              <Button minWidth="-Infinity" onAction="#handleLoadFile" styleClass="gm-btn, gm-btn-primary" text="Load File…" />
                              <HBox alignment="CENTER_LEFT" spacing="10.0" styleClass="gm-card-panel2" HBox.hgrow="ALWAYS">
                                 <padding>
                                    <Insets bottom="8.0" left="12.0" right="12.0" top="8.0" />
                                 </padding>
                                 <children>
                                    <Label minWidth="-Infinity" styleClass="gm-text-base, gm-font-medium, gm-text-ink2" text="" />
                                    <Label fx:id="loadedFilePathLabel" maxWidth="1.7976931348623157E308" minWidth="0.0" styleClass="gm-text-base, gm-font-mono, gm-font-medium, gm-text-ink" textOverrun="ELLIPSIS" HBox.hgrow="ALWAYS" />
                                 </children>
                              </HBox>
                              <HBox alignment="CENTER_RIGHT" minWidth="-Infinity" spacing="12.0">
                                 <children>
                                    <Button fx:id="animationsButton" onAction="#handleAnimationsToggled" styleClass="gm-btn, gm-btn-secondary, gm-btn-icon">
                                       <tooltip>
                                          <Tooltip text="Toggle animations" />
                                       </tooltip>
                                    </Button>
                                    <HBox alignment="CENTER_LEFT" spacing="8.0">
                                       <children>
                                          <ComboBox fx:id="skinComboBox" onAction="#handleSkinChanged" styleClass="gm-select-base, gm-select-btn-bg" />
                                       </children>
                                    </HBox>
                                 </children>
                              </HBox>
                           </children>
                        </HBox>
                     </children>
                  </VBox>
               </top>
               <center>
                  <StackPane fx:id="centerContainer">
                     <children>
                        <fx:include fx:id="emptyState" source="controllers/empty_state.fxml" />
                        <TabPane fx:id="tabPane" managed="false" styleClass="gm-tabs" tabClosingPolicy="UNAVAILABLE" visible="false">
                           <tabs>
                              <Tab text="Events">
                                 <content>
                                    <fx:include fx:id="eventsTab" source="controllers/events_tab.fxml" />
                                 </content>
                              </Tab>
                              <Tab text="Users">
                                 <content>
                                    <fx:include fx:id="usersTab" source="controllers/users_tab.fxml" />
                                 </content>
                              </Tab>
                           </tabs>
                        </TabPane>
                        <!-- Overlaid on the right of the tab header; height is bound to the header in AppController -->
                        <HBox fx:id="tabInfo" alignment="CENTER_RIGHT" maxHeight="-Infinity" pickOnBounds="false" spacing="8.0" visible="false" StackPane.alignment="TOP_RIGHT">
                           <padding>
                              <Insets left="4.0" right="20.0" />
                           </padding>
                           <children>
                              <Label fx:id="actingAsLabel" styleClass="gm-text-base, gm-font-medium, gm-text-ink2">
                                 <padding>
                                    <Insets right="12.0" />
                                 </padding>
                              </Label>
                              <Label styleClass="gm-text-base, gm-font-medium, gm-text-ink2" text="ACCOUNT BALANCE" />
                              <Label fx:id="balanceValueLabel" styleClass="gm-font-mono, gm-text-lg, gm-font-semibold, gm-text-accent" />
                           </children>
                        </HBox>
                     </children>
                  </StackPane>
               </center>
               <bottom>
                  <HBox alignment="CENTER_LEFT" prefHeight="30.0" spacing="12.0" styleClass="gm-bg-panel2, gm-divider-top">
                     <padding>
                        <Insets left="14.0" right="14.0" />
                     </padding>
                     <children>
                        <Label fx:id="statusBarLabel" styleClass="gm-text-sm, gm-font-mono, gm-text-ink2" />
                        <Region HBox.hgrow="ALWAYS" />
                        <Button fx:id="ejectButton" onAction="#handleEjectFile" styleClass="gm-link-button" text="󰮑" visible="false" />
                     </children>
                  </HBox>
               </bottom>
            </BorderPane>
         </content>
      </ScrollPane>
      <StackPane fx:id="dialogContainer" mouseTransparent="true" visible="false">
         <children>
            <fx:include fx:id="loadDialog" managed="false" source="controllers/dialog_load.fxml" visible="false" />
            <fx:include fx:id="createEventDialog" managed="false" source="controllers/dialog_create_event.fxml" visible="false" />
            <fx:include fx:id="resolveDialog" managed="false" source="controllers/dialog_resolve.fxml" visible="false" />
         </children>
      </StackPane>
      <StackPane fx:id="toastContainer" mouseTransparent="true" pickOnBounds="false">
         <children>
            <Label fx:id="toastLabel" styleClass="gm-toast" visible="false" StackPane.alignment="BOTTOM_CENTER">
               <StackPane.margin>
                  <Insets bottom="44.0" />
               </StackPane.margin>
            </Label>
         </children>
      </StackPane>
   </children>
</StackPane>