Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 412116

Summary: [DateTime] uses parent background color when background mode is INHERIT_DEFAULT
Product: [RT] RAP Reporter: Ralf Sternberg <rsternberg>
Component: RWTAssignee: 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:

Description Ralf Sternberg CLA 2013-07-02 10:56:46 EDT
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 );
  }
}
Comment 1 Ivan Furnadjiev CLA 2013-07-17 05:27:28 EDT
Fixed with commit c7f567da85b3a104cd6f31cd9c2ac43f2c17da48.