Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "E4/CSS/SWT Mapping"
Line 7: | Line 7: | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
− | <td> | + | <td>control</td> |
− | <td> | + | <td>setBackground(Color)</td> |
+ | <td>background-color</td> | ||
+ | <td>Button { background-color: #FF0000 }</td> | ||
</tr> | </tr> | ||
<tr> | <tr> | ||
− | <td> | + | <td>control</td> |
− | <td> | + | <td>setBackgroundImage(Image)</td> |
+ | <td>background-image</td> | ||
+ | <td>Button { background-image: <i>some url</i> }</td> | ||
</tr> | </tr> | ||
</table> | </table> |
Revision as of 14:30, 25 February 2009
SWT Widgets | SWT Method | CSS Property Name | CSS Example |
---|---|---|---|
control | setBackground(Color) | background-color | Button { background-color: #FF0000 } |
control | setBackgroundImage(Image) | background-image | Button { background-image: some url } |