~ubuntu-art-pkg/ubuntu-themes/17.10

« back to all changes in this revision

Viewing changes to Radience/gtk-2.0/gtkrc

  • Committer: Kenneth Wimer
  • Date: 2010-03-05 15:40:25 UTC
  • Revision ID: kwwii@clive-20100305154025-2gpwbs97qgwxd45p
* Update by Kenneth Wimer to fix some other issue
* Update by Kenneth Wimer to fix a warning in the ambiance gtkrc and the 
  slider color in the radiance theme
* Use the correct theme names in the indexes too
* Initial Ubuntu Upload
[ Kenneth Wimer ]
[ Martin Pitt ]
* debian/rules:
  - dh7 usage cleaning

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