| Summary: | Toolbar buttons highlight background on Cocoa | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Eclipse Project] Platform | Reporter: | Bogdan Gheorghe <gheorghe> | ||||
| Component: | SWT | Assignee: | Silenio Quarti <Silenio_Quarti> | ||||
| Status: | RESOLVED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | P3 | CC: | Mike_Wilson, skovatch | ||||
| Version: | 3.7 | ||||||
| Target Milestone: | 3.7 M4 | ||||||
| Hardware: | PC | ||||||
| OS: | Mac OS X | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
|
Description
Bogdan Gheorghe
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. *** |