Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsSetting Composite Background color
https://www.eclipse.org/forums/index.php/mv/msg/373680/909288/#msg_909288
I got stuck trying to set the background color of a composite. This composite (Composite A) lives inside another composite (Composite B).
I have set the background mode of composite A and B to SWT.INHERIT_DEFAULT. Also, I have set the WidgetUtil.CUSTOM_VARIANT of Composite B to a special CSS style and it works fine. Now, I try to set Composite A with another CSS style by using the custom variant, but the desired background color never showed up.
With all the code above and a hard call "setBackground(Color)", I can set the color to the one I want. But with CSS and custom variant, I can't do the same thing.
Is there any material which explains more about the background mode? Or if you can think of anything that I can try to get around the problem?
Thanks.]]>Ronald So2012-09-06T22:04:51-00:00Re: Setting Composite Background color
https://www.eclipse.org/forums/index.php/mv/msg/373680/909367/#msg_909367
Ronald So2012-09-07T03:12:47-00:00Re: Setting Composite Background color
https://www.eclipse.org/forums/index.php/mv/msg/373680/909479/#msg_909479
I've noticed that the default background color of Composites is
currently set to "transparent" in the default theme, making Composites
inherit their parent's bg color. I've opened a bug [1] for this issue.
Professional services for RAP and RCP? http://eclipsesource.com/services/rap/]]>Ralf Sternberg2012-09-07T07:51:01-00:00Re: Setting Composite Background color
https://www.eclipse.org/forums/index.php/mv/msg/373680/909701/#msg_909701
Ronald]]>Ronald So2012-09-07T16:05:56-00:00