fix regression with expanded transaction diagram dark theme background

This commit is contained in:
Craig Raw 2022-03-04 11:17:58 +02:00
parent 02e0fd1357
commit 1c7abc1b24

View file

@ -82,13 +82,14 @@ public class TransactionDiagram extends GridPane {
scenePane.setBorder(new Border(new BorderStroke(Color.DARKGRAY, BorderStrokeStyle.SOLID, CornerRadii.EMPTY, BorderWidths.DEFAULT))); scenePane.setBorder(new Border(new BorderStroke(Color.DARKGRAY, BorderStrokeStyle.SOLID, CornerRadii.EMPTY, BorderWidths.DEFAULT)));
} }
VBox vBox = new VBox(20); scenePane.getStylesheets().add(AppServices.class.getResource("general.css").toExternalForm());
vBox.getStylesheets().add(AppServices.class.getResource("general.css").toExternalForm());
if(Config.get().getTheme() == Theme.DARK) { 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()); scenePane.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/send.css").toExternalForm());
VBox vBox = new VBox(20);
vBox.setPadding(new Insets(20, 40, 20, 50)); vBox.setPadding(new Insets(20, 40, 20, 50));
expandedDiagram = new TransactionDiagram(); expandedDiagram = new TransactionDiagram();