lukakerr / NSWindowStyles

A showcase of the many different styles of windows possible with NSWindow on macOS
https://lukakerr.github.io/swift/nswindow-styles
Apache License 2.0
1.13k stars 38 forks source link

Great resource #1

Closed shaps80 closed 4 years ago

shaps80 commented 6 years ago

This is such a great collection and I've already cleaned up some of my implementation because of this so thank you. However I was wondering about something.

I have combined some of these approaches to create a dark visual effect, with transparent toolbar and no separator.

However I then need to add the existing contentView into the visual effects view. However I'm not sure how to align this correctly, positioned below the toolbar. Instead it aligns the top to the top of the window.

Any ideas about this? Is there a layoutGuide I can use here?


Update, I've come across contentLayoutGuide but I can't use it since its in a different hierarchy it seems.

shaps80 commented 6 years ago

Follow up question. If I also want to make there title white, so that it is readable on a dark visual effect, what approach do you recommend here?