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