Set titlebarAppearsTransparent for main window

This makes the title bar render in the same color as it did prior to building on 10.14, so that the current tab colors match.

It does however make sheets appear from “above” the title bar and makes the Dark Mode style darker, so this is just an intermediate fix until the tab bar gets revamped for 10.14.
This commit is contained in:
Allan Odgaard
2018-11-01 00:09:05 +07:00
parent c9618f8eb1
commit 1cbaf05615

View File

@@ -187,6 +187,7 @@ static NSArray* const kObservedKeyPaths = @[ @"arrayController.arrangedObjects.p
self.window.collectionBehavior = NSWindowCollectionBehaviorFullScreenPrimary;
self.window.delegate = self;
self.window.releasedWhenClosed = NO;
self.window.titlebarAppearsTransparent = YES;
[self.window setContentBorderThickness:0 forEdge:NSMaxYEdge]; // top border
[self.window setContentBorderThickness:0 forEdge:NSMinYEdge]; // bottom border
[self.window setAutorecalculatesContentBorderThickness:NO forEdge:NSMaxYEdge];