game-card.fxml (1826B)
1 <?xml version="1.0" encoding="UTF-8"?> 2 3 <?import com.jfoenix.controls.JFXButton?> 4 <?import de.jensd.fx.glyphs.materialicons.MaterialIconView?> 5 <?import java.lang.String?> 6 <?import javafx.geometry.Insets?> 7 <?import javafx.scene.Cursor?> 8 <?import javafx.scene.control.Label?> 9 <?import javafx.scene.image.ImageView?> 10 <?import javafx.scene.layout.HBox?> 11 <?import javafx.scene.layout.VBox?> 12 13 <fx:root type="javafx.scene.layout.VBox" prefHeight="300.0" prefWidth="200.0" xmlns="http://javafx.com/javafx/19" 14 xmlns:fx="http://javafx.com/fxml/1"> 15 <children> 16 <ImageView fx:id="imageView" fitHeight="250.0" fitWidth="200.0" pickOnBounds="true"/> 17 <HBox alignment="CENTER_LEFT" prefHeight="50.0" prefWidth="200.0" spacing="15.0"> 18 <children> 19 <JFXButton fx:id="button" alignment="CENTER" contentDisplay="CENTER" minHeight="-Infinity" minWidth="-Infinity" 20 prefHeight="40.0" prefWidth="40.0" styleClass="play-arrow"> 21 <graphic> 22 <MaterialIconView glyphName="PLAY_ARROW" size="30" styleClass="icon"/> 23 </graphic> 24 <cursor> 25 <Cursor fx:constant="HAND"/> 26 </cursor> 27 </JFXButton> 28 <Label fx:id="label"> 29 <styleClass> 30 <String fx:value="title-medium"/> 31 <String fx:value="on-surface-text"/> 32 </styleClass> 33 </Label> 34 </children> 35 <padding> 36 <Insets bottom="5.0" left="5.0" right="5.0" top="5.0"/> 37 </padding> 38 </HBox> 39 </children> 40 <styleClass> 41 <String fx:value="on-surface"/> 42 <String fx:value="rounded"/> 43 </styleClass> 44 </fx:root>