Browse Source

Removed titlebar border on windows in case no menuBar is installed.

pull/105/head
weisj 5 years ago
parent
commit
b6a9cc3085
  1. 2
      windows/src/main/java/com/github/weisj/darklaf/platform/windows/ui/WindowsTitlePane.java

2
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);
}

Loading…
Cancel
Save