~cimi/light-themes/gtk+3

« back to all changes in this revision

Viewing changes to Light/gtk-2.0/gtkrc

  • Committer: Kenneth Wimer
  • Date: 2010-03-04 11:26:34 UTC
  • Revision ID: kwwii@clive-20100304112634-5tyriyshzcjcmimv
First commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Light theme
 
2
 
 
3
gtk_color_scheme = "fg_color:#404040\nbg_color:#F7F5F2\nbase_color:#ffffff\ntext_color:#323232\nselected_bg_color:#d6d4ca\nselected_fg_color:#323232\ntooltip_bg_color:#300a24\ntooltip_fg_color:#fff"
 
4
 
 
5
include "scrollbars/scrollbar.rc"
 
6
 
 
7
style "default"
 
8
{
 
9
        xthickness = 1
 
10
        ythickness = 1
 
11
 
 
12
        GtkWidget      ::new-tooltip-style    = 1
 
13
 
 
14
        GtkScrolledWindow ::scrollbar-spacing = 0
 
15
        GtkScrolledWindow ::scrollbar-within-bevel = 0
 
16
        
 
17
        GtkButton::child-displacement-x = 1
 
18
        GtkButton::child-displacement-y = 1
 
19
        GtkButton::default-border = { 0, 0, 0, 0 }
 
20
 
 
21
        GtkCheckButton::indicator-size = 14
 
22
 
 
23
        GtkPaned::handle-size = 6
 
24
 
 
25
        GtkRange::trough-border = 3
 
26
        GtkRange::slider-width = 14
 
27
        GtkRange::stepper-size = 12
 
28
        GtkRange::trough-under-steppers = 0
 
29
 
 
30
        GtkScale::slider-length = 28
 
31
        GtkScale::trough-side-details = 1
 
32
 
 
33
        GtkScrollbar::min-slider-length = 64
 
34
        GtkMenuBar::internal-padding = 0
 
35
        GtkExpander::expander-size = 15
 
36
        GtkToolbar::internal-padding = 5
 
37
        GtkTreeView::expander-size = 15
 
38
        GtkTreeView::indent-expanders = TRUE
 
39
        GtkTreeView::vertical-separator = 1
 
40
 
 
41
        GtkMenu::horizontal-padding = 1
 
42
        GtkMenu::vertical-padding = 1
 
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
        GtkToolbar      :: shadow-type  = GTK_SHADOW_NONE
 
52
        GtkMenuBar      :: shadow-type  = GTK_SHADOW_NONE
 
53
 
 
54
 
 
55
        fg[NORMAL]        = @fg_color
 
56
        fg[PRELIGHT]      = @fg_color
 
57
        fg[SELECTED]      = @selected_fg_color
 
58
        fg[ACTIVE]        = @fg_color
 
59
        fg[INSENSITIVE]   = bg_color
 
60
 
 
61
        bg[NORMAL]        = @bg_color
 
62
        bg[PRELIGHT]      = shade (1.02, @bg_color)
 
63
        bg[SELECTED]      = @selected_bg_color
 
64
        bg[INSENSITIVE]   = shade (0.6,@base_color)
 
65
        bg[ACTIVE]        = shade (0.9, @bg_color)
 
66
 
 
67
        base[NORMAL]      = @base_color
 
68
        base[PRELIGHT]    = shade (0.95, @bg_color)
 
69
        base[ACTIVE]      = mix (0.7, @selected_bg_color, @bg_color)
 
70
        base[SELECTED]    = @selected_bg_color
 
71
        base[INSENSITIVE] = @bg_color
 
72
 
 
73
        text[NORMAL]      = @text_color
 
74
        text[PRELIGHT]    = @text_color
 
75
        text[ACTIVE]      = @selected_fg_color
 
76
        text[SELECTED]    = @selected_fg_color
 
77
        text[INSENSITIVE] = shade (0.6, @base_color)
 
78
 
 
79
        engine "murrine" {
 
80
                arrowstyle         = 1
 
81
                animation           = FALSE  # FALSE = disabled, TRUE = enabled
 
82
                colorize_scrollbar  = FALSE # FALSE = disabled, TRUE = enabled
 
83
                comboboxstyle   = 1
 
84
                contrast            = 0.4  # 0.8 for less contrast, more than 1.0 for more contrast on borders
 
85
                glazestyle          = 3     # 0 = flat highlight, 1 = curved highlight, 2 = concave style, 3 = top curved highlight, 4 = beryl highlight
 
86
                glow_shade          = 1.1
 
87
                glowstyle           = 4     # 0 = top, 1 = bottom, 2 = top and bottom, 3 = horizontal, 4 = centered glow
 
88
                gradient_shades     = {1.2,1.0,1.0,0.9}
 
89
                highlight_shade     = 1.0
 
90
                lightborder_shade   = 1.1
 
91
                lightborderstyle    = 1     # 0 = lightborder on top side, 1 = lightborder on all sides
 
92
                listviewheaderstyle = 1     # 0 = flat, 1 = glassy, 2 = raised
 
93
                listviewstyle       = 1     # 0 = nothing, 1 = dotted
 
94
                menubaritemstyle    = 0     # 0 = menuitem look, 1 = button look
 
95
                menubarstyle        = 0     # 0 = flat, 1 = glassy, 2 = gradient, 3 = striped
 
96
                menuitemstyle       = 0     # 0 = flat, 1 = glassy, 2 = striped
 
97
                menustyle           = 0     # 0 = no vertical menu stripe, 1 = display vertical menu stripe
 
98
                progressbarstyle    = 0     # 0 = flat, 1 = striped, 2 = blocks
 
99
                reliefstyle         = 4     # 0 = flat, 1 = inset, 2 = shadow
 
100
                rgba                = FALSE  # FALSE = disabled, TRUE = enabled
 
101
                roundness           = 3     # 0 = squared, 1 = old default, more will increase roundness
 
102
                #scrollbarstyle      = 2     # 0 = nothing, 1 = circles, 2 = handles, 3 = diagonal stripes, 4 = diagonal stripes and handles, 5 = horizontal stripes, 6 = horizontal stripes and handles
 
103
                sliderstyle         = 1     # 0 = nothing added, 1 = handles
 
104
                stepperstyle        = 0     # 0 = standard, 1 = integrated stepper handles, 2 = unknown
 
105
                toolbarstyle        = 0     # 0 = flat, 1 = glassy, 2 = gradient                
 
106
        }
 
107
}
 
