-
Notifications
You must be signed in to change notification settings - Fork 159
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
Title bar colour on retina display border issue #111
Comments
Seems like the drawing rectangle passed into the drawing block might be 1px too small. Could you try increasing the height of your drawing rectangle by 1 pixel and see if it works? |
Do you mean just setting titleBarHeight with an extra pixel? If so, I've tried that to no avail. |
@indragiek This is the line of code which is the culprit. Get rid of that and it's fixed. https://github.com/indragiek/INAppStoreWindow/blob/master/INAppStoreWindow.m#L236 |
That line of code only executes when you're using the default title bar appearance (OS X style) to show the highlight line at the top. If you're using a custom title bar, you should be calling |
I haven't passed a block to specify a custom title bar yet, nothing is specified in that respect. Here's what's around so far:
So omitting the block causes the problem? |
Oops, I forgot about the title bar color properties. I'll think of a good solution. On Fri, Jun 14, 2013 at 9:27 AM, Kieran Senior [email protected]
|
Was a fix ever merged in for this issue? |
Not yet. Sorry, totally forgot about this. I'll see if I can put together a fix sometime this week. If you have a solution before then, please feel free to submit a pull request. |
I haven't had a change to look at this in-depth yet. Were you able to explore a possible fix? |
Sorry not yet, this one fell off my radar until I get time to reinvestigate it.
|
I've done a little investigating and this is what I'm guessing: INAppStoreWindow's titleBar simply overlaps the default titleBar. Because the default titleBar is kept on, it insets the contentView of the window by 1 pixel (you can NSLog the frame of the contentView to confirm). So what you're seeing here is the default titleBar peaking above the inset INAppStoreWindow titleBar. Does this correspond with what you're seeing as well? |
Yeah that's right - it was just one pixel off from the top. As I say, I'd love to devote some more time to this but I'm swamped at the moment and the project using InAppStoreWindow has been lowered in priority for the moment. I'll re-address it in the near future hopefully. If you manage to find a fix before I do I'll check it out. Issue a pull request and I can check that out and see if it works as I expect, unless I get around to it first :) |
+1 :-( |
Still an issue? Rendering code geometry has changed quite a bit recently. |
Hey there,
I've noticed that on a retina display the border has a lighter coloured line on top regardless of what you set the title bar colour to be. Perhaps I'm doing something wrong? Any hints?

The text was updated successfully, but these errors were encountered: