Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 08-26-2006, 04:44 PM   #1
Registered: Jun 2003
Location: Nicosia, Cyprus
Distribution: Ubuntu
Posts: 30

Rep: Reputation: 15
Customization Questions

I recently installed a dark theme for my gnome desktop and i want to change something. The location bar in firefox and all the text fields on websites such as google, yahoo, and the box i am writing this text in, changed with the theme into a dark grey color with black text which makes it very hard to read and write in. Is there a way to change the color back to the default white but keeping the theme?

I would also like to enable the green OKs and red Failed in grub during boot. I have Ubuntu 6.06 installed and managed to have the text boot enabled but there are no colours!

Thanks in advance!
Old 08-27-2006, 04:06 PM   #2
Senior Member
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 332Reputation: 332Reputation: 332Reputation: 332
Since nobody has responded to your post yet I decided that I'd try to help. When I read your post I immediately looked around the Gnome application directories. I found /opt/gnome/share/themes. Then I selected one of the available themes to explore. In this case I selected the Industrial theme. I found that there were three subdirectories and a text file named index.theme. I read the index.theme. It didn't look too helpful. I looked in the subdirectory named gtk. I found a text file there named gtkrc. I read that. I found that it defined specific colors for the environment variables such as the background color, text color, etc. Here is some of the code from that file.

  bg[NORMAL]      = "#f6f6f6"
  bg[PRELIGHT]     = "#ffffff"
  fg[PRELIGHT]    = "#202020"
  bg[ACTIVE]       = "#d9d9d9"
  bg[INSENSITIVE] = "#d9d9d9"
  bg[SELECTED]    = "#99a6bf"

        base[SELECTED]  = "#6484a4"
  text[SELECTED]  = "#ffffff"
        #this is selected item without focus:
  base[ACTIVE]  = "#b6c9cf"
  text[INSENSITIVE]  = "#ffffff"
I don't know exactly how it all works but it seems pretty straightforward. If I wanted to change some of the characteristics of the Gnome Industrial theme I would make a backup copy of the file /opt/gnome/share/themes/Industrial/gtk/gtkrc and then I would monkey around with the settings.

If it's any help I'm 99% sure that the numbers that define the colors are pairs of hex numbers. Each pair is one of the colors that make up the CRT color palette. These are red, green, and blue. So a value of #00ff00 would be zero red, maximum green, and zero blue. At least this is the way that colors have been defined in computer hardware/software interfaces for over twenty years. Black is represented by zero for red, green, and blue as in #000000 and white is represented by maximum for red, green, and blue as in #ffffff. All other colors that can be displayed are just variations of these color values.

Good luck. :-)

Last edited by stress_junkie; 08-27-2006 at 04:18 PM.
Old 08-27-2006, 05:17 PM   #3
Registered: Jun 2003
Location: Nicosia, Cyprus
Distribution: Ubuntu
Posts: 30

Original Poster
Rep: Reputation: 15
Thank you very much for all your help!!! I couldn't have done it without you! Now my theme looks great!

Again thnx a lot!!



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
shell customization nick021 Linux - Newbie 1 03-28-2006 09:31 PM
KDE customization questions Kaamoss Linux - Newbie 1 09-23-2005 02:20 AM
Customization Jmcatch742 Linux - General 7 08-21-2004 09:55 PM
desktop customization questions ScreeminChikin Linux - General 5 03-05-2004 11:00 AM
Debain customization. Vipes Debian 3 01-26-2004 10:25 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:57 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration