After a Long search regarding the NSWindow
title bar color and title color, i have found a easy drawing solution. I posting this to share my knowledge.
To remove the title bar, set the title bar's titleVisibility property to UITitlebarTitleVisibility. hidden and the toolbar property to nil.
There is a much easier way to do this. I've read that you can change a window's appearance to "textured" in a Storyboard / .xib file, but that doesn't work completely (titlebar color is mottled). However, you can change the color in your code with only two lines:
window.titlebarAppearsTransparent = true // gives it "flat" look
window.backgroundColor = <NSColor> // set the background color
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With