108
 
 
109
style "wide"
 
110
{
 
111
        xthickness = 2
 
112
        ythickness = 2
 
113
}
 
114
 
 
115
style "wider"
 
116
{
 
117
        xthickness = 3
 
118
        ythickness = 3
 
119
}
 
120
 
 
121
style "button" = "wider"
 
122
{
 
123
        engine "murrine" {
 
124
           contrast = 0.8
 
125
        }
 
126
 
 
127
        bg[NORMAL]   = shade (0.9, @selected_bg_color)
 
128
        bg[PRELIGHT] = shade (1.0, @selected_bg_color)
 
129
        bg[SELECTED] = shade (1.0, @selected_bg_color)
 
130
        bg[ACTIVE]   = shade (0.9, @selected_bg_color)
 
131
        bg[INSENSITIVE]   = mix (0.3, @selected_bg_color, @bg_color)
 
132
}
 
133
 
 
134
style "entry" = "wider"{
 
135
 
 
136
}
 
137
 
 
138
style "toolbar" = "default"
 
139
{
 
140
 
 
141
}
 
142
 
 
143
style "toolbar-item" = "toolbar"
 
144
{
 
145
 
 
146
}
 
147
style "toolbar-sep" = "toolbar-item"
 
148
{
 
149
    bg[NORMAL] = shade(0.5, @base_color)
 
150
}
 
151
 
 
152
style "notebook-bg" = "wider"
 
153
{
 
154
 
 
155
 
 
156
}
 
157
 
 
158
style "notebook" = "notebook-bg"
 
