Community
Participate
Working Groups
In 3.x and 4.1, pressing a toolbar button on Cocoa will cause the button image to darken and the entire button to highlight which is rather jarring. This should be changed to only have the image on the button darken.
I had fixed this in the NSToolbar case. We just need cell.setHighlightsBy(OS.NSContentsCellMask) to always be set, not just when we are using the unified toolbar.
yes, I am about to make this change, but I want to check what happens when the there is no image.
If we turn off the background highlight all the time, toolitems that only have text (no image) will have no indication that they are pushed in.
Carbon does the same thing right now. If you remove the "parent.nsToolbar != null" check in drawTitleWithFrameInView the text will highlight when you click on it.
Created attachment 182519 [details] patch I am releasing this patch which makes the background not highlight anymore (only the image gets darken). When there is no image the text gets highlighted the same way it is done for the window toolbar. I am not sure this is how other apps handle this case, but I could not find any example.
Fixed > 20101105
*** Bug 258182 has been marked as a duplicate of this bug. ***