From 76c25528073e0dbea8d87ec9e948f09cd31b31af Mon Sep 17 00:00:00 2001 From: weisj Date: Thu, 26 Mar 2020 18:04:47 +0100 Subject: [PATCH] Fixed window popupmenu using wrong separator on windows. --- .../weisj/darklaf/platform/windows/ui/WindowsTitlePane.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windows/src/main/java/com/github/weisj/darklaf/platform/windows/ui/WindowsTitlePane.java b/windows/src/main/java/com/github/weisj/darklaf/platform/windows/ui/WindowsTitlePane.java index c5f0d872..020d3576 100644 --- a/windows/src/main/java/com/github/weisj/darklaf/platform/windows/ui/WindowsTitlePane.java +++ b/windows/src/main/java/com/github/weisj/darklaf/platform/windows/ui/WindowsTitlePane.java @@ -371,7 +371,7 @@ public class WindowsTitlePane extends CustomTitlePane { setDisabledIcon(maximizeIcon); }}); } - menu.add(new JSeparator()); + menu.addSeparator(); menu.add(new JMenuItem(closeAction) {{ setDisabledIcon(closeIcon); }});