Re: Customizing Galeon using UserChrome.css
Crispin Flowerday <[email protected]>
| Newsgroups | gmane.comp.web.galeon.user |
|---|---|
| Message-ID | <[email protected]> |
On Mon, 2005-02-14 at 21:11 -0500, Philip Ganchev wrote:
>Unlike other Mozlla-based browsers, it seems Galeon cannot be
>customized using the file UserChrome.css.
Indeed, the userChrome.css file is not used in Galeon for the user
interface. However Galeon can be configured in other ways:
>What am I doing wrong, or
>how can I remove entries from the context menu?
When Galeon shows the context menus, it reads from a file called
"galeon-egg-ui.xml", this is usually in:
/usr/share/galeon/galeon-egg-ui.xml
If you want to customize this file, simply copy it to your ~/.galeon
directory, and then comment out the menu items you don't want. The
context menus are all in <popup></popup> blocks, so if you wanted to
remove the "Save Background As" item, just remove the lines containing
"DPSaveBackgroundAsAction".
Unfortunately you will probably have to re-do these customizations every
time the galeon-egg-ui.xml file changes (i.e. you should check it every
time you upgrade).
The other things you want to change are slightly easier, properties of
widgets can be customized in a ~/.gnome2/galeonrc file, just put the
snippets that I have pasted below in that file.
>I created the following file in ~/.galeon/mozilla/galeon/chrome/:
>-------------------
>/* Make menu items 15 pt instead of the default size: */
>menupopup > * {
> font-size: 15pt !important
> }
# Set menu items to large font size (if you want the menubar to be
# large as well, just Remove the "GtkMenu." from each line
style "large" { font_name = "Bitstream Vera Sans 15" }
widget_class "*.GtkMenu.GtkMenuItem.*" style "large"
widget_class "*.GtkMenu.GtkImageMenuItem.*" style "large"
widget_class "*.GtkMenu.GtkCheckMenuItem.*" style "large"
widget_class "*.GtkMenu.GtkRadioMenuItem.*" style "large"
# For the bookmarks
widget_class "GtkWindow.GtkImageMenuItem.*" style "large"
>/* Give the Location (URL) Bar a fixed-width font */
>#urlbar {
> font-family: monospace !important;
>}
# Set the Location entry to monospace, see:
# http://galeon.sourceforge.net/Main/LocationEntrySecureColour
style "mono" { font_name = "Bitstream Vera Sans Mono" }
widget_class "*.GaleonLocationEntry.*" style "mono"
HTH
Crispin
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click