Fuzzy corners when using darker colors
jwells89 opened this issue · 5 comments
Because of how INAppStoreWindow draws itself on top of the native titlebar, a few pixels of lighter-colored “fuzz” become visible when you use the custom drawing block and darker colors. This isn’t apparent when using the built-in drawing methods because it’s covered up by the default highlight.
The only way I’ve found around this is to generate your own path with a smaller corner radius and draw using this instead of the provided clippingPath
, but that’s not ideal for a number of reasons.
Are you experiencing the same issue as #111? That one hasn't been fixed yet, unfortunately. But if it's the same one then this can be closed to avoid having duplicate issues open.
I am not certain if this is the same. @jwells89 , could you post how you did your re-draw?
Here is what I get when using a darker color in the drawBlock.
@MattTimmons I believe I ran into this a while ago and solved it by layer backing the theme frame. That is:
[[[window contentView] superview] setWantsLayer:YES];
hm. I did not think of that.. I did a few things to get by.
- Used setTitleBarGradient instead of the drawingBlock.
- INAppStoreWindow.m border radius to 5.0f
- INAppStoreWindow.m add 1px to the high… drawingRect.size.height += window.toolbarHeight+1;
On Jan 2, 2015, at 1:55 PM, Indragie Karunaratne notifications@github.com wrote:
@MattTimmons https://github.com/MattTimmons I believe I ran into this a while ago and solved it by layer backing the theme frame. That is:
[[[window contentView] superview] setWantsLayer:YES];
—
Reply to this email directly or view it on GitHub #146 (comment).