~murrine-themes-team/murrine-themes/testing

« back to all changes in this revision

Viewing changes to Natty/gtk-2.0/gtkrc

  • Committer: luca
  • Date: 2009-05-24 15:26:16 UTC
  • Revision ID: luca@rocksolid-20090524152616-lj3kroalxkawusjn
Added a new theme: Natty

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# Natty
 
2
 
 
3
gtk-color-scheme = "base_color:#ffffff\nfg_color:#000000\ntooltip_fg_color:#000000\nselected_bg_color:#58A6F1\nselected_fg_color:#FFFFFF\ntext_color:#000000\nbg_color:#CFCFCF\ntooltip_bg_color:#C9DEED"
 
4
# Please keep this gtkrc in sync with the other ones from Murrine based themes.
 
5
 
 
6
style "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
 
 
17
        GtkCheckButton::indicator-size = 14
 
18
 
 
19
        GtkPaned::handle-size = 6
 
20
 
 
21
        GtkRange::trough-border = 0
 
22
        GtkRange::slider-width = 15
 
23
        GtkRange::stepper-size = 15
 
24
        GtkRange::trough-under-steppers = 0
 
25
 
 
26
        GtkScale::trough-border = 0
 
27
        GtkScale::slider-length = 18
 
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 = 0
 
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
        ####################
 
47
        # Color Definitions
 
48
        ####################
 
49
        bg[NORMAL]        = @bg_color
 
50
        bg[PRELIGHT]      = shade (1.02, @bg_color)
 
51
        bg[SELECTED]      = @selected_bg_color
 
52
        bg[INSENSITIVE]   = @bg_color
 
53
        bg[ACTIVE]        = shade (0.9, @bg_color)
 
54
 
 
55
        fg[NORMAL]        = @fg_color
 
56
        fg[PRELIGHT]      = @fg_color
 
57
        fg[SELECTED]      = @selected_fg_color
 
58
        fg[INSENSITIVE]   = darker (@bg_color)
 
59
        fg[ACTIVE]        = @fg_color
 
60
 
 
61
        text[NORMAL]      = @text_color
 
62
        text[PRELIGHT]    = @text_color
 
63
        text[SELECTED]    = @selected_fg_color
 
64
        text[INSENSITIVE] = darker (@bg_color)
 
65
        text[ACTIVE]      = @selected_fg_color
 
66
 
 
67
        base[NORMAL]      = @base_color
 
68
        base[PRELIGHT]    = shade (0.96, @bg_color)
 
69
        base[SELECTED]    = @selected_bg_color
 
70
        base[INSENSITIVE] = @bg_color
 
71
        base[ACTIVE]      = shade (0.94, @selected_bg_color)
 
72
 
 
73
        engine "murrine" {
 
74
                #options
 
75
                animation           = TRUE
 
76
                colorize_scrollbar  = FALSE
 
77
                contrast            = 0.9
 
78
                glazestyle          = 1     # 0 = flat, 1 = curved, 2 = concave, 3 = top curved, 4 = beryl highlight, 5 = new
 
79
                glow_shade          = 1.0
 
80
                glowstyle           = 1     # 0 = top, 1 = bottom, 2 = top and bottom, 3 = horizontal, 4 = centered glow
 
81
                gradient_shades     = {1.09,1.06,1.0,1.04}
 
82
                gradients           = TRUE
 
83
                highlight_shade     = 1.04
 
84
                lightborder_shade   = 1.2
 
85
                lightborderstyle    = 1     # 0 = lightborder on top side, 1 = lightborder on all sides
 
86
                listviewheaderstyle = 1     # 0 = flat, 1 = glassy, 2 = raised
 
87
                listviewstyle       = 1     # 0 = nothing, 1 = dotted
 
88
                menubaritemstyle    = 1     # 0 = menuitem look, 1 = button look
 
89
                menubarstyle        = 0     # 0 = flat, 1 = glassy, 2 = gradient, 3 = striped
 
90
                menuitemstyle       = 1     # 0 = flat, 1 = glassy, 2 = striped
 
91
                menustyle           = 0     # 0 = no vertical menu stripe, 1 = display vertical menu stripe
 
92
                progressbarstyle    = 0     # 0 = nothing, 1 = diagonal stripes, 2 = blocks
 
93
                reliefstyle         = 2     # 0 = flat, 1 = inset, 2 = shadow
 
94
                rgba                = FALSE
 
95
                roundness           = 4
 
96
                scrollbarstyle      = 2     # 0 = nothing, 1 = circles, 2 = handles, 3 = diagonal stripes, 4 = diagonal stripes and handles, 5 = horizontal stripes, 6 = horizontal stripes and handles
 
97
                sliderstyle         = 1     # 0 = nothing added, 1 = handles
 
98
                stepperstyle        = 1     # 0 = standard, 1 = integrated stepper handles
 
99
                toolbarstyle        = 2     # 0 = flat, 1 = glassy, 2 = gradient
 
100
        }
 
