home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / themes / Dust / gtk-2.0 / gtkrc < prev    next >
Encoding:
Text File  |  2009-03-30  |  19.4 KB  |  717 lines

  1. # Dust theme
  2. # by Rico Sta. Cruz and Ricardo (Kido) Mariano III
  3.  
  4. # This version uses Clearlooks, and Murrine (tested with svn rev 136) ONLY for the checkboxes and menu entries. I do not like keeping up with releases that break existing themes.
  5.  
  6. # Set GtkSettings color scheme property.
  7. # This can be overriden (via an xsetting) with eg. the gnome-appearance-properties.
  8. #gtk_color_scheme = "fg_color:#323232\nbg_color:#e4e0d8\nbase_color:#fff\ntext_color:#323232\nselected_bg_color:#996B5C\nselected_fg_color:#fff\ntooltip_bg_color:#ebeab8\ntooltip_fg_color:#323232"
  9. gtk_color_scheme = "fg_color:#323232\nbg_color:#D9D4CC\nbase_color:#fff\ntext_color:#323232\nselected_bg_color:#996B5C\nselected_fg_color:#fff\ntooltip_bg_color:#ebeab8\ntooltip_fg_color:#323232"
  10.  
  11. include "scrollbars/scrollbar.rc"
  12.  
  13. style "default"
  14. {
  15.     ########
  16.     # Style Properties
  17.     ########
  18.     GtkScrolledWindow ::scrollbar-spacing = 0
  19.     GtkScrolledWindow ::scrollbar-within-bevel = 0
  20.     
  21.     GtkButton      ::child-displacement-x = 1
  22.     GtkButton      ::child-displacement-y = 1
  23.     GtkButton      ::default-border       = { 0, 0, 0, 0 }
  24.     GtkButton      ::focus-padding        = 0
  25.     GtkCheckButton ::indicator-size       = 14
  26.  
  27.     GtkPaned       ::handle-size          = 6
  28.  
  29.     GtkRange       ::trough-border        = 0
  30.     GtkRange       ::slider-width         = 15
  31.     GtkRange       ::stepper-size         = 15
  32.  
  33.     GtkScale       ::slider-length        = 20
  34.     GtkScale       ::trough-side-details  = 0    # 0 = thin slider, >0 = thick slider
  35.     GtkScrollbar   ::min-slider-length    = 30
  36.  
  37.     GtkMenuBar     ::internal-padding     = 0
  38.     GtkExpander    ::expander-size        = 16
  39.     GtkToolbar     ::internal-padding     = 1
  40.     GtkTreeView    ::expander-size        = 14
  41.     GtkTreeView    ::vertical-separator   = 0
  42.     
  43.     GtkMenu        ::horizontal-padding   = 0
  44.     GtkMenu        ::vertical-padding     = 0
  45.     WnckTasklist   ::fade-overlay-rect    = 0
  46.     
  47.     xthickness = 1
  48.     ythickness = 1
  49.  
  50.     fg[NORMAL]        = @fg_color
  51.     fg[PRELIGHT]      = @fg_color
  52.     fg[SELECTED]      = @selected_fg_color
  53.     fg[ACTIVE]        = @fg_color
  54.     fg[INSENSITIVE]   = darker (@bg_color)
  55.  
  56.     bg[NORMAL]        = @bg_color
  57.     bg[PRELIGHT]      = shade (1.02, @bg_color)
  58.     bg[SELECTED]      = @selected_bg_color
  59.     bg[INSENSITIVE]   = @bg_color
  60.     bg[ACTIVE]        = shade (0.9, @bg_color)
  61.  
  62.     base[NORMAL]      = @base_color
  63.     base[PRELIGHT]    = shade (0.95, @bg_color)
  64.     base[ACTIVE]      = mix (0.7, @selected_bg_color, @bg_color)
  65.     base[SELECTED]    = @selected_bg_color
  66.     base[INSENSITIVE] = @bg_color
  67.  
  68.     text[NORMAL]      = @text_color
  69.     text[PRELIGHT]    = @text_color
  70.     text[ACTIVE]      = @selected_fg_color
  71.     text[SELECTED]    = @selected_fg_color
  72.     text[INSENSITIVE] = darker (@bg_color)
  73.  
  74.     engine "clearlooks" 
  75.     {
  76.         colorize_scrollbar = FALSE
  77.         reliefstyle        = 1
  78.         menubarstyle       = 2      # 0 = flat, 1 = sunken, 2 = flat gradient
  79.         toolbarstyle       = 1      # 0 = flat, 1 = enable effects
  80.         animation          = TRUE
  81.         style              = GUMMY
  82.         contrast = 0.99
  83.         radius = 2.0
  84.     }
  85. }
  86.  
  87. style "wide"
  88. {
  89.     xthickness = 2
  90.     ythickness = 2
  91. }
  92.  
  93. style "wider"
  94. {
  95.     xthickness = 3
  96.     ythickness = 3
  97. }
  98.  
  99. style "dark"
  100. {
  101.     bg[NORMAL]    = "#343330"
  102.     bg[SELECTED]    = shade(0.9,@selected_bg_color)
  103.     bg[PRELIGHT]    = shade (0.5, @selected_bg_color)
  104.     bg[ACTIVE]    = mix (0.5, @selected_bg_color, "#343330")
  105.     bg[INSENSITIVE] = "#302F2C"
  106.     
  107.     
  108.     fg[NORMAL] = mix (0.7,  '#ffffef', @fg_color)
  109.     fg[PRELIGHT] = mix (0.8,  '#ffffef', @fg_color)
  110.     fg[SELECTED] = mix (0.8,  '#ffffef', @fg_color)
  111.     fg[ACTIVE] = mix (0.8,  '#ffffef', @fg_color)
  112.     fg[INSENSITIVE] = mix (0.4,  '#ffffef', @fg_color)    
  113.     
  114. }
  115.  
  116. style "button" = "wider"
  117. {
  118.     bg[NORMAL]   = shade (1.15, @bg_color)
  119.     bg[PRELIGHT] = shade (1.03, @bg_color) #mix(0.82,shade (1.1, @bg_color),@selected_bg_color)
  120.     bg[ACTIVE]   = shade (0.85, @bg_color)
  121.     
  122. }
  123.  
  124. style "toolbar-item" = "wider"
  125. {
  126.     bg[NORMAL]   = "#AFA99F" #shade(0.88,@bg_color)
  127.     bg[PRELIGHT] = "#EFE9DF" #shade(1.1,@bg_color)
  128.     bg[ACTIVE]   = "#CFC9BF" #shade(0.6,@bg_color)
  129.     bg[SELECTED]     = "#AFA99F" #shade(0.88,@bg_color)
  130.     bg[INSENSITIVE]  = "#AFA99F" #shade(0.88,@bg_color)
  131.         
  132.     engine "clearlooks"{
  133.     }
  134.     
  135. }
  136.  
  137. style "toolbar" = "toolbar-item"
  138. {
  139.     engine "pixmap"
  140.     {
  141.         image {
  142.               function = BOX
  143.               file = "toolbar_light.png"
  144.               border = {1,1,1,1}
  145.           }
  146.           image {
  147.               function                = HANDLE
  148.               overlay_file            = "handlebox.png"
  149.               overlay_stretch     = FALSE
  150.               orientation            = HORIZONTAL
  151.         }
  152.             image {
  153.               function                = HANDLE
  154.               overlay_file            = "handlebox.png"
  155.               overlay_stretch     = FALSE
  156.               orientation            = VERTICAL
  157.         }
  158.         image
  159.         {
  160.                function        = VLINE
  161.                recolorable        = TRUE
  162.                file                = "blank.png"
  163.         }
  164.         image
  165.         {
  166.               function            = HLINE
  167.               recolorable        = TRUE
  168.               file                = "blank.png"
  169.         }
  170.     }
  171. }
  172.  
  173.  
  174. style "toolbar-sep" = "toolbar-item"
  175. {
  176.     xthickness = 2
  177. }
  178.  
  179. style "dark-toolbar" = "dark"
  180. {    
  181.     xthickness = 3
  182.     ythickness = 3
  183.       bg[NORMAL] = "#343330"
  184.     bg[PRELIGHT] =  mix (0.25, @selected_bg_color, "#343330")
  185.     bg[SELECTED] =  mix (0.25, @selected_bg_color, "#343330")#shade(0.2,@bg_color))
  186.     bg[ACTIVE] =  mix (0.5, @selected_bg_color, "#343330")
  187.     
  188.     engine "clearlooks"{
  189.     }
  190. }
  191.  
  192. style "dark-toolbar-sep" = "dark-toolbar"
  193.  { xthickness = 2 }
  194.  
  195.  
  196. style "pixmap-dark-toolbar" = "dark-toolbar"
  197. {
  198.     # To-do: make the toolbar recolorable, possibly without using pixmaps
  199.     # We only like this because of the top line, anyway.
  200.     engine "pixmap"{
  201.         image {
  202.               function = BOX
  203.               file = "toolbar_o.png"
  204.               border = {1,1,1,1}
  205.           }
  206.           image
  207.         {
  208.               function                = HANDLE
  209.               overlay_file            = "handlebox.png"
  210.               overlay_stretch     = FALSE
  211.               orientation            = HORIZONTAL
  212.             }
  213.             image
  214.         {
  215.               function                = HANDLE
  216.               overlay_file            = "handlebox.png"
  217.               overlay_stretch     = FALSE
  218.               orientation            = VERTICAL
  219.             }
  220.             image
  221.         {
  222.                function        = VLINE
  223.                recolorable        = TRUE
  224.                file                = "blank.png"
  225.         }
  226.         image
  227.         {
  228.               function            = HLINE
  229.               recolorable        = TRUE
  230.               file                = "blank.png"
  231.         }
  232.     }
  233. }
  234.  
  235. style "notebook-bg" = "wider"
  236. {
  237.     bg[NORMAL] = shade (1.05, @bg_color)
  238.     bg[SELECTED]   = shade (1.05, @bg_color)
  239.     bg[ACTIVE] = shade(0.75,@bg_color)
  240.     
  241. }
  242.  
  243. style "notebook" = "notebook-bg"
  244. {
  245.     GtkWidget::focus-line-width = 0
  246.     engine "clearlooks"{
  247.         style = GLOSSY
  248.     }
  249. }
  250.  
  251. style "panel" = "dark" {
  252.     bg[NORMAL] = "#2C2B29"
  253.     engine "clearlooks" {
  254.     }
  255. }
  256.  
  257. style "menu" = "dark"
  258. {
  259.     xthickness = 0
  260.     ythickness = 0
  261.  
  262.     #Keep it this dark since OOo likes it
  263.     bg[NORMAL] = "#302F2C"
  264.     text[NORMAL] = @bg_color
  265.     text[PRELIGHT]    = @selected_fg_color
  266. }
  267.  
  268. style "menu-item" = "dark"
  269. {
  270.     xthickness = 0
  271.     ythickness = 3
  272. }
  273.  
  274. style "separator-menu-item"
  275. {
  276.     GtkSeparatorMenuItem::horizontal-padding = 2
  277.     GtkWidget::wide-separators = 1
  278.     GtkWidget::separator-width = 1
  279.     GtkWidget::separator-height = 2
  280.     xthickness = 4
  281.     ythickness = 0
  282.     bg[NORMAL] = "#444340"
  283. }
  284.  
  285. # Based on the default style so that the colors from the button
  286. # style are overriden again.
  287. style "treeview-header" = "default"
  288. {
  289.     xthickness = 2
  290.     ythickness = 1
  291.  
  292.     bg[NORMAL] = shade(0.9, @bg_color)
  293.     bg[PRELIGHT] = shade(1.0, @bg_color)
  294.     bg[ACTIVE] = shade(0.8, @bg_color)
  295.     
  296.     GtkWidget::focus-line-width = 0
  297.     
  298.     engine "clearlooks" {
  299.         style = GLOSSY
  300.     }
  301. }
  302.  
  303. style "tooltips"
  304. {
  305.     xthickness = 4
  306.     ythickness = 4
  307.  
  308.     bg[NORMAL] = @tooltip_bg_color
  309.     fg[NORMAL] = @tooltip_fg_color
  310. }
  311.  
  312. style "progressbar"
  313. {
  314.     xthickness = 1
  315.     ythickness = 1
  316.  
  317.     fg[PRELIGHT] = @selected_fg_color
  318.  
  319.     engine "clearlooks"
  320.     {
  321.         # Explicitly set the radius, for progress
  322.         # bars inside menuitems
  323.         radius = 3.0
  324.         contrast = 1.1
  325.     }
  326. }
  327.  
  328. style "pixmap-statusbar" = "default"
  329. {
  330.     ythickness = 3
  331.     xthickness = 3
  332.  
  333.     engine "pixmap"
  334.     {
  335.         image
  336.         {
  337.             function = RESIZE_GRIP
  338.             recolorable = TRUE
  339.             detail = "statusbar"
  340.             overlay_file = "statusgrip.png"
  341.             overlay_border = {0,0,0,0}
  342.             overlay_stretch = TRUE
  343.         }
  344.         image
  345.     {
  346.        function            = SHADOW
  347.        shadow            = IN
  348.        file                = "blank.png"
  349.     }
  350.     image
  351.     {
  352.        function            = SHADOW
  353.        shadow            = OUT
  354.        file                = "blank.png"
  355.     }
  356.     image
  357.     {
  358.        function        = SHADOW
  359.        shadow            = ETCHED_IN
  360.        file                = "blank.png"    
  361.     }
  362.     image
  363.     {
  364.        function        = SHADOW
  365.        shadow            = ETCHED_OUT
  366.        file                = "blank.png"
  367.     }
  368.     }
  369. }
  370.  
  371. style "comboboxentry" 
  372. {
  373. }
  374.  
  375. style "spinbutton"
  376. {
  377. }
  378.  
  379. style "scale"
  380. {
  381.     bg[PRELIGHT] = shade(0.9,@bg_color)
  382.     GtkWidget::focus-line-width = 0
  383.     engine "clearlooks"{
  384.         contrast = 1.0
  385.         style = GLOSSY
  386.     }
  387. }
  388.  
  389. style "menubar" = "dark"
  390. {
  391.     # Static dark color so continuity doesn't break with toolbars
  392.     # when color changes
  393.     bg[NORMAL] = "#343330"
  394.     engine "pixmap"
  395.     {
  396.         image {
  397.               function = BOX
  398.               file = "menubar.png"
  399.               #border = {1,1,1,1}
  400.               stretch = TRUE
  401.           }
  402.           image {
  403.               function                = HANDLE
  404.               overlay_file            = "handlebox.png"
  405.               overlay_stretch     = FALSE
  406.               orientation            = HORIZONTAL
  407.         }
  408.             image {
  409.               function                = HANDLE
  410.               overlay_file            = "handlebox.png"
  411.               overlay_stretch     = FALSE
  412.               orientation            = VERTICAL
  413.         }
  414.     }
  415. }
  416.  
  417. style "frame"
  418. {
  419.     #Uncomment for dark statusbars. Breaks some apps. (FIXME: Doesn't work)
  420.     #bg[ACTIVE] = shade(0.2,@bg_color)
  421.     #fg[NORMAL] = mix (1.5, @fg_color, '#ffffff')
  422.     #fg[PRELIGHT] = mix (1.4, @fg_color, '#ffffff')
  423.     engine "clearlooks"{
  424.         contrast = 0.77
  425.     }
  426. }
  427.  
  428. style "frame-title" = "frame"
  429. {
  430.     fg[NORMAL] = lighter (@fg_color)
  431. }
  432.  
  433. style "nautilus-location"
  434. {
  435.     bg[NORMAL] = mix(0.60, @bg_color, @selected_bg_color)
  436. }
  437.  
  438. #########################################
  439. # Matches
  440. #########################################
  441.  
  442. # clearlooks default style is applied to every widget
  443. class "GtkWidget"    style "default"
  444.  
  445. # Increase the x/ythickness in some widgets
  446. class "GtkRange"     style "default"
  447. class "GtkFrame"     style "frame"
  448. class "GtkSeparator" style "wide"
  449. class "GtkEntry"     style "wider"
  450. class "GtkStatusbar" style "pixmap-statusbar"
  451. class "GtkMenuBar"   style:highest "menubar"
  452.  
  453. # Toolbar default: dark
  454. #class "*HandleBox" style "pixmap-dark-toolbar"
  455. #class "GtkToolbar"   style "pixmap-dark-toolbar" 
  456. #widget_class "*HandleBox" style "pixmap-dark-toolbar"
  457. #widget_class "*<GtkToolbar>.*"   style "dark-toolbar"
  458.  
  459. # Toolbar default: light
  460. class "*HandleBox" style "toolbar"
  461. class "GtkToolbar"   style "toolbar" 
  462. widget_class "*HandleBox" style "toolbar"
  463. widget_class "*<GtkToolbar>.*"   style "toolbar-item"
  464.  
  465. #
  466. # Toolbar exceptions:
  467. # Browser-type and viewer-type applications get a dark toolbar.
  468. # Everything below the toolbar for these apps are the content. This will make
  469. # a separation on function (toolbar) and content (client area).
  470. #
  471.  
  472. # Work around for http://bugzilla.gnome.org/show_bug.cgi?id=382646
  473. style "text-is-fg-color-workaround"
  474. {
  475.     text[NORMAL]      = @fg_color
  476.     text[PRELIGHT]    = @fg_color
  477.     text[SELECTED]    = @selected_fg_color
  478.     text[ACTIVE]      = @fg_color
  479.     text[INSENSITIVE] = darker (@bg_color)
  480. }
  481. widget_class "*.<GtkComboBox>.<GtkCellView>"   style "text-is-fg-color-workaround"
  482.  
  483. style "text-is-fg-color-workaround-dark"
  484. {
  485.     #Make it work with this theme!
  486.     text[NORMAL] = mix (1.5, @fg_color, '#ffffff')
  487.     text[PRELIGHT] = mix (1.4, @fg_color, '#ffffff')
  488. }
  489.  
  490. #  Nautilus toolbar: dark
  491. widget_class "*Nautilus*Toolbar*" style "pixmap-dark-toolbar"
  492. widget_class "*Nautilus*Tool*GtkButton" style "dark-toolbar"
  493. widget_class "*Nautilus*Tool*.*.*" style "dark-toolbar"
  494. widget_class "*Nautilus*Tool*GtkToggleButton" style "dark-toolbar"
  495. widget_class "*Nautilus*Tool*Separator*" style "dark-toolbar-sep"
  496. widget_class "*Nautilus*Tool*.<GtkComboBox>.<GtkCellView>"   style "text-is-fg-color-workaround-dark"
  497.  
  498. # Evince/EOG: dark
  499. widget_class "*EggEditable*Toolbar*" style "pixmap-dark-toolbar"
  500. widget_class "*EggEditable*Toolbar*.*.*.*" style "dark-toolbar"
  501. widget_class "*EggEditable*Tool*.<GtkComboBox>.<GtkCellView>"   style "text-is-fg-color-workaround-dark"
  502.  
  503. widget "*fullscreen-toolbar" style "pixmap-dark-toolbar"
  504. widget "*fullscreen-toolbar.*" style "dark-toolbar"
  505. widget "*fullscreen-toolbar*.GtkComboBox.GtkCellView"   style "text-is-fg-color-workaround-dark"
  506.  
  507. # Epiphany: dark
  508. widget_class "*EphyToolbar*" style "pixmap-dark-toolbar"
  509. widget_class "*EphyToolbar*.*.*.*" style "dark-toolbar"
  510. widget_class "*EphyTool*.<GtkComboBox>.<GtkCellView>"   style "text-is-fg-color-workaround-dark"
  511.  
  512. # F-Spot(?): dark
  513. widget_class "*Spot*Toolbar*" style "pixmap-dark-toolbar"
  514. widget_class "*Spot*Toolbar*.*.*.*" style "dark-toolbar"
  515. widget_class "*Spot*Toolbar*.<GtkComboBox>.<GtkCellView>"   style "text-is-fg-color-workaround-dark"
  516.  
  517. # Gedit: Dark
  518. widget_class "*edit*Toolbar*"   style "pixmap-dark-toolbar" 
  519. widget_class "*edit*Toolbar*.*"   style "dark-toolbar" 
  520. widget_class "*edit*Toolbar*.<GtkComboBox>.<GtkCellView>"   style "text-is-fg-color-workaround-dark"
  521.  
  522. # Brasero: Dark
  523. widget_class "*rasero*Toolbar*"   style "pixmap-dark-toolbar" 
  524. widget_class "*rasero*Toolbar*.*"   style "dark-toolbar" 
  525. widget_class "*rasero*Toolbar*.<GtkComboBox>.<GtkCellView>"   style "text-is-fg-color-workaround-dark"
  526.  
  527. #gThumb: dark
  528. widget_class "*Gth*Toolbar*"   style "pixmap-dark-toolbar" 
  529. widget_class "*Gth*Toolbar*.*"   style "dark-toolbar" 
  530. widget_class "*Gth*Toolbar*.<GtkComboBox>.<GtkCellView>"   style "text-is-fg-color-workaround-dark"
  531. widget_class "*GthFull*"   style "pixmap-dark-toolbar" #Doesn't work
  532.  
  533. class "GtkSpinButton"  style "spinbutton"
  534. class "GtkScale"       style "scale"
  535. class "GtkVScale"      style "scale"
  536. class "GtkHScale"      style "scale"
  537. #class "GtkScrollbar"   style "scrollbar"
  538. class "GtkButton"      style "button"
  539.  
  540. # General matching following, the order is choosen so that the right styles override each other
  541. # eg. progressbar needs to be more important then the menu match.
  542.  
  543. widget_class "*<GtkNotebook>*<GtkEventBox>"     style "notebook-bg"
  544. widget_class "*<GtkNotebook>*<GtkDrawingArea>"  style "notebook-bg"
  545. widget_class "*<GtkNotebook>*<GtkLayout>"       style "notebook-bg"
  546. widget_class "*<GtkNotebook>"    style "notebook"
  547.  
  548. widget_class "*<GtkComboBoxEntry>*" style "comboboxentry"
  549. widget_class "*<GtkCombo>*"         style "comboboxentry"
  550.  
  551. widget_class "*<GtkMenu>*"              style "menu"
  552. widget_class "*<GtkMenuItem>*"          style "menu-item"
  553. widget_class "*<GtkSeparatorMenuItem>*" style "separator-menu-item"
  554.  
  555. widget_class "*<GtkFrame>"  style "frame"
  556. widget_class "*.<GtkFrame>.<GtkLabel>" style "frame-title"
  557.  
  558. widget_class "*<GtkStatusbar>*"  style "wider"
  559. widget_class "*<GtkProgressBar>"       style "progressbar"
  560.  
  561. # Treeview header
  562. widget_class "*.<GtkTreeView>.<GtkButton>" style "treeview-header"
  563. widget_class "*.<GtkCTree>.<GtkButton>"    style "treeview-header"
  564. widget_class "*.<GtkList>.<GtkButton>"     style "treeview-header"
  565. widget_class "*.<GtkCList>.<GtkButton>"    style "treeview-header"
  566.  
  567. # Panel stuff
  568. widget "*PanelWidget*"                     style "panel"
  569. widget "*PanelApplet*"                     style "panel"
  570. widget "*fast-user-switch*"                style "panel" # Workaround for Fast User Switch applet
  571. class "PanelApp*"                     style "panel"
  572. class "PanelToplevel*"                     style "panel"
  573. widget_class "*Panel*<GtkMenuBar>*"                   style:highest "panel" # The panel menubar
  574. widget "*TomboyTray*"                    style "panel" # Workaround for Tomboy
  575. widget "*TomboyApplet*"                    style "panel"
  576.  
  577. #XFCE panel
  578. widget_class "*notif*"        style "panel"
  579. widget_class "*Notif*"        style "panel"
  580. widget_class "*Tray*"        style "panel"
  581. widget_class "*tray*"        style "panel"
  582. widget "*Xfce*Panel*"        style "panel"
  583. class "*Xfce*Panel*"        style "panel"
  584.  
  585. # The window of the tooltip is called "gtk-tooltip"
  586. widget "gtk-tooltip*" style "tooltips"
  587.  
  588. ###################################################
  589. # Special cases and work arounds
  590. ###################################################
  591.  
  592. # Workarounds for Evolution
  593. widget_class "*.ETable.ECanvas"    style "treeview-header"
  594. widget_class "*.ETree.ECanvas"    style "treeview-header"
  595.  
  596. # Firefox isn't nice to dark themes, so unset the dark stuff.
  597. widget "MozillaGtkWidget*Toolbar*"    style "toolbar-item"
  598. #widget "MozillaGtkWidget*Frame*"    style "default"
  599.  
  600. # Monodevelop uses an OptionPanel widget, which incidentally is dark in our theme.
  601. # Undo it:
  602. widget "*OptionPanel*"        style "button"
  603. widget "*optionPanel*"        style "button"
  604.  
  605. # Special case the nautilus-extra-view-widget
  606. # ToDo: A more generic approach for all applications that have a widget like this.
  607. widget "*.nautilus-extra-view-widget" style : highest "nautilus-location"
  608.  
  609. style "menuitem-text-is-fg-color-workaround" 
  610. {
  611.     #text[NORMAL]        = @fg_color
  612.     #text[PRELIGHT]      = @selected_fg_color
  613.     #text[SELECTED]      = @selected_fg_color
  614.     #text[ACTIVE]        = @fg_color
  615.     #text[INSENSITIVE]   = darker (@bg_color)
  616.     #Make it work with this theme!
  617.     text[NORMAL] = mix (1.5, @fg_color, '#ffffff')
  618.     text[PRELIGHT] = mix (1.4, @fg_color, '#ffffff')
  619. }
  620. widget "*.gtk-combobox-popup-menu.*"   style "menuitem-text-is-fg-color-workaround"
  621.  
  622. # Work around the usage of GtkLabel inside GtkListItems to display text.
  623. # This breaks because the label is shown on a background that is based on the
  624. # base color set.
  625. style "fg-is-text-color-workaround"
  626. {
  627.     fg[NORMAL]      = @text_color
  628.     fg[PRELIGHT]    = @text_color
  629.     fg[ACTIVE]      = @selected_fg_color
  630.     fg[SELECTED]    = @selected_fg_color
  631.     fg[INSENSITIVE] = darker (@bg_color)
  632. }
  633. widget_class "*<GtkListItem>*" style "fg-is-text-color-workaround"
  634. # The same problem also exists for GtkCList and GtkCTree
  635. # Only match GtkCList and not the parent widgets, because that would also change the headers.
  636. widget_class "*<GtkCList>" style "fg-is-text-color-workaround"
  637.  
  638. style "evo-new-button-workaround" 
  639. {
  640.     engine "clearlooks"
  641.     {
  642.         toolbarstyle = 0
  643.     }
  644. }
  645.  
  646. widget_class "EShellWindow.GtkVBox.BonoboDock.BonoboDockBand.BonoboDockItem*" style "evo-new-button-workaround"
  647.  
  648. #Rhythmbox toolbar near the search entry. Use default + wide so that it doesn't turn dark.
  649. style "rhythmbox-header" = "default"
  650. {
  651.     xthickness = 3
  652.     ythickness = 3
  653.     engine "clearlooks" {
  654.     }
  655. }
  656. widget "*RBSourceHeader*"    style:highest "rhythmbox-header"
  657. widget "*HeaderToolbar*"    style:highest "rhythmbox-header"
  658. widget "*FooterToolbar*"    style:highest "rhythmbox-header"
  659.  
  660. widget "*swt*toolbar*"    style "default"
  661.  
  662. # RSC: Fix for CPU frequency applet
  663. style "applet-text" = "panel"
  664. {
  665.     fg[NORMAL] = @bg_color
  666. }
  667.  
  668. widget_class "*CPUFreqApplet*" style:highest "applet-text"
  669.  
  670. style "dialog" = "dark"
  671. {
  672.     bg[NORMAL] = mix(0.4, @selected_bg_color, shade(0.7, @bg_color))
  673.     fg[NORMAL] = shade(0.5, @fg_color)
  674.     text[NORMAL] = shade(0.5, @text_color)
  675. }
  676. style "dialog-button" = "dark"
  677. {
  678.     bg[NORMAL] = shade(0.15, @bg_color)
  679.     bg[PRELIGHT] = shade(0.18, @bg_color)
  680. }
  681.  
  682. # Dialog boxes...?
  683. # widget_class "*Dialog*" style "dialog"
  684. # widget_class "*Dialog*.*" style "dialog"
  685. # widget_class "*Dialog*.*Button*" style "dialog-button"
  686.  
  687. #########################################################
  688. # Murrine fixes
  689. # Placed at the bottom so that systems without murrine still have clearlooks instead
  690.  
  691.  
  692. # SZ07: This is added to tell the theme how to color checkmarks and radio items that are not in menus.
  693. style "murrine-radiocheck" = "default"
  694. {
  695.     text[NORMAL]    = @selected_fg_color # Color for selected checks/radio items.
  696.     text[PRELIGHT]    = @selected_fg_color    # Color for selected checks/radio items on prelight.
  697.     engine "murrine"{
  698.     }
  699. }
  700.  
  701. class "GtkRadioButton"    style:highest "murrine-radiocheck"    # SZ07: Added for the checkmarks/radio
  702. class "GtkCheckButton"    style:highest "murrine-radiocheck"    # SZ07: Added for the checkmarks/radio
  703.  
  704. style "murrine-menu-item" = "menu-item"{
  705.     engine "murrine" {
  706.             menustyle           = 0
  707.         roundness = 0
  708.         contrast = 0.8
  709.         highlight_shade = 1.0
  710.         lightborder_shade   = 1.0
  711.         gradient_shades = {1.1,1.0,1.0,0.7}
  712.         menuitemstyle       = 1 
  713.     }
  714. }
  715.  
  716. widget_class "*<GtkMenuItem>*"          style "murrine-menu-item"
  717.