INAppStoreWindow
INAppStoreWindow copied to clipboard
Fuzzy corners when using darker colors
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.
Hi, how has others solved this? I have been playing around a lot this morning, but I can not find a way to override the "background" default window tool bar which keeps showing through. HipChat for OS X had a very nice title bar, I wonder if they are using this library?
@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 [email protected] 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 https://github.com/indragiek/INAppStoreWindow/issues/146#issuecomment-68556642.