summaryrefslogtreecommitdiff
path: root/gtk-2.0/gtkrc
blob: 6df11b295fb498111b0a25db7f2575b3c0987de8 (plain)
  1. # Please keep this gtkrc in sync with the other ones from Clearlooks based themes.
  2. gtk-color-scheme = "base_color:#ffffff\nfg_color:#000000\ntooltip_fg_color:#000000\nselected_bg_color:#86ABD9\nselected_fg_color:#ffffff\ntext_color:#1A1A1A\nbg_color:#EDECEB\ntooltip_bg_color:#F5F5B5"
  3. style "default" {
  4. xthickness = 1
  5. ythickness = 1
  6. #######################
  7. # Style Properties
  8. #######################
  9. GtkButton::child-displacement-x = 1
  10. GtkButton::child-displacement-y = 1
  11. GtkButton::default-border = { 0, 0, 0, 0 }
  12. GtkButton::image-spacing = 4
  13. GtkToolButton::icon-spacing = 4
  14. GtkCheckButton::indicator-size = 14
  15. GtkPaned::handle-size = 6
  16. GtkRange::trough-border = 0
  17. GtkRange::slider-width = 15
  18. GtkRange::stepper-size = 15
  19. GtkScale::slider-length = 23
  20. GtkScale::trough-side-details = 1
  21. GtkScrollbar::min-slider-length = 30
  22. GtkMenuBar::internal-padding = 0
  23. GtkExpander::expander-size = 16
  24. GtkToolbar::internal-padding = 1
  25. GtkTreeView::expander-size = 14
  26. GtkTreeView::vertical-separator = 0
  27. GtkMenu::horizontal-padding = 0
  28. GtkMenu::vertical-padding = 0
  29. WnckTasklist::fade-overlay-rect = 0
  30. # The following line hints to gecko (and possibly other appliations)
  31. # that the entry should be drawn transparently on the canvas.
  32. # Without this, gecko will fill in the background of the entry.
  33. GtkEntry::honors-transparent-bg-hint = 1
  34. GtkEntry::progress-border = { 2, 2, 2, 2 }
  35. ####################
  36. # Color Definitions
  37. ####################
  38. bg[NORMAL] = @bg_color
  39. bg[PRELIGHT] = shade (1.02, @bg_color)
  40. bg[SELECTED] = @selected_bg_color
  41. bg[INSENSITIVE] = @bg_color
  42. bg[ACTIVE] = shade (0.9, @bg_color)
  43. fg[NORMAL] = @fg_color
  44. fg[PRELIGHT] = @fg_color
  45. fg[SELECTED] = @selected_fg_color
  46. fg[INSENSITIVE] = darker (@bg_color)
  47. fg[ACTIVE] = @fg_color
  48. text[NORMAL] = @text_color
  49. text[PRELIGHT] = @text_color
  50. text[SELECTED] = @selected_fg_color
  51. text[INSENSITIVE] = darker (@bg_color)
  52. text[ACTIVE] = @selected_fg_color
  53. base[NORMAL] = @base_color
  54. base[PRELIGHT] = shade (0.95, @bg_color)
  55. base[SELECTED] = @selected_bg_color
  56. base[INSENSITIVE] = @bg_color
  57. base[ACTIVE] = shade (0.9, @selected_bg_color)
  58. engine "clearlooks" {
  59. colorize_scrollbar = TRUE
  60. reliefstyle = 1
  61. menubarstyle = 2
  62. toolbarstyle = 1
  63. animation = FALSE
  64. radius = 3.0
  65. style = GUMMY
  66. # Set a hint to disable backward compatibility fallbacks.
  67. hint = "use-hints"
  68. }
  69. }
  70. style "wide" {
  71. xthickness = 2
  72. ythickness = 2
  73. }
  74. style "wider" {
  75. xthickness = 3
  76. ythickness = 3
  77. }
  78. style "entry" {
  79. xthickness = 3
  80. ythickness = 3
  81. bg[SELECTED] = mix (0.4, @selected_bg_color, @base_color)
  82. fg[SELECTED] = @text_color
  83. engine "clearlooks" {
  84. focus_color = shade (0.65, @selected_bg_color)
  85. }
  86. }
  87. style "spinbutton" {
  88. engine "clearlooks" {
  89. hint = "spinbutton"
  90. }
  91. }
  92. style "scale" {
  93. xthickness = 2
  94. ythickness = 2
  95. engine "clearlooks" {
  96. hint = "scale"
  97. }
  98. }
  99. style "vscale" {
  100. engine "clearlooks" {
  101. hint = "vscale"
  102. }
  103. }
  104. style "hscale" {
  105. engine "clearlooks" {
  106. hint = "hscale"
  107. }
  108. }
  109. style "scrollbar" {
  110. xthickness = 2
  111. ythickness = 2
  112. engine "clearlooks" {
  113. hint = "scrollbar"
  114. }
  115. }
  116. style "hscrollbar" {
  117. engine "clearlooks" {
  118. hint = "hscrollbar"
  119. }
  120. }
  121. style "vscrollbar" {
  122. engine "clearlooks" {
  123. hint = "vscrollbar"
  124. }
  125. }
  126. style "notebook_bg" {
  127. bg[NORMAL] = shade (1.02, @bg_color)
  128. }
  129. style "button" {
  130. xthickness = 3
  131. ythickness = 3
  132. bg[NORMAL] = shade (1.04, @bg_color)
  133. bg[PRELIGHT] = shade (1.06, @bg_color)
  134. bg[ACTIVE] = shade (0.85, @bg_color)
  135. }
  136. # The color is changed by the notebook_bg style, this style
  137. # changes the x/ythickness
  138. style "notebook" {
  139. xthickness = 3
  140. ythickness = 3
  141. }
  142. style "statusbar" {
  143. engine "clearlooks" {
  144. hint = "statusbar"
  145. }
  146. }
  147. style "comboboxentry" {
  148. engine "clearlooks" {
  149. # Note:
  150. # If you set the appears-as-list option on comboboxes in the theme,
  151. # then you should set this hint on the combobox instead.
  152. hint = "comboboxentry"
  153. }
  154. }
  155. style "menubar" {
  156. engine "clearlooks" {
  157. hint = "menubar"
  158. }
  159. }
  160. style "menu" {
  161. xthickness = 0
  162. ythickness = 0
  163. bg[NORMAL] = shade (1.08, @bg_color)
  164. engine "clearlooks" {
  165. radius = 0.0
  166. }
  167. }
  168. style "menu_item" {
  169. xthickness = 2
  170. ythickness = 3
  171. fg[PRELIGHT] = @selected_fg_color
  172. }
  173. # This style is there to modify the separator menu items. The goals are:
  174. # 1. Get a specific height.
  175. # 2. The line should go to the edges (ie. no border at the left/right)
  176. style "separator_menu_item" {
  177. xthickness = 1
  178. ythickness = 0
  179. GtkSeparatorMenuItem::horizontal-padding = 0
  180. GtkWidget::wide-separators = 1
  181. GtkWidget::separator-width = 1
  182. GtkWidget::separator-height = 7
  183. }
  184. style "frame_title" {
  185. fg[NORMAL] = lighter (@fg_color)
  186. }
  187. style "treeview" {
  188. engine "clearlooks" {
  189. hint = "treeview"
  190. }
  191. }
  192. # The almost useless progress bar style
  193. style "progressbar" {
  194. xthickness = 1
  195. ythickness = 1
  196. fg[PRELIGHT] = @selected_fg_color
  197. engine "clearlooks" {
  198. # Explicitly set the radius for the progress bars inside menu items.
  199. radius = 3.0
  200. hint = "progressbar"
  201. }
  202. }
  203. # This style is based on the default style, so that the colors from the button
  204. # style are overriden again.
  205. style "treeview_header" = "default" {
  206. xthickness = 2
  207. ythickness = 1
  208. engine "clearlooks" {
  209. hint = "treeview-header"
  210. }
  211. }
  212. style "tooltips" {
  213. xthickness = 4
  214. ythickness = 4
  215. bg[NORMAL] = @tooltip_bg_color
  216. fg[NORMAL] = @tooltip_fg_color
  217. }
  218. style "nautilus_location" {
  219. bg[NORMAL] = mix (0.60, shade (1.05, @bg_color), @selected_bg_color)
  220. }
  221. # Wrokaroudn style for places where the text color is used instead of the fg color.
  222. style "text_is_fg_color_workaround" {
  223. text[NORMAL] = @fg_color
  224. text[PRELIGHT] = @fg_color
  225. text[SELECTED] = @selected_fg_color
  226. text[ACTIVE] = @fg_color
  227. text[INSENSITIVE] = darker (@bg_color)
  228. }
  229. # Workaround style for menus where the text color is used instead of the fg color.
  230. style "menuitem_text_is_fg_color_workaround" {
  231. text[NORMAL] = @fg_color
  232. text[PRELIGHT] = @selected_fg_color
  233. text[SELECTED] = @selected_fg_color
  234. text[ACTIVE] = @fg_color
  235. text[INSENSITIVE] = darker (@bg_color)
  236. }
  237. # Workaround style for places where the fg color is used instead of the text color.
  238. style "fg_is_text_color_workaround" {
  239. fg[NORMAL] = @text_color
  240. fg[PRELIGHT] = @text_color
  241. fg[SELECTED] = @selected_fg_color
  242. fg[ACTIVE] = @selected_fg_color
  243. fg[INSENSITIVE] = darker (@bg_color)
  244. }
  245. # Style to set the toolbar to use a flat style. This is because the "New" button in
  246. # Evolution is not drawn transparent. So if there is a gradient in the background it will
  247. # look really wrong.
  248. # See http://bugzilla.gnome.org/show_bug.cgi?id=446953.
  249. style "evo_new_button_workaround" {
  250. engine "clearlooks" {
  251. toolbarstyle = 0
  252. }
  253. }
  254. ###############################################################################
  255. # The following part of the gtkrc applies the different styles to the widgets.
  256. ###############################################################################
  257. # The default style is applied to every widget
  258. class "GtkWidget" style "default"
  259. class "GtkSeparator" style "wide"
  260. class "GtkFrame" style "wide"
  261. class "GtkCalendar" style "wide"
  262. class "GtkEntry" style "entry"
  263. class "GtkSpinButton" style "spinbutton"
  264. class "GtkScale" style "scale"
  265. class "GtkVScale" style "vscale"
  266. class "GtkHScale" style "hscale"
  267. class "GtkScrollbar" style "scrollbar"
  268. class "GtkHScrollbar" style "hscrollbar"
  269. class "GtkVScrollbar" style "vscrollbar"
  270. # General matching follows. The order is choosen so that the right styles override
  271. # each other. EG. progressbar needs to be more important than the menu match.
  272. widget_class "*<GtkNotebook>" style "notebook_bg"
  273. # This is not perfect, it could be done better.
  274. # (That is modify *every* widget in the notebook, and change those back that
  275. # we really don't want changed)
  276. widget_class "*<GtkNotebook>*<GtkEventBox>" style "notebook_bg"
  277. widget_class "*<GtkNotebook>*<GtkDrawingArea>" style "notebook_bg"
  278. widget_class "*<GtkNotebook>*<GtkLayout>" style "notebook_bg"
  279. widget_class "*<GtkNotebook>*<GtkViewport>" style "notebook_bg"
  280. widget_class "*<GtkNotebook>*<GtkScrolledWindow>" style "notebook_bg"
  281. widget_class "*<GtkButton>" style "button"
  282. widget_class "*<GtkNotebook>" style "notebook"
  283. widget_class "*<GtkStatusbar>*" style "statusbar"
  284. widget_class "*<GtkComboBoxEntry>*" style "comboboxentry"
  285. widget_class "*<GtkCombo>*" style "comboboxentry"
  286. widget_class "*<GtkMenuBar>*" style "menubar"
  287. widget_class "*<GtkMenu>*" style "menu"
  288. widget_class "*<GtkMenuItem>*" style "menu_item"
  289. widget_class "*<GtkSeparatorMenuItem>*" style "separator_menu_item"
  290. widget_class "*.<GtkFrame>.<GtkLabel>" style "frame_title"
  291. widget_class "*.<GtkTreeView>*" style "treeview"
  292. widget_class "*<GtkProgress>" style "progressbar"
  293. # Treeview headers (and similar stock GTK+ widgets)
  294. widget_class "*.<GtkTreeView>.<GtkButton>" style "treeview_header"
  295. widget_class "*.<GtkCTree>.<GtkButton>" style "treeview_header"
  296. widget_class "*.<GtkList>.<GtkButton>" style "treeview_header"
  297. widget_class "*.<GtkCList>.<GtkButton>" style "treeview_header"
  298. # The window of the tooltip is called "gtk-tooltip"
  299. ##################################################################
  300. # FIXME:
  301. # This will not work if one embeds eg. a button into the tooltip.
  302. # As far as I can tell right now we will need to rework the theme
  303. # quite a bit to get this working correctly.
  304. # (It will involve setting different priorities, etc.)
  305. ##################################################################
  306. widget "gtk-tooltip*" style "tooltips"
  307. ##########################################################################
  308. # Following are special cases and workarounds for issues in applications.
  309. ##########################################################################
  310. # Workaround for the evolution ETable (bug #527532)
  311. widget_class "*.<ETable>.<ECanvas>" style "treeview_header"
  312. # Workaround for the evolution ETree
  313. widget_class "*.<ETree>.<ECanvas>" style "treeview_header"
  314. # Special case the nautilus-extra-view-widget
  315. # ToDo: A more generic approach for all applications that have a widget like this.
  316. widget "*.nautilus-extra-view-widget" style : highest "nautilus_location"
  317. # Work around for http://bugzilla.gnome.org/show_bug.cgi?id=382646
  318. # Note that this work around assumes that the combobox is _not_ in appears-as-list mode.
  319. widget_class "*.<GtkComboBox>.<GtkCellView>" style "text_is_fg_color_workaround"
  320. # This is the part of the workaround that fixes the menus
  321. widget "*.gtk-combobox-popup-menu.*" style "menuitem_text_is_fg_color_workaround"
  322. # Work around the usage of GtkLabel inside GtkListItems to display text.
  323. # This breaks because the label is shown on a background that is based on the base color.
  324. widget_class "*<GtkListItem>*" style "fg_is_text_color_workaround"
  325. # GtkCList also uses the fg color to draw text on top of the base colors.
  326. widget_class "*<GtkCList>" style "fg_is_text_color_workaround"
  327. # Nautilus when renaming files, and maybe other places.
  328. widget_class "*<EelEditableLabel>" style "fg_is_text_color_workaround"
  329. # See the documentation of the style.
  330. widget_class "EShellWindow.GtkVBox.BonoboDock.BonoboDockBand.BonoboDockItem*" style "evo_new_button_workaround"