gtkrc 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371
  1. #based on aquanumb2 by gutterslob, adapted for more tightness by digit.
  2. gtk-icon-sizes = "panel-menu=18,18:panel=18,18:gtk-button=18,18:gtk-large-toolbar=18,18"
  3. gtk-color-scheme = "bg_color: #4D3319\nfg_color: #CCB59F\nbase_color: #6B5036\ntext_color: #fed\nselected_bg_color: #f80\nselected_fg_color: #fff\ntooltip_bg_color: #735C45\ntooltip_fg_color: #fa0"
  4. style "default"
  5. {
  6. xthickness = 0
  7. ythickness = 0
  8. GtkWidget::interior_focus = 0
  9. GtkButton::default_border = { 0, 0, 0, 0 }
  10. GtkButton::default_outside_border = { 0, 0, 0, 0 }
  11. GtkRange::trough_border = 0
  12. GtkWidget::focus_padding = 0
  13. GtkPaned::handle_size = 1
  14. GtkRange::slider_width = 8
  15. GtkRange::stepper_size = 8
  16. GtkRange::stepper_spacing = 8
  17. GtkVScale::slider_length = 8
  18. GtkVScale::slider_width = 8
  19. GtkHScale::slider_length = 8
  20. GtkHScale::slider_width = 8
  21. GtkCheckButton::indicator_size = 8
  22. GtkRadioButton::indicator_size = 8
  23. GtkMenuBar::internal-padding = 0
  24. GtkScrollbar::min_slider_length = 8
  25. GtkScrollbar::trough-border = 0
  26. GtkScrollbar::has-backward-stepper = 0
  27. GtkScrollbar::has-forward-stepper = 0
  28. GtkScrollbar::trough-side-details = 0
  29. GtkScrollbar::default_border = { 0, 0, 0, 0 }
  30. GtkScrollbar::default_outside_border = { 0, 0, 0, 0 }
  31. WnckTasklist::fade-opacity = 1
  32. WnckTasklist::fade-overlay-rect = 0
  33. WnckTasklist::fade-loop-time = 2
  34. GtkButton::child_displacement_x = 0
  35. GtkButton::child_displacement_y = 2
  36. GtkMenuItem::selected_shadow_type = GTK_SHADOW_IN
  37. GtkMenuBar::shadow_type = none
  38. GtkRange::activate-slider = 0
  39. # The following line hints to gecko (and possibly other appliations)
  40. # that the entry should be drawn transparently on the canvas.
  41. # Without this, gecko will fill in the background of the entry.
  42. GtkEntry::honors-transparent-bg-hint = 1
  43. # color definitions
  44. bg[NORMAL] = @bg_color
  45. bg[PRELIGHT] = shade (1.1, @bg_color)
  46. bg[ACTIVE] = mix (0.8, @bg_color,@fg_color)
  47. bg[SELECTED] = mix (0.65, @selected_bg_color, @bg_color)
  48. bg[INSENSITIVE] = shade (0.85, @bg_color)
  49. fg[NORMAL] = @fg_color
  50. fg[PRELIGHT] = @fg_color
  51. fg[ACTIVE] = @fg_color
  52. fg[SELECTED] = @selected_fg_color
  53. fg[INSENSITIVE] = mix (0.4, @fg_color, shade (0.85, @bg_color)) #shaded to bg[INSENSITIVE]
  54. base[NORMAL] = @base_color
  55. base[PRELIGHT] = @base_color
  56. base[ACTIVE] = mix (0.45, @selected_bg_color, @base_color)
  57. base[SELECTED] = @selected_bg_color
  58. base[INSENSITIVE] = mix (0.95, @base_color, @text_color)
  59. text[NORMAL] = @text_color
  60. text[PRELIGHT] = @text_color
  61. text[ACTIVE] = @selected_fg_color
  62. text[SELECTED] = @selected_fg_color
  63. text[INSENSITIVE] = mix (0.5, @text_color, @base_color)
  64. engine "industrial"
  65. {
  66. }
  67. }
  68. style "murrine"
  69. {
  70. xthickness = 1
  71. ythickness = 1
  72. engine "murrine" {
  73. rgba = TRUE
  74. menubarstyle = 0
  75. menuitemstyle = 0
  76. menustyle = 0
  77. }
  78. }
  79. style "hc-range"
  80. {
  81. xthickness = 1
  82. ythickness = 1
  83. bg[NORMAL] = mix (0.7, @fg_color, @bg_color) #slider filling
  84. bg[ACTIVE] = @bg_color #range-bar filling
  85. fg[NORMAL] = mix (0.7, @fg_color, @bg_color) #slider border
  86. fg[ACTIVE] = mix (0.7, @fg_color, @bg_color) #range-bar border
  87. engine "hcengine" {
  88. edge_thickness = 1
  89. }
  90. }
  91. style "hc-button"
  92. {
  93. xthickness = 1
  94. ythickness = 1
  95. fg[NORMAL] = mix (0.6, @fg_color, @bg_color)
  96. fg[ACTIVE] = mix (0.6, @fg_color, @bg_color)
  97. fg[INSENSITIVE] = mix (0.3, @fg_color, @bg_color)
  98. fg[PRELIGHT] = mix (0.6, @fg_color, @bg_color)
  99. fg[SELECTED] = mix (0.6, @fg_color, @bg_color)
  100. engine "hcengine" {
  101. edge_thickness = 1
  102. }
  103. }
  104. style "industrial-invisible"
  105. {
  106. xthickness = 0
  107. ythickness = 0
  108. engine "industrial" {
  109. contrast = 0
  110. }
  111. }
  112. style "hc-progress"
  113. {
  114. xthickness = 1
  115. ythickness = 1
  116. bg[NORMAL] = @bg_color #backgrund
  117. bg[PRELIGHT] = mix (0.7, @fg_color, @bg_color) #progress filling
  118. fg[NORMAL] = mix (0.7, @fg_color, @bg_color) #borders
  119. fg[PRELIGHT] = mix (0.7, @fg_color, @bg_color) #borders on progress
  120. engine "hcengine" {
  121. edge_thickness = 1
  122. }
  123. }
  124. style "hc-scrollbar"
  125. {
  126. bg[NORMAL] = mix (0.7, @fg_color, @bg_color) #slider filling
  127. bg[ACTIVE] = @bg_color #scrollbar filling
  128. fg[NORMAL] = mix (0.7, @fg_color, @bg_color) #slider borders
  129. fg[ACTIVE] = @bg_color #mix (0.4, @fg_color, @bg_color) #scrollbar borders
  130. bg[PRELIGHT] = mix (0.7, @fg_color, @bg_color) #slider filling @ mouseover
  131. fg[PRELIGHT] = mix (0.7, @fg_color, @bg_color) #slider border @ mouseover
  132. xthickness = 0
  133. ythickness = 0
  134. engine "hcengine" {
  135. edge_thickness = 1
  136. }
  137. }
  138. style "industrial-menuitem"
  139. {
  140. xthickness = 1
  141. ythickness = 1
  142. bg[PRELIGHT] = @selected_bg_color
  143. bg[SELECTED] = @selected_bg_color
  144. fg[PRELIGHT] = @selected_fg_color
  145. fg[SELECTED] = @selected_fg_color
  146. }
  147. style "industrial-checkbutton"
  148. {
  149. base[NORMAL] = @bg_color
  150. text[NORMAL] = @fg_color
  151. }
  152. style "industrial-tooltips"
  153. {
  154. xthickness = 0
  155. ythickness = 0
  156. bg[NORMAL] = @tooltip_bg_color
  157. fg[NORMAL] = @tooltip_fg_color
  158. }
  159. style "treeview"
  160. {
  161. xthickness = 1
  162. ythickness = 1
  163. bg[NORMAL] = @base_color
  164. bg[PRELIGHT] = @base_color
  165. bg[ACTIVE] = @base_color
  166. fg[NORMAL] = @text_color
  167. fg[PRELIGHT] = @text_color
  168. fg[ACTIVE] = @text_color
  169. }
  170. style "treeview-button"
  171. {
  172. xthickness = 1
  173. ythickness = 1
  174. fg[NORMAL] = mix (0.5, @fg_color, shade (0.85, @bg_color))
  175. fg[PRELIGHT] = mix (0.5, @fg_color, shade (0.85, @bg_color))
  176. fg[ACTIVE] = mix (0.5, @fg_color, shade (0.85, @bg_color))
  177. engine "industrial"
  178. {
  179. # Set a hint to disable backward compatibility fallbacks.
  180. hint = "use-hints"
  181. rounded_buttons = FALSE
  182. }
  183. }
  184. style "industrial-druid"
  185. {
  186. bg[SELECTED] = @selected_bg_color
  187. }
  188. style "metacity-frame"
  189. {
  190. # Normal base color
  191. bg[NORMAL] = @bg_color
  192. # Unfocused title background color
  193. bg[INSENSITIVE] = @bg_color
  194. # Unfocused title text color
  195. fg[INSENSITIVE] = mix (0.2, @fg_color, @bg_color)
  196. # Focused icon color
  197. fg[NORMAL] = mix (0.8, @fg_color, @bg_color)
  198. # Focused title background color
  199. bg[SELECTED] = @selected_bg_color
  200. # Focused title text color
  201. fg[SELECTED] = @selected_fg_color
  202. }
  203. style "industrial-comboboxentry"
  204. {
  205. engine "industrial"
  206. {
  207. hint = "comboboxentry"
  208. }
  209. }
  210. # default style
  211. class "GtkWidget" style "default"
  212. # wide
  213. class "PanelApplet*" style "murrine"
  214. class "PanelToplevel" style "murrine"
  215. class "GtkNotebook" style "default"
  216. class "GtkButton" style "hc-button"
  217. class "GtkRange" style "hc-range"
  218. class "GtkMenu" style "default"
  219. class "GtkStatusbar" style "default"
  220. class "GtkEntry" style "hc-button"
  221. class "GtkSpinButton" style "default"
  222. class "GtkScrollbar" style "hc-scrollbar"
  223. class "GtkProgress" style "hc-progress"
  224. class "GtkCheckButton" style "default"
  225. class "GtkBin" style "default"
  226. class "GtkHandleBox" style "industrial-invisible"
  227. class "GtkToolbar" style "industrial-invisible"
  228. class "GtkMenuItem" style "default"
  229. class "GtkFrame" style "industrial-invisible"
  230. class "GtkLabel*" style "murrine"
  231. class "GtkCellView" style "murrine"
  232. class "GtkArrow" style "murrine"
  233. widget_class "*GtkComboBox*" style "murrine"
  234. widget_class "*<GtkCombo>.*" style "murrine"
  235. widget_class "*<GtkHBox>" style "murrine"
  236. widget_class "*<GtkBox>" style "murrine"
  237. # treeview
  238. widget_class "*GtkTreeView*" style "treeview"
  239. widget_class "*.<GtkTreeView>.GtkButton" style "treeview-button"
  240. widget_class "*.<GtkList>.GtkButton" style "hc-button"
  241. widget_class "*.<GtkCList>.GtkButton" style "default"
  242. widget_class "*.<ETree>.*" style "default"
  243. widget_class "*.<ETable>.*" style "default"
  244. # menuitems and interior
  245. widget_class "*<GtkMenuItem>*" style "industrial-menuitem"
  246. widget_class "*<GtkSeparatorMenuItem>*" style "industrial-menuitem"
  247. widget_class "*.<GtkProgress>" style "hc-progress"
  248. # druide
  249. widget_class "*GnomeDruidPage*" style "industrial-druid"
  250. widget "gtk-tooltip*" style "industrial-tooltips"
  251. widget "*.tasklist-button" style "default"
  252. class "MetaFrames" style "metacity-frame"
  253. style "default-ffox"
  254. {
  255. GtkScrollbar::has-forward-stepper = 0
  256. }
  257. style "default-ooo"
  258. {
  259. GtkScrollbar::has-forward-stepper = 1
  260. }
  261. widget "GtkWindow.GtkFixed.Gtk?Scroll*" style "default-ooo"
  262. widget "*Mozilla*Fixed*Scroll*" style "default-ffox"
  263. # Work around for http://bugzilla.gnome.org/show_bug.cgi?id=382646
  264. # Note that the work around assumes that the combobox is _not_ in
  265. # appears-as-list mode.
  266. # This style does not affect GtkComboBoxEntry, it does have an effect
  267. # on comboboxes in appears-as-list mode though.
  268. style "industrial-text-is-fg-color-workaround"
  269. {
  270. text[NORMAL] = @fg_color
  271. text[PRELIGHT] = @fg_color
  272. text[SELECTED] = @selected_fg_color
  273. text[ACTIVE] = @fg_color
  274. text[INSENSITIVE] = darker (@bg_color)
  275. }
  276. widget_class "*.<GtkComboBox>.<GtkCellView>" style "industrial-text-is-fg-color-workaround"
  277. style "industrial-menuitem-text-is-fg-color-workaround"
  278. {
  279. text[NORMAL] = @fg_color
  280. text[PRELIGHT] = @selected_fg_color
  281. text[SELECTED] = @selected_fg_color
  282. text[ACTIVE] = @fg_color
  283. text[INSENSITIVE] = darker (@bg_color)
  284. }
  285. widget "*.gtk-combobox-popup-menu.*" style "industrial-menuitem-text-is-fg-color-workaround"
  286. # Work around the usage of GtkLabel inside GtkListItems to display text.
  287. # This breaks because the label is shown on a background that is based on the GtkScrollbar::
  288. # base color set.
  289. style "industrial-fg-is-text-color-workaround"
  290. {
  291. fg[NORMAL] = @text_color
  292. fg[PRELIGHT] = @text_color
  293. fg[ACTIVE] = @selected_fg_color
  294. fg[SELECTED] = @selected_fg_color
  295. fg[INSENSITIVE] = darker (@bg_color)
  296. }
  297. widget_class "*<GtkListItem>*" style "industrial-fg-is-text-color-workaround"
  298. # The same problem also exists for GtkCList and GtkCTree
  299. # Only match GtkCList and not the parent widgets, because that would also change the headers.
  300. widget_class "*<GtkCList>" style "industrial-fg-is-text-color-workaround"