101
}
 
102
 
 
103
style "wide" {
 
104
        xthickness = 2
 
105
        ythickness = 2
 
106
}
 
107
 
 
108
style "wider" {
 
109
        xthickness = 3
 
110
        ythickness = 3
 
111
}
 
112
 
 
113
style "spinbutton" {
 
114
}
 
115
 
 
116
style "scale" { 
 
117
        ythickness = 3
 
118
        
 
119
        bg[SELECTED]        = shade (1.07, @selected_bg_color)
 
120
}
 
121
 
 
122
style "vscale" {
 
123
}
 
124
 
 
125
style "hscale" {
 
126
}
 
127
 
 
128
style "scrollbar" {
 
129
        xthickness = 2
 
130
        ythickness = 2
 
131
        
 
132
        bg[NORMAL]        = shade (1.02, @bg_color)
 
133
        bg[PRELIGHT]      = shade (1.03, @bg_color)
 
134
}
 
135
 
 
136
style "hscrollbar" {
 
137
}
 
138
 
 
139
style "vscrollbar" {
 
140
}
 
141
 
 
142
style "notebook_bg" {
 
143
        bg[NORMAL]        = shade (1.02, @bg_color)
 
144
        bg[ACTIVE]        = shade (0.96, @bg_color)
 
145
}
 
146
 
 
147
style "button" {
 
148
        xthickness = 3
 
149
        ythickness = 3
 
150
 
 
151
        bg[NORMAL]        = shade (1.02, @bg_color)
 
152
        bg[PRELIGHT]      = shade (1.03, @bg_color)
 
153
        bg[ACTIVE]        = shade (0.9, @bg_color)
 
154
        bg[INSENSITIVE]   = shade (0.98, @bg_color)
 
155
}
 
156
 
 
157
# The color is changed by the notebook_bg style, this style
 
158
# changes the x/ythickness
 
159
style "notebook" {
 
160
        xthickness = 3
 
161
        ythickness = 3
 
162
}
 
163
 
 
164
style "statusbar" {
 
165
}
 
166
 
 
167
style "comboboxentry" {
 
168
}
 
169
 
 
170
style "menubar" {
 
171
}
 
172
 
 
173
style "menu" {
 
174
        xthickness = 3
 
175
        ythickness = 3
 
176
 
 
177
        bg[NORMAL]        = shade (1.28, @bg_color)
 
178
}
 
179
 
 
180
style "menu_item" {
 
181
        xthickness = 2
 
182
        ythickness = 3
 
183
        
 
184
        bg[PRELIGHT]      = @selected_bg_color
 
185
        fg[PRELIGHT]      = @selected_fg_color
 
186
        
 
187
        engine "murrine" {
 
188
                roundness = 3
 
189
                lightborder_shade   = 1.25
 
190
        }
 
191
}
 
192
 
 
193
# This style is there to modify the separator menu items. The goals are:
 
194
# 1. Get a specific height.
 
195
# 2. The line should go to the edges (ie. no border at the left/right)
 
196
style "separator_menu_item" {
 
197
        xthickness = 1
 
198
        ythickness = 0
 
199
 
 
200
        GtkSeparatorMenuItem::horizontal-padding = 0
 
201
        GtkWidget::wide-separators = 1
 
202
        GtkWidget::separator-width = 1
 
203
        GtkWidget::separator-height = 7
 
204
}
 
205
 
 
206
style "frame_title" {
 
207
        fg[NORMAL]        = lighter (@fg_color)
 
208
}
 
209
 
 
210
style "treeview" {
 
211
        engine "murrine" {
 
212
                roundness = 0
 
213
        }
 
214
}
 
215
 
 
216
# The almost useless progress bar style
 
217
style "progressbar" {
 
218
        xthickness = 0
 
219
        ythickness = 0
 
220
 
 
221
        fg[PRELIGHT]      = @selected_fg_color
 
222
}
 
