From 6002dc591b60ebdf3f4e9b40242b40a0ccf1c487 Mon Sep 17 00:00:00 2001 From: Grzegorz Date: Fri, 12 Jun 2020 21:47:14 +0200 Subject: [PATCH] Fixed an issue where entry preview in preferences has white theme. (#5522) --- src/main/java/org/jabref/gui/preferences/PreviewTabView.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/org/jabref/gui/preferences/PreviewTabView.java b/src/main/java/org/jabref/gui/preferences/PreviewTabView.java index 16b29498ce6..a1bc618b641 100644 --- a/src/main/java/org/jabref/gui/preferences/PreviewTabView.java +++ b/src/main/java/org/jabref/gui/preferences/PreviewTabView.java @@ -157,6 +157,7 @@ public void initialize() { ((PreviewViewer) previewTab.getContent()).setEntry(TestEntry.getTestEntry()); EasyBind.subscribe(viewModel.layoutProperty(), value -> ((PreviewViewer) previewTab.getContent()).setLayout(value)); previewTab.getContent().visibleProperty().bind(viewModel.chosenSelectionModelProperty().getValue().selectedItemProperty().isNotNull()); + ((PreviewViewer) previewTab.getContent()).setTheme(preferences.getTheme()); editArea.clear(); editArea.setParagraphGraphicFactory(LineNumberFactory.get(editArea));