159
{
 
160
        bg[NORMAL]   = @bg_color
 
161
        bg[ACTIVE]   = shade (1.2, @selected_bg_color)
 
162
 
 
163
 #       engine "murrine" {
 
164
  #          glowstyle = 2
 
165
   #         roundness = 4
 
166
    #        highlight_shade = 1.0
 
167
     #       lightborder_shade   = 1.0
 
168
      #      gradient_shades = {1.0,1.0,1.0,1.0}
 
169
       # }
 
170
}
 
171
 
 
172
style "panel" {
 
173
 
 
174
        xthickness = 4
 
175
        ythickness = 0
 
176
 
 
177
        bg[NORMAL] = "#faf7ee"
 
178
        bg_pixmap[NORMAL] = "panel_bg.png"
 
179
 
 
180
        engine "murrine" {
 
181
            roundness = 0
 
182
        }
 
183
}
 
184
 
 
185
style "menu" 
 
186
{
 
187
        xthickness = 0
 
188
        ythickness = 0
 
189
 
 
190
        bg[INSENSITIVE]   = mix (0.4, @selected_bg_color, @bg_color)
 
191
 
 
192
        engine "murrine" {
 
193
            roundness = 0
 
194
 #           gradient_shades = {1.0,1.0,1.0,1.0}
 
195
        }
 
196
}
 
197
 
 
198
style "menu-item" = "default"
 
199
{
 
200
        xthickness = 0
 
201
        ythickness = 5
 
202
 
 
203
        engine "murrine" {
 
204
            glowstyle = 0
 
205
            roundness = 0
 
206
#           highlight_shade = 1.0
 
207
#           lightborder_shade   = 1.0
 
208
#           gradient_shades = {1.0,1.0,1.0,1.0}
 
209
        }
 
210
 
 
211
 
 
212
}
 
213
 
 
214
style "separator-menu-item"
 
215
{
 
216
        GtkSeparatorMenuItem::horizontal-padding = 0
 
217
        GtkWidget::wide-separators = 0
 
218
        GtkWidget::separator-width = 1
 
219
        GtkWidget::separator-height = 1
 
220
        xthickness = 4
 
221
        ythickness = 0
 
222
        
 
223
}
 
224
 
 
225
# Based on the default style so that the colors from the button
 
226
# style are overriden again.
 
227
style "treeview-header" = "default"
 
228
{
 
229
        xthickness = 4
 
230
        ythickness = 1
 
231
 
 
232
        bg[NORMAL]   = shade (0.9, @selected_bg_color)
 
233
        bg[PRELIGHT] = shade (1.0, @selected_bg_color)
 
234
        bg[SELECTED] = shade (1.0, @selected_bg_color)
 
235
        bg[ACTIVE]   = shade (0.9, @selected_bg_color)
 
236
        bg[INSENSITIVE]   = mix (0.3, @selected_bg_color, @bg_color)
 
237
}
 
238
 
 
239
style "tooltips"
 
240
{
 
241
        xthickness = 8
 
242
        ythickness = 5
 
243
 
 
244
        bg[NORMAL] = @tooltip_bg_color
 
245
        bg[SELECTED] = "#000000"
 
246
        fg[NORMAL] = @tooltip_fg_color
 
247
}
 
248
 
 
249
style "progressbar"
 
250
{
 
251
        xthickness = 0
 
252
        ythickness = 0
 
253
 
 
254
        bg[SELECTED] = "#f15d2c"
 
255
 
 
256
        fg[PRELIGHT] = "#fff"
 
257
 
 
258
        engine "murrine"{
 
259
            roundness = 4
 
260
#           contrast = 1.0
 
261
            highlight_shade = 1.2
 
262
#           lightborder_shade   = 1.1
 
263
            gradient_shades = {1.2,1.1,1.0,0.9}
 
264
        }
 
265
}
 
266
style "pixmap-statusbar" = "default"
 
267
{
 
268
}
 
269
 
 
270
style "comboboxentry" 
 
