Skip to main content

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.

Jump to: navigation, search

Difference between revisions of "E4/CSS/SWT Mapping"

< E4‎ | CSS
Line 22: Line 22:
 
<td></td>
 
<td></td>
 
<td>border-color</td>
 
<td>border-color</td>
<td>Label { font-style: italic;<br>
+
<td>Button { border-color: ##FF0000; }</td>
        font-size:12</td>
+
 
</tr>
 
</tr>
 
<tr>
 
<tr>
Line 50: Line 49:
 
font-weight<br>
 
font-weight<br>
 
font-family</td>
 
font-family</td>
<td>Label { cursor:crosshair }</td>
+
<td>Label { font-style: italic;<br>
 +
        font-size: 12<br>
 +
        font-weight: bold<br>
 +
        font-family: "Terminal"; }</td>
 
</tr>
 
</tr>
 
</table>
 
</table>

Revision as of 14:59, 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 }
control border-color Button { border-color: ##FF0000; }
control border-width Button { border-width: 3 }
control border-style Button { border-style: dotted }
control setCurosr(Cursor) cursor Shell { cursor:crosshair }
control setFont(Font) font-style

font-size
font-weight

font-family
Label { font-style: italic;
       font-size: 12
font-weight: bold
font-family: "Terminal"; }

Back to the top