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

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:
Hi,

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");

or

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

or

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

But it does not work.

Any tip? This is really frustrating.

Best regards


image.png

Back to the top