macos: titlebar styling always applies to titlebar tabs

This commit is contained in:
Mitchell Hashimoto
2024-05-17 20:38:51 -04:00
parent 6860af0161
commit eee58b9ce6

View File

@ -138,8 +138,12 @@ class TerminalWindow: NSWindow {
// The remainder of the styles we only apply if we're on "auto" theming
// because they conflict with the appearance being forced a certain
// direction. See issue #1709.
guard let windowTheme, windowTheme == .auto else { return }
// direction. Titlebar tabs are excluded (they always style the titlebar)
// because historically this is how they've always worked. So this
// exclusion only applies to native tabs. See issue #1709.
if let windowTheme, windowTheme != .auto && !titlebarTabs {
return
}
titlebarSeparatorStyle = tabbedWindows != nil && !titlebarTabs ? .line : .none