|
Re: What is the correct to set a CSS selector on a subclass [message #1061576 is a reply to message #1061494] |
Mon, 03 June 2013 05:49 |
Ivan Furnadjiev Messages: 2426 Registered: July 2009 Location: Sofia, Bulgaria |
Senior Member |
|
|
Hi,
as Section (ExpandableComposite) is not a direct themeable widget you
have to set your custom variant on the Composite CSS element:
Composite.viewlet_header
HTH,
Ivan
On 6/3/2013 4:29 AM, Corby James wrote:
> I'm trying to set the font on a eclipse ui forms widget - Section -
> which inherits from ExpandableComposite, which is a widget that
> supports custom theme-ing.
>
> Can this be done and if so, how so I set CSS selector for it in my code?
>
> I'm currently doing the following in code:
>
>
> Section section = new Section(composite, style );
> section.setData(RWT.CUSTOM_VARIANT, "viewlet_header");
> section.setText(text);
>
>
>
> In the CSS, I tried
> Section.viewlet_header
>
> viewlet_header
>
> ExpandableComposite.viewlet_header
>
> all to no avail.
>
> Thanks for any help.
>
>
--
Ivan Furnadjiev
Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/
Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03281 seconds