Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » SWT.INHERIT_DEFAULT should be default?
SWT.INHERIT_DEFAULT should be default? [message #81984] Wed, 09 April 2008 05:36 Go to next message
Paul Norrie is currently offline Paul NorrieFriend
Messages: 51
Registered: July 2009
Member
Hi guys

Congratulations on 1.1M3! I downloaded it today.

However all the labels on Composites now have a different background
colour than the shell. 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?

Alternatively something new in the theme properties file where labels can
have a background colour.
Re: SWT.INHERIT_DEFAULT should be default? [message #82031 is a reply to message #81984] Wed, 09 April 2008 11:32 Go to previous messageGo to next message
Eclipse UserFriend
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
Re: SWT.INHERIT_DEFAULT should be default? [message #82164 is a reply to message #82031] Thu, 10 April 2008 01:24 Go to previous message
Paul Norrie is currently offline Paul NorrieFriend
Messages: 51
Registered: July 2009
Member
We do use a custom theme. I hadn't noticed the label.x properties and I
had assumed that they inherited from widget properties.

I'll go and set those properties now.

Thanks heaps
Paul
Previous Topic:RWT Standalone
Next Topic:Online GMF RCP possible using RAP ?
Goto Forum:
  


Current Time: Thu Apr 18 18:09:31 GMT 2024

Powered by FUDForum. Page generated in 0.02651 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top