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

Wooha that looks cool. Can you share some tutorial links? The menu on your website does not lead to getting started content as far as I can see.

Cheers, Lars

Arián Fornaris Fernández <boniatillo@xxxxxxxxx> schrieb am Do., 27. Sep. 2018, 21:24:
Hi Lars,

It is Phaser Editor: https://phasereditor2d.com/ An IDE to make HTML5 games. The operating system is Ubuntu (with Adwaita, you can see it in Adwaita dark here https://www.youtube.com/watch?v=bAvawP-ixJ4)

I am reading the article.

Thanks for the quick answer. 


On Thu, Sep 27, 2018 at 3:16 PM Lars Vogel <lars.vogel@xxxxxxxxxxx> wrote:
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.


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:
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
_______________________________________________
e4-dev mailing list
e4-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/e4-dev
_______________________________________________
e4-dev mailing list
e4-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/e4-dev
_______________________________________________
e4-dev mailing list
e4-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/e4-dev

Back to the top