Advertisement
orion5mx

Kali

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