On Wed, Aug 31, 2011 at 10:05 AM, Jens Alfke <j...@mooseyard.com> wrote: > > On Aug 31, 2011, at 2:19 AM, Rimas M. wrote: > >> Not really. Unless I am missing something. Menu-item's background is >> changing when item is selected (blue one, by default). > > C’mon, be creative. Cache two copies of the image, one with the plain > background and one with the highlighted.
FWIW, iWork 09 does not do sub-pixel AA in its font popup. Which means they only have to cache one bitmap and composite it against the system-provided menu item. This is useful because the selected menu item color is actually a gradient, not a solid color. The downside is that the menu items draw black-on-blue, instead of white-on-blue like elsewhere in the OS. Since they're not using sub-pixel AA, I wonder if a simple color inversion would work when drawing the selected menu item. --Kyle Sluder _______________________________________________ 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