223
 
 
224
style "progressbar_menu_item" = "progressbar" {
 
225
        engine "murrine" {
 
226
                roundness = 0
 
227
        }
 
228
}
 
229
 
 
230
# This style is based on the default style, so that the colors from the button
 
231
# style are overriden again.
 
232
style "treeview_header" = "default" {
 
233
        xthickness = 2
 
234
        ythickness = 1
 
235
 
 
236
        bg[NORMAL]        = shade (1.02, @bg_color)
 
237
        bg[PRELIGHT]      = shade (1.03, @bg_color)
 
238
}
 
239
 
 
240
style "tooltips" {
 
241
        xthickness = 4
 
242
        ythickness = 4
 
243
 
 
244
        bg[NORMAL]        = @tooltip_bg_color
 
245
        fg[NORMAL]        = @tooltip_fg_color
 
246
}
 
247
 
 
248
style "nautilus_location" {
 
249
        bg[NORMAL]        = mix (0.60, shade (1.05, @bg_color), @selected_bg_color)
 
250
}
 
251
 
 
252
style "calendar" {
 
253
        engine "murrine" {
 
254
                roundness = 0
 
255
        }
 
256
}
 
257
 
 
258
style "radiocheck" {
 
259
        text[NORMAL]      = @selected_fg_color
 
260
        text[PRELIGHT]    = @selected_fg_color
 
261
}
 
262
 
 
263
# Wrokaroudn style for places where the text color is used instead of the fg color.
 
264
style "text_is_fg_color_workaround" {
 
265
        text[NORMAL]      = @fg_color
 
266
        text[PRELIGHT]    = @fg_color
 
267
        text[SELECTED]    = @selected_fg_color
 
268
        text[ACTIVE]      = @fg_color
 
269
        text[INSENSITIVE] = darker (@bg_color)
 
270
}
 
271
 
 
272
# Workaround style for menus where the text color is used instead of the fg color.
 
273
style "menuitem_text_is_fg_color_workaround" {
 
274
        text[NORMAL]      = @fg_color
 
275
        text[PRELIGHT]    = @selected_fg_color
 
276
        text[SELECTED]    = @selected_fg_color
 
277
        text[ACTIVE]      = @fg_color
 
278
        text[INSENSITIVE] = darker (@bg_color)
 
279
}
 
280
 
 
281
# Workaround style for places where the fg color is used instead of the text color.
 
282
style "fg_is_text_color_workaround" {
 
283
        fg[NORMAL]        = @text_color
 
284
        fg[PRELIGHT]      = @text_color
 
285
        fg[SELECTED]      = @selected_fg_color
 
286
        fg[ACTIVE]        = @selected_fg_color
 
287
        fg[INSENSITIVE]   = darker (@bg_color)
 
288
}
 
289
 
 
290
# Style to set the toolbar to use a flat style. This is because the "New" button in
 
291
# Evolution is not drawn transparent. So if there is a gradient in the background it will
 
292
# look really wrong.
 
293
# See http://bugzilla.gnome.org/show_bug.cgi?id=446953.
 
294
style "evo_new_button_workaround" {
 
295
}
 
296
 
 
297
 
 
298
###############################################################################
 
299
# The following part of the gtkrc applies the different styles to the widgets.
 
300
###############################################################################
 
301
 
 
302
# The default style is applied to every widget
 
303
class "GtkWidget" style "default"
 
304
 
 
305
class "GtkSeparator" style "wide"
 
306
class "GtkFrame" style "wide"
 
307
class "GtkCalendar" style "wide"
 
308
class "GtkEntry" style "wider"
 
309
 
 
310
class "GtkSpinButton" style "spinbutton"
 
311
class "GtkScale" style "scale"
 
312
class "GtkVScale" style "vscale"
 
313
class "GtkHScale" style "hscale"
 
314
class "GtkScrollbar" style "scrollbar"
 
315
class "GtkHScrollbar" style "hscrollbar"
 
316
class "GtkVScrollbar" style "vscrollbar"
 
317
class "GtkCalendar" style "calendar"
 
318
class "GtkRadio*" style "radiocheck"
 
319
class "GtkCheck*" style "radiocheck"
 
320
 
 
321
# General matching follows. The order is choosen so that the right styles override
 
322
# each other. EG. progressbar needs to be more important than the menu match.
 
