Merge branch 'feat/black-background-video-player' into 'main'
Feat: add black background to intro video player See merge request cs108-fs26/Gruppe-13!178
This commit was merged in pull request #334.
This commit is contained in:
@@ -41,6 +41,9 @@ public class IntroVideoPlayer extends Application {
|
|||||||
|
|
||||||
StackPane root = new StackPane(mediaView);
|
StackPane root = new StackPane(mediaView);
|
||||||
|
|
||||||
|
// black background
|
||||||
|
root.setStyle("-fx-background-color: black;");
|
||||||
|
|
||||||
Rectangle2D screenBounds = Screen.getPrimary().getBounds();
|
Rectangle2D screenBounds = Screen.getPrimary().getBounds();
|
||||||
|
|
||||||
Scene scene = new Scene(root, screenBounds.getWidth(), screenBounds.getHeight());
|
Scene scene = new Scene(root, screenBounds.getWidth(), screenBounds.getHeight());
|
||||||
|
|||||||
Reference in New Issue
Block a user