Transparent background in Firefox

Discussion of general topics about Mozilla Firefox
Post Reply
balrog
Guest

Transparent background in Firefox

Post by balrog »

Hi there,
Any desktop tuning freaks that want to try background transparency in Mozilla Firefox try my new little patch. I took the idea from gnome-terminal. You can get the patch from http://www.zabor.org/mozilla-firefox-transparency.patch
I know it still needs a lot of work, but there are cases where it looks good. Here is a screenshot: http://www.zabor.org/screen2.png (on the left is a gnome-terminal).
Suggestions welcome!
Greetings
User avatar
Rattlesnake
Posts: 420
Joined: November 20th, 2004, 6:33 am

Post by Rattlesnake »

Hmm...this must be for freaks. Even though it looks nice, I actually like to read the web-pages.
balrog
Guest

Post by balrog »

Sorry, I should have posted this in General Discussion Firefox instead of Firefox Support, ofcourse.
By the way the feature isn't causing me any difficulties in reading (so far..) because the desktop's background only appears in webpages that don't have a background image of their own and when their bg colour matches the desktop (by default only white or very bright).
User avatar
Vectorspace
Moderator
Posts: 14455
Joined: November 27th, 2003, 4:50 am
Location: Warwickshire, UK
Contact:

Post by Vectorspace »

Hey, that's cool. Does it only work on the Linux platform?

Added bonus, I'll move this to FF General for you.
"All things being equal, the simplest answer is usually the correct one" - Occam's Razor
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20110624 Thunderbird/5.0
User avatar
Rattlesnake
Posts: 420
Joined: November 20th, 2004, 6:33 am

Post by Rattlesnake »

balrog wrote:Sorry, I should have posted this in General Discussion Firefox instead of Firefox Support, ofcourse.
By the way the feature isn't causing me any difficulties in reading (so far..) because the desktop's background only appears in webpages that don't have a background image of their own and when their bg colour matches the desktop (by default only white or very bright).

Okey, I'd like to try it....but how do you actually install it? I couldn't find any readme or anything.
User avatar
Thumper
Posts: 8037
Joined: November 4th, 2002, 5:42 pm
Location: Linlithgow, Scotland
Contact:

Post by Thumper »

You don't install it. If you don't know what to do with a patch file, you're not in a position to apply it.

- Chris
User avatar
RadioactiveMan
Posts: 1222
Joined: June 27th, 2005, 5:37 pm
Location: Portland, Oregon

Post by RadioactiveMan »

You patch the source and build it.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8b4) Gecko/20050908 Firefox/1.4 BOBA CE
User avatar
Rattlesnake
Posts: 420
Joined: November 20th, 2004, 6:33 am

Post by Rattlesnake »

Thumper wrote:You don't install it. If you don't know what to do with a patch file, you're not in a position to apply it.

- Chris


Allright, but was it smart of me to learn how to compile programs from source or installing a .deb-package. Or wasn't that smart either, since I didn't know what to do with it without reading a howto the very first time?
balrog
Posts: 2
Joined: August 19th, 2005, 1:55 pm
Location: Warsaw, PL
Contact:

Post by balrog »

Vectorspace wrote:... Does it only work on the Linux platform?

Unfortunately yes, but I tried to follow OOP guidelines so that it is enough to overload a single method for Windows, Mac or BeOS support.

And yeah to install it you need to download the firefox sources, unpack them, apply the patch with "patch -p0" and then follow the normal README instructions
User avatar
Vectorspace
Moderator
Posts: 14455
Joined: November 27th, 2003, 4:50 am
Location: Warwickshire, UK
Contact:

Post by Vectorspace »

balrog wrote:
Vectorspace wrote:... Does it only work on the Linux platform?

Unfortunately yes, but I tried to follow OOP guidelines so that it is enough to overload a single method for Windows, Mac or BeOS support.
Curiosity killed the cat... :)
What do you mean by 'overload a single method'?
"All things being equal, the simplest answer is usually the correct one" - Occam's Razor
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20110624 Thunderbird/5.0
balrog
Posts: 2
Joined: August 19th, 2005, 1:55 pm
Location: Warsaw, PL
Contact:

Post by balrog »

Vectorspace wrote:
balrog wrote:Unfortunately yes, but I tried to follow OOP guidelines so that it is enough to overload a single method for Windows, Mac or BeOS support.
Curiosity killed the cat... :)
What do you mean by 'overload a single method'?

Well, it's a C++ term. In detail: the interface class for rendering contexts (nsIRenderingContext) has one derived class for each platform, for Linux it is nsRenderingContextGTK and for example for mac it is nsRenderingContextMac. If a derived class for your platform doesn't overload the method that implements transparency then nsIRenderingContext will simply fall back to normal non-transparent background. (well, it may sound complex, but it makes porting easy)
User avatar
Vectorspace
Moderator
Posts: 14455
Joined: November 27th, 2003, 4:50 am
Location: Warwickshire, UK
Contact:

Post by Vectorspace »

I see, thanks.
"All things being equal, the simplest answer is usually the correct one" - Occam's Razor
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20100101 Firefox/5.0
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:5.0) Gecko/20110624 Thunderbird/5.0
feverfive
Posts: 36
Joined: June 25th, 2005, 6:45 pm

Post by feverfive »

With the right desktop background (wallpaper), this theme would be cool. But, as noted, it could get in the way of reading/viewing text as well....
Post Reply