323
widget_class "*<GtkNotebook>" style "notebook_bg"
 
324
# This is not perfect, it could be done better.
 
325
# (That is modify *every* widget in the notebook, and change those back that
 
326
# we really don't want changed)
 
327
widget_class "*<GtkNotebook>*<GtkEventBox>" style "notebook_bg"
 
328
widget_class "*<GtkNotebook>*<GtkDrawingArea>" style "notebook_bg"
 
329
widget_class "*<GtkNotebook>*<GtkLayout>" style "notebook_bg"
 
330
 
 
331
widget_class "*<GtkButton>" style "button"
 
332
widget_class "*<GtkNotebook>" style "notebook"
 
333
widget_class "*<GtkStatusbar>*" style "statusbar"
 
334
 
 
335
widget_class "*<GtkComboBoxEntry>*" style "comboboxentry"
 
336
widget_class "*<GtkCombo>*" style "comboboxentry"
 
337
 
 
338
widget_class "*<GtkMenuBar>*" style "menubar"
 
339
widget_class "*<GtkMenu>*" style "menu"
 
340
widget_class "*<GtkMenuItem>*" style "menu_item"
 
341
widget_class "*<GtkSeparatorMenuItem>*" style "separator_menu_item"
 
342
 
 
343
widget_class "*.<GtkFrame>.<GtkLabel>" style "frame_title"
 
344
widget_class "*.<GtkTreeView>*" style "treeview"
 
345
 
 
346
widget_class "*<GtkProgress>" style "progressbar"
 
347
widget_class "*.<GtkMenuItem>.*.<GtkProgressBar>" style "progressbar_menu_item"
 
348
 
 
349
# Treeview headers (and similar stock GTK+ widgets)
 
350
widget_class "*.<GtkTreeView>.<GtkButton>" style "treeview_header"
 
351
widget_class "*.<GtkCTree>.<GtkButton>" style "treeview_header"
 
352
widget_class "*.<GtkList>.<GtkButton>" style "treeview_header"
 
353
widget_class "*.<GtkCList>.<GtkButton>" style "treeview_header"
 
354
 
 
355
# The window of the tooltip is called "gtk-tooltip"
 
356
##################################################################
 
357
# FIXME:
 
358
# This will not work if one embeds eg. a button into the tooltip.
 
359
# As far as I can tell right now we will need to rework the theme
 
360
# quite a bit to get this working correctly.
 
361
# (It will involve setting different priorities, etc.)
 
362
##################################################################
 
363
widget "gtk-tooltip*" style "tooltips"
 
364
 
 
365
##########################################################################
 
366
# Following are special cases and workarounds for issues in applications.
 
367
##########################################################################
 
368
 
 
369
# Workaround for the evolution ETable (bug #527532)
 
370
widget_class "*.ETable.ECanvas" style "treeview_header"
 
371
# Workaround for the evolution ETree
 
372
widget_class "*.ETree.ECanvas" style "treeview_header"
 
373
 
 
374
# Special case the nautilus-extra-view-widget
 
375
# ToDo: A more generic approach for all applications that have a widget like this.
 
376
widget "*.nautilus-extra-view-widget" style : highest "nautilus_location"
 
377
 
 
378
# Work around for http://bugzilla.gnome.org/show_bug.cgi?id=382646
 
379
# Note that this work around assumes that the combobox is _not_ in appears-as-list mode.
 
380
widget_class "*.<GtkComboBox>.<GtkCellView>" style "text_is_fg_color_workaround"
 
381
# This is the part of the workaround that fixes the menus
 
382
widget "*.gtk-combobox-popup-menu.*" style "menuitem_text_is_fg_color_workaround"
 
383
 
 
384
# Work around the usage of GtkLabel inside GtkListItems to display text.
 
385
# This breaks because the label is shown on a background that is based on the base color.
 
386
widget_class "*<GtkListItem>*" style "fg_is_text_color_workaround"
 
387
# GtkCList also uses the fg color to draw text on top of the base colors.
 
388
widget_class "*<GtkCList>" style "fg_is_text_color_workaround"
 
389
# Nautilus when renaming files, and maybe other places.
 
390
widget_class "*<EelEditableLabel>" style "fg_is_text_color_workaround"
 
391
 
 
392
# See the documentation of the style.
 
393
widget_class "EShellWindow.GtkVBox.BonoboDock.BonoboDockBand.BonoboDockItem*" style "evo_new_button_workaround"