From b6a9cc3085c6f4dcc2943bae93d8f8c68e449d14 Mon Sep 17 00:00:00 2001 From: weisj Date: Thu, 19 Mar 2020 23:53:54 +0100 Subject: [PATCH] Removed titlebar border on windows in case no menuBar is installed. --- .../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 84fdf6e8..1de4dd39 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 @@ -462,7 +462,7 @@ public class WindowsTitlePane extends CustomTitlePane { g.setColor(background); g.fillRect(0, 0, width, height); - if (getWindowDecorationStyle() != JRootPane.NONE) { + if (getWindowDecorationStyle() != JRootPane.NONE && menuBar != null) { g.setColor(border); g.fillRect(0, height - 1, width, 1); }