moz-bonobo-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [moz-bonobo-list] SVG and moz-bonobo


From: Christian Fredrik Kalager Schaller
Subject: Re: [moz-bonobo-list] SVG and moz-bonobo
Date: 14 Jun 2003 11:33:39 +0200

On Sat, 2003-06-14 at 11:16, Jean Bréfort wrote:
> Le ven 13/06/2003 à 21:33, Christian Glodt a écrit :
> > Hi,
> > 
> > On Fri, 2003-06-13 at 21:05, Christian Fredrik Kalager Schaller wrote:
> > > Hi,
> > > Here are some screenshots I made of moz-bonobo + eog displaying some SVG
> > > images. Is there any change moz-bonobo could get them to display using
> > > the webpage background color as its background color?
> > > 
> > > http://www.linuxrising.com/files/abisvg.png
> > > http://www.linuxrising.com/files/bsggaleon.png
> > 
> > AFAIK, this is not possible using the (current) EOG component.
> > I'm not sure if it's possible at all. Even if the browser plugin
> > interface supported translucent plugins (which I don't know),
> > it would probably take a custom bonobo component to display it
> > using transparencies.
> > 
> > I wouldn't be opposed to bundling such a specialised component
> > with mozilla-bonobo, btw.
> 
> It is quite possible that mozilla supports transparent plugins. One of
> the possible parameters for NPP_GetValue is NPPVpluginTransparentBool.
> But gtk+ does not support transparent windows (except in
> framebuffers(?)) as far as I know. So the GtkPlug cannot be made
> transparent even if the Control had a transparent background.
> One might bbe related problem is an existence of a shadow around the
> control displayed. I can't get rid if it and I suppose it comes from the
> GtkPlug (not sure).
> 
> > 
> > Another way might be the bonobo property bag support which
> > Jean Bréfort contributed today. We could pass the background
> > colour as a plugin parameter to all bonobo components.
> > Then someone would need to patch EOG to support that property.
> > 
> > Still, I'm not sure how the background colour can be found out
> > from a browser plugin.
> 
> I do not know either, but it is possible to add a background parameter
> such as
> <param name="background" value="rgb(0,0,0)"/>
> or anything appropriate. Anymay, there is no background property in the
> EOG control property bag at the moment. Note that if an image is used as
> background, things will be very difficult if not impossible.

Well my reason for seeing the need for this is looking at the SVG
conformance tests at w3c which looks very bad due to using the checkered
background instead of white which is the page background.
http://www.w3.org/Graphics/SVG/Test/20011026/toc-ps.html

But I would think that if Adobe's plugin picks up the background colour
from those pages there should be some way to do it.

Christian





reply via email to

[Prev in Thread] Current Thread [Next in Thread]