Bug 216621 - LightweightSystem's RootFigure should use Canvas#drawBackground instead of filling with BG color
Summary: LightweightSystem's RootFigure should use Canvas#drawBackground instead of fi...
Status: NEW
Alias: None
Product: GEF
Classification: Tools
Component: GEF-Legacy Draw2d (show other bugs)
Version: 3.3   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: gef-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-25 14:07 EST by Randy Hudson CLA
Modified: 2008-01-25 14:07 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Randy Hudson CLA 2008-01-25 14:07:40 EST
I just came across the method drawBackground on Canvas. Currently draw2d takes whatever background color has been set on the widget and just fills it on the canvas. This is not very native nor consistent with SWT.

On the Mac, there used to be these ugly penal stripes that were "expected" to appear in certain situations.  Yet when GEF was used in those scenarios, GEF would just fill with a solid color.  There are probably still flavors of this in the latest Mac OS X, Windows Vista, and certain GTK themes.

Also, SWT added support for setBackgroundImage(image), and the ability to inherit backgrounds. Draw2d's canvas doesn't support these.