INAppStoreWindow icon indicating copy to clipboard operation
INAppStoreWindow copied to clipboard

Fuzzy corners when using darker colors

Open jwells89 opened this issue 11 years ago • 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.

screen shot 2014-02-15 at 12 43 42 pm

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.

jwells89 avatar Feb 15 '14 20:02 jwells89

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.

indragiek avatar Feb 20 '14 01:02 indragiek

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. screen shot 2014-09-06 at 4 35 40 pm

MattTimmons avatar Sep 06 '14 21:09 MattTimmons

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? screen shot 2015-01-02 at 10 17 17 am

MattTimmons avatar Jan 02 '15 16:01 MattTimmons

@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];

indragiek avatar Jan 02 '15 19:01 indragiek

hm. I did not think of that.. I did a few things to get by.

  1. Used setTitleBarGradient instead of the drawingBlock.
  2. INAppStoreWindow.m border radius to 5.0f
  3. 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.

MattTimmons avatar Jan 02 '15 20:01 MattTimmons