Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Text and CUSTOM_VARIANT does not set background
Text and CUSTOM_VARIANT does not set background [message #124501] Fri, 13 March 2009 14:54 Go to next message
Markus  rüger is currently offline Markus rügerFriend
Messages: 369
Registered: July 2009
Senior Member
Hi,
adding the following to css does not set background, just the border style:

Text.notRelevant {

color: rgb( 39, 64, 139 );

background-color: #fff1a1;

border: none;

}



Regards,

Markus
Re: Text and CUSTOM_VARIANT does not set background [message #124621 is a reply to message #124501] Sat, 14 March 2009 17:04 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi Markus,

Your snippet works as expected. Sure the background is not overridden by
some other rule in your stylesheet that has a higher specificity? Try a
minimal stylesheet that only contains this one rule.

Reagrds,
Ralf

Markus Krüger wrote:
> Hi,
> adding the following to css does not set background, just the border style:
>
> Text.notRelevant {
>
> color: rgb( 39, 64, 139 );
>
> background-color: #fff1a1;
>
> border: none;
>
> }
>
>
>
> Regards,
>
> Markus
>
>
Re: Text and CUSTOM_VARIANT does not set background [message #124666 is a reply to message #124621] Mon, 16 March 2009 10:39 Go to previous message
Markus  rüger is currently offline Markus rügerFriend
Messages: 369
Registered: July 2009
Senior Member
Hi Ralf,

ok, it seems to work now. Creating the Text widget with the formtoolkit
causes the problem since it sets a backgound color.
Calling text.setBackground(null) solved it.

Regards,
Markus

"Ralf Sternberg" <rsternberg@eclipsesource.com> schrieb im Newsbeitrag
news:gpgo3m$fv0$1@build.eclipse.org...
> Hi Markus,
>
> Your snippet works as expected. Sure the background is not overridden by
> some other rule in your stylesheet that has a higher specificity? Try a
> minimal stylesheet that only contains this one rule.
>
> Reagrds,
> Ralf
>
> Markus Kr
Previous Topic:Retrieving RAP internal icons
Next Topic:Overlaying Images in RAP
Goto Forum:
  


Current Time: Sun Dec 05 05:51:50 GMT 2021

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

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

Back to the top