diff --git a/src/main/java/org/mosad/homeflix/player/PlayerController.java b/src/main/java/org/mosad/homeflix/player/PlayerController.java index 8ee37ee..902a3c4 100644 --- a/src/main/java/org/mosad/homeflix/player/PlayerController.java +++ b/src/main/java/org/mosad/homeflix/player/PlayerController.java @@ -60,6 +60,7 @@ import javafx.scene.layout.AnchorPane; import javafx.scene.layout.HBox; import javafx.scene.layout.StackPane; import javafx.scene.layout.VBox; +import javafx.scene.paint.Color; import javafx.scene.text.Text; import javafx.util.StringConverter; import uk.co.caprica.vlcj.factory.MediaPlayerFactory; @@ -438,9 +439,12 @@ public class PlayerController { }); // TODO style the JFXListView + Text heading = new Text("Audio"); + heading.setFill(Color.WHITE); + JFXDialogLayout content = new JFXDialogLayout(); content.setPrefSize(150, 200); - content.setHeading(new Text("Audio")); + content.setHeading(heading); content.setBody(list); content.setPadding(new Insets(-20, -20, -20, -20)); // fix JFXDialogLayout padding content.setSpacing(-10); // fix JFXDialogLayout spacing @@ -504,9 +508,11 @@ public class PlayerController { } private class FXBufferFormatCallback implements BufferFormatCallback { - + int sourceWidth; + int sourceHeight; + @Override - public BufferFormat getBufferFormat(int sourceWidth, int sourceHeight) { + public BufferFormat getBufferFormat(int sourceWidth, int sourceHeight) { return new RV32BufferFormat(sourceWidth, sourceHeight); } diff --git a/src/main/resources/css/Player.css b/src/main/resources/css/Player.css index d8222a6..a44f124 100644 --- a/src/main/resources/css/Player.css +++ b/src/main/resources/css/Player.css @@ -1,10 +1,15 @@ +* { + -theme-secondary-dark: #303030; +} + + /******************************************************************************* * * * Slider * * * ******************************************************************************/ -.jfx-slider .slider-value{ - -fx-rotate: 0; +.jfx-slider .slider-value { + -fx-rotate: 0.0; } /* @@ -22,10 +27,52 @@ } -.jfx-slider .animated-thumb{ - -fx-rotate: 0; - -fx-pref-height: 30px; - -fx-pref-width: 80px; - -fx-background-color: #303030; - -fx-background-radius: 5px 5px 5px 5px; +.jfx-slider .animated-thumb { + -fx-rotate: 0.0; + -fx-pref-height: 30.0px; + -fx-pref-width: 80.0px; + -fx-background-color: -theme-secondary-dark; + -fx-background-radius: 5.0px 5.0px 5.0px 5.0px; +} + +/******************************************************************************* + * * + * ListView * + * * + ******************************************************************************/ + +.list-view { + -fx-background-color: -theme-secondary-dark; + -fx-padding: 1.0px; +} + +.list-view .list-cell:hover { + -fx-background-color: #434343; +} + +.list-view .list-cell:selected { + -fx-background-color: #434343; +} + +.list-view .list-cell { + -fx-background-color: -theme-secondary-dark; + -fx-text-fill: white; +} + +.list-view .label { + -fx-text-fill: white; +} + +.jfx-rippler { + -jfx-rippler-fill: #ee3523; +} + +/******************************************************************************* + * * + * Popup * + * * + ******************************************************************************/ + +.jfx-popup-container { + -fx-background-color: -theme-secondary-dark; } diff --git a/src/main/resources/fxml/PlayerWindow.fxml b/src/main/resources/fxml/PlayerWindow.fxml index 6b86acd..2dc2758 100644 --- a/src/main/resources/fxml/PlayerWindow.fxml +++ b/src/main/resources/fxml/PlayerWindow.fxml @@ -9,138 +9,172 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +