From 58cf881c4d1c8011e8b20f606d0508e7b8cec17f Mon Sep 17 00:00:00 2001 From: Jannis Weis <31143295+weisJ@users.noreply.github.com> Date: Fri, 8 Apr 2022 15:41:05 +0200 Subject: [PATCH] Invert transparent titlebar property to determine opacity --- .../github/weisj/darklaf/platform/macos/ui/MacOSTitlePane.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/macos/src/main/java/com/github/weisj/darklaf/platform/macos/ui/MacOSTitlePane.java b/macos/src/main/java/com/github/weisj/darklaf/platform/macos/ui/MacOSTitlePane.java index a5b9cb6f..50ac36d6 100644 --- a/macos/src/main/java/com/github/weisj/darklaf/platform/macos/ui/MacOSTitlePane.java +++ b/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() { - setOpaque(PropertyUtil.getBooleanProperty(rootPane, MacOSDecorationsUtil.TRANSPARENT_TITLE_BAR_KEY)); + setOpaque(!PropertyUtil.getBooleanProperty(rootPane, MacOSDecorationsUtil.TRANSPARENT_TITLE_BAR_KEY)); } private boolean useCustomTitle() {