home *** CD-ROM | disk | FTP | other *** search
/ Chip 1999 July / CHIP-1999-07.iso / software / gimp / GIMP-SET.EXE / file0572_52c14c_52c5a0.bin < prev    next >
Encoding:
Text File  |  1999-02-28  |  3.2 KB  |  163 lines

  1. # pixmap_path "<dir 1>:<dir 2>:<dir 3>:..."
  2. #
  3. # include "rc-file"
  4. #
  5. # style <name> [= <name>]
  6. # {
  7. #   <option>
  8. # }
  9. #
  10. # widget <widget_set> style <style_name>
  11. # widget_class <widget_class_set> style <style_name>
  12.  
  13. # testgtkrc2 sets all the buttons in the main window to blue by default
  14. #include "testgtkrc2"
  15.  
  16. #module_path ".:/home/raster/themes"
  17.  
  18. #pixmap_path ".:/home/raster/themes"
  19.  
  20. style "default"
  21. {
  22.   font = "-*-helvetica-medium-r-normal--10-*-*-*-*-*-*-*"
  23.   bg[NORMAL] = "#c0c0c0"
  24.   bg[PRELIGHT] = "#c0c0c0"
  25.   engine "redmond95" 
  26.   {
  27.   }
  28. }
  29.  
  30. style "menu"
  31. {
  32.   bg[PRELIGHT] = { 0.0, 0.0, 0.6 }
  33.   fg[PRELIGHT] = { 1.0, 1.0, 1.0 }
  34. }
  35.  
  36. style "list"
  37. {
  38.    bg[NORMAL] = { 0.9, 0.9, 0.9 }
  39.    bg[PRELIGHT] = { 0.9, 0.9, 0.9 }
  40. }
  41.  
  42. widget_class "*MenuItem*" style "menu"
  43. widget_class "*Menu*" style "menu"
  44. widget_class "GtkCTree" style "list"
  45. widget_class "GtkCList" style "list"
  46.  
  47. style "window"
  48. {
  49. #  bg_pixmap[NORMAL] = "warning.xpm"
  50. }
  51.  
  52. style "scale"
  53. {
  54. #  fg[NORMAL] = { 1.0, 0, 0 }
  55. #  bg[PRELIGHT] = { 1.0, 1.0, 0 }
  56. #  bg_pixmap[NORMAL] = "<parent>"
  57. }
  58.  
  59. style "button"
  60. {
  61. #  fg[PRELIGHT] = { 1.0, 1.0, 1.0 }
  62. #  bg[PRELIGHT] = { 0, 0, 0.75 }
  63. #  bg[PRELIGHT] = { 0.75, 0, 0x00 }
  64. }
  65.  
  66. style "toggle_button" = "button"
  67. {
  68. #  fg[NORMAL] = { 1.0, 0, 0 }
  69. #  fg[ACTIVE] = { 1.0, 0, 0 }
  70. #  bg_pixmap[NORMAL] = "<parent>"
  71. }
  72.  
  73. style "text"
  74. {
  75. #  bg_pixmap[NORMAL] = "marble.xpm"
  76. #  text[NORMAL] = { 0.2, 0.2, 1.0 }
  77. #  fg[NORMAL] = { 1.0, 1.0, 1.0 }
  78. #  base[NORMAL] = { 0.0, 0.0, 0.0 }
  79. }
  80.  
  81. style "slider"
  82. {
  83. #  fg[NORMAL] = { 1.0, 1.0, 1.0 }
  84. #  bg[NORMAL] = { 0.0, 0.0, 1.0 }
  85. #  bg[ACTIVE] = { 0.0 ,0.0, 0.5 }
  86. #  bg[PRELIGHT] = { 0.75 ,0.75, 1.0 }
  87. }
  88.  
  89. style "ruler"
  90. {
  91. #  font = '-adobe-helvetica-medium-r-normal--*-80-*-*-*-*-*-*'
  92. }
  93.  
  94. style "curve"
  95. {
  96. #  fg[NORMAL] = { 58000, 0, 0 }            # red
  97. }
  98.  
  99. style "red-bar"
  100. {
  101. #  bg[PRELIGHT] = { 0.95, .55, 0.55 }
  102. }
  103.  
  104. # override testgtk2, introduce the green color in the button list
  105. style 'button_list' = 'button'
  106. {
  107. #  font = "-adobe-helvetica-medium-r-normal--*-100-*-*-*-*-*-*"
  108. #  bg[PRELIGHT] = { 0, 0.75, 0x00 }
  109. }
  110. widget "main window.*GtkScrolledWindow.*GtkButton*" style "button_list"
  111.  
  112. # common default
  113. class "GtkWidget" style "default"
  114.  
  115. class "GtkScrollbar" style "red-bar"
  116.  
  117. widget_class "GtkWindow" style "window"
  118. widget_class "GtkDialog" style "window"
  119. widget_class "GtkFileSelection" style "window"
  120. widget_class "*Gtk*Scale" style "scale"
  121. widget_class "*GtkCheckButton*" style "toggle_button"
  122. widget_class "*GtkRadioButton*" style "toggle_button"
  123. widget_class "*GtkButton*" style "button"
  124. widget_class "*Ruler" style "ruler"
  125. widget_class "*GtkText" style "text"
  126. widget "*GtkCurve" style "curve"
  127.  
  128. binding "test1"
  129. {
  130.   bind "<ctrl>1" {
  131.     "debug-msg" ("hallo and") 
  132.     "debug-msg" ("huhu")
  133.   }
  134. }
  135.  
  136. binding "test2"
  137. {
  138.   bind "<ctrl>1" {
  139.     "debug-msg" ("jup!") 
  140.   }
  141. }
  142.  
  143. # possible priorities are (in ascending order):
  144. # lowest
  145. # gtk         (used by gtk for internal class bindings)
  146. # application (for hard coded bindings on application basis)
  147. # rc          (used implicitel by rc files)
  148. # highest
  149. class "GtkButton" binding "test1"           # implicit : rc
  150. class "GtkButton" binding : highest "test2" # override "rc" priority
  151.  
  152. binding "clist-test"
  153. {
  154.   bind "j" {
  155.     "scroll-vertical" (step-backward, 0.0)
  156.   }
  157.   bind "k" {
  158.     "scroll-vertical" (step-forward, 0.0)
  159.   }
  160. }
  161.  
  162. class "GtkCList" binding "clist-test"
  163.