Hi Mickael and Ed, we already moved the discussion to the https://bugs.eclipse.org/bugs/show_bug.cgi?id=539592
Inheritance is in general not supported by CSS (AFAIK) but we will enable that developers can simple set a property to get the default Composite or Canvas styling. > All the theme support is generally super complicated... I think it is not complicated, it is just the people don't know. :-) Please feel free to contact me via email for CSS questions. I'm more than happy to help. Cheers, Lars On Fri, Sep 28, 2018 at 10:02 AM Ed Merks <ed.me...@gmail.com> wrote: > > Mickael, > > I might be off base on this observation, but if I recall correctly (from > getting Oomph things to behave correctly with dark theme), if one subclasses > Composite, your subclass is no longer styled as a composite. And there's no > simple way to mark it the instance so that it's styled according to some > existing style definition. I.e., a feature to "please treat this instance as > a composite" would definitely have been helpful. > > It was also my observation that trying to set colors during construction is > kind of a losing battle because the styling comes back later and changes the > colors. All the theme support is generally super complicated... > > Regards, > Ed > > > On 28.09.2018 08:24, Mickael Istria wrote: > > Hi, > > You can directly ask this to the platform-ui-dev mailing-list. This e4 one > isn't really relevant now. > About your custom widget, I guess by Custom you mean that you're actually > taking care of some parts of their drawing? If so, then I believe it's up to > you in your drawing routines to read the widget style and to choose the right > colors for background/foreground accordingly. One possibility if you wish > really dynamic results is that instead of reading the style, you simply rely > on the background color of the parent composite, so you don't have to deal > with CSS and your widget would be portable in any composite and integrate > well in it without tweak > > HTH. > > > > _______________________________________________ > e4-dev mailing list > e4-dev@eclipse.org > 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@eclipse.org > To change your delivery options, retrieve your password, or unsubscribe from > this list, visit > https://dev.eclipse.org/mailman/listinfo/e4-dev -- Eclipse Platform project co-lead CEO vogella GmbH Haindaalwisch 17a, 22395 Hamburg Amtsgericht Hamburg: HRB 127058 Geschäftsführer: Lars Vogel, Jennifer Nerlich de Vogel USt-IdNr.: DE284122352 Fax (040) 5247 6322, Email: lars.vo...@vogella.com, Web: http://www.vogella.com _______________________________________________ e4-dev mailing list e4-dev@eclipse.org To change your delivery options, retrieve your password, or unsubscribe from this list, visit https://dev.eclipse.org/mailman/listinfo/e4-dev