Top-level menu item images do not adapt to dark mode

Originator:jalkut
Number:rdar://18526608 Date Originated:October 2, 2014
Status:Open Resolved:
Product:Mac OS X Product Version:10.10 (14A379a)
Classification:UI/Usability Reproducible:Always
 
When the user has enabled "dark mode" from System Preferences, most menu bar icons adapt to the new appearance by e.g. drawing as white instead of black in the menu bar.

AppKit handles this appropriately for NSStatusItem-based menu items, but not for NSMenuItems.

The effect of this problem can be witnessed on a standard Yosemite install by observing the the Script menu for iTunes is not drawn correctly in dark mode:

1. Arrange for one or more scripts to be present in ~/Library/iTunes/Scripts
2. Open iTunes and see the script menu item is dark on dark.

I'm also attaching a sample project that illustrates the failure of a menu bar menu item to render its image appropriately in dark mode, in contrast to the NSStatusItem rendering the very same image as expected.

Comments

In case it helps anybody, here's the sample project I provided:

http://punkitup.com/bugs/TemplateIconMenuBug.zip


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!