LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 08-26-2006, 04:44 PM   #1
Arkas
Member
 
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
stress_junkie
Senior Member
 
Registered: Dec 2005
Location: Massachusetts, USA
Distribution: Ubuntu 10.04 and CentOS 5.5
Posts: 3,873

Rep: Reputation: 331Reputation: 331Reputation: 331Reputation: 331
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.

Code:
  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
Arkas
Member
 
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!!
 
  


Reply

Tags
themes


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


All times are GMT -5. The time now is 01:34 PM.

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