| Summary: | [DateTime] uses parent background color when background mode is INHERIT_DEFAULT | ||
|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Ralf Sternberg <rsternberg> |
| Component: | RWT | Assignee: | Project Inbox <rap-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | ||
| Version: | 2.1 | ||
| Target Milestone: | 2.2 M1 | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
Fixed with commit c7f567da85b3a104cd6f31cd9c2ac43f2c17da48. |
Since DataTime is a text-like widget, it should keep its default (white) background with INHERIT_DEFAULT. Example Snippet: public class DateTimeSnippet extends AbstractEntryPoint { @Override protected void createContents( Composite parent ) { parent.setBackground( parent.getDisplay().getSystemColor( SWT.COLOR_GRAY ) ); parent.setBackgroundMode( SWT.INHERIT_DEFAULT ); new Text( parent, SWT.SINGLE | SWT.BORDER ); new DateTime( parent, SWT.DATE | SWT.BORDER ); } }