Change Font Colour in Gnome Panels

Sponsored Link
Open your terminal and edit this file

vi .gtkrc-2.02


An empty Text document will open, and you need to copy/paste the following lines

include "/home/autocrosser/.gnome2/panel-fontrc"style "desktop-icon"
{
NautilusIconContainer::frame_text = 1
text[NORMAL] = "#000000"
NautilusIconContainer::normal_alpha = 70
}
class "GtkWidget" style "desktop-icon"

#NautilusIconContainer::dark_info_color="#888888″
#NautilusIconContainer::light_info_color="#bbbbbb"
#NautilusIconContainer::highlight_alpha=200

style "my_color"
{
fg[NORMAL] = "#000000"
}
widget "*PanelWidget*" style "my_color"
widget "*PanelApplet*" style "my_color"
widget_class "*MenuItem*" style "my_color"
widget_class "*ToolItem*" style "my_color"
widget_class "*SeparatorMenuitem*" style "my_color"
widget_class "*SeparatorToolitem*" style "my_color"
widget_class "*ImageMenuitem*" style "my_color"
widget_class "*RadioMenuitem*" style "my_color"
widget_class "*CheckMenuitem*" style "my_color"
widget_class "*TearoffMenuitem*" style "my_color"

save and exit the file

Change the color code of: fg[NORMAL] = "#000000"

To whatever you like, and the text in gnome panels will become that color.

If you dont know the code for the color you want, you can use this little handy program.

sudo apt-get install gcolor2

If you want to access this program use the following command

gcolor2

You may also like...

7 Responses

  1. Matthew Page says:

    Do you know a way to change the background/foreground colors of the terminal from the command line? For Xterms you can use escape sequences like :

    echo “33]11;#febf7207”;

    any way to do this in terminal?

    matt

  2. giacomok says:

    it’s possible to change color’s font panel in gutsy ?
    /home/autocrosser/.gnome2/panel-fontrc”style “desktop-icon seems to be invalid in ubuntu 7.10
    I’m sorry for bad english
    thanks

  3. justdroppingin says:

    apt-get install gnome-color-chooser

  4. jon says:

    the gnome color chooser works great!!!

    Thanks

  5. rfry11 says:

    justdroppingin’s install code is valid, the gnome color chooser does work in Intrepid.
    For all the newcomers to Ubuntu, though, here’s the correct code:
    sudo apt-get install gnome-color-chooser
    Can’t forget the good ‘ole sudo command 😉

  6. ninja says:

    I tried this and its still not working, is it cause im on 9.04? I had it working on gutsy and i thought i recalled calling a comman like killallpanels or something? thanks

  7. x3qt0r says:

    I love linux :p
    and i love :
    sudo apt-get install gnome-color-chooser
    :p

Leave a Reply

Your email address will not be published. Required fields are marked *