La Vita è Bella

2007-01-23

A patch for Gecko based browsers on Mac for buttons

Gecko based browsers, including Mozilla Firefox, Mozilla Camino, Mozilla Seamonkey, optimized 3rd-party builds of Firefox and etc. , didn't display buttons on webpages well on Mac OS X.

For aqua buttons, that shown in Camino and some optimized 3rd-party builds of Firefox, the CJK buttons often be malformed and cause you can't see the text on the button well. For common buttons, they're just ugly.

I've found a hack through the internet, and I'm not so sure what did it actually do (seems to be some dirty tricks), but it works. So I cut off some unnecessary codes and made this patch. To use it, just execute the following command under terminal (Terminal.app or iTerm.app, replace "/Applications/Camino.app" to the path of the app you want to patch):

cd /Applications/Camino.app/Contents/MacOS/res/
patch -i /path/to/moz-forms.patch

And it's done.

Before:
A patch for Gecko browsers on Mac: Aqua buttons, before
A patch for Gecko browsers on Mac: common buttons, before

After:
A patch for Gecko browsers on Mac: Aqua buttons, after
A patch for Gecko browsers on Mac: common buttons, before

I didn't write this patch. I just found it and made it easier to use.

20:04:14 by fishy - Permanent Link

May the Force be with you. RAmen