Use expanded toolbar to accomodate for more room in the title bar.

This commit is contained in:
Michael Starke
2021-01-04 16:03:47 +01:00
parent 6bd6c65dfa
commit 90093850f9
4 changed files with 26 additions and 8 deletions

View File

@@ -101,6 +101,9 @@ typedef void (^MPPasswordChangedBlock)(BOOL didChangePassword);
self.window.delegate = self.documentWindowDelegate;
self.window.styleMask |= NSWindowStyleMaskFullSizeContentView;
if (@available(macOS 11.0, *)) {
self.window.toolbarStyle = NSWindowToolbarStyleExpanded;
}
[self.window registerForDraggedTypes:@[NSURLPboardType]];
MPDocument *document = self.document;