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

Bug 473179

Summary: css Property background-color on Button is not displayed
Product: [RT] RAP Reporter: Michael Wirth <mwirth>
Component: RWTAssignee: Project Inbox <rap-inbox>
Status: RESOLVED INVALID QA Contact:
Severity: normal    
Priority: P3 CC: ivan
Version: 3.0   
Target Milestone: ---   
Hardware: PC   
OS: Mac OS X   
Whiteboard:

Description Michael Wirth CLA 2015-07-21 08:10:20 EDT
setting the css property background-color on a Button with a CUSTOM_VARIANT has no effect.

Example:

  Button button = new Button(composite, SWT.PUSH);
  button.setData(RWT.CUSTOM_VARIANT, "buttonvariant");


  Button[PUSH].buttonvariant
  {
    background-color: #ff0000;
    color: #0000ff;
  }


The property color is set, the background-color not.
Comment 1 Ivan Furnadjiev CLA 2015-07-21 08:25:06 EDT
I think you have to reset the background-image property (gradient set by the default theme) to none, as gradient is painted on top of the color.

Button[PUSH].buttonvariant
  {
    background-color: #ff0000;
    color: #0000ff;
    background-image: none;
  }
Comment 2 Michael Wirth CLA 2015-07-21 09:20:50 EDT
thats it. Thanks.