148 lines
5.3 KiB
XML
148 lines
5.3 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
|
|
<?import com.jfoenix.controls.JFXButton?>
|
|
<?import com.jfoenix.controls.JFXSlider?>
|
|
<?import javafx.geometry.Insets?>
|
|
<?import javafx.scene.control.Label?>
|
|
<?import javafx.scene.image.Image?>
|
|
<?import javafx.scene.image.ImageView?>
|
|
<?import javafx.scene.layout.AnchorPane?>
|
|
<?import javafx.scene.layout.HBox?>
|
|
<?import javafx.scene.layout.VBox?>
|
|
<?import javafx.scene.text.Font?>
|
|
|
|
<AnchorPane fx:id="panePlayer" prefHeight="720.0" prefWidth="1280.0" style="-fx-background-color: black;" xmlns="http://javafx.com/javafx/11.0.1" xmlns:fx="http://javafx.com/fxml/1">
|
|
<children>
|
|
<HBox alignment="CENTER" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
|
|
<children>
|
|
<ImageView fx:id="videoImageView" pickOnBounds="true" preserveRatio="true" />
|
|
</children>
|
|
</HBox>
|
|
<HBox fx:id="hBoxTop" alignment="CENTER_LEFT" spacing="10.0" style="-fx-background-color: linear-gradient(to bottom, #000000aa, #00000000);" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" AnchorPane.topAnchor="0.0">
|
|
<children>
|
|
<JFXButton fx:id="btnBack" contentDisplay="GRAPHIC_ONLY" onAction="#btnBackAction">
|
|
<graphic>
|
|
<ImageView fitHeight="24.0" pickOnBounds="true" preserveRatio="true">
|
|
<image>
|
|
<Image url="@../icons/baseline_keyboard_backspace_white_48dp.png" />
|
|
</image>
|
|
</ImageView>
|
|
</graphic>
|
|
</JFXButton>
|
|
<Label fx:id="lblTitle" text="Title" textFill="WHITE">
|
|
<font>
|
|
<Font size="20.0" />
|
|
</font>
|
|
</Label>
|
|
</children>
|
|
<padding>
|
|
<Insets left="5.0" right="5.0" top="5.0" />
|
|
</padding>
|
|
</HBox>
|
|
<VBox fx:id="bottomVBox" alignment="CENTER" style="-fx-background-color: linear-gradient(to top, #000000dd, #00000000);" AnchorPane.bottomAnchor="0.0" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0">
|
|
<children>
|
|
<HBox spacing="10.0">
|
|
<children>
|
|
<JFXSlider fx:id="timeSlider" HBox.hgrow="ALWAYS">
|
|
<padding>
|
|
<Insets left="5.0" right="5.0" />
|
|
</padding>
|
|
</JFXSlider>
|
|
<Label fx:id="lblEndTime" text="0:00:00" textFill="WHITE">
|
|
<font>
|
|
<Font size="17.0" />
|
|
</font>
|
|
</Label>
|
|
</children>
|
|
<VBox.margin>
|
|
<Insets />
|
|
</VBox.margin>
|
|
<padding>
|
|
<Insets left="10.0" right="10.0" />
|
|
</padding>
|
|
</HBox>
|
|
<HBox fx:id="controlsHBox" spacing="10.0">
|
|
<children>
|
|
<HBox spacing="10.0">
|
|
<children>
|
|
<JFXButton fx:id="btnPlay" contentDisplay="GRAPHIC_ONLY" onAction="#btnPlayAction">
|
|
<graphic>
|
|
<ImageView fx:id="playIcon" fitHeight="42.0" pickOnBounds="true" preserveRatio="true">
|
|
<image>
|
|
<Image url="@../icons/baseline_pause_white_48dp.png" />
|
|
</image>
|
|
</ImageView>
|
|
</graphic>
|
|
</JFXButton>
|
|
<JFXButton fx:id="btnReplay" contentDisplay="GRAPHIC_ONLY" onAction="#btnReplayAction">
|
|
<graphic>
|
|
<ImageView fitHeight="42.0" pickOnBounds="true" preserveRatio="true">
|
|
<image>
|
|
<Image url="@../icons/baseline_replay_10_white_48dp.png" />
|
|
</image>
|
|
</ImageView>
|
|
</graphic>
|
|
</JFXButton>
|
|
<JFXButton fx:id="btnForward" contentDisplay="GRAPHIC_ONLY" onAction="#btnForwardAction">
|
|
<graphic>
|
|
<ImageView fitHeight="42.0" pickOnBounds="true" preserveRatio="true">
|
|
<image>
|
|
<Image url="@../icons/baseline_forward_10_white_48dp.png" />
|
|
</image>
|
|
</ImageView>
|
|
</graphic>
|
|
</JFXButton>
|
|
</children>
|
|
<padding>
|
|
<Insets left="5.0" right="5.0" />
|
|
</padding>
|
|
</HBox>
|
|
<HBox alignment="TOP_RIGHT" spacing="10.0" HBox.hgrow="ALWAYS">
|
|
<children>
|
|
<JFXButton fx:id="btnAudio" contentDisplay="GRAPHIC_ONLY" onAction="#btnAudioAction">
|
|
<graphic>
|
|
<ImageView fitHeight="42.0" pickOnBounds="true" preserveRatio="true">
|
|
<image>
|
|
<Image url="@../icons/baseline_subtitles_white_48dp.png" />
|
|
</image>
|
|
</ImageView>
|
|
</graphic>
|
|
</JFXButton>
|
|
<JFXButton fx:id="btnFullscreen" contentDisplay="GRAPHIC_ONLY" onAction="#btnFullscreenAction" prefHeight="39.0">
|
|
<graphic>
|
|
<ImageView fx:id="fullscreenIcon" fitHeight="42.0" pickOnBounds="true" preserveRatio="true">
|
|
<image>
|
|
<Image url="@../icons/baseline_fullscreen_white_48dp.png" />
|
|
</image>
|
|
</ImageView>
|
|
</graphic>
|
|
</JFXButton>
|
|
</children>
|
|
<padding>
|
|
<Insets left="5.0" right="5.0" />
|
|
</padding>
|
|
</HBox>
|
|
</children>
|
|
<padding>
|
|
<Insets bottom="5.0" left="10.0" right="10.0" top="5.0" />
|
|
</padding>
|
|
</HBox>
|
|
</children>
|
|
<padding>
|
|
<Insets bottom="5.0" />
|
|
</padding>
|
|
</VBox>
|
|
<JFXButton fx:id="btnNextEpisode" onAction="#btnNextEpisodeAction" style="-fx-background-color: ee3523;" text="next episode in 10 seconds" textFill="WHITE" visible="false" AnchorPane.bottomAnchor="100.0" AnchorPane.rightAnchor="20.0">
|
|
<font>
|
|
<Font name="System Bold" size="14.0" />
|
|
</font>
|
|
<opaqueInsets>
|
|
<Insets />
|
|
</opaqueInsets>
|
|
<padding>
|
|
<Insets bottom="7.0" left="7.0" right="7.0" top="7.0" />
|
|
</padding>
|
|
</JFXButton>
|
|
</children>
|
|
</AnchorPane>
|