Page 8 of 15 FirstFirst ... 678910 ... LastLast
Results 71 to 80 of 143

Thread: A Beginner "How To" for gtkrc themes.

  1. #71
    Join Date
    Oct 2006
    Beans
    Hidden!

    Re: A Beginner "How To" for gtkrc themes.

    Hi

    Does anyone know how to set the font color of items in a ComboBox?
    I need it different that the default text[NORMAL]

    The theme is mostly white on black, except for regular text areas which are black on white. The only problem are the combobox items that are not selected or hovered: they appear black on black.

    Here are the relevant parts of the gtkrc:

    Code:
    style "default"
    {
    #[...]
    fg[NORMAL]		= "#ffffff" #Normal Button Text
    fg[PRELIGHT]		= "#ffffff" #Mouseover button text
    fg[ACTIVE]		= "#ffffff" #Active button text
    fg[SELECTED]		= "#909090" # ??
    fg[INSENSITIVE]		= "#909090" # ??
    
    bg[NORMAL]		= "#080808" #Inactive Window Title Bar
    bg[PRELIGHT]		= "#000000" # ??
    bg[ACTIVE]		= "#000000" # ??
    bg[SELECTED]		= "#080808" #Active Window Title Bar
    bg[INSENSITIVE] 	= "#3f3f3f" # ??
    
    base[NORMAL]		= "#ffffff" #"#000000" Text Area Background
    base[PRELIGHT]		= "#313131" # ??
    base[ACTIVE]		= "#071f46" #Inactive Selection Background
    base[SELECTED]		= "#0d377c" #Active Selection Background
    base[INSENSITIVE]	= "#ffffff" #"#000000" Disabled Text Area Background
    
    text[NORMAL]		= "#000000" #"#ffffff"
    text[PRELIGHT]		= "#ffffff"
    text[ACTIVE]		= "#ffffff" #Inactive Selection Text
    text[SELECTED]		= "#ffffff" #Active Selection Text
    text[INSENSITIVE]	= "#606060"
    
    }
    
    class "GtkWidget" style "default"
    
    style "optionmenu" = "default"
    {
    text[NORMAL]		= "#ffffff"
    #[...]
    }
    
    widget_class "*Combo*" style "optionmenu"
    
    style "menuitem" = "default"
    {
    xthickness		= 1
    fg[PRELIGHT] 	= "#ffffff"
    text[PRELIGHT]	= "#949494"
    #[...]
    }
    
    
    widget_class "*List" style "list-header"
    widget_class "*GtkTree*" style "list-header"
    widget_class "*GtkCList*" style "list-header"
    class "GtkButton" 			style "button"
    class "GtkRadioButton" 		style "radiobutton"
    class "GtkRadioMenuItem" 	style "radiobutton"
    class "GtkCheckButton" 		style "checkbutton"
    class "GtkCheckMenuItem" 	style "checkbutton"
    class "GtkOptionMenu" 		style "optionmenu"
    class "GtkCombo*" 			style "optionmenu"
    class "GtkListItem"		style "menuitem"
    class "*Font*" 				style "optionmenu"
    class "GtkEntry" 			style "entry"
    class "GtkOldEditable" 		style "entry"
    class "GtkSpinButton" 	 	style "spinbutton"
    class "GtkRuler" 			style "ruler"
    class "GtkScrollbar" 			style "scrollbar"
    class "GtkProgressBar" 		style "progressbar"
    class "GtkRange" 			style "range"
    class "GtkMenu" 			style "menu"
    class "GtkMenuBar*" 		 	style "menubar"
    widget_class "*MenuBar.*" 	style "menubar"
    class "GtkMenuItem"			style "menuitem"
    class "GtkTearoffMenuItem"	style "menuitem"
    class "GtkNotebook"	 		style "notebook"
    class "GtkToolbar" 			style "flat"
    class "GtkHandleBox" 		style "handlebox"
    class "GtkEventBox" 			style "flat"
    class "GtkPaned" 			style "handlebox"
    class "GtkLayout" 			style "layout"
    class "SPButton" 			style "SPbutton"
    widget "gtk-tooltips" 		style "tooltips"
    Thanks for any help!

  2. #72
    Join Date
    Jun 2007
    Beans
    244

    Re: A Beginner "How To" for gtkrc themes.

    Quote Originally Posted by fwwarr View Post
    Hi

    Does anyone know how to set the font color of items in a ComboBox?
    I need it different that the default text[NORMAL]

    The theme is mostly white on black, except for regular text areas which are black on white. The only problem are the combobox items that are not selected or hovered: they appear black on black.

    Here are the relevant parts of the gtkrc:

    Code:
    style "default"
    {
    #[...]
    fg[NORMAL]		= "#ffffff" #Normal Button Text
    fg[PRELIGHT]		= "#ffffff" #Mouseover button text
    fg[ACTIVE]		= "#ffffff" #Active button text
    fg[SELECTED]		= "#909090" # ??
    fg[INSENSITIVE]		= "#909090" # ??
    
    bg[NORMAL]		= "#080808" #Inactive Window Title Bar
    bg[PRELIGHT]		= "#000000" # ??
    bg[ACTIVE]		= "#000000" # ??
    bg[SELECTED]		= "#080808" #Active Window Title Bar
    bg[INSENSITIVE] 	= "#3f3f3f" # ??
    
    base[NORMAL]		= "#ffffff" #"#000000" Text Area Background
    base[PRELIGHT]		= "#313131" # ??
    base[ACTIVE]		= "#071f46" #Inactive Selection Background
    base[SELECTED]		= "#0d377c" #Active Selection Background
    base[INSENSITIVE]	= "#ffffff" #"#000000" Disabled Text Area Background
    
    text[NORMAL]		= "#000000" #"#ffffff"
    text[PRELIGHT]		= "#ffffff"
    text[ACTIVE]		= "#ffffff" #Inactive Selection Text
    text[SELECTED]		= "#ffffff" #Active Selection Text
    text[INSENSITIVE]	= "#606060"
    
    }
    
    class "GtkWidget" style "default"
    
    style "optionmenu" = "default"
    {
    text[NORMAL]		= "#ffffff"
    #[...]
    }
    
    widget_class "*Combo*" style "optionmenu"
    
    style "menuitem" = "default"
    {
    xthickness		= 1
    fg[PRELIGHT] 	= "#ffffff"
    text[PRELIGHT]	= "#949494"
    #[...]
    }
    
    
    widget_class "*List" style "list-header"
    widget_class "*GtkTree*" style "list-header"
    widget_class "*GtkCList*" style "list-header"
    class "GtkButton" 			style "button"
    class "GtkRadioButton" 		style "radiobutton"
    class "GtkRadioMenuItem" 	style "radiobutton"
    class "GtkCheckButton" 		style "checkbutton"
    class "GtkCheckMenuItem" 	style "checkbutton"
    class "GtkOptionMenu" 		style "optionmenu"
    class "GtkCombo*" 			style "optionmenu"
    class "GtkListItem"		style "menuitem"
    class "*Font*" 				style "optionmenu"
    class "GtkEntry" 			style "entry"
    class "GtkOldEditable" 		style "entry"
    class "GtkSpinButton" 	 	style "spinbutton"
    class "GtkRuler" 			style "ruler"
    class "GtkScrollbar" 			style "scrollbar"
    class "GtkProgressBar" 		style "progressbar"
    class "GtkRange" 			style "range"
    class "GtkMenu" 			style "menu"
    class "GtkMenuBar*" 		 	style "menubar"
    widget_class "*MenuBar.*" 	style "menubar"
    class "GtkMenuItem"			style "menuitem"
    class "GtkTearoffMenuItem"	style "menuitem"
    class "GtkNotebook"	 		style "notebook"
    class "GtkToolbar" 			style "flat"
    class "GtkHandleBox" 		style "handlebox"
    class "GtkEventBox" 			style "flat"
    class "GtkPaned" 			style "handlebox"
    class "GtkLayout" 			style "layout"
    class "SPButton" 			style "SPbutton"
    widget "gtk-tooltips" 		style "tooltips"
    Thanks for any help!
    style "optionmenu" = "default"
    {
    text[NORMAL] = "#ffffff"
    #[...]
    }

    try this:

    style "optionmenu" = "default"
    {
    text[NORMAL] = "#ffffff"
    fg[NORMAL] = "#FFFFFF"
    bg[NORMAL] = "#000000"
    #[...]
    }

    fg is the color of your font in window and menus.
    bg is the background color of those things.

    text is the color of the text you write with a keyboard.

  3. #73
    Join Date
    Oct 2006
    Beans
    Hidden!

    Re: A Beginner "How To" for gtkrc themes.

    Quote Originally Posted by xl_cheese View Post
    style "optionmenu" = "default"
    {
    text[NORMAL] = "#ffffff"
    #[...]
    }

    try this:

    style "optionmenu" = "default"
    {
    text[NORMAL] = "#ffffff"
    fg[NORMAL] = "#FFFFFF"
    bg[NORMAL] = "#000000"
    #[...]
    }

    fg is the color of your font in window and menus.
    bg is the background color of those things.

    text is the color of the text you write with a keyboard.
    Thanks for the quick reply!
    Unfortunately this does not work.
    I'm pretty sure the value that has to be changed is the text[NORMAL] one because when I change only that value in the "default" style, the elements I'm having trouble with do change color. It's just that I want them to be a different color than the one in the default style.

    Note that I'm not talking about OptionMenu items, these seem to work fine. The same problem affects the items in the address and search bar drop downs in firefox. What I want is for the box itself to have black text on a white background, but I want the dropdown to have white text on a black background (I know this may look a little weird in firefox, but this is the way it needs to be to look right everywhere else)

    Thanks

  4. #74
    Join Date
    Jun 2007
    Beans
    244

    Re: A Beginner "How To" for gtkrc themes.

    Quote Originally Posted by fwwarr View Post
    Thanks for the quick reply!
    Unfortunately this does not work.
    I'm pretty sure the value that has to be changed is the text[NORMAL] one because when I change only that value in the "default" style, the elements I'm having trouble with do change color. It's just that I want them to be a different color than the one in the default style.

    Note that I'm not talking about OptionMenu items, these seem to work fine. The same problem affects the items in the address and search bar drop downs in firefox. What I want is for the box itself to have black text on a white background, but I want the dropdown to have white text on a black background (I know this may look a little weird in firefox, but this is the way it needs to be to look right everywhere else)

    Thanks
    firefox is a different can of worms. you need to create a userchrome.css file.

    http://ubuntuforums.org/showthread.php?t=503508

  5. #75
    Join Date
    Jun 2007
    Beans
    45
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: A Beginner "How To" for gtkrc themes.

    Thank you crimesaucer for this howto,
    I'm complete new to (x)ubuntu and I'm messing around with the colors of the panels.
    But I have a question is it possible to have different colors for the panels, I like very much having the upper panel with the applications and the bottom panel as "dock", however when I change the color of the panel it affects both, is there a way to select a different color for each panel?

  6. #76
    Join Date
    Jan 2006
    Beans
    1,352

    Re: A Beginner "How To" for gtkrc themes.

    Quote Originally Posted by superzorro View Post
    Thank you crimesaucer for this howto,
    I'm complete new to (x)ubuntu and I'm messing around with the colors of the panels.
    But I have a question is it possible to have different colors for the panels, I like very much having the upper panel with the applications and the bottom panel as "dock", however when I change the color of the panel it affects both, is there a way to select a different color for each panel?
    You're welcome, and you can always share any pointers for customizations that you've learned.


    As for your panel question, you could create a gtkrc-2.0 (for your panel), and put any image you want in there. I haven't learned if it is possible to write it into a regular gtkrc, but when I tried, it didn't work with a bg_pixmap[NORMAL] or a gradient box fill...

    I usually make a matching gradient image using two colors of my gtk-2.0 theme, or, I make an image that matches my Emerald window theme, and the write a simple .gtkrc-2.0 file and put it in to my /home/folder with the rest of my hidden files:

    Code:
    style "panel"
    {
      bg[NORMAL] = "#EFEBE7"
      bg_pixmap[NORMAL] = "panel_striper2.png"
      fg[NORMAL] = "#000000"
      }
    
    widget_class "*Panel*"      style "panel"
    widget "*Panel*"            style "panel"
    class "*Panel*"             style "panel"

    But, as of a yesterday I started to use an image that I made from this site: http://www.stripegenerator.com/

    here it is:






    ....and this is my newest creation that the panel image matches:





    http://i144.photobucket.com/albums/r...nshot-3-13.png



    http://i144.photobucket.com/albums/r...nshot-7-15.png



    http://i144.photobucket.com/albums/r...nshot-2-12.png



    http://i144.photobucket.com/albums/r...nshot-1-14.png

  7. #77
    Join Date
    Jun 2007
    Beans
    45
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: A Beginner "How To" for gtkrc themes.

    Thank you very much crimesaucer for your prompt answer, I will try out your solution and hopefully upload some screenshots.

  8. #78
    Join Date
    Apr 2006
    Location
    France
    Beans
    102
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: A Beginner "How To" for gtkrc themes.

    Does anybody know how to reduce the height of the pager ?

  9. #79
    Join Date
    Apr 2006
    Location
    France
    Beans
    102
    Distro
    Ubuntu 8.10 Intrepid Ibex

    Re: A Beginner "How To" for gtkrc themes.

    tss. this gnome pager is just ugly with a lot of themes and nobody cares..
    Are there alternative pagers ? >_<

  10. #80
    Join Date
    Oct 2004
    Beans
    956
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: A Beginner "How To" for gtkrc themes.

    Quote Originally Posted by fwwarr View Post
    Hi

    Does anyone know how to set the font color of items in a ComboBox?
    I need it different that the default text[NORMAL]

    The theme is mostly white on black, except for regular text areas which are black on white. The only problem are the combobox items that are not selected or hovered: they appear black on black.

    Here are the relevant parts of the gtkrc:

    Code:
    style "default"
    {
    #[...]
    fg[NORMAL]		= "#ffffff" #Normal Button Text
    fg[PRELIGHT]		= "#ffffff" #Mouseover button text
    fg[ACTIVE]		= "#ffffff" #Active button text
    fg[SELECTED]		= "#909090" # ??
    fg[INSENSITIVE]		= "#909090" # ??
    
    bg[NORMAL]		= "#080808" #Inactive Window Title Bar
    bg[PRELIGHT]		= "#000000" # ??
    bg[ACTIVE]		= "#000000" # ??
    bg[SELECTED]		= "#080808" #Active Window Title Bar
    bg[INSENSITIVE] 	= "#3f3f3f" # ??
    
    base[NORMAL]		= "#ffffff" #"#000000" Text Area Background
    base[PRELIGHT]		= "#313131" # ??
    base[ACTIVE]		= "#071f46" #Inactive Selection Background
    base[SELECTED]		= "#0d377c" #Active Selection Background
    base[INSENSITIVE]	= "#ffffff" #"#000000" Disabled Text Area Background
    
    text[NORMAL]		= "#000000" #"#ffffff"
    text[PRELIGHT]		= "#ffffff"
    text[ACTIVE]		= "#ffffff" #Inactive Selection Text
    text[SELECTED]		= "#ffffff" #Active Selection Text
    text[INSENSITIVE]	= "#606060"
    
    }
    
    class "GtkWidget" style "default"
    
    style "optionmenu" = "default"
    {
    text[NORMAL]		= "#ffffff"
    #[...]
    }
    
    widget_class "*Combo*" style "optionmenu"
    
    style "menuitem" = "default"
    {
    xthickness		= 1
    fg[PRELIGHT] 	= "#ffffff"
    text[PRELIGHT]	= "#949494"
    #[...]
    }
    
    
    widget_class "*List" style "list-header"
    widget_class "*GtkTree*" style "list-header"
    widget_class "*GtkCList*" style "list-header"
    class "GtkButton" 			style "button"
    class "GtkRadioButton" 		style "radiobutton"
    class "GtkRadioMenuItem" 	style "radiobutton"
    class "GtkCheckButton" 		style "checkbutton"
    class "GtkCheckMenuItem" 	style "checkbutton"
    class "GtkOptionMenu" 		style "optionmenu"
    class "GtkCombo*" 			style "optionmenu"
    class "GtkListItem"		style "menuitem"
    class "*Font*" 				style "optionmenu"
    class "GtkEntry" 			style "entry"
    class "GtkOldEditable" 		style "entry"
    class "GtkSpinButton" 	 	style "spinbutton"
    class "GtkRuler" 			style "ruler"
    class "GtkScrollbar" 			style "scrollbar"
    class "GtkProgressBar" 		style "progressbar"
    class "GtkRange" 			style "range"
    class "GtkMenu" 			style "menu"
    class "GtkMenuBar*" 		 	style "menubar"
    widget_class "*MenuBar.*" 	style "menubar"
    class "GtkMenuItem"			style "menuitem"
    class "GtkTearoffMenuItem"	style "menuitem"
    class "GtkNotebook"	 		style "notebook"
    class "GtkToolbar" 			style "flat"
    class "GtkHandleBox" 		style "handlebox"
    class "GtkEventBox" 			style "flat"
    class "GtkPaned" 			style "handlebox"
    class "GtkLayout" 			style "layout"
    class "SPButton" 			style "SPbutton"
    widget "gtk-tooltips" 		style "tooltips"
    Thanks for any help!
    Code:
    style "combobox"		= "default"
    {
      text[NORMAL]				= "#54A6BB"
    Code:
    class "GTKCombo" 					style "combobox"
    widget_class "*Combo.*" 			style "combobox"
    class "GTKComboBox" 				style "combobox"
    widget_class "*ComboBox.*" 		style "combobox"
    class "GTKComboBoxEntry" 			style "combobox"
    widget_class "*ComboBoxEntry.*" 		style "combobox"
    works for me in the pixmap engine. This was taken from Onux Blue

Page 8 of 15 FirstFirst ... 678910 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •