The Linux Journey

Getting Started

- What is Linux?
- Installing Ubuntu

Site Navigation

- Home
- About
- Recent News
- Downloads

Account

- Login
- Register
- Logout

Search



Other Links

free search engine website submission top optimization
Latest News


Gnome Panel Text Colors
March 27th, 2008

Like I promised, here is a tutorial on changing the text on the GNOME Panel to something other than black, and, like always, this tutorial will be copied to the Tutorial section of this site. It would have been nice if there was an option to change the color in the panel properties, but unfortunately there isn't. Hopefully this feature will be added to GNOME in the near future. Until then here is what you will need to do.

First of all go to your home folder (Main Menu -> places -> home folder) and see if there is a file in there called "gtkrc-2.0" . The period at the beginning of the file name means it is hidden, so in order to see it you will need to go to to the View menu at the top of the file browser and check "Show Hidden Files." If there file isn't there simply create it by right clicking -> Create Document (Be sure to name the file .gtkrc-2.0). Inside of this file You will want to add the following:
 style "panel"
{
 fg[NORMAL] = "#ffffff"
# fg[PRELIGHT] = "#000000"
# fg[ACTIVE] = "#ffffff"
# fg[SELECTED] = "#000000"
# fg[INSENSITIVE] = "#8A857C"
# bg[NORMAL] = "#000000"
# bg[PRELIGHT] = "#dfdfdf"
# bg[ACTIVE] = "#D0D0D0"
# bg[SELECTED] = "#D8BB75"
# bg[INSENSITIVE] = "#EFEFEF"
# base[NORMAL] = "#ffffff"
# base[PRELIGHT] = "#EFEFEF"
# base[ACTIVE] = "#D0D0D0"
# base[SELECTED] = "#DAB566"
# base[INSENSITIVE] = "#E8E8E8"
# text[NORMAL] = "#161616"
# text[PRELIGHT] = "#000000"
# text[ACTIVE] = "#000000"
# text[SELECTED] = "#ffffff"
# text[INSENSITIVE] = "#8A857C"
}
widget "*PanelWidget*" style "panel"
widget "*PanelApplet*" style "panel"
class "*Panel*" style "panel"
widget_class "*Mail*" style "panel"
class "*notif*" style "panel"
class "*Notif*" style "panel"
class "*Tray*" style "panel"
class "*tray*" style "panel"
This code here will change your panel text color from black to white. If you want a different color you only need to worry about the third line from the top... the one that says fg[NORMAL] = "#ffffff". You may be wondering what exactly this means. #ffffff is hexadecimal notation for the color white. The hexadecimal color codes are set up like this:

# Red Green Blue

Where each value goes from 00 to FF. That probably didn't make any sense, so I'll give some examples. If I wanted red text I would replace that line with fg[NORMAL] = "#ff0000" or if I wanted darker red I could go with fg[NORMAL] = "#bb0000". Here is a nice little website that might be useful. Once you have the color like you want it save the file and type this into the terminal to reset you panel:

killall gnome-panel

Thats all! Your text should now be in whatever color it is you chose. I know there is a lot of other stuff in the file we created that we didn't do anything with, but thats another topic for another day. If you want to play around with it you can try uncommenting the line you want (delete the "#" before the line) and changing the value to see what happens.



Comments




Type Your Comment Here. You must be logged in to comment.