|
Re: SWT.INHERIT_DEFAULT should be default? [message #82031 is a reply to message #81984] |
Wed, 09 April 2008 11:32 |
Eclipse User |
|
|
|
Originally posted by: rsternberg.innoopract.com
Hi Paul,
Paul Norrie wrote:
> Congratulations on 1.1M3! I downloaded it today.
> However all the labels on Composites now have a different background
> colour than the shell.
This is of course not intended.
I suppose you use a custom theme. We lately added properties for the
styling of Labels. Please try to set the properties "label.background"
and "label.hover.background" to appropriate values.
The new properties do not inherit the value from "widget.background"
automatically, therefore they must be set explicitly. We know that this
is a shortcoming in the current theming and will provide a solution
soon. I'm sorry for the inconvenience.
> To make the labels have the same background as
> the shell I have called setBackgroundMode(SWT.INHERIT_DEFAULT) but I
> have a lot of Composites!
>
> Would it make sense for SWT.INHERIT_DEFAULT to be the default for a new
> Composite instance?
No, as RAP semantics should not vary from SWT, the default is
SWT.INHERIT_NONE.
> Alternatively something new in the theme properties file where labels
> can have a background colour.
You can always refer to the file "theme-template.properties" in the rwt
bundle to find out about all available theme properties.
Best Regards,
Ralf
|
|
|
|
Powered by
FUDForum. Page generated in 0.02651 seconds