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