Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [e4-dev] Custom widget is not styled

Hi Arián,

This looks very cool. Which app is this? Is it os?

To style your widget you have to add it to the dark theme.

YourWidget {
  Propertyyouwanttostyle: value;

And extend the default dark theme.

For more info see

Does that help? If not please ask again.

Cheers, Lars

Arián Fornaris Fernández <boniatillo@xxxxxxxxx> schrieb am Do., 27. Sep. 2018, 21:10:
By the way, I do not want to create a new class or new CSS properties, I just want my custom widgets to get (inherit) the style from the base class (Canvas or Composite).

On Thu, Sep 27, 2018 at 3:00 PM Arián Fornaris Fernández <boniatillo@xxxxxxxxx> wrote:

My custom widgets are not being styled by the CSS theme engine. Look in the image how my custom widgets look in the Dark theme.

The only thing I do is to extend the Canvas or Composite widgets.

I tried by calling this method:

setData("org.eclipse.e4.ui.css.CssClassName", "Canvas");


setData("org.eclipse.e4.ui.css.CssClassName", "Composite");


setData("org.eclipse.e4.ui.css.CssClassName", "Label");

But it does not work.

Any tip? This is really frustrating.

Best regards

e4-dev mailing list
To change your delivery options, retrieve your password, or unsubscribe from this list, visit

Back to the top