271
{
 
272
        ythickness = 3
 
273
        xthickness = 3
 
274
 
 
275
        bg[NORMAL]   = shade (0.9, @selected_bg_color)
 
276
        bg[PRELIGHT] = shade (1.0, @selected_bg_color)
 
277
        bg[SELECTED] = shade (1.0, @selected_bg_color)
 
278
        bg[ACTIVE]   = shade (0.9, @selected_bg_color)
 
279
        bg[INSENSITIVE]   = mix (0.3, @selected_bg_color, @bg_color)
 
280
}
 
281
 
 
282
style "spinbutton"
 
283
{
 
284
 
 
285
#       bg[NORMAL]   = shade (0.9, @selected_bg_color)
 
286
        bg[PRELIGHT] = shade (1.0, @selected_bg_color)
 
287
        bg[SELECTED] = shade (1.0, @selected_bg_color)
 
288
        bg[ACTIVE]   = shade (0.9, @selected_bg_color)
 
289
        bg[INSENSITIVE]   = mix (0.3, @selected_bg_color, @bg_color)
 
290
}
 
291
 
 
292
style "scale"
 
293
{
 
294
        bg[NORMAL] = "#f15d2c"
 
295
        bg[ACTIVE] = shade (1.0, @selected_bg_color)
 
296
 
 
297
        engine "murrine"{
 
298
            roundness = 8
 
299
            contrast = 1.1
 
300
            highlight_shade = 1.2
 
301
            lightborder_shade   = 1.1
 
302
            gradient_shades = {1.5,1.2,1.0,0.9}
 
303
        }
 
304
}
 
305
 
 
306
style "menubar" = "default"
 
307
{
 
308
        bg[NORMAL]="#e0d6ba"
 
309
}
 
310
 
 
311
style "frame"
 
312
{
 
313
}
 
314
 
 
315
style "frame-title" = "frame"
 
316
{
 
317
}
 
318
 
 
319
style "nautilus-location"
 
320
{
 
321
        bg[NORMAL] = mix(0.60, @bg_color, @selected_bg_color)
 
322
}
 
323
 
 
324
# SZ07: This is added to tell the theme how to color checkmarks and radio items that are not in menus.
 
325
style "radiocheck"
 
326
{
 
327
#       text[NORMAL]    = @selected_fg_color    # Color for selected checks/radio items.
 
328
#       text[PRELIGHT]  = @selected_fg_color    # Color for selected checks/radio items on prelight.
 
329
        bg[SELECTED] = "#f15d2c"
 
330
        bg[NORMAL]   = mix (0.3, @selected_bg_color, @bg_color)
 
331
 
 
332
        engine "murrine"{
 
333
            contrast = 1.5
 
334
            highlight_shade = 1.0
 
335
            lightborder_shade   = 1.0
 
336
            gradient_shades = {1.5,1.3,1.0,0.9}
 
337
        }
 
338
}
 
339
#########################################
 
340
# Matches
 
341
#########################################
 
342
 
 
343
# default style is applied to every widget
 
344
class "GtkWidget"    style "default"
 
345
 
 
346
# Increase the x/ythickness in some widgets
 
347
class "GtkRange"     style "default"
 
348
class "GtkFrame"     style "frame"
 
349
class "GtkSeparator" style "wide"
 
350
class "GtkEntry"     style "entry"
 
351
class "GtkStatusbar" style "pixmap-statusbar"
 
352
class "GtkMenuBar"   style:highest "menubar"
 
353
 
 
354
class "*HandleBox" style "toolbar"
 
355
class "GtkToolbar"   style "toolbar" 
 
356
widget_class "*HandleBox" style "toolbar"
 
357
widget_class "*<GtkToolbar>.*"   style "toolbar-item"
 
358
 
 
359
# Work around for http://bugzilla.gnome.org/show_bug.cgi?id=382646
 
360
style "text-is-fg-color-workaround"
 
361
{
 
362
        text[NORMAL]      = @fg_color
 
363
        text[PRELIGHT]    = @fg_color
 
364
        text[SELECTED]    = @selected_fg_color
 
365
        text[ACTIVE]      = @fg_color
 
366
        text[INSENSITIVE] = darker (@bg_color)
 
367
}
 
368
widget_class "*.<GtkComboBox>.<GtkCellView>"   style "text-is-fg-color-workaround"
 
