Gtkrc
Contents |
| Slideshow ^ |< << Slide 11 of 24 >> >| |
*** This Page is Under Construction ***
Overview
Some general comments on the role of the Gtkrc.
Hierarchy
GtkWidget
~-used by murrine-GtkWidget
GtkContainer
GtkBin
GtkWindow
GtkFrame
use by murrine-GtkFrameGtkButton
use by murrine-GtkButtonGtkToggleButton
GtkCheckButton
use by murrine-GtkCheckButtonGtkRadioButton
use by murrine-GtkCheckButton
GtkHandleBox
use by murrine-GtkHandleBoxGtkItem
GtkMenuItem
use by murrine-GtkMenuItemGtkSeparatorMenuItem
use by murrine-GtkSeparatorMenuItem
GtkComboBox
use by murrine-GtkComboBoxEntryGtkComboBoxEntry
use by murrine-GtkComboBoxEntry
GtkEventBox
GtkBox
GtkHBox
GtkCombo
use by murrine-GtkComboBoxEntryGtkStatusbar
use by murrine-GtkStatusbar
GtkVBox
GtkCList
GtkCTree
GtkList
GtkLayout
use by murrine-GtkNotebookGtkDrawingArea
use by murrine-GtkNotebookGtkMenuShell
GtkMenuBar
use by murrine-GtkMenubarGtkMenu
use by murrine-GtkMenu
GtkNotebook
use by murrine-GtkNotebookGtkToolbar
use by murrine-GtkToolbarGtkTreeView
use by murrine-GtkTreeViewGtkEntry
use by murrine-widerGtkSpinButton
use by murrine-GtkSpinButtonGtkMisc
GtkLabel
GtkRange
GtkScale
use by murrine-GtkScaleGtkHScale
GtkVScale
GtkScrollbar
use by murrine-GtkScrollbarGtkHScrollbar
GtkVScrollbar
GtkProgress
GtkProgressBar
use by murrine-GtkProgressBarGtkSeparator
GtkHSeparator
use by murrine-GtkHSeparatorGtkVSeparator
use by murrine-GtkVSeparator
Source
1 # Human Impression alpha 5
2 #
3 # Release: 90219:1500
4 # Author: j baer <baerjj@gmail.com>
5 # version: 9.04
6 #
7 # T H E M E N O T E S ##############################################
8 # ######################################################################
9 #
10 # Theme Engines
11 #
12 # - murrine svn143
13 #
14 # http://live.gnome.org/GnomeArt/Tutorials/GtkThemes/SymbolicColors
15 #
16 # Color Properties --------------------------------------------------
17 #
18 # fg Foreground color. Used for text on buttons. Also used for the
19 # button borders in some engines.
20 #
21 # bg Background color. This is the background color of windows and
22 # buttons.
23 #
24 # text Text color for text input widgets and lists (/GtkTreeView).
25 #
26 # base Background color of text widgets and lists.
27 #
28 # Color States --------------------------------------------------
29 #
30 # NORMAL - Color for widget @ default
31 #
32 # ACTIVE - Color for active widget
33 #
34 # PRELIGHT - Color for button/menu item when mouse hovers above
35 #
36 # INSENSITIVE - Color for disabled widget
37 #
38 # G N O M E T H E M E ##############################################
39 # ######################################################################
40 # Attribute HEX COMMENT
41 # ----------------- ------- --------------------------------------
42 # bg_color #cdc7be Theme base color
43 # fg_color #1f1816 Theme black
44 # base_color #ffffff White
45 # text_color #1f1816 Theme black
46 # selected_bg_color #e38544 Orange
47 # selected_fg_color #ffffff White
48 # tooltip_bg_color #fffea7 Light yellow
49 # tooltip_fg_color #1f1816 Theme black
50 #
51 # G N O M E T H E M E ##############################################
52 # ######################################################################
53
54 gtk_color_scheme = "fg_color:#1f1816\nbg_color:#cdc7be\nbase_color:#ffffff\ntext_color:#1f1816\nselected_bg_color:#e38544\nselected_fg_color:#ffffff\ntooltip_bg_color:#fffea7\ntooltip_fg_color:#1f1816\nerror:#00ffff\ndebug:#ff00ff"
55
56 # menu delay
57 gtk-menu-popup-delay = 1
58
59 # supporting rc's ##############################################
60 # ######################################################################
61 include "scrollbars/scrollbar.rc"
62 include "scale/scale.rc"
63
64 style "murrine-GtkWidget"
65 {
66 # WIDGET DEFAULTS ############################################
67 # ####################################################################
68 GtkScrolledWindow ::scrollbar-spacing = 3
69 GtkScrolledWindow ::scrollbar-within-bevel = 1
70
71 GtkButton ::child-displacement-x = 1
72 GtkButton ::child-displacement-y = 1
73 GtkButton ::default-border = { 0, 0, 0, 0 }
74 GtkButton ::focus-padding = 0
75 GtkCheckButton ::indicator-size = 14
76
77 GtkPaned ::handle-size = 6
78
79 GtkRange ::trough-border = 2
80 GtkRange ::slider-width = 13
81 GtkRange ::stepper-size = 13
82 GtkRange ::trough-under-steppers= 1
83
84 GtkScale ::slider-length = 20
85 GtkScale ::trough-side-details = 0 # 0 = thin slider, >0 = thick slider
86
87 GtkMenuBar ::internal-padding = 0
88 GtkMenuBar ::shadow-type = GTK_SHADOW_NONE
89
90 GtkStatusbar ::shadow-type = GTK_SHADOW_NONE
91 # the resize-grip is not consistantly displayed, disable
92 GtkStatusbar ::has-resize-grip = FALSE
93
94 GtkExpander ::expander-size = 16
95 GtkToolbar ::internal-padding = 1
96 GtkTreeView ::expander-size = 14
97 GtkTreeView ::vertical-separator = 0
98
99 GtkMenu ::horizontal-padding = 0 # extra space left & right
100 GtkMenu ::vertical-padding = 0 # extra space @ top & bottom of menu
101 GtkMenu ::horizontal-offset = 0 # offset of submenu
102
103 WnckTasklist ::fade-overlay-rect = 0
104
105 xthickness = 1 # left & right
106 ythickness = 1 # top & bottom
107
108 # GTKWIDGET COLOR PALLET ############################################
109 # ####################################################################
110
111 fg[NORMAL] = @fg_color
112 fg[PRELIGHT] = @fg_color
113 fg[SELECTED] = @selected_fg_color
114 fg[ACTIVE] = mix(1.29, @selected_bg_color, @selected_fg_color)
115 fg[INSENSITIVE] = mix(0.70, @fg_color, @selected_fg_color)
116
117 bg[NORMAL] = @bg_color
118 bg[PRELIGHT] = shade(1.10, @bg_color)
119 bg[SELECTED] = @selected_bg_color
120 bg[INSENSITIVE] = shade(0.80, @bg_color)
121 bg[ACTIVE] = shade (0.9, @bg_color)
122
123 base[NORMAL] = @base_color
124 base[PRELIGHT] = shade(1.30, @base_color)
125 base[ACTIVE] = @selected_bg_color
126 base[SELECTED] = @selected_bg_color
127 base[INSENSITIVE] = shade(1.20, @base_color)
128
129 text[NORMAL] = @text_color
130 text[PRELIGHT] = @text_color
131 text[ACTIVE] = @text_color #@selected_fg_color
132 text[SELECTED] = @selected_fg_color
133 text[INSENSITIVE] = mix(0.70, @fg_color, @selected_fg_color)
134
135 # M U R R I N E O P T I O N S ####################################
136 # ####################################################################
137 engine "murrine"
138 {
139 animation = TRUE # Enable animations on progressbars, radio and checkbuttons
140 # Data type: Boolean; default = TRUE (enabled)
141
142 colorize_scrollbar = TRUE # Use colorized scrollbars with scrolls and lists
143 # Data type: Boolean; default = TRUE (enabled)
144
145 contrast = 1.0 # <!> Use carefully
146 # Data type: Real; default = 1.0, Range 0-2, precision 0.1
147
148 glazestyle = 0
149 # Data type: Enumeration; default = 0, Range 0-4
150 # 0 = flat highlight, 1 = curved highlight, 2 = concave style, 3 = top curved highlight, 4 = beryl highlight
151
152 glow_shade = 1.2 # Enable and set the Glow Shade
153 # Data type: Real; default = 1.0, Range 0-2, precision 0.1
154
155 glowstyle = 4 # How to apply glow shade
156 # Data type: Enumeration; default = 0, Range 0-4
157 # 0 = Top glow, 1 = Bottom glow, 2 = Top and Bottom glow, 3 = Horizontal glow, 4 = Centered glow
158
159 gradients = TRUE # Enable/Disable gradients
160 # Data type: Boolean; default = TRUE (enabled)
161
162 gradient_shades = {1.1,1.0,1.0,0.87} # Gradient stops
163 # (4 stops) Data type: Real; Range 0-2, precision 0.2, default 1.0
164 # <!> Uses the current bg[COLOR]
165
166 highlight_shade = 1.0 # Prelight ratio (includes panels)
167 # Data type: Real; default = 1.1, Range 0-2, precision 0.01
168
169 lightborder_shade = 1.0 # Prelight border ratio
170 # Data type: Real; default = 1.1, Range 0-2, precision 0.01
171
172 lightborderstyle = 1 # Prelight border style
173 # Data type: Enumeration; default = 0, Range 0-1
174 # 0 = lightborder on top side, 1 = lightborder on all sides
175
176 listviewheaderstyle = 1 # Listview header style
177 # Data type: Enumeration; default = 0, Range 0-2
178 # 0 = flat, 1 = glassy, 2 = raised
179
180 listviewstyle = 0 # Listview separator style
181 # Data type: Enumeration; default = 0, Range 0-1
182 # 0 = nothing, 1 = dotted
183
184 menubarstyle = 2 # Menubar style
185 # Data type: Enumeration; default = 0, Range 0-3
186 # 0 = flat, 1 = glassy, 2 = gradient, 3 = striped
187
188 menubaritemstyle = 0 # Menubar item style
189 # Data type: Enumeration; default = 0, Range 0-1
190 # 0 = menuitem look, 1 = button look
191
192 menustyle = 0 # Vertical bars in menus
193 # Data type: Enumeration; default = 1, Range 0-1
194 # 0 = no vertical menu stripe, 1 = display vertical menu stripe
195
196 menuitemstyle = 1 # Menu item style
197 # Data type: Enumeration; default = 0, Range 0-2
198 # 0 = flat, 1 = glass, 2 = striped
199
200 profile = MURRINE
201 # Data type: Enumeration; default = MURRINE
202 # engine style options: CANDIDO, CLEARLOOKS, MIST, MURRINE, NODOKA
203
204 progressbarstyle = 1 # Progressbar style
205 # Data type: Enumeration; default = 0, Range 0-2
206 # 0 = Don't draw any special effect, 1 = Draw stripes, 2 = Draw cells
207
208 reliefstyle = 2 # Relief style of widget
209 # Data type: Enumeration; default = 1, Range 0-2
210 # 0 = flat, 1 = inset, 2 = shadow
211
212 rgba = TRUE # Enable/Disable RGBA support
213 # Data type: Boolean; default = FALSE (disabled)
214
215 roundness = 2 # Roundness of widget (typically button)
216 # Data type: Real; default = 1, Range 0-8
217 # 0 = square, > 0 = round
218
219 # scrollbar_color = "#a8a197" # Override the color of scrollbars
220 # Data type: Gtk Color; default = "#999999"
221
222 scrollbarstyle = 3 # Additional scrollbar features
223 # Data type: Enumeration; default = 0, Range 0-6
224 # 0 = nothing, 1 = circles, 2 = handles, 3 = diagonal stripes, 4 = diagonal stripes and handles, 5 = horizontal stripes, 6 = horizontal stripes and handles
225
226 sliderstyle = 0 # Slider style
227 # Data type: Enumeration; default = 0, Range 0-1
228 # 0 = nothing added, 1 = handles
229
230 stepperstyle = 0 # Stepper style
231 # Data type: Enumeration; default = 0, Range 0-1
232 # 0 = standard, 1 = integrated stepper handles
233
234 toolbarstyle = 1 # Toolbar Style
235 # Data type: Enumeration; default = 0, Range 0-1
236 # 0 = flat, 1 = glassy, 2 = gradient
237 }
238 }
239
240 # G T K T E S T ##############################################
241 # ######################################################################
242 # Style used during development & testing
243 #
244 # @error displays bright blue and indicates an attribute which should
245 # be fixed.
246 #
247 # @debug displays bright magenta and is used in the debugging process.
248 #
249 style "murrine-GtkTest"
250 {
251 bg[NORMAL] = @error
252 bg[PRELIGHT] = @error
253 bg[ACTIVE] = @error
254 bg[SELECTED] = @error
255 bg[INSENSITIVE] = @error
256
257 # --------------------------------------------------------------------
258
259 fg[NORMAL] = @error
260 fg[PRELIGHT] = @error
261 fg[ACTIVE] = @error
262 fg[SELECTED] = @error
263 fg[INSENSITIVE] = @error
264
265 # --------------------------------------------------------------------
266
267 base[NORMAL] = @error
268 base[PRELIGHT] = @error
269 base[ACTIVE] = @error
270 base[SELECTED] = @error
271 base[INSENSITIVE] = @error
272
273 # --------------------------------------------------------------------
274
275 text[NORMAL] = @error
276 text[PRELIGHT] = @error
277 text[ACTIVE] = @error
278 text[SELECTED] = @error
279 text[INSENSITIVE] = @error
280 }
281 #
282 # G T K T E S T ##############################################
283 # ######################################################################
284
285 # Size Styles ##############################################
286 # ######################################################################
287 #
288 style "murrine-wide"
289 {
290 xthickness = 2
291 ythickness = 2
292 }
293
294 style "murrine-wider"
295 {
296 xthickness = 3
297 ythickness = 3
298 }
299 #
300 # Size Styles ##############################################
301 # ######################################################################
302
303 # Button Styles ##############################################
304 # ######################################################################
305 #
306 style "murrine-GtkButton"
307 {
308 bg[NORMAL] = shade (1.2, @bg_color) # Default
309 bg[PRELIGHT] = shade (1.1, @bg_color) # Prelight
310 bg[ACTIVE] = shade (1.0, @bg_color) # Active
311 bg[INSENSITIVE] = shade (1.1, @bg_color) # Dimmed
312
313 xthickness = 3
314 ythickness = 3
315
316 engine "murrine"{
317 roundness = 2
318 gradient_shades = {1.1, 1.0, 1.0, 0.88}
319 profile = MURRINE
320 }
321 }
322
323 style "mozilla-GtkButton" = "murrine-GtkButton"
324 {
325 fg[NORMAL] = @fg_color # Combobox [v]
326 }
327
328 #
329 # Button Styles ##############################################
330 # ######################################################################
331
332 # Toolbar Styles ##############################################
333 # ######################################################################
334 #
335 style "murrine-GtkToolbar" = "murrine-GtkWidget"
336 {
337 bg[NORMAL] = @bg_color
338
339 # xthickness = 5
340 # ythickness = 3
341
342 engine "murrine"{
343 glow_shade = 1.0
344 glazestyle = 3
345 # gradient_shades = {1.15,1.07,1.0605,0.91}
346 gradient_shades = {1.12,1.07,1.0605,0.93}
347 contrast = 1.0
348 profile = MURRINE
349 }
350 }
351
352 style "murrine-GtkToolbarButton" = "murrine-GtkButton"
353 {
354 bg[PRELIGHT] = shade(0.9, @bg_color) # Prelight
355 bg[ACTIVE] = shade(1.0, @bg_color) #
356
357 xthickness = 6
358 ythickness = 6
359
360 engine "murrine"{
361 roundness = 3
362 gradient_shades = {0.96, 0.99, 0.99, 1.2}
363 contrast = 1.5
364 profile = MURRINE
365 }
366 }
367
368 style "murrine-GtkToolbar-sep" = "murrine-GtkToolbar"
369 {
370 xthickness = 2
371 }
372
373 style "murrine-GtkHandleBox" = "murrine-GtkToolbar"
374 {
375 bg[NORMAL] = shade (1.12, @bg_color)
376
377 engine "murrine"{
378 glow_shade = 1.0
379 glazestyle = 3
380 contrast = 1.25
381 profile = MURRINE
382 }
383 }
384
385 #
386 # Toolbar Styles ##############################################
387 # ######################################################################
388
389 # Notebook Styles ##############################################
390 # ######################################################################
391 #
392 style "murrine-GtkNotebook"
393 {
394 bg[NORMAL] = shade(1.09, @bg_color) # Selected tab body
395 bg[PRELIGHT] = @text_color # <> CList
396 bg[ACTIVE] = shade(0.88, @bg_color) # Active / unselected tabs
397
398 fg[NORMAL] = shade(.45, @selected_bg_color) # <> CList {blue}
399
400 text[NORMAL] = @fg_color # Nautilus folders
401
402 xthickness = 4
403
404 engine "murrine"{
405 roundness = 2
406 gradient_shades = {1.8, 1.7, 1.6, 0.8}
407 contrast = 1.0
408 profile = MURRINE
409
410 }
411 }
412 #
413 # Notebook Styles ##############################################
414 # ######################################################################
415
416 # Dialog Style ##############################################
417 # ######################################################################
418 #
419 style "murrine-GtkDialog" = "murrine-GtkWidget"
420 {
421 bg[PRELIGHT] = shade (1.15, @bg_color) # Prelight
422 bg[ACTIVE] = shade (1.05, @bg_color) # Active
423 bg[INSENSITIVE] = shade (1.00, @bg_color) # Dimmed
424
425 fg[PRELIGHT] = shade(.45, @selected_bg_color) # text prelight
426
427 }
428 #
429 # Dialog Style ##############################################
430 # ######################################################################
431
432 # PanelWidget (desktop) ##############################################
433 # ######################################################################
434 #
435
436 style "murrine-PanelWidget"
437 {
438 bg[NORMAL] = shade(0.80, @bg_color) # Default panel background (Matches metacity)
439 bg[PRELIGHT] = shade(0.70, @bg_color) # panel prelight
440 bg[ACTIVE] = shade(1.10, @bg_color) # bottom panel active background
441 bg[SELECTED] = shade(0.70, @selected_bg_color) # Active window desktop lower panel background [ ] [ ]
442
443 fg[NORMAL] = @fg_color # Default text
444 fg[PRELIGHT] = @selected_fg_color # Prelight
445 fg[ACTIVE] = mix(1.29, @selected_bg_color, @selected_fg_color) # Bottom panel active text
446 fg[SELECTED] = @fg_color # Bottom panel selected window
447 }
448 #
449 # PanelWidget (desktop) ##############################################
450 # ######################################################################
451
452 # Menu Styles ##############################################
453 # ######################################################################
454 #
455 style "murrine-GtkMenu" = "murrine-GtkWidget"
456 {
457 bg[NORMAL] = shade(1.05, @bg_color) # drop down menu backbround
458
459 xthickness = 0 # pads left/right menu drop down
460 ythickness = 0 # pads top/bottom menu drop down
461
462 engine "murrine" {
463 contrast = 1.0
464 style = MURRINE
465 }
466 }
467
468 style "murrine-GtkMenuItem" = "murrine-GtkWidget"
469 {
470 bg[NORMAL] = shade(0.8, @bg_color) # menu separators in gFTP/Bluefish
471 bg[SELECTED] = shade(0.5, @bg_color) # selected item background
472
473 fg[NORMAL] = @fg_color # menu text!
474 fg[PRELIGHT] = @selected_fg_color # menu text prelight!
475
476 GtkMenuItem::toggle-spacing=10 # space between icon & text
477 GtkMenuItem::horizontal-padding=6 # space between left border & icon
478 GtkMenuItem::arrow-scaling=.5 # size of submenu arrow
479
480 xthickness = 0
481 ythickness = 5
482
483 engine "murrine"{
484 roundness = 0
485 gradient_shades = {1.2,1.0,1.0,0.95}
486 style = MURRINE
487 }
488 }
489
490 style "murrine-GtkMenubar"
491 {
492 bg[NORMAL] = @bg_color # panel background
493
494 fg[NORMAL] = @text_color # default panel text !
495 fg[PRELIGHT] = @selected_fg_color # text after dropdown menu
496
497 engine "murrine"{
498 gradient_shades = {2.0,1.0,1.0,0.97}
499 contrast = 2.0
500 }
501 }
502
503 style "murrine-GtkSeparatorMenuItem"
504 {
505 bg[NORMAL] = shade(1.1, @bg_color) # line color
506
507 GtkSeparatorMenuItem::horizontal-padding = 3
508 GtkWidget::wide-separators = 1
509 GtkWidget::separator-width = 1
510 GtkWidget::separator-height = 1
511
512 xthickness = 1
513 ythickness = 0
514 }
515
516 style "murrine-PanelGtkMenubar"
517 {
518 bg[NORMAL] = shade(0.80, @bg_color) # panel background color (matches metacity)
519 bg[SELECTED] = shade(0.90, @bg_color) # selected panel menu item background color
520
521 fg[NORMAL] = @text_color # default panel text !
522 fg[PRELIGHT] = shade(0.55, mix(0.70, @fg_color, @selected_fg_color)) # text after dropdown menu
523
524 engine "murrine"{
525 gradient_shades = {1.0,1.0,1.0,0.97}
526 roundness = 0
527 contrast = 0.0
528 }
529 }
530
531 #
532 # Menu Styles ##############################################
533 # ######################################################################
534
535 # TreeView Styles ##############################################
536 # ######################################################################
537 #
538 style "murrine-GtkTreeView"
539 {
540 GtkTreeView ::odd_row_color = shade(1.2,@bg_color)
541 GtkTreeView ::even_row_color = @selected_fg_color
542 }
543
544 style "murrine-GtkTreeView-header" = "murrine-GtkWidget"
545 {
546 bg[NORMAL] = shade(0.9, @bg_color)
547 bg[PRELIGHT] = shade(1.0, @bg_color)
548 bg[ACTIVE] = shade(0.8, @bg_color)
549
550 GtkWidget::focus-line-width = 0
551
552 xthickness = 2
553 ythickness = 1
554
555 engine "murrine" {
556 gradient_shades = {1.25,1.1,1.1,1.2}
557 style = MURRINE
558 contrast = 0.5
559 glazestyle = 1
560 listviewheaderstyle = 1
561 }
562 }
563 #
564 # TreeView Styles ##############################################
565 # ######################################################################
566
567 # Check/Radio Styles ##############################################
568 # ######################################################################
569 #
570 style "murrine-GtkCheckButton" = "murrine-GtkWidget"
571 {
572 bg[PRELIGHT] = shade (1.1, @bg_color) # prelight background
573 bg[ACTIVE] = shade (1.2, @bg_color) # used by inkscape
574 bg[SELECTED] = @selected_fg_color # [ ] selected background
575 bg[INSENSITIVE] = shade (1.4, @bg_color) # used by inkscape
576
577 fg[NORMAL] = mix(0.70, @fg_color, @selected_fg_color) # dotted outline
578 fg[PRELIGHT] = mix(0.70, @fg_color, @selected_fg_color) # dotted outline
579 fg[ACTIVE] = mix(0.70, @fg_color, @selected_fg_color) # dotted outline
580
581 base[NORMAL] = @selected_fg_color # [ ] of unselected widget
582
583 text[NORMAL] = @fg_color # Default check/radio symbol
584 text[PRELIGHT] = shade (0.9, @selected_bg_color) # Prelight check/radio symbol
585 text[ACTIVE] = @selected_bg_color # Active check/radio symbol
586 }
587
588 style "murrine-GtkRadioButtonLabel"
589 {
590 fg[NORMAL] = shade(3.0, @text_color) # unchecked
591 fg[ACTIVE] = @text_color # checked
592 fg[PRELIGHT] = @text_color # text
593 }
594
595 style "murrine-GtkCheckMenuItem" = "murrine-GtkWidget"
596 {
597 bg[NORMAL] = @selected_fg_color # default [ ]
598 bg[SELECTED] = shade(0.4, @bg_color) # selected [ ]
599
600 fg[NORMAL] = @text_color # Default text
601 fg[PRELIGHT] = @selected_fg_color # Prelight text
602
603 base[NORMAL] = @base_color # symbol
604
605 text[NORMAL] = @base_color # Default check/radio symbol
606 text[PRELIGHT] = @base_color # Prelight check/radio symbol
607
608 ythickness = 6
609
610 engine "murrine"{
611 gradient_shades = {1.3,1.0,1.0,1.1}
612 contrast = 1.5
613 style = MURRINE
614 }
615 }
616 #
617 # Check/Radio Styles ##############################################
618 # ######################################################################
619
620 style "murrine-GtkTooltips"
621 {
622 bg[NORMAL] = @tooltip_bg_color
623 fg[NORMAL] = @tooltip_fg_color
624
625 xthickness = 4
626 ythickness = 4
627
628 engine "murrine"
629 {
630 contrast = .8
631 profile = MURRINE
632 }
633 }
634
635 # GtkProgressBar ##############################################
636 # ######################################################################
637 # The svn132 version of murrine does not theme progressbar trough.
638 #
639 style "murrine-GtkProgressBar"
640 {
641 bg[SELECTED] = @selected_bg_color # Bar
642
643 fg[NORMAL] = @fg_color # Text on trough
644 fg[PRELIGHT] = @selected_fg_color # Text on bar
645
646 xthickness = 0
647 ythickness = 0
648
649 engine "murrine"
650 {
651 # contrast determines how much of the candy bar is visible
652 contrast = 1.0
653 profile = MURRINE
654 }
655
656 }
657
658 # rhythmbox-GtkProgressBar style
659 # ######################################################################
660 style "rhythmbox-GtkProgressBar"
661 {
662 bg[SELECTED] = @selected_bg_color # Bar
663
664 fg[NORMAL] = @fg_color # Text on trough
665 fg[PRELIGHT] = @selected_fg_color # Text on bar
666
667 xthickness = 0
668 ythickness = 6
669
670 engine "murrine"
671 {
672 animation = FALSE
673 progressbarstyle = 0
674 }
675 }
676
677 # mozilla-GtkProgressBar style
678 # ######################################################################
679 style "mozilla-GtkProgressBar"
680 {
681 bg[SELECTED] = @selected_bg_color # Bar
682
683 fg[NORMAL] = @fg_color # Text on trough
684 fg[PRELIGHT] = @selected_fg_color # Text on bar
685
686 xthickness = 0
687 ythickness = 0
688
689 engine "murrine"
690 {
691 animation = FALSE
692 progressbarstyle = 0
693 }
694 }
695 #
696 # GtkProgressBar ##############################################
697 # ######################################################################
698
699 # GtkStatusbar ##############################################
700 # ######################################################################
701 #
702 style "murrine-GtkStatusbar"
703 {
704 bg[NORMAL] = @bg_color # background
705
706 fg[NORMAL] = @text_color # text
707
708 ythickness = 6
709 xthickness = 4
710
711 engine "murrine"{
712 #glow_shade = 1.0
713 #glazestyle = 3
714 #gradient_shades = {1.15,1.07,1.0605,0.91}
715 contrast = 0.80
716 profile = MURRINE
717 }
718 }
719
720 #
721 # GtkStatusbar (desktop) ##############################################
722 # ######################################################################
723
724 style "murrine-GtkComboBoxEntry"
725 {
726 }
727
728 style "murrine-GtkSpinButton"
729 {
730 bg[NORMAL] = shade (1.1, @bg_color)
731 bg[INSENSITIVE] = shade (1.0, @bg_color)
732
733 fg[NORMAL] = @fg_color # [^/v] controls
734 fg[PRELIGHT] = @selected_bg_color # [^/v] controls
735 fg[ACTIVE] = @selected_bg_color # [^/v] controls
736 fg[INSENSITIVE] = mix(0.70, @fg_color, @selected_fg_color) # [^/v] controls
737
738 base[NORMAL] = @selected_fg_color # default combobox input
739 base[ACTIVE] = @selected_bg_color # active input
740 base[SELECTED] = @selected_bg_color # background selected
741
742 text[NORMAL] = @text_color # default input text
743 text[ACTIVE] = @selected_fg_color # active text
744 text[SELECTED] = @text_color # selected input text
745 text[INSENSITIVE] = mix(0.70, @fg_color, @selected_fg_color) # dimmed input text
746 }
747
748 # GtkScale ##############################################
749 # ######################################################################
750 #
751 style "murrine-GtkScale"
752 {
753 bg[NORMAL] = shade (1.00, @bg_color)
754 bg[PRELIGHT] = shade (1.20, @bg_color)
755
756 fg[NORMAL] = shade (0.80, @bg_color)
757
758 GtkScale::slider-length = 9
759 GtkScale::slider-width = 15
760 # required for svn136
761 GtkScale::trough-side-details = 1
762
763 engine "murrine"{
764 roundness = 2
765 contrast = 1.0
766 gradient_shades = {0.90, 1.06, 1.01, 0.88}
767 profile = MURRINE
768 }
769 }
770
771 style "murrine-GtkHScale" = "murrine-GtkScale"
772 {
773 }
774
775 style "murrine-GtkVScale" = "murrine-GtkScale"
776 {
777 }
778 #
779 # GtkScale ##############################################
780 # ######################################################################
781
782 # GtkScrollbar ##############################################
783 # ######################################################################
784 #
785 style "murrine-GtkScrollbar"
786 {
787 bg[NORMAL] = shade (1.15, @bg_color) # normal stepper
788 bg[PRELIGHT] = shade (1.35, @bg_color) # prelight stepper
789 bg[ACTIVE] = shade (1.20, @bg_color) # active stepper
790 bg[SELECTED] = shade (0.75, @bg_color) # selected stepper
791 bg[INSENSITIVE] = shade (0.98, @bg_color) # dimmed stepper
792
793 #GtkScrollbar::fixed-slider-length = 1
794 GtkScrollbar::has-backward-stepper = 0
795 #GtkScrollbar::has-forward-stepper = 1
796 GtkScrollbar::has-secondary-backward-stepper = 1
797 #GtkScrollbar::has-secondary-forward-stepper = 1
798 GtkScrollbar::min-slider-length = 30
799 GtkScrollbar::trough-under-steppers = 1
800
801 engine "murrine"{
802 roundness = 2
803 contrast = 1.20
804 gradient_shades = {1.0, 1.05, 1.0, 0.88}
805 profile = MURRINE
806 }
807 }
808
809 style "murrine-GtkHScrollbar" = "murrine-GtkScrollbar"
810 {
811 }
812
813 style "murrine-GtkVScrollbar" = "murrine-GtkScrollbar"
814 {
815 }
816 #
817 # GtkScrollbar ##############################################
818 # ######################################################################
819
820 style "murrine-GtkFrame"
821 {
822 }
823
824 style "murrine-GtkFrameTitle" = "murrine-GtkFrame"
825 {
826 fg[NORMAL] = @text_color # Frame text
827 }
828
829 style "murrine-nautilus-location"
830 {
831 bg[NORMAL] = mix(0.60, shade (1.05, @bg_color), @selected_bg_color)
832 }
833
834 style "murrine-GtkHSeparator"
835 {
836 bg[NORMAL] = shade(1.1, @bg_color) # line color
837
838 xthickness = 1
839 ythickness = 0
840 }
841
842 style "murrine-GtkVSeparator"
843 {
844 bg[NORMAL] = shade(1.1, @bg_color) # line color
845
846 xthickness = 0
847 ythickness = 1
848 }
849
850 # nautilus-GtkWidget
851 # ######################################################################
852 style "nautilus-GtkWidget"
853 {
854 fg[NORMAL] = @text_color # Default
855 }
856
857 # GtkEvolution style
858 # ######################################################################
859 style "evolution-GtkETree"
860 {
861 bg[ACTIVE] = mix(0.40, @selected_bg_color, @bg_color) # active list item
862 bg[SELECTED] = @selected_bg_color # selected list item
863
864 fg[NORMAL] = @selected_fg_color # Default text
865 fg[ACTIVE] = @text_color # Active text
866 fg[SELECTED] = @selected_fg_color
867 fg[INSENSITIVE] = mix(0.70, @fg_color, @selected_fg_color) # Insensitive text
868 }
869
870
871 style "evolution-GtkECalendar"
872 {
873 bg[NORMAL] = mix(0.25, @selected_bg_color, @bg_color) # calendar title & frame
874 bg[SELECTED] = shade(1.14, @bg_color) # border of today
875
876 fg[NORMAL] = @text_color # days of week & month
877
878 base[NORMAL] = @selected_fg_color # background
879 base[ACTIVE] = shade(1.18, @bg_color) # background of today
880 base[SELECTED] = @base_color # days of week title
881
882 text[ACTIVE] = shade(0.50, @selected_bg_color) # days of week title
883 }
884
885 # Widget Hierarchy ##############################################
886 # ######################################################################
887 #
888 # Some knowledge of GTK hierarchy is helpful ;)
889 #
890 # http://library.gnome.org/devel/gtk/unstable/ch01.html
891 #
892 # Widget Style
893 # ----------------------------------- ------------------------------
894 # GtkWidget murrine-GtkWidget
895 # +--GtkContainer
896 # +--GtkBin
897 # +--GtkWindow
898 # +--GtkFrame murrine-GtkFrame
899 # +--GtkButton murrine-GtkButton
900 # +--GtkToggleButton
901 # +--GtkCheckButton murrine-GtkCheckButton
902 # +--GtkRadioButton murrine-GtkCheckButton
903 # +--GtkHandleBox murrine-GtkHandleBox
904 # +--GtkItem
905 # +--GtkMenuItem murrine-GtkMenuItem
906 # +--GtkSeparatorMenuItem murrine-GtkSeparatorMenuItem
907 # +--GtkComboBox murrine-GtkComboBoxEntry
908 # +--GtkComboBoxEntry murrine-GtkComboBoxEntry
909 # +--GtkEventBox
910 #
911 # +--GtkBox
912 # +--GtkHBox
913 # +--GtkCombo murrine-GtkComboBoxEntry
914 # +--GtkStatusbar murrine-GtkStatusbar
915 # +--GtkVBox
916 #
917 # +--GtkCList
918 # +--GtkCTree
919 #
920 # +--GtkList
921 #
922 # +--GtkLayout murrine-GtkNotebook
923 #
924 # +--GtkDrawingArea murrine-GtkNotebook
925 #
926 # +--GtkMenuShell
927 # +--GtkMenuBar murrine-GtkMenubar
928 # +--GtkMenu murrine-GtkMenu
929 #
930 # +--GtkNotebook murrine-GtkNotebook
931 #
932 # +--GtkToolbar murrine-GtkToolbar
933 #
934 # +--GtkTreeView murrine-GtkTreeView
935 #
936 # +--GtkEntry murrine-wider
937 # +--GtkSpinButton murrine-GtkSpinButton
938 #
939 # +--GtkMisc
940 # +--GtkLabel
941 #
942 # +--GtkRange
943 # +--GtkScale murrine-GtkScale
944 # +--GtkHScale
945 # +--GtkVScale
946 # +--GtkScrollbar murrine-GtkScrollbar
947 # +--GtkHScrollbar
948 # +--GtkVScrollbar
949 #
950 # +--GtkProgress
951 # +--GtkProgressBar murrine-GtkProgressBar
952 #
953 # +--GtkSeparator
954 # +--GtkHSeparator murrine-GtkHSeparator
955 # +--GtkVSeparator murrine-GtkVSeparator
956 #
957 # Widget Hierarchy ##############################################
958 # ######################################################################
959 # W A R N I N G ##############################################
960 #
961 # As illustrated by the above widget hierarchy, GTK objects inherit style
962 # from their parent objects with the root being GTKWIDGET. Getting the theme
963 # to work properly is dependent upon instantiating "class" and "widget_class"
964 # objects in the correct order.
965 #
966 # ######################################################################
967
968 # GtkWidget
969 #
970 # http://library.gnome.org/devel/gtk/unstable/GtkWidget.html
971 #
972 class "GtkWidget" style "murrine-GtkWidget"
973
974 # GtkDialog
975 #
976 # http://library.gnome.org/devel/gtk/unstable/GtkDialog.html
977 #
978 widget_class "<GtkDialog>.*" style "murrine-GtkDialog"
979 widget_class "<GtkDialog>.*<GtkProgressBar>*" style "murrine-GtkProgressBar"
980 widget_class "<GtkDialog>.*<GtkScrollbar>*" style "murrine-GtkScrollbar"
981
982 # Increase the x/ythickness in some widgets
983 class "GtkRange" style "murrine-GtkWidget"
984 class "GtkFrame" style "murrine-GtkFrame"
985
986 # GtkHSeparator/GtkVSeparator
987 #
988 # http://library.gnome.org/devel/gtk/stable/GtkHSeparator.html
989 # http://library.gnome.org/devel/gtk/stable/GtkVSeparator.html
990 #
991 # class "GtkSeparator" style "murrine-wide"
992 class "GtkHSeparator" style "murrine-GtkHSeparator"
993 class "GtkVSeparator" style "murrine-GtkVSeparator"
994
995 class "GtkEntry" style "murrine-wider"
996
997 # GtkStatusbar
998 # The text of the status bar is formated by GtkFrame
999 #
1000 # http://library.gnome.org/devel/gtk/stable/GtkStatusbar.html
1001 #
1002 widget_class "*<GtkStatusbar>*" style "murrine-GtkStatusbar"
1003
1004 # GtkMenuBar
1005 #
1006 # http://library.gnome.org/devel/gtk/stable/GtkMenuBar.html
1007 #
1008 class "GtkMenuBar" style:highest "murrine-GtkMenubar"
1009
1010 # GtkToolbar
1011 #
1012 # http://library.gnome.org/devel/gtk/stable/GtkToolbar.html
1013 #
1014 class "GtkToolbar" style "murrine-GtkToolbar"
1015 widget_class "*<GtkToolbar>.*Button.*" style "murrine-GtkToolbarButton"
1016
1017 # GtkHandleBox
1018 #
1019 # http://library.gnome.org/devel/gtk/stable/GtkHandleBox.html
1020 #
1021 class "GtkHandleBox" style "murrine-GtkHandleBox"
1022
1023 # GtkSpinButton
1024 #
1025 # http://library.gnome.org/devel/gtk/unstable/GtkSpinButton.html
1026 #
1027 class "GtkSpinButton" style "murrine-GtkSpinButton"
1028
1029 # GtkScale
1030 #
1031 # http://library.gnome.org/devel/gtk/stable/GtkScale.html
1032 #
1033 class "GtkScale" style "murrine-GtkScale"
1034
1035 # GtkScrollbar
1036 #
1037 # http://library.gnome.org/devel/gtk/stable/GtkScrollbar.html
1038 #
1039 # murrine solution
1040 class "GtkScrollbar" style "murrine-GtkScrollbar"
1041
1042 # GtkButton
1043 #
1044 # http://library.gnome.org/devel/gtk/unstable/GtkButton.html
1045 #
1046 class "GtkButton" style "murrine-GtkButton"
1047
1048 # GtkCheckButton/GtkRadioButton
1049 #
1050 # http://library.gnome.org/devel/gtk/unstable/GtkRadioButton.html
1051 # http://library.gnome.org/devel/gtk/stable/GtkCheckButton.html
1052 #
1053 class "GtkCheckButton" style "murrine-GtkCheckButton"
1054 class "GtkRadioButton" style "murrine-GtkCheckButton"
1055 widget_class "*.*<GtkRadioButton>*" style "murrine-GtkRadioButtonLabel"
1056 widget_class "*.*<GtkCheckButton>*" style "murrine-GtkRadioButtonLabel"
1057
1058 # apply theme elements to firefox
1059 widget "Mozilla*Button*" style "mozilla-GtkButton"
1060
1061 # GtkNotebook
1062 #
1063 # http://library.gnome.org/devel/gtk/unstable/GtkNotebook.html
1064 #
1065 class "GtkNotebook" style "murrine-GtkNotebook"
1066 widget_class "*.*.GtkNotebook" style "murrine-GtkNotebook"
1067 widget_class "*<GtkNotebook>*<GtkEventBox>" style "murrine-GtkNotebook"
1068 widget_class "*<GtkNotebook>*<GtkDrawingArea>" style "murrine-GtkNotebook"
1069 widget_class "*<GtkNotebook>*<GtkLayout>" style "murrine-GtkNotebook"
1070
1071 # GtkComboBoxEntry
1072 #
1073 # http://library.gnome.org/devel/gtk/stable/GtkComboBoxEntry.html
1074 #
1075 widget_class "*<GtkComboBoxEntry>*" style "murrine-GtkComboBoxEntry"
1076
1077 # GtkCombo
1078 #
1079 # http://library.gnome.org/devel/gtk/unstable/GtkCombo.html
1080 #
1081 widget_class "*<GtkCombo>*" style "murrine-GtkComboBoxEntry"
1082
1083 # GtkMenu
1084 #
1085 # http://library.gnome.org/devel/gtk/stable/GtkMenu.html
1086 #
1087 widget_class "*<GtkMenu>*" style "murrine-GtkMenu"
1088
1089 # GtkMenuItem / GtkSeparatorMenuItem
1090 #
1091 # http://library.gnome.org/devel/gtk/stable/GtkMenuItem.html
1092 # http://library.gnome.org/devel/gtk/stable/GtkSeparatorMenuItem.html
1093 #
1094 widget_class "*<GtkMenuItem>*" style "murrine-GtkMenuItem"
1095 widget_class "*<GtkSeparatorMenuItem>*" style "murrine-GtkSeparatorMenuItem"
1096
1097 # GtkCheckMenuItem
1098 #
1099 # http://library.gnome.org/devel/gtk/unstable/GtkCheckMenuItem.html
1100 #
1101 widget_class "*<GtkCheckMenuItem>" style "murrine-GtkCheckMenuItem"
1102
1103 # GtkFrame
1104 #
1105 # http://library.gnome.org/devel/gtk/stable/GtkFrame.html
1106 #
1107 widget_class "*<GtkFrame>" style "murrine-GtkFrame"
1108 widget_class "*.<GtkFrame>.<GtkLabel>" style "murrine-GtkFrameTitle"
1109
1110 # GtkTreeView
1111 #
1112 # http://library.gnome.org/devel/gtk/unstable/GtkTreeView.html
1113 #
1114 widget_class "*.<GtkTreeView>*" style "murrine-GtkTreeView"
1115 widget_class "*.<GtkTreeView>.<GtkButton>" style "murrine-GtkTreeView-header"
1116 widget_class "*.<GtkCTree>.<GtkButton>" style "murrine-GtkTreeView-header"
1117 widget_class "*.<GtkList>.<GtkButton>" style "murrine-GtkTreeView-header"
1118 widget_class "*.<GtkCList>.<GtkButton>" style "murrine-GtkTreeView-header"
1119
1120 # GtkProgressBar
1121 #
1122 # http://library.gnome.org/devel/gtk/stable/GtkProgressBar.html
1123 #
1124 class "GtkProgressBar" style "murrine-GtkProgressBar"
1125
1126 # This is a work around ;) By default the rhytmbox progress bar fills
1127 # the status area. IMO the bar displays better without a trough.
1128 widget_class "*<RBStatusbar>.<GtkProgressBar>" style:highest "rhythmbox-GtkProgressBar"
1129 widget "MozillaGtkWidget*GtkProgressBar*" style "mozilla-GtkProgressBar"
1130
1131 #Panel
1132 widget "*PanelWidget*" style "murrine-PanelWidget"
1133 widget "*PanelApplet*" style "murrine-PanelWidget"
1134 widget "*fast-user-switch*" style "murrine-PanelWidget" # Workaround for Fast User Switch applet
1135 class "PanelApp*" style "murrine-PanelWidget"
1136 class "PanelToplevel*" style "murrine-PanelWidget"
1137
1138 # The panel menubar
1139 widget_class "*Panel*<GtkMenuBar>*" style:highest "murrine-PanelGtkMenubar"
1140
1141 # The window of the tooltip is called "gtk-tooltip"
1142 widget "gtk-tooltip*" style "murrine-GtkTooltips"
1143
1144 # ######################################################################
1145 # Special cases and work arounds
1146 # ######################################################################
1147
1148 # Nautilus
1149 # Nautilus uses a white canvas to display folder & files. Make sure
1150 # the text is dark.
1151 widget_class "*.EelEditableLabel" style "nautilus-GtkWidget"
1152
1153 # Special case the nautilus-extra-view-widget
1154 # ToDo: A more generic approach for all applications that have a widget like this.
1155 widget "*.nautilus-extra-view-widget" style : highest "murrine-nautilus-location"
1156
1157 # Workarounds for Evolution
1158 widget_class "*.ETable.ECanvas" style "murrine-GtkTreeView-header"
1159 widget_class "*.ETree.ECanvas" style "murrine-GtkTreeView-header"
1160 widget_class "*.ETree.*" style "evolution-GtkETree"
1161 widget_class "*.ECalendar" style "evolution-GtkECalendar"
1162
1163 # Work around for http://bugzilla.gnome.org/show_bug.cgi?id=382646
1164 style "murrine-text-is-fg-color-workaround"
1165 {
1166 text[NORMAL] = @fg_color
1167 text[PRELIGHT] = @fg_color
1168 text[SELECTED] = @selected_fg_color
1169 text[ACTIVE] = @fg_color
1170 text[INSENSITIVE] = mix(0.70, @fg_color, @selected_fg_color) # darker (@bg_color)
1171 }
1172 widget_class "*.<GtkComboBox>.<GtkCellView>" style "murrine-text-is-fg-color-workaround"
1173
1174 style "murrine-menuitem-text-is-fg-color-workaround"
1175 {
1176 text[NORMAL] = @fg_color
1177 text[PRELIGHT] = @selected_fg_color
1178 text[SELECTED] = @selected_fg_color
1179 text[ACTIVE] = @fg_color
1180 text[INSENSITIVE] = mix(0.70, @fg_color, @selected_fg_color) # darker (@bg_color)
1181 }
1182 widget "*.gtk-combobox-popup-menu.*" style "murrine-menuitem-text-is-fg-color-workaround"
1183
1184 # Work around the usage of GtkLabel inside GtkListItems to display text.
1185 # This breaks because the label is shown on a background that is based on the
1186 # base color set.
1187 style "murrine-fg-is-text-color-workaround"
1188 {
1189 fg[NORMAL] = @text_color
1190 fg[PRELIGHT] = @text_color
1191 fg[ACTIVE] = @selected_fg_color
1192 fg[SELECTED] = @selected_fg_color
1193 fg[INSENSITIVE] = mix(0.70, @fg_color, @selected_fg_color) # darker (@bg_color)
1194 }
1195 widget_class "*<GtkListItem>*" style "murrine-fg-is-text-color-workaround"
1196 # The same problem also exists for GtkCList and GtkCTree
1197 # Only match GtkCList and not the parent widgets, because that would also change the headers.
1198 widget_class "*<GtkCList>" style "murrine-fg-is-text-color-workaround"
1199
1200 style "murrine-evo-new-button-workaround"
1201 {
1202 engine "murrine"
1203 {
1204 toolbarstyle = 0
1205 }
1206 }
1207
1208 widget_class "EShellWindow.GtkVBox.BonoboDock.BonoboDockBand.BonoboDockItem*" style "murrine-evo-new-button-workaround"
1209
1210 #Rhythmbox toolbar near the search entry. Use default + wide so that it doesn't turn dark.
1211 style "murrine-rhythmbox-header" = "murrine-GtkWidget"
1212 {
1213 xthickness = 3
1214 ythickness = 3
1215 engine "murrine" {
1216 }
1217 }
1218 widget "*RBSourceHeader*" style:highest "murrine-rhythmbox-header"
1219 widget "*swt*toolbar*" style "murrine-GtkWidget"
1220
1221 # RSC: Fix for CPU frequency applet
1222 style "applet-text" = "murrine-panel"
1223 {
1224 fg[NORMAL] = @bg_color
1225 }
1226 widget_class "*CPUFreqApplet*" style:highest "applet-text"
Attachments
Comments
Your comments here.
