From 1c7abc1b2474d6da0fa227eb2280dde4983a931d Mon Sep 17 00:00:00 2001 From: Craig Raw Date: Fri, 4 Mar 2022 11:17:58 +0200 Subject: [PATCH] fix regression with expanded transaction diagram dark theme background --- .../sparrow/control/TransactionDiagram.java | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/src/main/java/com/sparrowwallet/sparrow/control/TransactionDiagram.java b/src/main/java/com/sparrowwallet/sparrow/control/TransactionDiagram.java index 415078e3..3e656873 100644 --- a/src/main/java/com/sparrowwallet/sparrow/control/TransactionDiagram.java +++ b/src/main/java/com/sparrowwallet/sparrow/control/TransactionDiagram.java @@ -82,13 +82,14 @@ public class TransactionDiagram extends GridPane { scenePane.setBorder(new Border(new BorderStroke(Color.DARKGRAY, BorderStrokeStyle.SOLID, CornerRadii.EMPTY, BorderWidths.DEFAULT))); } - VBox vBox = new VBox(20); - vBox.getStylesheets().add(AppServices.class.getResource("general.css").toExternalForm()); + scenePane.getStylesheets().add(AppServices.class.getResource("general.css").toExternalForm()); if(Config.get().getTheme() == Theme.DARK) { - vBox.getStylesheets().add(AppServices.class.getResource("darktheme.css").toExternalForm()); + scenePane.getStylesheets().add(AppServices.class.getResource("darktheme.css").toExternalForm()); } - vBox.getStylesheets().add(AppServices.class.getResource("wallet/wallet.css").toExternalForm()); - vBox.getStylesheets().add(AppServices.class.getResource("wallet/send.css").toExternalForm()); + scenePane.getStylesheets().add(AppServices.class.getResource("wallet/wallet.css").toExternalForm()); + scenePane.getStylesheets().add(AppServices.class.getResource("wallet/send.css").toExternalForm()); + + VBox vBox = new VBox(20); vBox.setPadding(new Insets(20, 40, 20, 50)); expandedDiagram = new TransactionDiagram();