369
 
 
370
style "text-is-fg-color-workaround-dark"
 
371
{
 
372
        #Make it work with this theme!
 
373
        text[NORMAL] = @fg_color
 
374
        text[PRELIGHT] = @selected_fg_color
 
375
}
 
376
 
 
377
class "GtkSpinButton"  style "spinbutton"
 
378
class "GtkScale"       style "scale"
 
379
class "GtkVScale"      style "scale"
 
380
class "GtkHScale"      style "scale"
 
381
#class "GtkScrollbar"   style "scrollbar"
 
382
class "GtkButton"      style "button"
 
383
 
 
384
class "GtkRadioButton"  style:highest "radiocheck"      # SZ07: Added for the checkmarks/radio
 
385
class "GtkCheckButton"  style:highest "radiocheck"      # SZ07: Added for the checkmarks/radio
 
386
 
 
387
# General matching following, the order is choosen so that the right styles override each other
 
388
# eg. progressbar needs to be more important then the menu match.
 
389
 
 
390
widget_class "*<GtkNotebook>*<GtkEventBox>"     style "notebook-bg"
 
391
widget_class "*<GtkNotebook>*<GtkDrawingArea>"  style "notebook-bg"
 
392
widget_class "*<GtkNotebook>*<GtkLayout>"       style "notebook-bg"
 
393
widget_class "*<GtkNotebook>"    style "notebook"
 
394
 
 
395
widget_class "*<GtkComboBoxEntry>*" style "comboboxentry"
 
396
widget_class "*<GtkCombo>*"         style "comboboxentry"
 
397
 
 
398
widget_class "*<GtkMenuBar>.*"          style "menu-item"
 
399
widget_class "*<GtkMenu>*"              style "menu"
 
400
widget_class "*<GtkMenuItem>*"          style "menu-item"
 
401
widget_class "*<GtkSeparatorMenuItem>*" style "separator-menu-item"
 
402
 
 
403
widget_class "*<GtkFrame>"  style "frame"
 
404
widget_class "*.<GtkFrame>.<GtkLabel>" style "frame-title"
 
405
 
 
406
widget_class "*<GtkStatusbar>*"  style "wider"
 
407
widget_class "*<GtkProgressBar>"       style "progressbar"
 
408
 
 
409
# Treeview header
 
410
widget_class "*.<GtkTreeView>.<GtkButton>" style "treeview-header"
 
411
widget_class "*.<GtkCTree>.<GtkButton>"    style "treeview-header"
 
412
widget_class "*.<GtkList>.<GtkButton>"     style "treeview-header"
 
413
widget_class "*.<GtkCList>.<GtkButton>"    style "treeview-header"
 
414
 
 
415
# Panel stuff
 
416
widget "*PanelWidget*"                                  style "panel"
 
417
widget "*PanelApplet*"                                  style "panel"
 
418
widget "*fast-user-switch*"                             style "panel" # Workaround for Fast User Switch applet
 
419
class "PanelApp*"                                       style "panel"
 
420
class "PanelToplevel*"                                  style "panel"
 
421
widget_class "*Panel*<GtkMenuBar>*"                     style:highest "panel" # The panel menubar
 
422
widget "*TomboyTray*"                                   style "panel" # Workaround for Tomboy
 
423
widget "*TomboyApplet*"                                 style "panel"
 
424
 
 
425
#XFCE panel
 
426
widget_class "*notif*"          style "panel"
 
427
widget_class "*Notif*"          style "panel"
 
428
widget_class "*Tray*"           style "panel"
 
429
widget_class "*tray*"           style "panel"
 
430
widget "*Xfce*Panel*"           style "panel"
 
431
class "*Xfce*Panel*"            style "panel"
 
432
 
 
433
# The following lines make panel-menu-applet, slab-main-menu and gimmie applet's text bold. The radius value sets the roundness value of the selected menu-item.
 
434
#style "bold-panel-menu"
 
435
#{
 
436
#       font_name = "Bold"
 
437
#}
 
438
 
 
439
#style "bold-panel-slab"
 
440
#{
 
441
#       font_name = "Bold"
 
