Merge pull request #1490 from tt/keep-shadows-for-native-tab-bar

Keep shadows for native tab bar
This commit is contained in:
Mitchell Hashimoto
2024-02-09 14:22:35 -08:00
committed by GitHub

View File

@ -40,6 +40,10 @@ class TerminalWindow: NSWindow {
override func updateConstraintsIfNeeded() {
super.updateConstraintsIfNeeded()
// For titlebar tabs, we want to hide the separator view so that we get rid
// of an aesthetically unpleasing shadow.
guard titlebarTabs else { return }
guard let titlebarContainer = contentView?.superview?.subviews.first(where: {
$0.className == "NSTitlebarContainerView"
}) else { return }