Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > Desktop Effects & Customization
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.
Ubuntu 9.10 is out!!!

When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu.

The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely.

Desktop Effects & Customization
This section is for all your compositing needs. This includes Beryl, Compiz, xcompmgr, and other fancy apps which take advantage of compositing managers such as kiba-dock and avant window decorator

 
Thread Tools Display Modes
Old December 11th, 2007   #1
lred_tree
First Cup of Ubuntu
 
Join Date: Nov 2007
Beans: 7
.gtkrc-2.0 widgets defined, menu backgrounds

Hey everyone, been working on my .gtkrc-2.0 for awhile trying to decipher it (I have gutsy gibbon). I changed most of what I had wanted to change but for the longest time could not figure how to change the background color for drop down menus.
Well, I have solved that issue. Mostly thanks to this website.

Check it out if you have a chance, it's a great guide to .gtkrc-2.0

There are a lot of threads on here about that file and how to change it to acheive various ends, so I thought I'd start one that attempted to collect definitions for various widgets so that someone wanting to edit .gtkrc-2.0 could find which widget did what they wanted.

I'm assuming everyone reading this already knows how styles are built and how to apply them to a widget. If you don't, check the link above. It explains all that.

So, here is how you can change the background color of your menus:



style "menu_color"
{
fg[NORMAL] = "#123CD8"
fg[SELECTED] = "#ff0000"
fg[ACTIVE] = "#ff0000"
fg[PRELIGHT] = "#ff0000"
fg[INSENSITIVE] = "#A9B9FF"
bg[NORMAL] = "#000000"
bg[SELECTED] = "#000000"
bg[ACTIVE] = "#000000"
bg[PRELIGHT] = "#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"
widget_class "*Menu*" style "menu_color"



The asterisks on either side of the "Menu" widget class are wildcards, so the style applied will effect all widgets with "Menu" in the name. What the specific widget is that effects background menus I don't know, but I know this works on my machine. Give it a shot and see.

So, please post any other discoveries you have made about widgets and what they effect. It would be nice to get a good amount of defined widgets here.

Thanks!
__________________
"Run, or you'll all be killed by toasted cream!!" -Ethan, Ctrl+Alt+Del

Last edited by lred_tree; December 11th, 2007 at 02:10 PM.. Reason: enhance title
lred_tree is offline   Reply With Quote
Old December 13th, 2007   #2
lred_tree
First Cup of Ubuntu
 
Join Date: Nov 2007
Beans: 7
Re: .gtkrc-2.0 widgets defined, menu backgrounds

Bump + a cool link: <--- p.s. click the smiley face...
__________________
"Run, or you'll all be killed by toasted cream!!" -Ethan, Ctrl+Alt+Del

Last edited by lred_tree; December 13th, 2007 at 02:29 AM.. Reason: pffft...
lred_tree is offline   Reply With Quote
Old March 3rd, 2008   #3
mrfr0g
5 Cups of Ubuntu
 
Join Date: Apr 2007
Beans: 34
Re: .gtkrc-2.0 widgets defined, menu backgrounds

Thanks so much! I've been looking for a way to do this.
mrfr0g is offline   Reply With Quote
Old July 20th, 2008   #4
lred_tree
First Cup of Ubuntu
 
Join Date: Nov 2007
Beans: 7
Re: .gtkrc-2.0 widgets defined, menu backgrounds

bg[SELECTED] =

This will change the highlight color when your mouse hovers over an item in a menu (if applied to: widget_class "*Menu*" style), handy for changing that default ubuntu brown into something more appropriate for your deco scheme.

bg[ACTIVE] =

This will change the background color of the directory buttons listed while in the file browser, for the directory you are currently in, when applied to: widget_class "*ToolItem*" style
bg[SELECTED] =
this will change the outline highlight for when your mouse hovers over a directory button.

widget "*PanelApplet*" style

This widget will allow you to change the colors of your workspace switcher on your panel. Experiment with it to see what you can change.
__________________
"Run, or you'll all be killed by toasted cream!!" -Ethan, Ctrl+Alt+Del

Last edited by lred_tree; July 20th, 2008 at 07:34 PM.. Reason: to add content
lred_tree is offline   Reply With Quote
Old July 20th, 2008   #5
lred_tree
First Cup of Ubuntu
 
Join Date: Nov 2007
Beans: 7
Re: .gtkrc-2.0 widgets defined, menu backgrounds

Tool Tips:

To change the color of your tooltips, you have to use this widget:
widget "gtk-tooltip" style
and point to a style that you have set the color for bg[NORMAL] =

It is important that you do not use "gtk-tooltips" instead of "gtk-tooltip"
There are many forums that list the plural version, but this will NOT work- took me awhile to figure that one out.
__________________
"Run, or you'll all be killed by toasted cream!!" -Ethan, Ctrl+Alt+Del
lred_tree is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

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

Forum Jump


All times are GMT -4. The time now is 06:42 PM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. bilberry