From e8e19c9e67725e9908e517ed6bcf7df7d121a9f8 Mon Sep 17 00:00:00 2001 From: Haze Booth Date: Thu, 6 Jun 2024 23:47:06 -0400 Subject: [PATCH] fixup! feat: add `macos-title-bar-luminance-check` --- macos/Sources/Features/Terminal/TerminalWindow.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/macos/Sources/Features/Terminal/TerminalWindow.swift b/macos/Sources/Features/Terminal/TerminalWindow.swift index a4a76f1a5..5e681bc4b 100644 --- a/macos/Sources/Features/Terminal/TerminalWindow.swift +++ b/macos/Sources/Features/Terminal/TerminalWindow.swift @@ -151,7 +151,7 @@ class TerminalWindow: NSWindow { if let titlebarContainer = contentView?.superview?.subviews.first(where: { $0.className == "NSTitlebarContainerView" }), let effectView = titlebarContainer.descendants(withClassName: "NSVisualEffectView").first { - effectView.isHidden = titlebarTabs || !titlebarTabs && !hasVeryDarkBackground && !titleBarLuminanceCheck + effectView.isHidden = titlebarTabs || titleBarLuminanceCheck && !titlebarTabs && !hasVeryDarkBackground } effectViewIsHidden = true @@ -189,7 +189,7 @@ class TerminalWindow: NSWindow { backgroundColor.luminance < 0.05 } - var titleBarLuminanceCheck: Bool + var titleBarLuminanceCheck: Bool = true private var newTabButtonImageLayer: VibrantLayer? = nil