I'm working on an app that has a custom NSView
on a NSStatusBar
which performs all of the drawing when the user clicks it. But here's the problem, the color I'm currently drawing as the view's background color is not the same as the system blue color.
My app's color:
Twitter's menu item color (system):
As you clearly see, my blue color is way lighter than the system. This is the code I'm currently using (and worked perfectly on versions older than Yosemite):
[[NSColor selectedMenuItemColor] set];
NSRectFill(rect);
I've even tried color picking the menu item's color but it seems like the color is affected by the wallpaper below the menu bar.
Any ideas on how to achieve the system look?
selectedMenuItemColor
? Maybe they are use something diffrent? – CimonselectedMenuItemColor
on older versions of OS X and always worked as expected, not on Yosemite though. – Meatus