| Summary: | css Property background-color on Button is not displayed | ||
|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Michael Wirth <mwirth> |
| Component: | RWT | Assignee: | 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: | |||
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;
}
thats it. Thanks. |
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.