Skip to content

Commit 09b15b1

Browse files
committed
Set up toolbar style
1 parent 098192c commit 09b15b1

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

devdocs-macos/DocumentationWindowController.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,12 @@ class DocumentationWindowController: NSWindowController {
6060
toolbar.autosavesConfiguration = true
6161
toolbar.displayMode = .iconOnly
6262
toolbar.delegate = self
63-
window?.toolbar = toolbar
63+
64+
if let window = window {
65+
window.titlebarAppearsTransparent = true
66+
window.toolbarStyle = .automatic
67+
window.toolbar = toolbar
68+
}
6469
}
6570

6671
// MARK:- NotificationCenter observers

0 commit comments

Comments
 (0)