Improve UI on macOS 11.
This commit is contained in:
1 parent
531bd4e49c
commit
1b92b76bad
7 files changed
+66
-72
No files matched your search
@@ -37,8 +37,8 @@ final class DocumentWindowController: NSWindowController, TracksViewControllerDe
|
||||
fatalError("`window` is expected to be non nil by this time.")
|
||||
}
|
||||
|
||||
if #available(macOS 10.16, *) {
|
||||
window.toolbarStyle = .unified
|
||||
if #available(macOS 11, *) {
|
||||
window.toolbarStyle = .expanded
|
||||
}
|
||||
|
||||
sendToQueue.image = NSImage(named: NSImage.shareTemplateName);
|
||||
@@ -164,6 +164,8 @@ final class DocumentWindowController: NSWindowController, TracksViewControllerDe
|
||||
trackViewController.view.frame = detailsItem.viewController.view.bounds
|
||||
trackViewController.view.autoresizingMask = [NSView.AutoresizingMask.width, NSView.AutoresizingMask.height]
|
||||
detailsItem.viewController.view.addSubview(trackViewController.view)
|
||||
|
||||
self.window?.toolbar?.validateVisibleItems();
|
||||
}
|
||||
|
||||
// MARK: Validation
|
||||
|
||||
Reference in new issue
Block a user