442
#}
 
443
#widget "*Panel*slab-main-menu-panel-button*" style "bold-panel-slab"
 
444
#widget "*gimmie*" style "bold-panel-slab"
 
445
#widget "*Panel*MenuBar*" style "bold-panel-menu"
 
446
#widget "*Panel*Clock*" style "bold-panel-menu"
 
447
 
 
448
widget "gtk-tooltip*" style "tooltips"
 
449
 
 
450
###################################################
 
451
# Special cases and work arounds
 
452
###################################################
 
453
 
 
454
# Nautilus sidebar
 
455
widget_class "*NautilusSidePane.GtkFrame"       style "pixmap-statusbar"
 
456
 
 
457
# Workarounds for Evolution
 
458
widget_class "*.ETable.ECanvas"    style "treeview-header"
 
459
widget_class "*.ETree.ECanvas"    style "treeview-header"
 
460
 
 
461
# Firefox isn't nice to dark themes, so unset the dark stuff.
 
462
widget "MozillaGtkWidget*Toolbar*"      style "toolbar-item"
 
463
#widget "MozillaGtkWidget*Frame*"       style "default"
 
464
 
 
465
# Monodevelop uses an OptionPanel widget, which incidentally is dark in our theme.
 
466
# Undo it:
 
467
widget "*OptionPanel*"          style "button"
 
468
widget "*optionPanel*"          style "button"
 
469
 
 
470
# Special case the nautilus-extra-view-widget
 
471
# ToDo: A more generic approach for all applications that have a widget like this.
 
472
widget "*.nautilus-extra-view-widget" style : highest "nautilus-location"
 
473
 
 
474
style "menuitem-text-is-fg-color-workaround" 
 
475
{
 
476
        text[NORMAL]        = @fg_color
 
477
        text[PRELIGHT]      = @selected_fg_color
 
478
        text[SELECTED]      = @selected_fg_color
 
479
        text[ACTIVE]        = @fg_color
 
480
        text[INSENSITIVE]   = darker (@bg_color)
 
481
}
 
482
widget "*.gtk-combobox-popup-menu.*"   style "menuitem-text-is-fg-color-workaround"
 
483
 
 
484
# Work around the usage of GtkLabel inside GtkListItems to display text.
 
485
# This breaks because the label is shown on a background that is based on the
 
486
# base color set.
 
487
style "fg-is-text-color-workaround"
 
488
{
 
489
        fg[NORMAL]      = @text_color
 
490
        fg[PRELIGHT]    = @text_color
 
491
        fg[ACTIVE]      = @selected_fg_color
 
492
        fg[SELECTED]    = @selected_fg_color
 
493
        fg[INSENSITIVE] = darker (@bg_color)
 
494
}
 
495
widget_class "*<GtkListItem>*" style "fg-is-text-color-workaround"
 
496
# The same problem also exists for GtkCList and GtkCTree
 
497
# Only match GtkCList and not the parent widgets, because that would also change the headers.
 
498
widget_class "*<GtkCList>" style "fg-is-text-color-workaround"
 
499
 
 
500
style "evo-new-button-workaround" 
 
501
{
 
502
        engine "clearlooks"
 
503
        {
 
504
                toolbarstyle = 0
 
505
        }
 
506
}
 
507
 
 
508
widget_class "EShellWindow.GtkVBox.BonoboDock.BonoboDockBand.BonoboDockItem*" style "evo-new-button-workaround"
 
509
 
 
510
#Rhythmbox toolbar near the search entry. Use default + wide so that it doesn't turn dark.
 
511
style "rhythmbox-header" = "default"
 
512
{
 
513
        xthickness = 3
 
514
        ythickness = 3
 
515
        engine "clearlooks" {
 
516
        }
 
517
}
 
518
widget "*RBSourceHeader*"       style:highest "rhythmbox-header"
 
519
widget "*HeaderToolbar*"        style:highest "rhythmbox-header"
 
520
widget "*FooterToolbar*"        style:highest "rhythmbox-header"
 
521
 
 
522
widget "*swt*toolbar*"  style "default"
 
523