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 (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to