Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipse-incubator-e4-dev] CSS DOM Binding


Hi Gorkem,,

>I was hoping that the CSS would be supported at SWT level. SWT would
>provide some simple to use APIs like Display.setCSS (String style)
>and Control.setCSS (String style).
With this method you can manage only inline style,, but you can manage CSS styles defined like this

Text {
   color:red;
}

More it's difficult to manage CSS custom propertry with this method.

Hi Eric,

The TK-UI CSS engine use setdata to put properties (#class, #id, attr) as you have suggested.
You can read CSS SWT engine section for more information.
Inline style are managed like this, see Inline style section

Regards Angelo


Back to the top