清理 DecoratorSkin 冗余 separator (#5947)

This commit is contained in:
辞庐
2026-04-12 21:50:26 +08:00
committed by GitHub
parent a2db925e86
commit 3e8a9bf1c4
@@ -353,12 +353,7 @@ public class DecoratorSkin extends SkinBase<Decorator> {
refreshNavButton.onActionProperty().bind(skinnable.onRefreshNavButtonActionProperty());
skinnable.forbidDraggingWindow(refreshNavButton);
Rectangle separator = new Rectangle();
separator.visibleProperty().bind(refreshNavButton.visibleProperty());
separator.heightProperty().bind(navBar.heightProperty());
separator.setFill(Color.GRAY);
navRight.getChildren().setAll(refreshNavButton, separator);
navRight.getChildren().setAll(refreshNavButton);
navBar.setRight(navRight);
}
}