From b3cc60eba7f1bc646c0cc6356a338fcfeb0ee0f5 Mon Sep 17 00:00:00 2001 From: sowgro Date: Fri, 18 Oct 2024 00:25:28 -0400 Subject: Add default color customization --- src/main/java/net/sowgro/npehero/gui/LevelSurround.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src/main/java/net/sowgro/npehero/gui/LevelSurround.java') diff --git a/src/main/java/net/sowgro/npehero/gui/LevelSurround.java b/src/main/java/net/sowgro/npehero/gui/LevelSurround.java index e6cc2f4..4b7cc75 100755 --- a/src/main/java/net/sowgro/npehero/gui/LevelSurround.java +++ b/src/main/java/net/sowgro/npehero/gui/LevelSurround.java @@ -3,6 +3,7 @@ package net.sowgro.npehero.gui; import javafx.animation.AnimationTimer; import javafx.scene.control.Label; import javafx.scene.layout.*; +import javafx.scene.paint.Color; import net.sowgro.npehero.Driver; import net.sowgro.npehero.gameplay.SongPlayer; import javafx.geometry.Insets; @@ -12,6 +13,7 @@ import javafx.scene.text.Text; import net.sowgro.npehero.levelapi.Difficulty; import net.sowgro.npehero.gameplay.ScoreController; import net.sowgro.npehero.main.Page; +import net.sowgro.npehero.main.Settings; import net.sowgro.npehero.main.Sound; public class LevelSurround extends Page @@ -112,7 +114,12 @@ public class LevelSurround extends Page var scale = content.prefHeightProperty().divide(720); game.scaleXProperty().bind(scale); game.scaleYProperty().bind(scale); - game.getStyleClass().add("box"); +// game.getStyleClass().add("box"); +// game.setEffect(new BoxBlur()); +// game.setBackground(Color.WHITE); + BackgroundFill bgf = new BackgroundFill(Color.rgb(0, 0, 0, Settings.gameOpacity), null, null); + game.setBackground(new Background(bgf)); + BorderPane gameHolder = new BorderPane(game); gameHolder.maxHeightProperty().bind(content.prefHeightProperty()); -- cgit v1.2.3