|
|
Re: strange behavior with transparent png-file [message #114396 is a reply to message #114300] |
Thu, 04 December 2008 14:51   |
Eclipse User |
|
|
|
Originally posted by: rsternberg.innoopract.com
Hi Roland,
transparent shells are not supported yet. The shell has a background
color that shines through your transparent image. Maybe
Shell#setOpacity() is of any help for your case?
Otherwise feel free to file a bug report if you need transparent shells.
Best regards, Ralf
Roland Siebert wrote:
> Hi,
>
> I have tried it with css.
>
> Shell {
> border: 0px;
> background-color: transparent;
> }
>
> But i get an IllegalArgumentException: "Transparency not allowed for key
> shell.background"
>
> Roland
|
|
|
|
Re: strange behavior with transparent png-file [message #114602 is a reply to message #114542] |
Fri, 05 December 2008 15:11   |
Eclipse User |
|
|
|
Originally posted by: rsternberg.innoopract.com
Roland Siebert wrote:
> Hmm.
>
> I don't find this method for Shell.
I'm sorry, it's called setAlpha().
Ralf
> Roland
>
> Ralf Sternberg schrieb:
>> Hi Roland,
>>
>> transparent shells are not supported yet. The shell has a background
>> color that shines through your transparent image. Maybe
>> Shell#setOpacity() is of any help for your case?
>> Otherwise feel free to file a bug report if you need transparent shells.
>>
>> Best regards, Ralf
|
|
|
|
|
Re: strange behavior with transparent png-file [message #122147 is a reply to message #122056] |
Fri, 20 February 2009 15:22   |
|
Hi Roland,
with the new generic CSS theming engine, Shells can now have a
transparent background:
Shell {
background-color: transparent;
}
So there's no need to mess around with private fields ;-)
Regards,
Ralf
Roland Siebert wrote:
> Hi,
>
> I found a way to set the background of the Shell to transparent.
>
> In org.eclipse.swt.widgets.Control I found "private boolean
> backgroundTransparency;" and changed it to protected.
> When I now set "backgroundTransparency=true" and
> setBackgroundMode(SWT.INHERIT_FORCE) before adding some other content
> (like Composites) to this Shell the background is transparent.
>
> Could you have a look at this and perhabs make this change also in cvs?
>
> Roland
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.02750 seconds