| Summary: | GEF's flyout palette displays unused space in gray rather than white | ||
|---|---|---|---|
| Product: | [Tools] GEF | Reporter: | Shenxue Zhou <shenxue.zhou> |
| Component: | GEF-Legacy GEF (MVC) | Assignee: | Alexander Nyßen <nyssen> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | hudsonr, konstantin, nyssen |
| Version: | unspecified | ||
| Target Milestone: | 3.8.1 (Juno SR1) | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
Shenxue Zhou
This looks particularly bad on Eclipse 4.x where the editor has a white margin around its composite. Agreed, that doesn't look nice and we should target for 4.2 in the future. However, we are past RC1 already, so this will not make it into the 3.8.0 release and will be a candidate for SR1 instead. The reason for the grey background is that SliderPaletteEditPart does not specify figure.setBackgroundColor(PaletteColorUtil.WIDGET_LIST_BACKGROUND) within its createFigure() method, but figure.setBackgroundColor(ColorConstants.button). You can thus work around this in the mean time by replacing the PaletteEditPartFactory of your graphical viewer with a modified version that returns a modified SliderPaletteEditPart, which overwrites createFigure() method accordingly. If the background color is not set explicitly on any figure, it inherits the background color from the control. So you should try changing the background color of the control first before creating factories and overriding methods. (In reply to comment #3) > If the background color is not set explicitly on any figure, it inherits the > background color from the control. So you should try changing the background > color of the control first before creating factories and overriding methods. Correct, but as SliderPaletteEditPart currently specifies a background color explicitly, a workaround will have to tweak this, as I have outlined above. Changed background color to list background. Pushed changes to master and R3_8_maintenace. Resolving as fixed. |