Community
Participate
Working Groups
In the properties view, Appearance tab, there are buttons for Font color, Foreground, and background color. For both accessibility and general usability, these buttons should have the SWT.DROP_DOWN style to indicate that clicking on them drops down another window. The style should also mean that a downward triangle is added to the widget.
Moving to the next release, GMF 2.1.
after a bit of investigation, it seems that the problem arises from how the button in general is being created. what was asked was for the SWT.DROP.DOWN style but that is currently not supported by the API, at least in the way to achieve the desired look of an icon being attached to a drop down bar, resulting in a new menu. What can achieve this is any of the color buttons on the eclipse tool bar. However, those are created through plug-in extension points, unlike the BUTTON object.
We could look at putting a ToolBar in the section. If we add the SWT.FLAT style we would not see the borders on the toolbar. You can check out the SWT Controls example to see what controls are available.
Created attachment 83362 [details] Proposed Patch changed the bold button, italic button, fontcolor button, fillcolor button, linecolor button in ColorsAndFontsPropertySection into tool items the "color" associated buttons now have clear SWT.DROP_DOWN styles. same goes for the gridline color button in RulerGridPropertySection. the main "changecolor" method was duplicated because the initial method was protected and required a button. the new method was simply modified to accept a tool item.
Committed to head
Created attachment 96375 [details] Before screenshot of the appearance tab.
Created attachment 96376 [details] After screenshot of the appearance tab. I do not think we are happy with this change we made a while back. Although the buttons are now drop downs, the buttons have no borders. We should revert this change back.
Reopening
Rolled back the patch, we are using buttons again (before screenshot).
[target cleanup] 2.1 M7 was the original target milestone for this bug
[GMF Restructure] Bug 319140 : product GMF and component Runtime was the original product and component for this bug