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

Arián let's fix this in our CSS via the bug

Arián Fornaris Fernández <boniatillo@xxxxxxxxx> schrieb am Fr., 28. Sep. 2018, 15:19:
Well Mickael,

It works ok for Composites, but not for Canvas. The foreground is not inherited. We need a  "setForegroundMode(SWT.INHERITS_FORCE)" so I guess this solution is not going to work in all the cases. The good luck is that I can get foreground from the parent, and it is not going to change because the view is activated or not. As a workaround is find, but maybe there is a more safe solution.

image.png


On Fri, Sep 28, 2018 at 9:03 AM Arián Fornaris Fernández <boniatillo@xxxxxxxxx> wrote:

 
I the parent is a composite, did you try parent.setBackgroundMode(SWT.INHERITS_FORCE) ?

Oh, that makes the trick! Thanks!

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

Back to the top