Make your own free website on Tripod.com
Fast Nav
Customisations in gimp (and many other gtk based programs) are made in a file called GTKRC.
Too customise any part of Gimp you need two sections of code, the fist is the style deffination and the second is what part of Gimp the style is assigned to.An example of the two sections of code are displayed below.


style "text"
{
  font = "-*-lucida-medium-r-normal-*-*-100-*-*-p-*-iso8859-1"
  bg_pixmap[NORMAL]      = ""
  bg_pixmap[ACTIVE]      = ""
  bg_pixmap[PRELIGHT]    = ""
  bg_pixmap[SELECTED]    = ""
  bg_pixmap[INSENSITIVE] = ""
  fg[NORMAL]             = { 0.00, 0.00, 0.00 }
  fg[PRELIGHT]           = { 0.00, 0.00, 0.00 }
  fg[ACTIVE]             = { 0.00, 0.00, 0.00 }
  fg[SELECTED]           = { 0.00, 0.00, 0.00 }
  fg[INSENSITIVE]        = { 0.00, 0.00, 0.00 }
  bg[NORMAL]             = "#969794"
  bg[ACTIVE]             = "#969794"
  bg[PRELIGHT]           = "#969794"
  bg[SELECTED]           = "#c3c4c2"
  bg[INSENSITIVE]        = "#969794"
  base[NORMAL]           = "#969794"
  base[ACTIVE]           = "#969794"
  base[PRELIGHT]         = "#969794"
  base[SELECTED]         = "#c3c4c2"
  base[INSENSITIVE]      = "#969794"
  text[NORMAL]           = { 0.00, 0.00, 0.00 }
  text[ACTIVE]           = { 0.00, 0.00, 0.00 }
  text[PRELIGHT]         = { 0.00, 0.00, 0.00 }
  text[SELECTED]         = { 0.00, 0.00, 0.00 }
  text[INSENSITIVE]      = { 0.00, 0.00, 0.00 }
}


This is the text style from my GTKRC file and,


class "GtkWidget" style "default"
class "GtkViewport" style "default"
class "GtkFrame" style "default"
class "GtkFrame" style "default"
class "GtkButton" style "button"
class "GtkMisc" style "default"
#class "GnomeDock" style "button"
#class "GnomeDockItem" style "default"
#class "GtkRadioButton" style "default"
#class "GtkToggleButton" style "default"
class "GtkArrow" style "default"
class "GtkScrollbar" style "default"
class "GtkProgress" style "default"
class "GtkMenu" style "default"
class "GtkMenuItem" style "default"
class "GtkTearOffMenuItem" style "default"
class "GtkMenuBar" style "default"
class "GtkEditable" style "text"
class "GtkCList" style "text"
class "GtkList" style "text"
class "GtkListItem" style "text"
class "GtkTree" style "text"
class "GtkCTree" style "text"
class "GtkNotebook" style "default"
class "GtkTooltips" style "default"
widget_class "*GtkProgressBar" style "progressbar"



ON TO THE TUTORIAL.
this is how the styles are set to the section.
Note1 - lines starting with # are ignored(also known as commented out.)
Note2 - widget_class does the same as class.