JNWAnimatableWindow
JNWAnimatableWindow copied to clipboard
Thin 1px border
On every bordered NSWindow, there's a thin 1px border. I use [NSColor colorWithCalibratedWhite:0.10f alpha: 0.15f] to mimic this border, but it may not be wholly accurate.
The problem is that CALayer's border is drawn as an inset, which unfortunately isn't what NSWindow does. The workaround would be to draw the content inset, then add a border, but that's not ideal. If you have any other thoughts I'd love to know.
Why would that not be ideal? It doesn't seem too difficult. More than that, I think the issue is matching the window's shape.
If you have an idea of how you think it should work, pull requests are welcome.
I was working on it, but the border is still goofy, it's not "ignoring" the transparent pixels. Gotta figure that out.