Advertisement
richardgv

gtkrc

Sep 10th, 2011
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.38 KB | None | 0 0
  1. # Theme: Hope GTK (Blue)
  2. # Author: Reda Lazri(rAX) <the.red.shortcut@gmail.com>
  3. # Credits: Based on Ambiance and some code from elemetary-GTK.
  4. # License: GPL
  5.  
  6. gtk-color-scheme = "base_color:#ffffff\nfg_color:#4c4c4c\ntooltip_fg_color:#4c4c4c\nselected_bg_color:#67c4db\nselected_fg_color:#FFFFFF\ntext_color:#3C3C3C\nbg_color:#F2F1F0\ntooltip_bg_color:#F5F5B5\nlink_color:#2dd4ec"
  7.  
  8.  
  9. gtk-icon-sizes = "panel-menu=22,22:gtk-button=16,16" # Set icon size for button without text
  10. gtk-button-images = 0 # Disables icons for buttons with text
  11. gtk-toolbar-style = 0 # Disables text in toolbar
  12. gtk-auto-mnemonics = 1 # Disables ugly lines under menu items
  13.  
  14.  
  15. style "default" {
  16. xthickness = 1
  17. ythickness = 1
  18.  
  19. #######################
  20. # Style Properties
  21. #######################
  22.  
  23.  
  24.  
  25. GtkWidget ::new-tooltip-style = 1
  26.  
  27. GtkButton ::child-displacement-x = 1
  28. GtkButton ::child-displacement-y = 1
  29. GtkButton ::default-border = { 0, 0, 0, 0 }
  30.  
  31. GtkCheckButton ::indicator-size = 16
  32.  
  33. GtkPaned ::handle-size = 6
  34.  
  35. GtkRange ::trough-border = 0
  36. GtkRange ::slider-width = 13
  37. GtkRange ::stepper-size = 13
  38. GtkRange ::trough-under-steppers = 1
  39.  
  40. GtkScale ::trough-border = 0
  41. GtkScale ::slider-width = 14
  42. GtkScale ::slider-length = 14
  43. GtkScale ::trough-side-details = 1
  44.  
  45. GtkScrollbar ::activate-slider = 1
  46. GtkScrollbar ::trough-border = 0
  47. GtkScrollbar ::slider-width = 14
  48. GtkScrollbar ::min-slider-length = 30
  49. GtkScrollbar ::has-backward-stepper = 0
  50. GtkScrollbar ::has-forward-stepper = 0
  51.  
  52. GtkMenuBar ::internal-padding = 0
  53. GtkExpander ::expander-size = 11
  54.  
  55. GtkToolbar ::internal-padding = 1
  56. # GtkToolbar ::shadow-type = GTK_SHADOW_NONE
  57.  
  58. GtkTreeView ::expander-size = 7
  59. GtkTreeView ::vertical-separator = 0
  60. GtkTreeView ::odd-row-color = shade (0.96, @base_color)
  61.  
  62. GtkNotebook ::tab-overlap = -2
  63.  
  64. GtkMenu ::horizontal-padding = 0
  65. GtkMenu ::vertical-padding = 0
  66.  
  67. WnckTasklist ::fade-overlay-rect = 0
  68.  
  69.  
  70.  
  71. # The following line hints to gecko (and possibly other appliations)
  72. # that the entry should be drawn transparently on the canvas.
  73. # Without this, gecko will fill in the background of the entry.
  74.  
  75. GtkEntry ::honors-transparent-bg-hint = 1
  76. GtkEntry ::state-hint = 0
  77.  
  78. GtkEntry ::progress-border = { 2, 2, 2, 2 }
  79.  
  80. GtkProgressBar ::min-horizontal-bar-height = 8
  81. GtkProgressBar ::min-vertical-bar-width = 8
  82.  
  83. GtkImage ::x-ayatana-indicator-dynamic = 1
  84. GtkMenuBar ::window-dragging = 1
  85.  
  86. GtkWidget ::link-color = @link_color
  87. GtkWidget ::visited-link-color = @text_color
  88.  
  89. ####################
  90. # Color Definitions
  91. ####################
  92. bg[NORMAL] = @bg_color
  93. bg[PRELIGHT] = shade (1.02, @bg_color)
  94. bg[SELECTED] = @selected_bg_color
  95. bg[INSENSITIVE] = shade (0.95, @bg_color)
  96. bg[ACTIVE] = shade (0.9, @bg_color)
  97.  
  98. fg[NORMAL] = @fg_color
  99. fg[PRELIGHT] = @fg_color
  100. fg[SELECTED] = @selected_fg_color
  101. fg[INSENSITIVE] = darker (@bg_color)
  102. fg[ACTIVE] = @fg_color
  103.  
  104. text[NORMAL] = @text_color
  105. text[PRELIGHT] = @text_color
  106. text[SELECTED] = @selected_fg_color
  107. text[INSENSITIVE] = shade (0.8, @bg_color)
  108. text[ACTIVE] = darker (@text_color)
  109.  
  110. base[NORMAL] = @base_color
  111. base[PRELIGHT] = shade (0.98, @bg_color)
  112. base[SELECTED] = @selected_bg_color
  113. base[INSENSITIVE] = shade (0.97, @bg_color)
  114. base[ACTIVE] = shade (0.94, @bg_color)
  115.  
  116. engine "murrine" {
  117.  
  118.  
  119.  
  120. animation= TRUE
  121. arrowstyle = 2
  122. colorize_scrollbar = FALSE
  123. contrast = 0.5
  124. default_button_color = shade (1.1, @selected_bg_color)
  125. focusstyle = 2
  126. glazestyle = 0
  127. gradient_shades = {1.2, 1.0, 1.0, 0.9}
  128. handlestyle = 1
  129. highlight_shade = 1.0
  130. lightborder_shade = 1.26
  131. lightborderstyle = 1
  132. listviewstyle = 0
  133. menubaritemstyle = 0
  134. menubarstyle = 2
  135. menustyle = 0
  136. progressbarstyle = 0
  137. reliefstyle = 3
  138. roundness = 4
  139. scrollbarstyle = 2
  140. sliderstyle = 0
  141. stepperstyle = 2
  142. rgba = FALSE
  143.  
  144. }
  145. }
  146.  
  147. style "dark"
  148. {
  149. fg[NORMAL] = "#dfdbd2"
  150. fg[PRELIGHT] = "#ffffff"
  151. fg[ACTIVE] = "#ffffff"
  152. fg[SELECTED] = "#ffffff"
  153. fg[INSENSITIVE] = shade (0.5, "#2E2E2E")
  154.  
  155. bg[NORMAL] = "#2E2E2E"
  156. bg[PRELIGHT] = shade (1.0, "#2f2e2e")
  157. bg[ACTIVE] = shade(0.94, "#2E2E2E")
  158. bg[SELECTED] = shade(1.0, @selected_bg_color)
  159. bg[INSENSITIVE] = "#2E2E2E"
  160.  
  161. base[NORMAL] = "#333230"
  162. base[PRELIGHT] = shade (0.95, @bg_color)
  163. base[ACTIVE] = shade (0.55, @bg_color)
  164. base[SELECTED] = shade (1.0, @selected_bg_color)
  165. base[INSENSITIVE] = @bg_color
  166.  
  167. text[NORMAL] = "#EBEBEB"
  168. text[PRELIGHT] = @base_color
  169. text[ACTIVE] = @base_color
  170. text[SELECTED] = @base_color
  171. text[INSENSITIVE] = mix (0.5, @bg_color, "#2E2E2E")
  172. }
  173.  
  174. style "wide" {
  175. xthickness = 2
  176. ythickness = 2
  177. }
  178.  
  179. style "wider" {
  180. xthickness = 3
  181. ythickness = 3
  182. }
  183.  
  184. style "entry" {
  185. xthickness = 3
  186. ythickness = 3
  187.  
  188. engine "murrine" {
  189. }
  190. }
  191.  
  192. style "vscale" {
  193. }
  194.  
  195. style "hscale" {
  196. }
  197.  
  198. style "button" {
  199. xthickness = 2
  200. ythickness = 2
  201.  
  202. bg[NORMAL] = "#e0e0e0"
  203. bg[PRELIGHT] = shade (1.0, "#c8eaf2")
  204. bg[ACTIVE] = shade (0.96, "#cdcdcd")
  205. bg[INSENSITIVE] = mix (0.25, @bg_color, "#e2e1e1")
  206. fg[INSENSITIVE] = "#9c9c9c"
  207.  
  208. engine "murrine" {
  209. contrast = 1.0
  210. border_shades = {1.2, 1.0}
  211. textstyle = 3
  212. glowstyle = 3
  213. glow_shade = 1.3
  214. #text_shade = 1.04
  215. }
  216. }
  217.  
  218. style "notebook_button" {
  219.  
  220. xthickness = 2
  221. ythickness = 1
  222.  
  223. bg[NORMAL] = @bg_color
  224. bg[PRELIGHT] = shade (1.0, "#c8eaf2")
  225. bg[ACTIVE] = shade (0.96, @bg_color)
  226. bg[INSENSITIVE] = @bg_color
  227.  
  228. engine "murrine" {
  229. contrast = 0.8
  230. textstyle = 1
  231. border_shades = {0.95, 0.88}
  232. glowstyle = 5
  233. glow_shade = 1.02
  234. lightborder_shade = 1.32
  235. # lightborderstyle = 0
  236. #text_shade = 1.04
  237. }
  238. }
  239.  
  240. style "spinbutton" = "notebook_button" {
  241. xthickness = 3
  242. ythickness = 3
  243.  
  244. engine "murrine" {
  245. }
  246. }
  247.  
  248. style "scrollbar" = "button" {
  249. xthickness = 3
  250. ythickness = 3
  251.  
  252. bg[NORMAL] = "#e0e0e0"
  253. bg[PRELIGHT] = shade (1.0, "#c8eaf2")
  254. bg[ACTIVE] = shade (1.0, "#cdcdcd")
  255. bg[INSENSITIVE] = mix (0.25, @bg_color, "#e2e1e1")
  256. fg[INSENSITIVE] = "#9c9c9c"
  257.  
  258. engine "murrine"
  259. {
  260. border_shades = {0.85, 0.80}
  261. contrast = 0.4
  262. glow_shade = 1.3
  263. glowstyle = 3
  264. gradient_shades = {1.1, 1.0, 0.99, 0.90}
  265. lightborder_shade = 1.5
  266. roundness = 20
  267. trough_border_shades = {0.9, 1.1}
  268. trough_shades ={0.98, 1.0}
  269. }
  270. }
  271.  
  272. style "hscrollbar" {
  273. }
  274.  
  275. style "vscrollbar" {
  276. }
  277.  
  278. style "scale" = "button" {
  279. bg[NORMAL] = @bg_color
  280. bg[PRELIGHT] = shade (1.06, "#c8eaf2")
  281. bg[ACTIVE] = shade (0.94, @bg_color)
  282.  
  283.  
  284. engine "murrine" {
  285. border_shades = {1.0, 0.8}
  286. contrast = 0.5
  287. glow_shade = 1.3
  288. gradient_shades = {1.2, 1.0, 1.0, 1.2}
  289. # handlestyle = 3
  290. lightborder_shade = 1.5
  291. # reliefstyle = 2
  292. roundness = 7
  293. # shadow_shades = {0.4, 0.9}
  294. trough_border_shades = {0.86, 1.4}
  295. }
  296. }
  297.  
  298. style "notebook_bg" {
  299. bg[NORMAL] = shade (1.02, @bg_color)
  300. bg[ACTIVE] = shade (0.97, @bg_color)
  301. fg[ACTIVE] = mix (0.8, @fg_color, shade (0.97, @bg_color))
  302. }
  303.  
  304. # The color is changed by the notebook_bg style, this style
  305. # changes the x/ythickness
  306. style "notebook" {
  307. xthickness = 0
  308. ythickness = 0
  309.  
  310. engine "murrine" {
  311. roundness = 3
  312. contrast = 0.7
  313. focusstyle = 3
  314. lightborder_shade = 1.2
  315. gradient_shades = {0.98, 0.9, 0.9, 0.7}
  316. }
  317. }
  318.  
  319.  
  320. style "progressbar" {
  321. xthickness = 0
  322. ythickness = 0
  323.  
  324. bg[ACTIVE] = shade (0.98, @bg_color)
  325. fg[PRELIGHT] = @selected_fg_color
  326. #bg[SELECTED] = "#cdcdcd"
  327.  
  328. engine "murrine" {
  329. border_shades = {0.98, 0.9}
  330. contrast = 0.3
  331. gradient_shades = {1.1, 1.0, 1.0, 0.98}
  332. lightborder_shade = 1.3
  333. lightborderstyle = 3
  334. roundness = 8
  335. trough_border_shades = {0.86, 1.4}
  336. trough_shades = {0.98, 1.3}
  337. }
  338. }
  339.  
  340. style "progressbar_menu_item" = "progressbar" {
  341. bg[ACTIVE] = shade(0.98, "#4D4C48")
  342.  
  343. engine "murrine" {
  344. roundness = 0
  345. }
  346. }
  347.  
  348. style "statusbar" {
  349. engine "murrine" {
  350. contrast = 1.2
  351. }
  352. }
  353.  
  354. style "comboboxentry" = "notebook_button" {
  355. xthickness = 3
  356. ythickness = 3
  357.  
  358. engine "murrine" {
  359. textstyle = 1
  360. glowstyle = 5
  361. glow_shade = 1.02
  362. }
  363. }
  364.  
  365. style "menubar" {
  366. engine "murrine" {
  367. textstyle = 0
  368. text_shade = 0.33
  369. gradient_shades = {1.0, 0.9, 0.85, 0.75}
  370. lightborder_shade = 1.0
  371. }
  372. }
  373.  
  374. style "toolbar" {
  375. engine "murrine" {
  376. textstyle = 1
  377. text_shade = 1.32
  378. }
  379. }
  380.  
  381. style "toolbar-button" = "notebook_button" {
  382. engine "murrine" {
  383. }
  384. }
  385.  
  386. style "menu" {
  387. xthickness = 0
  388. ythickness = 0
  389.  
  390. bg[ACTIVE] = "#000000"
  391. bg[INSENSITIVE] = "#222222"
  392. fg[INSENSITIVE] = shade (0.94, "#6d6d6d")
  393.  
  394. engine "murrine"
  395. {
  396. roundness = 2
  397. contrast = 1.1
  398. }
  399. }
  400.  
  401. style "menu_item" = "menu" {
  402. xthickness = 2
  403. ythickness = 3
  404.  
  405. fg[PRELIGHT] = @selected_fg_color
  406.  
  407.  
  408. engine "murrine"
  409. {
  410. glowstyle = 5
  411. glow_shade = 1.1
  412. # lightborder_shade = 1.0
  413. border_shades = { 1.6, 1.6 }
  414. roundness = 0
  415. }
  416. }
  417.  
  418. style "menubar_item" = "menu" {
  419. xthickness = 2
  420. ythickness = 2
  421.  
  422. engine "murrine" {
  423. gradient_shades = {1.1, 1.0, 1.0, 0.88}
  424. glowstyle = 5
  425. glow_shade = 1.0
  426. border_shades = {1.0, 0.9}
  427. lightborderstyle = 0
  428. lightborder_shade = 1.26
  429. lightborder_shade = 1.9
  430. }
  431. }
  432.  
  433. style "scale_menu_item" = "scale" {
  434. GtkScale::slider-width = 21
  435. GtkScale::slider-length = 13
  436.  
  437. bg[ACTIVE] = shade(0.98, "#4D4C48")
  438. bg[INSENSITIVE] = shade (0.9, @bg_color)
  439.  
  440. engine "murrine" {
  441. roundness = 20
  442. border_shades = {1.4, 1.4}
  443. reliefstyle = 0
  444. lightborder_shade = 1.36
  445. }
  446. }
  447.  
  448. # This style is there to modify the separator menu items. The goals are:
  449. # 1. Get a specific height.
  450. # 2. The line should go to the edges (ie. no border at the left/right)
  451. style "separator_menu_item" {
  452. xthickness = 1
  453. ythickness = 0
  454.  
  455. GtkSeparatorMenuItem::horizontal-padding = 0
  456. GtkWidget::wide-separators = 1
  457. GtkWidget::separator-width = 1
  458. GtkWidget::separator-height = 7
  459.  
  460. engine "murrine" {
  461. contrast = 0.6
  462. separatorstyle = 0
  463. }
  464. }
  465.  
  466. style "separator_tool_item" {
  467. xthickness = 0
  468. ythickness = 1
  469.  
  470. GtkVSeparator::vertical-padding = 0
  471. GtkWidget::wide-separators = 1
  472. GtkWidget::separator-width = 7
  473. GtkWidget::separator-height = 1
  474.  
  475. engine "murrine" {
  476. contrast = 0.6
  477. separatorstyle = 0
  478. }
  479. }
  480.  
  481. style "frame_title" {
  482. fg[NORMAL] = lighter (@fg_color)
  483. }
  484.  
  485. style "treeview" {
  486. engine "murrine"
  487. {
  488. roundness = 2
  489. lightborder_shade = 1.1
  490. gradient_shades = {1.04, 1.0, 1.0, 0.96}
  491. }
  492. }
  493.  
  494. # This style is based on the default style, so that the colors from the button
  495. # style are overriden again.
  496. style "treeview_header" = "notebook_button" {
  497. xthickness = 2
  498. ythickness = 1
  499.  
  500. engine "murrine" {
  501. glazestyle = 1
  502. contrast = 0.8
  503. lightborder_shade = 1.16
  504. textstyle = 1
  505. glow_shade = 1.0
  506. }
  507. }
  508.  
  509. style "treeview_header_scrolled" = "treeview_header" {
  510. }
  511.  
  512.  
  513. style "scrolledwindow" {
  514. engine "murrine" {
  515. contrast = 0.6
  516. }
  517. }
  518.  
  519. style "radiocheck" = "button" {
  520. text[NORMAL] = shade (0.535, @selected_bg_color)
  521. text[PRELIGHT] = shade(1.06, shade (0.535, @selected_bg_color))
  522. bg[NORMAL] = shade (0.92, @bg_color)
  523. bg[PRELIGHT] = mix (0.2, @selected_bg_color, shade(1.1, @bg_color))
  524. fg[INSENSITIVE] = darker (@bg_color)
  525. fg[ACTIVE] = @fg_color
  526.  
  527. engine "murrine" {
  528. reliefstyle = 1
  529. gradient_shades = {1.2, 1.0, 1.0, 0.9}
  530. shadow_shades = {0.6, 0.5}
  531. textstyle = 0
  532. }
  533. }
  534.  
  535. style "tooltips" {
  536. xthickness = 4
  537. ythickness = 4
  538.  
  539. bg[NORMAL] = @tooltip_bg_color
  540. fg[NORMAL] = @tooltip_fg_color
  541. bg[SELECTED] = "#000000"
  542.  
  543. engine "murrine" {
  544. rgba = TRUE
  545. }
  546. }
  547.  
  548. style "infobar" {
  549. engine "murrine" {
  550. }
  551. }
  552.  
  553. style "nautilus_location" {
  554. bg[NORMAL] = mix (0.60, shade (1.05, @bg_color), @selected_bg_color)
  555. }
  556.  
  557. style "calendar" {
  558. xthickness = 0
  559. ythickness = 0
  560.  
  561. engine "murrine" {
  562. roundness = 0
  563. }
  564. }
  565.  
  566. style "calendar_menu_item" = "calendar" {
  567. base[NORMAL] = "#605E58"
  568. base[ACTIVE] = "#4b4944"
  569. }
  570.  
  571. style "iconview" {
  572. engine "murrine" {
  573. roundness = 6
  574. border_shades = {1.16, 1.0}
  575. glow_shade = 1.1
  576. glowstyle = 5
  577. }
  578. }
  579.  
  580. style "soundfix"
  581. {
  582. }
  583.  
  584. # Wrokaround style for places where the text color is used instead of the fg color.
  585. style "text_is_fg_color_workaround" {
  586. text[NORMAL] = @fg_color
  587. text[PRELIGHT] = @fg_color
  588. text[SELECTED] = @selected_fg_color
  589. text[ACTIVE] = @fg_color
  590. text[INSENSITIVE] = darker (@bg_color)
  591. }
  592.  
  593. # Workaround style for menus where the text color is used instead of the fg color.
  594. style "menuitem_text_is_fg_color_workaround" {
  595. text[NORMAL] = @fg_color
  596. text[PRELIGHT] = @selected_fg_color
  597. text[SELECTED] = @selected_fg_color
  598. text[ACTIVE] = @fg_color
  599. text[INSENSITIVE] = "#99958b"
  600. }
  601.  
  602. # Workaround style for places where the fg color is used instead of the text color.
  603. style "fg_is_text_color_workaround" {
  604. fg[NORMAL] = @text_color
  605. fg[PRELIGHT] = @text_color
  606. fg[SELECTED] = @selected_fg_color
  607. fg[ACTIVE] = @selected_fg_color
  608. fg[INSENSITIVE] = darker (@bg_color)
  609. }
  610.  
  611. # Style to set the toolbar to use a flat style. This is because the "New" button in
  612. # Evolution is not drawn transparent. So if there is a gradient in the background it will
  613. # look really wrong.
  614. # See http://bugzilla.gnome.org/show_bug.cgi?id=446953.
  615. style "evo_new_button_workaround" {
  616. }
  617.  
  618.  
  619. #I will put every copied style here:
  620.  
  621. style "murrine-thin" ="murrine-default" { xthickness = 0 ythickness = 0 } #Copied from elementary, to fix gedit.
  622.  
  623. # nautilus breadcrums
  624. style "nautilus-breadcrum-text"
  625. {
  626. fg[NORMAL] = @text_color
  627. fg[ACTIVE] = "#484848" # when pressed
  628. fg[PRELIGHT] = shade ( 1.60, mix ( 0.85, @text_color, "#84d4f9" ) ) # mouse over
  629. fg[SELECTED] = @selected_fg_color
  630. fg[INSENSITIVE] = shade ( 0.40, @bg_color )
  631.  
  632. }
  633.  
  634. style "nautilus-breadcrum"
  635. {
  636. ythickness = 0
  637. xthickness = 10 # Spacing between arrow pathbar buttons
  638.  
  639. GtkButton::child-displacement-y = 0
  640. GtkButton::child-displacement-x = 0
  641. GtkButton::inner-border = {0, 13, 0, 0} # Spacing between arrow pathbar buttons
  642.  
  643. engine "pixmap"
  644. {
  645. image
  646. {
  647. function = BOX
  648. state = NORMAL
  649. file = "nautilus/Breadcrumbs/pathbar-arrow-right.svg"
  650. border = { 0, 13, 0, 0 }
  651. stretch = TRUE
  652. }
  653.  
  654. image
  655. {
  656. function = BOX
  657. state = ACTIVE
  658. file = "nautilus/Breadcrumbs/pathbar-arrow-right.svg"
  659. border = { 0, 13, 0, 0 }
  660. stretch = TRUE
  661. }
  662.  
  663. image
  664. {
  665. function = BOX
  666. state = PRELIGHT
  667. file = "nautilus/Breadcrumbs/pathbar-arrow-left.svg"
  668. border = { 0, 13, 0, 0 }
  669. stretch = TRUE
  670. }
  671.  
  672. image
  673. {
  674. function = BOX
  675. state = SELECTED
  676. file = "nautilus/Breadcrumbs/pathbar-arrow-left.svg"
  677. border = { 0, 13, 0, 0 }
  678. stretch = TRUE
  679. }
  680.  
  681. #grey square fix#
  682. image
  683. {
  684. function = BOX
  685. state = INSENSITIVE
  686. file = "nautilus/Breadcrumbs/null.png"
  687. border = { 0, 13, 0, 0 }
  688. stretch = TRUE
  689. }
  690. }
  691. }
  692.  
  693. #Pathbar/Location Bar Arrows
  694. widget "*Gtk*PathBar*Button" style "nautilus-breadcrum"
  695. widget "*Gtk*PathBar*Button*Label*" style "nautilus-breadcrum-text"
  696. widget "*Gtk*PathBar*Button*Arrow" style "nautilus-breadcrum" # 1st arrow
  697. ###############################################################################
  698. # The following part of the gtkrc applies the different styles to the widgets.
  699. ###############################################################################
  700.  
  701. # The default style is applied to every widget
  702. class "GtkWidget" style "default"
  703.  
  704. class "GtkSeparator" style "wide"
  705. class "GtkFrame" style "wide"
  706. class "GtkCalendar" style "wide"
  707. class "GtkEntry" style "entry"
  708.  
  709. class "GtkSpinButton" style "spinbutton"
  710. class "GtkScale" style "scale"
  711. class "GtkVScale" style "vscale"
  712. class "GtkHScale" style "hscale"
  713. class "GtkScrollbar" style "scrollbar"
  714. class "GtkHScrollbar" style "hscrollbar"
  715. class "GtkVScrollbar" style "vscrollbar"
  716. class "GtkCalendar" style "calendar"
  717. class "GtkInfoBar" style "infobar"
  718. class "GtkIconView" style "iconview"
  719.  
  720. # General matching follows. The order is choosen so that the right styles override
  721. # each other. EG. progressbar needs to be more important than the menu match.
  722. widget_class "*<GtkNotebook>" style "notebook_bg"
  723.  
  724.  
  725. # This is not perfect, it could be done better.
  726. # (That is modify *every* widget in the notebook, and change those back that
  727. # we really don't want changed)
  728. widget_class "*<GtkNotebook>*<GtkEventBox>" style "notebook_bg"
  729. widget_class "*<GtkNotebook>*<GtkDrawingArea>" style "notebook_bg"
  730. widget_class "*<GtkNotebook>*<GtkLayout>" style "notebook_bg"
  731. widget_class "*<GtkNotebook>*<GtkLabel>" style "notebook_bg"
  732.  
  733. widget_class "*<GtkToolbar>*" style "toolbar"
  734. widget_class "*<GtkScrolledWindow>*" style "scrolledwindow"
  735.  
  736. widget_class "*<GtkButton>" style "button"
  737. widget_class "*<GtkButton>*<GtkLabel>" style "button"
  738. widget_class "*<GtkToolbar>.*.<GtkButton>*" style "notebook_button"
  739. widget_class "*<GtkNotebook>" style "notebook"
  740. widget_class "*<GtkStatusbar>" style "statusbar"
  741. widget_class "*<GtkSpinButton>*" style "spinbutton"
  742. widget_class "*<GtkNotebook>*<GtkButton>" style "notebook_button"
  743. widget_class "*<GtkNotebook>*<GtkButton>*<GtkLabel>" style "notebook_button"
  744. widget_class "*<GtkRadioButton>*" style "radiocheck"
  745. widget_class "*<GtkCheckButton>*" style "radiocheck"
  746.  
  747. widget_class "*<GtkComboBoxEntry>*" style "comboboxentry"
  748. widget_class "*<GtkCombo>*" style "comboboxentry"
  749.  
  750. widget_class "*<GtkMenuBar>*" style "menubar"
  751. widget_class "*<GtkMenu>*" style "menu"
  752. widget_class "*<GtkMenuItem>*" style "menu_item"
  753. widget_class "*<GtkSeparatorMenuItem>*" style "separator_menu_item"
  754. widget_class "*<GtkSeparatorToolItem>*" style "separator_tool_item"
  755. widget_class "*<GtkMenuBar>*<GtkMenuItem>*" style "menubar_item"
  756.  
  757. widget_class "*.<GtkFrame>.<GtkLabel>" style "frame_title"
  758. widget_class "*.<GtkTreeView>*" style "treeview"
  759.  
  760. widget_class "*<GtkProgress>" style "progressbar"
  761. widget_class "*<GtkMenuItem>.*.<GtkProgressBar>" style "progressbar_menu_item"
  762. widget_class "*<GtkMenuItem>.*.<GtkScale>" style "scale_menu_item"
  763. widget_class "*<GtkMenuItem>.*.<GtkCalendar>" style "calendar_menu_item"
  764.  
  765. # Treeview headers (and similar stock GTK+ widgets)
  766. widget_class "*.<GtkScrolledWindow>*<GtkTreeView>*" style "treeview_header_scrolled"
  767. widget_class "*.<GtkTreeView>.<GtkButton>" style "treeview_header"
  768. widget_class "*.<GtkCTree>.<GtkButton>" style "treeview_header"
  769. widget_class "*.<GtkList>.<GtkButton>" style "treeview_header"
  770. widget_class "*.<GtkCList>.<GtkButton>" style "treeview_header"
  771. widget_class "*.<GtkTreeView>.<GtkButton>.*<GtkLabel>" style "treeview_header"
  772. widget_class "*.<GtkCTree>.<GtkButton>.*<GtkLabel>" style "treeview_header"
  773. widget_class "*.<GtkList>.<GtkButton>.*<GtkLabel>" style "treeview_header"
  774. widget_class "*.<GtkCList>.<GtkButton>.*<GtkLabel>" style "treeview_header"
  775.  
  776.  
  777.  
  778. ########################
  779.  
  780.  
  781.  
  782.  
  783. # The window of the tooltip is called "gtk-tooltip"
  784. ##################################################################
  785. # FIXME:
  786. # This will not work if one embeds eg. a button into the tooltip.
  787. # As far as I can tell right now we will need to rework the theme
  788. # quite a bit to get this working correctly.
  789. # (It will involve setting different priorities, etc.)
  790. ##################################################################
  791. widget "gtk-tooltip*" style "tooltips"
  792.  
  793. ##########################################################################
  794. # Following are special cases and workarounds for issues in applications.
  795. ##########################################################################
  796.  
  797. # Workaround for the evolution ETable (bug #527532)
  798. widget_class "*.ETable.ECanvas" style "treeview_header"
  799.  
  800. # Workaround for the evolution ETree
  801. widget_class "*.ETree.ECanvas" style "treeview_header"
  802.  
  803. # Special case the nautilus-extra-view-widget
  804. # ToDo: A more generic approach for all applications that have a widget like this.
  805. widget "*.nautilus-extra-view-widget" style : highest "nautilus_location"
  806.  
  807. # Work around for http://bugzilla.gnome.org/show_bug.cgi?id=382646
  808. # Note that this work around assumes that the combobox is _not_ in appears-as-list mode.
  809. widget_class "*.<GtkComboBox>.<GtkCellView>" style "text_is_fg_color_workaround"
  810.  
  811. # This is the part of the workaround that fixes the menus
  812. widget "*.gtk-combobox-popup-menu.*" style "menuitem_text_is_fg_color_workaround"
  813.  
  814. # Work around the usage of GtkLabel inside GtkListItems to display text.
  815. # This breaks because the label is shown on a background that is based on the base color.
  816. widget_class "*<GtkListItem>*" style "fg_is_text_color_workaround"
  817.  
  818. # GtkCList also uses the fg color to draw text on top of the base colors.
  819. widget_class "*<GtkCList>" style "fg_is_text_color_workaround"
  820.  
  821. # Nautilus when renaming files, and maybe other places.
  822. widget_class "*<EelEditableLabel>" style "fg_is_text_color_workaround"
  823.  
  824. # Work around for ubuntu's lucid sound indicator
  825. widget "ido-offscreen-scale" style "soundfix"
  826.  
  827. # Thickness for indicator menu items
  828. widget "*IdoEntryMenuItem*" style "wide"
  829.  
  830. # See the documentation of the style.
  831. widget_class "EShellWindow.GtkVBox.BonoboDock.BonoboDockBand.BonoboDockItem*" style "evo_new_button_workaround"
  832.  
  833. # Includes
  834. include "apps/banshee.rc"
  835. include "apps/chromium.rc"
  836. include "apps/ff.rc"
  837. include "apps/gnome-panel.rc"
  838. include "apps/gnome-terminal.rc"
  839. include "apps/nautilus.rc"
  840. include "apps/gedit.rc"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement