Template images in sidebars drawn in wrong color
Template images in sidebars drawn in wrong color
- Subject: Template images in sidebars drawn in wrong color
- From: Michael Cinkosky <email@hidden>
- Date: Tue, 13 Sep 2011 15:28:25 -0600
We are trying to implement a new Lionesque sidebar using template images, and this is mostly working, but the color of the resulting images is grey, not the standard blue-grey I see in Apple apps. I am wondering if anyone has any insight into this that might help me avoid any further bruising on my forehead.
Here are the details:
We have created images for the sidebar as directed in the documentation (black with transparency). We are calling setTemplate: YES on the images before they get used. The image format and the template processing appear to be correct because the images show up reversed (as promised by the docs) when the row is selected (and if we do not call setTemplate, this does not happen). So far, so good.
The problem is that the images are drawn in shades of black (or grey) rather than the bluish tint that the docs suggest (and that Mail, Finder, etc. demonstrate). That is, if you look at the sidebar icons in Mail, they are the nice blue-grey that the docs say we should expect. But if you look at our app, the icons are shades of grey, not blue-grey.
We have tried reducing the alpha on the entire image (so there is no pixel with 1.0 alpha) and this does fade the resulting image, but the color is still essentially grey (that is, not enough of the sidebar blue shows through unless we reduce the alpha so much that the icons fade away).
So, what am I missing? Perhaps there is something about NSOutlineViews that determines the foreground color for template images? Something I need to do when creating the images?
Thanks in advance for any help you might be able to provide!
Michael_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden