Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Thin 1px border #3

Open
avaidyam opened this issue Feb 3, 2013 · 4 comments
Open

Thin 1px border #3

avaidyam opened this issue Feb 3, 2013 · 4 comments

Comments

@avaidyam
Copy link

avaidyam commented Feb 3, 2013

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.

@jwilling
Copy link
Owner

jwilling commented Feb 4, 2013

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.

@avaidyam
Copy link
Author

avaidyam commented Feb 4, 2013

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.

@jwilling
Copy link
Owner

jwilling commented Feb 4, 2013

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

@avaidyam
Copy link
Author

avaidyam commented Feb 4, 2013

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants