简体   繁体   中英

How to get style NSWindow title bar like this

I've seen this title bar style with a lot of Mac apps and I like the aesthetics (taller, larger title, custom buttons). How can I achieve this?

在此处输入图片说明

The taller titlebar and aligned buttons are changed by setting the titleVisibility property:

window.titleVisibility = NSWindowTitleHidden; // Obj-C

window.titleVisibility = .Hidden // Swift

The title is most likely a custom view (possibly just an NSTextField) in the title bar or toolbar, with the font size cranked up.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM