Browse Source

Invert transparent titlebar property to determine opacity

macOS_titleBarFix
Jannis Weis 3 years ago
parent
commit
58cf881c4d
No known key found for this signature in database
GPG Key ID: 7C9D8D4B558049AB
  1. 2
      macos/src/main/java/com/github/weisj/darklaf/platform/macos/ui/MacOSTitlePane.java

2
macos/src/main/java/com/github/weisj/darklaf/platform/macos/ui/MacOSTitlePane.java

@ -262,7 +262,7 @@ public class MacOSTitlePane extends CustomTitlePane {
} }
private void updateOpacity() { private void updateOpacity() {
setOpaque(PropertyUtil.getBooleanProperty(rootPane, MacOSDecorationsUtil.TRANSPARENT_TITLE_BAR_KEY)); setOpaque(!PropertyUtil.getBooleanProperty(rootPane, MacOSDecorationsUtil.TRANSPARENT_TITLE_BAR_KEY));
} }
private boolean useCustomTitle() { private boolean useCustomTitle() {

Loading…
Cancel
Save