JNWAnimatableWindow icon indicating copy to clipboard operation
JNWAnimatableWindow copied to clipboard

Thin 1px border

Open avaidyam opened this issue 12 years ago • 4 comments

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.

avaidyam avatar Feb 03 '13 22:02 avaidyam

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.

jwilling avatar Feb 04 '13 05:02 jwilling

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.

avaidyam avatar Feb 04 '13 05:02 avaidyam

If you have an idea of how you think it should work, pull requests are welcome.

jwilling avatar Feb 04 '13 06:02 jwilling

I was working on it, but the border is still goofy, it's not "ignoring" the transparent pixels. Gotta figure that out.

avaidyam avatar Feb 04 '13 06:02 avaidyam