Skip to content

Commit 6da6feb

Browse files
committed
Fix preview
1 parent 36b2473 commit 6da6feb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

kit/src/main/java/com/oracle/javafx/scenebuilder/kit/preview/PreviewWindowController.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,9 @@ public void run() {
271271

272272
Object sceneGraphRoot = clone.getDisplayNodeOrSceneGraphRoot();
273273
themeStyleSheetsList = new ArrayList<>(EditorPlatform.getStylesheetsForTheme(editorController.getTheme()));
274-
themeStyleSheetsList.addAll(editorControllerTheme.getStylesheetURLs());
274+
editorControllerTheme.getStylesheetURLs().stream()
275+
.filter(s -> !EditorPlatform.isPlatformThemeStylesheetURL(s))
276+
.forEach(themeStyleSheetsList::add);
275277

276278
if (sceneGraphRoot instanceof Parent) {
277279
((Parent) sceneGraphRoot).setId(NID_PREVIEW_ROOT);

0 commit comments

Comments
 (0)