![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
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 |
|
|
#1 |
|
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 |
|
|
|
|
|
#2 |
|
First Cup of Ubuntu
![]() Join Date: Nov 2007
Beans: 7
|
Re: .gtkrc-2.0 widgets defined, menu backgrounds
__________________
"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... |
|
|
|
|
|
#3 |
|
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.
|
|
|
|
|
|
#4 |
|
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 |
|
|
|
|
|
#5 |
|
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 |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|