~andrewsomething/community-themes/community-themes

« back to all changes in this revision

Viewing changes to Turrican/gtk-2.0/gtkrc

  • Committer: Andrew Starr-Bochicchio
  • Date: 2009-08-25 18:05:33 UTC
  • Revision ID: a.starr.b@gmail.com-20090825180533-qjdbp7sgb46wfdup
Add Turrican theme.

Show diffs side-by-side

added added

removed removed

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