Window title bar appears transparent issue (Not really transparent)

Viewed 2657

I am trying to make my app have more 'flat' feel so I think it is a good idea to hide the title bar.

However, in reality titlebarAppearsTransparent seems only remove the title bar shadow but not make the title bar truly transparent.

Before using any code to modify the title bar,

enter image description here

After adding the following code (starting have a better feel),

self.window?.titlebarAppearsTransparent = true

enter image description here

Setting the background color to white,

    self.window?.backgroundColor = NSColor.whiteColor()
    self.window?.titlebarAppearsTransparent = true

enter image description here

This is certainly not what I want. I thought I just turned the title bar transparent to true. What is going on here?

Any hint or comment is appreciated and thanks for your time viewing this question.

1 Answers
Related