Add build script to configure for a XBoard.app for OS X
[xboard.git] / osxapp / OSX-theme / gtk-2.0 / gtkrc
1
2 gtk-color-scheme = "base_color:#ffffff\nfg_color:#202020\ntooltip_fg_color:#ffffff\nselected_bg_color:#3b6eeb\nselected_fg_color:#ffffff\ntext_color:#202020\nbg_color:#ededed\ntooltip_bg_color:#000000\nlink_color:#0033ff"
3
4 gtk_color_scheme        = "menu_gradient:#4455F6"
5
6 gtk-auto-mnemonics      = 1
7
8 gtk-button-images       = 0
9
10 style "default" {
11         xthickness                                                                      = 1
12         ythickness                                                                      = 1
13
14         #######################
15         # Style Properties
16         #######################
17         GtkButton::child-displacement-x                         = 0
18         GtkButton::child-displacement-y                         = 0
19         GtkButton::default-border                                       = {0, 0, 0, 0}
20         GtkButton::image-spacing                                        = 4
21         GtkToolButton::icon-spacing                                     = 4
22
23         GtkCheckButton::indicator-size                          = 18
24         GtkRadioButton::indicator-size                          = 18
25
26         GtkEntry::honors-transparent-bg-hint            = 1
27         GtkEntry::invisible-char                                        = 0x2022
28         GtkEntry::progress-border                                       = {2, 2, 2, 2}
29     GtkEntry::state-hint                                        = 0
30
31         GtkProgressBar::min-vertical-bar-width          = 13
32         GtkProgressBar::min-horizontal-bar-height       = 13
33
34         GtkExpander::expander-size                                      = 14
35
36         GtkMenuBar::internal-padding                            = 0
37         GtkMenuBar::window-dragging                                     = 1
38         # GtkMenuBar::shadow-type                                       = GTK_SHADOW_NONE # En Unity se habilita esta linea
39
40         GtkMenu::horizontal-padding                                     = 0
41         GtkMenu::vertical-padding                                       = 0
42         GtkSeparatorMenuItem::horizontal-padding        = 7
43
44         GtkNotebook::tab-overlap                                        = 2             # Default = 2
45         GtkNotebook::tab-curvature                                      = 1             # Default = 1
46
47         GtkPaned::handle-size                                           = 6
48
49         GtkRange::trough-border                                         = 0
50         GtkRange::trough-side-details                                   = 0
51         GtkRange::slider-width                                          = 15
52         GtkRange::stepper-size                                          = 1
53
54         GtkScale::slider-length                                         = 14
55         GtkScale::slider-width                                          = 14
56         GtkScale::trough-side-details                           = 0
57
58         GtkScrollbar::has-backward-stepper                      = 0  
59         GtkScrollbar::has-forward-stepper                       = 1   # El maldito rollo de gtk2 y las scrollbars
60         GtkScrollbar::min-slider-length                         = 30
61         GtkScrollbar::slider-width                                      = 9
62         GtkScrollbar::trough-border                                     = 3
63         GtkScrollbar::activate-slider                           = 0
64         GtkScrollbar::trough-side-details                       = 0
65         GtkScrollbar::stepper-size                      = 1
66
67         GtkScrolledWindow::scrollbar-spacing            = 0
68         GtkScrolledWindow::scrollbars-within-bevel      = 1
69
70         GtkToolbar::internal-padding                            = 0
71         GtkToolbar::window-dragging                                     = 1
72
73         GtkTreeView::expander-size                                      = 7
74         GtkTreeView::odd_row_color                                      = "#F4F6FA"
75         # en eclipse afecta backcolor de "Quick Type Hierarchy (CTRL+T)"
76         # GtkTreeView::even_row_color                   = "#FFF"
77
78         GtkWidget::link-color                                           = @link_color
79     GtkWidget::focus-padding                                    = 0
80         WnckTasklist::fade-overlay-rect                         = 0
81
82     GtkWindow::resize-grip-height                       = 0 # Ocultar resize-grip
83     GtkWindow::resize-grip-width                        = 0
84
85         ####################
86         # Color Definitions
87         ####################
88         bg[NORMAL]          = @bg_color
89         bg[PRELIGHT]            = shade (1.02, @bg_color)
90         bg[SELECTED]            = @selected_bg_color
91         bg[INSENSITIVE]         = @bg_color
92         bg[ACTIVE]          = shade (0.9, @bg_color)
93
94         fg[NORMAL]          = @text_color
95         fg[PRELIGHT]            = @fg_color
96         fg[SELECTED]            = @selected_fg_color
97         fg[INSENSITIVE]         = darker (@bg_color)
98         fg[ACTIVE]          = @fg_color
99
100         text[NORMAL]            = @text_color
101         text[PRELIGHT]          = @text_color
102         text[SELECTED]          = @selected_fg_color
103         text[INSENSITIVE]       = darker (@bg_color)
104         text[ACTIVE]            = @selected_fg_color
105
106         base[NORMAL]            = @base_color
107         base[PRELIGHT]          = shade (0.95, @bg_color)
108         base[SELECTED]          = @selected_bg_color
109         base[INSENSITIVE]       = @bg_color
110         base[ACTIVE]            = shade (0.9, @selected_bg_color)
111
112         engine "murrine" {
113                 animation                       = FALSE
114                 arrowstyle                      = 1                     # Estilo flechas menu (triangulos)
115                 colorize_scrollbar      = TRUE
116                 contrast                        = 1.0
117                 default_button_color    = shade (1.05, "#66a3e3")
118                 expanderstyle           = 0                     # Treview expander (triangulo)
119                 cellstyle                       = 0     
120                 focusstyle                      = 0
121                 glazestyle                      = 0 # 0 = flat highlight, 1 = curved highlight, 2 = concave style, 3 = top curved highlight, 4 = beryl highlight
122                 glowstyle                       = 4 # 0 = top, 1 = bottom, 2 = top and bottom, 3 = horizontal, 4 = centered glow
123                 gradient_shades         = {1.00, 0.91, 0.92, 0.81}              
124                 highlight_shade         = 1.0
125                 lightborder_shade       = 1.0
126                 lightborderstyle        = 1 # 0 = top side, 1 = all sides
127                 listviewstyle           = 0 # 0 = nothing, 1 = dotted, 2 = line
128                 menubaritemstyle        = 0 # 0 = menuitem look, 1 = button look
129                 menubarstyle            = 1 # 0 = flat, 1 = glassy, 2 = gradient, 3 = striped
130                 menuitemstyle           = 1 # 0 = flat, 1 = glassy, 2 = striped
131                 menustyle                   = 3 # 0 = no vertical menu stripe, 1 = display vertical menu stripe, 2 = faint? 3 = borderless
132                 progressbarstyle        = 1
133                 reliefstyle                     = 3 # 0 = flat, 1 = inset, 2 = shadow, 3 = shadow with gradient, 4 = stronger shadow with gradient
134                 rgba                            = FALSE # alpha transparency
135                 roundness                       = 3 # 0 = square
136                 scrollbarstyle          = 0 # 0 = nothing
137                 separatorstyle          = 0
138                 shadow_shades           = {2.0, 1.0}
139                 sliderstyle                 = 0 # 0 = nothing added
140                 stepperstyle            = 1 # 0 = standard, 1 = integrated stepper handles, 2 = unknown
141                 toolbarstyle            = 1 # 0 = flat, 1 = glassy, 2 = gradient
142                 trough_shades           = {0.85, 1.0}
143         }
144 }
145
146 style "wide" {
147         xthickness      = 2
148         ythickness      = 2
149 }
150
151 style "wider" {
152         xthickness      = 3
153         ythickness      = 3
154 }
155
156 style "button" {
157     xthickness  = 3
158     ythickness  = 3
159     
160         bg[ACTIVE]                      = shade (1.15, "#5c8fe9")       # Pulsado #80B8EA
161     bg[NORMAL]                      = shade (0.93, "#FFF")
162     bg[PRELIGHT]                    = shade (0.95, "#FFF")
163         bg[SELECTED]                                = shade (1.25, "#5c8fe9")   # Default
164         bg[INSENSITIVE]                             = shade (0.88, "#FFF")
165
166         engine "murrine" {
167                 border_shades           = {1.0, 0.90}
168                 contrast                = 0.90
169                 gradient_shades         = {1.25,1.02,1.01,1.05}         
170                 lightborderstyle                = 1
171                 lightborder_shade               = 1.1
172                 textstyle               = 1
173         }
174 }
175
176 style "checkradio_label" {      
177         fg[ACTIVE]              = @text_color           # Forzar color texto en radiobutton-eclipse
178 }
179
180 style "checkbutton" {
181         engine "pixmap" {
182                 image {
183                         function = CHECK
184                         recolorable = TRUE
185                         state = NORMAL
186                         shadow = OUT
187                         overlay_file = "assets/l-checkbox-unchecked-18.png"
188                         overlay_stretch = FALSE
189                 }
190
191                 image {
192                         function = CHECK
193                         recolorable = TRUE
194                         state = PRELIGHT
195                         shadow = OUT
196                         overlay_file = "assets/l-checkbox-unchecked-18.png"
197                         overlay_stretch = FALSE
198                 }
199
200                 image {
201                         function = CHECK
202                         recolorable = TRUE
203                         state = ACTIVE
204                         shadow = OUT
205                         overlay_file = "assets/l-checkbox-unchecked-18.png"
206                         overlay_stretch = FALSE
207                 }
208
209                 image {
210                         function = CHECK
211                         recolorable = TRUE
212                         state = INSENSITIVE
213                         shadow = OUT
214                         overlay_file = "assets/l-checkbox-unchecked-insensitive-18.png"
215                         overlay_stretch = FALSE
216                 }
217
218                 image {
219                         function = CHECK
220                         recolorable = TRUE
221                         state = NORMAL
222                         shadow = IN
223                         overlay_file = "assets/l-checkbox-checked-18.png"
224                         overlay_stretch = FALSE
225                 }
226
227                 image {
228                         function = CHECK
229                         recolorable = TRUE
230                         state = PRELIGHT
231                         shadow = IN
232                         overlay_file = "assets/l-checkbox-checked-18.png"
233                         overlay_stretch = FALSE
234                 }
235
236                 image {
237                         function = CHECK
238                         recolorable = TRUE
239                         state = ACTIVE
240                         shadow = IN
241                         overlay_file = "assets/l-checkbox-checked-18.png"
242                         overlay_stretch = FALSE
243                 }
244
245
246                 image {
247                         function = CHECK
248                         recolorable = TRUE
249                         state = INSENSITIVE
250                         shadow = IN
251                         overlay_file = "assets/l-checkbox-checked-insensitive-18.png"
252                         overlay_stretch = FALSE
253                 }
254
255                 image {
256                         function = FLAT_BOX
257                         recolorable = TRUE
258                         stretch = TRUE
259                         file = "assets/null.png"
260                         border = {2, 2, 2, 2}
261                 }
262         }
263 }
264
265 style "entry" { # text
266         xthickness      = 3
267         ythickness      = 3
268
269         bg[SELECTED]    = mix (0.5, @selected_bg_color, @base_color)
270         fg[SELECTED]    = @text_color
271
272         engine "murrine" {
273                 contrast        = 1.0           
274                 roundness       = 3             
275                 border_shades           = {1.45, 1.35}
276                 focusstyle                              = 3
277         
278         }
279 }
280
281 style "expander" {
282         bg[NORMAL]              = "#FFF"
283         fg[NORMAL]              = shade (2.0, @text_color)
284         fg[PRELIGHT]            = shade (2.0, @text_color)
285
286         engine "murrine" {
287                 contrast        = 1.2
288                 gradient_shades = {1.0, 1.0, 1.0, 1.0}
289         }
290 }
291
292 style "frame_title" {
293         fg[NORMAL]      = lighter (@fg_color)
294 }
295
296 style "handle" {
297         engine "pixmap" {
298                 image {
299                         function        = HANDLE
300                         overlay_file    = "assets/handle.png"
301                         overlay_border  = {0, 0, 0, 0}
302                         overlay_stretch = FALSE
303                         orientation     = HORIZONTAL
304                         file            = "assets/null.png"
305                         border          = {0, 0, 0, 0}
306                         stretch         = TRUE
307                 }
308
309                 image {
310                         function        = HANDLE
311                         overlay_file    = "assets/handle.png"
312                         overlay_border  = {0, 0, 0, 0}
313                         overlay_stretch = FALSE
314                         orientation     = VERTICAL
315                         file            = "assets/null.png"
316                         border          = {0, 0, 0, 0}
317                         stretch         = TRUE
318                 }
319         }
320 }
321 class "GtkPaned"        style "handle"
322
323 style "menubar" {
324     # Modificado
325         xthickness      = 3
326         ythickness      = 3
327
328     fg[NORMAL]          = shade (1.99, @fg_color)
329         bg[NORMAL]                      = shade (0.90, @bg_color)
330
331         engine "murrine" {
332                 gradient_shades         = {1.00,0.96,0.96,0.89}
333         border_shades                   = {1.1, 0.9}
334                 contrast                = 1.10
335                 lightborderstyle                = 1
336         }
337 }
338
339 style "menu" {
340         xthickness      = 0
341         ythickness      = 0
342
343         bg[NORMAL]      = shade (1.05, "#ededed")
344
345         GtkMenuItem::arrow-scaling      = 0.5
346         
347         engine "murrine" {
348                 gradient_shades         = {1.0, 1.0, 1.0, 1.0}
349                 border_shades           = {1.1, 0.9}
350                 roundness                       = 0 # 0 = squared
351         contrast            = 0.8
352         }
353 }
354
355 style "menu_item_white" {
356         xthickness      = 2
357         ythickness      = 3
358
359         fg[PRELIGHT]    = @selected_fg_color
360     bg[PRELIGHT]        = @menu_gradient
361     bg[SELECTED]        = @menu_gradient
362
363         engine "murrine" {
364         gradient_shades         = {1.20, 1.10, 1.10, 1.00}
365         roundness           = 1
366                 border_shades           = {1.60, 1.0}
367         roundness           = 1
368         contrast            = 0.9
369         }
370 }
371
372 style "menu_item_black" {
373         xthickness      = 2
374         ythickness      = 3
375
376         fg[PRELIGHT]    = @selected_fg_color
377     bg[PRELIGHT]      = shade (0.94, "#3C3CF0")
378     bg[SELECTED]      = shade (0.94, "#3C3CF0")
379
380         engine "murrine" {
381         gradient_shades         = {1.30, 1.15, 1.15, 1.00}
382         roundness           = 1
383         #contrast            = 0.0
384         }
385 }
386
387 style "notebook" { 
388     xthickness  = 2  
389         ythickness      = 2
390
391         bg[NORMAL]                              = shade (0.96, @bg_color)       # selected tab entire
392         bg[ACTIVE]                              = shade (1.12, @bg_color)       # unselected tab
393
394         engine "murrine" {
395                 gradient_shades         = {1.20,0.98,0.92,0.65}
396                 contrast                        = 0.75
397                 roundness                       = 3 
398         }
399
400 }
401
402 style "progressbar" {
403         xthickness      = 0
404         ythickness      = 0
405
406         fg[PRELIGHT]    = @selected_fg_color
407         #bg[SELECTED]           = "#7088CA"
408         bg[SELECTED]            =shade (0.90, "#80B8EA")
409
410         engine "murrine" {
411                 gradient_shades         = {1.30, 1.15, 1.15, 1.0}
412                 roundness                       = 4
413         }
414 }
415
416 style "radiobutton" {
417         engine "pixmap" {
418                 image {
419                         function = OPTION
420                         recolorable = TRUE
421                         state = NORMAL
422                         shadow = OUT
423                         overlay_file = "assets/l-radio-unselected-18.png"
424                         overlay_stretch = FALSE
425                 }
426
427                 image {
428                         function = OPTION
429                         recolorable = TRUE
430                         state = PRELIGHT
431                         shadow = OUT
432                         overlay_file = "assets/l-radio-unselected-18.png"
433                         overlay_stretch = FALSE
434                 }
435
436                 image {
437                         function = OPTION
438                         recolorable = TRUE
439                         state = ACTIVE
440                         shadow = OUT
441                         overlay_file = "assets/l-radio-unselected-18.png"
442                         overlay_stretch = FALSE
443                 }
444
445                 image {
446                         function = OPTION
447                         recolorable = TRUE
448                         state = INSENSITIVE
449                         shadow = OUT
450                         overlay_file = "assets/l-radio-unselected-insensitive-18.png"
451                         overlay_stretch = FALSE
452                 }
453
454                 image {
455                         function = OPTION
456                         recolorable = TRUE
457                         state = NORMAL
458                         shadow = IN
459                         overlay_file = "assets/l-radio-selected-18.png"
460                         overlay_stretch = FALSE
461                 }
462
463                 image {
464                         function = OPTION
465                         recolorable = TRUE
466                         state = PRELIGHT
467                         shadow = IN
468                         overlay_file = "assets/l-radio-selected-18.png"
469                         overlay_stretch = FALSE
470                 }
471
472                 image {
473                         function = OPTION
474                         recolorable = TRUE
475                         state = ACTIVE
476                         shadow = IN
477                         overlay_file = "assets/l-radio-selected-18.png"
478                         overlay_stretch = FALSE
479                 }
480
481
482                 image {
483                         function = OPTION
484                         recolorable = TRUE
485                         state = INSENSITIVE
486                         shadow = IN
487                         overlay_file = "assets/l-radio-selected-insensitive-18.png"
488                         overlay_stretch = FALSE
489                 }
490
491                 image {
492                         function = FLAT_BOX
493                         recolorable = TRUE
494                         stretch = TRUE
495                         file = "assets/null.png"
496                         border = {2, 2, 2, 2}
497                 }
498         }
499 }
500
501 style "scale" { # slider
502     # Modificado
503         xthickness      = 2
504         ythickness      = 2
505
506         bg[NORMAL]              = shade (0.90, "#8EBDDB")
507         bg[SELECTED]            = shade (0.90, "#8EBDDB")
508         bg[PRELIGHT]            = shade (0.90, "#8EBDDB")
509         bg[INSENSITIVE]         = shade (0.90, @bg_color)
510    
511         bg[ACTIVE]      = shade (0.95, @bg_color)
512
513         engine "murrine" {              
514         #gradient_shades                = {0.65,1.00,1.00,1.35}
515                 gradient_shades         = {0.95,1.05,1.10,1.30}
516                 glowstyle                       = 2 # 0 = top, 1 = bottom, 2 = top and bottom, 3 = horizontal, 4 = centered glow
517                 glow_shade          = 1.99
518                 roundness                   = 18
519                 border_shades                   = {0.7, 1.2}
520                 contrast                            = 0.6
521                 lightborderstyle                = 1             
522                 trough_shades                   = {0.9, 1.1}
523         }
524 }
525
526 style "scrollbar" {
527         bg[SELECTED]                = shade (0.74, @base_color)
528         bg[ACTIVE]                  = shade (0.96, @base_color)
529
530     # color flechas (stepper)   
531     fg[NORMAL]          = shade (1.00, @base_color)
532     fg[PRELIGHT]        = shade (1.00, @base_color)
533     fg[ACTIVE]          = shade (1.00, @base_color)
534     fg[SELECTED]        = shade (1.00, @base_color)
535     fg[INSENSITIVE]     = shade (1.00, @base_color)
536         
537         engine "murrine" {
538         roundness               = 8
539         gradient_shades                 = {1.0,1.0,1.0,1.0}
540         highlight_shade                 = 1.0
541         glow_shade              = 1.0
542         #reliefstyle             = 0
543         prelight_shade          = .75
544         gradient_colors         = FALSE
545         lightborder_shade       = 1.0
546         lightborderstyle        = 0
547         trough_shades           = {1.06, 1.11}
548         border_shades           = {1.24, 1.24}
549         contrast                = 0.00
550         }
551 }
552
553 style "overlay_scrollbar"
554 {
555         bg[SELECTED]                            = shade (1.0, @selected_bg_color)
556         bg[INSENSITIVE]                         = shade (0.85, @bg_color)
557         bg[ACTIVE]                                      = shade (0.6, @bg_color)
558 }
559
560 style "spinbutton" = "button" { # input/stepper 
561         #bg[NORMAL]             = "#FFF"
562         engine "murrine" {
563                 contrast                        = 0.90
564                 lightborderstyle        = 0
565                 border_shades       = {1.1, 0.9}
566         lightborder_shade       = 1.30
567         }
568 }
569
570 style "toolbar" {
571         
572         engine "murrine" {
573                 contrast                = 0.80
574                 lightborder_shade               = 1.00       
575                 gradient_shades         = {0.98,1.00,1.00,1.02}        
576                 # gradient_shades       = {1.00,0.98,0.98,0.96}  # En Unity
577         }
578 }
579
580 style "toolbar_button" {
581     xthickness  = 3
582     ythickness  = 3
583
584     bg[PRELIGHT]                    = shade (1.05, "#BBCCEE")
585     bg[ACTIVE]                      = shade (1.00, "#BBCCEE")   # Pulsado
586         bg[SELECTED]                                = shade (0.95, "#BBCCEE")   # Default enter
587         bg[INSENSITIVE]                             = shade (0.95, "#FFF")
588
589         engine "murrine" {
590                 border_shades           = {1.00, 1.00}
591                 contrast                = 0.8
592                 gradient_shades         = {1.00,0.96,0.96,0.92}
593                 lightborderstyle                = 1
594                 textstyle               = 1
595         }
596
597 }
598
599 style "tooltips" {
600         xthickness      = 8
601         ythickness      = 4
602
603         bg[NORMAL]      = @tooltip_bg_color
604         fg[NORMAL]      = @tooltip_fg_color
605
606         GtkWidget::new-tooltip-style    = 0
607
608         engine "murrine" {
609                 border_colors   = { "#343434", "#343434" }
610         }
611 }
612
613 style "treeview" {
614
615         engine "murrine" {
616                 gradient_shades         = {1.0, 1.0, 1.0, 1.0}
617         separatorstyle = 0
618         }
619 }
620
621 style "treeview_header" = "button" {
622         ythickness      = 1
623     GtkWidget   ::focus-padding         = 0
624
625     bg[ACTIVE]                      = shade (1.00, "#80B8EA")   # Pulsado
626     bg[NORMAL]                      = shade (0.96, "#FFF")
627     bg[PRELIGHT]                    = shade (1.05, "#80B8EA")
628         bg[SELECTED]                                = shade (0.95, "#80B8EA")   # Default enter
629         bg[INSENSITIVE]                             = shade (1.00, "#FFF")
630
631         engine "murrine" {
632                 border_shades           = {1.2, 1.05}
633                 contrast                = 1.22
634                 gradient_shades         = {1.25,1.02,0.99,1.15}
635
636                 lightborderstyle                = 1
637                 textstyle               = 1
638         }
639 }
640
641 style "checkradio" = "button" {
642     xthickness  = 3
643     ythickness  = 3
644         GtkRadioButton::indicator-size                          = 16
645         GtkCheckButton::indicator-size                          = 16
646
647         base[NORMAL]                                    = shade (0.95, @base_color)                     # radiocheck normal
648         bg[SELECTED]                                = shade (1.25, "#5c8fe9")                   # radiocheck color checked
649
650         text[NORMAL]                    = shade (0.50, @selected_bg_color)      # indicador normal    
651         text[PRELIGHT]                  = shade (0.35, @selected_bg_color)      # indicador hover
652         text[ACTIVE]                                    = shade (0.15, @selected_bg_color)      # indicador click
653
654     bg[ACTIVE]                      = shade (0.80, @bg_color)   # button option "#80B8EA"
655
656         engine "murrine" {
657                 reliefstyle = 3
658         }
659 }
660
661 ###############################################################################
662 # The following part of the gtkrc applies the different styles to the widgets.
663 ###############################################################################
664
665 # The default style is applied to every widget
666 class "GtkWidget"                               style "default"
667 class "GtkSeparator"                    style "wide"
668 class "GtkFrame"                                style "wide"
669 class "GtkCalendar"                             style "wide"
670 class "GtkEntry"                                style "entry"
671
672
673 class "GtkSpinButton"                   style "spinbutton"
674 class "GtkScale"                                style "scale"
675 class "GtkVScale"                               style "scale"
676 class "GtkHScale"                               style "scale"
677
678 class "GtkScrollbar"                    style "scrollbar"
679 #widget "*ToggleSwitch*"                style "toolbar_button"
680 widget_class "*<GtkToolbar>" style "toolbar"
681 widget_class "*<GtkHandleBox>" style "toolbar"
682
683 # Overlay scrollbar
684 widget_class "*<OsScrollbar>"   style "overlay_scrollbar"
685 widget_class "*<OsThumb>"               style "overlay_scrollbar"
686 # General matching follows. The order is choosen so that the right styles override
687 # each other. EG. progressbar needs to be more important than the menu match.
688 widget_class "*<GtkButton>"                         style "button"
689 widget_class "*<GtkNotebook>"                   style "notebook"
690
691 widget_class "*<GtkSpinButton>.*.<GtkEntry>" style "entry"
692 widget_class "*<GtkMenuBar>*"                   style "menubar"
693 widget_class "*<GtkMenu>*"                          style "menu"
694 widget_class "*<GtkMenuItem>*"                  style "menu_item_white"
695 #widget_class "*<GtkMenuBar>.<GtkMenuItem>*"    style "menu_item_white"
696 #widget_class "*<GtkMenuBar>.<GtkMenuItem>*"    style "menu_item_black"
697
698 widget_class "*<GtkToolbar>.*.<GtkButton>*" style:highest  "toolbar_button"
699
700
701 widget_class "*.<GtkFrame>.<GtkLabel>"  style "frame_title"
702 widget_class "*.<GtkTreeView>*"                 style "treeview"
703
704 class "*GtkExpander*"                                   style "expander"
705
706 widget_class "*<GtkProgress>"                   style "progressbar"
707
708 # Treeview headers (and similar stock GTK+ widgets)
709 widget_class "*.<GtkTreeView>.<GtkButton>"      style "treeview_header"
710 widget_class "*.<GtkCTree>.<GtkButton>"         style "treeview_header"
711 widget_class "*.<GtkList>.<GtkButton>"          style "treeview_header"
712 widget_class "*.<GtkCList>.<GtkButton>"         style "treeview_header"
713
714 # The window of the tooltip is called "gtk-tooltip"
715 widget "gtk-tooltip*"                           style "tooltips"
716
717 widget_class "*<GtkCheckButton>*"                               style             "checkbutton"
718 widget_class "*<GtkDialog>*<GtkCheckButton>*"   style:highest "checkbutton"
719 widget_class "*<GtkFrame>*<GtkCheckButton>*"    style:highest "checkbutton"
720 widget_class "*<GtkNotebook>*<GtkCheckButton>*" style:highest "checkbutton"
721 widget_class "*<GtkCheckButton>*<GtkLabel>"             style:highest "checkradio_label"
722
723 widget_class "*<GtkRadioButton>*"                               style             "checkradio"
724 widget_class "*<GtkDialog>*<GtkRadioButton>*"   style:highest "radiobutton"
725 widget_class "*<GtkFrame>*<GtkRadioButton>*"    style:highest "radiobutton"
726 widget_class "*<GtkNotebook>*<GtkRadioButton>*" style:highest "radiobutton"
727 widget_class "*<GtkRadioButton>*<GtkLabel>"             style:highest "checkradio_label"
728
729 widget "MozillaGtkWidget*GtkCheck*"                             style:highest "checkbutton"
730 widget "MozillaGtkWidget*GtkRadio*"                             style:highest "radiobutton"
731
732 ##########################################################################
733 # Following are special cases and workarounds for issues in applications.
734 ##########################################################################
735 # For Google Chrome/Chromium integration.
736 style "chrome-gtk-frame" {
737     ChromeGtkFrame::frame-gradient-size                 = 120
738     ChromeGtkFrame::frame-color                                 = shade (0.46, @bg_color)
739     ChromeGtkFrame::inactive-frame-color                        = shade (0.46, @bg_color)
740     ChromeGtkFrame::frame-gradient-color                    = shade (0.96, @bg_color)
741     ChromeGtkFrame::inactive-frame-gradient-color       = shade (0.96, @bg_color)
742     ChromeGtkFrame::scrollbar-trough-color                      = shade (1.00, @bg_color)
743     ChromeGtkFrame::scrollbar-slider-prelight-color = shade (0.85, @bg_color)
744     ChromeGtkFrame::scrollbar-slider-normal-color       = shade (0.78, @bg_color)
745 }
746 class "ChromeGtkFrame"  style "chrome-gtk-frame"
747
748 # For places where the text color is used instead of the fg color.
749 style "text_is_fg_color_workaround" {
750         text[NORMAL]            = @fg_color
751         text[PRELIGHT]          = @fg_color
752         text[SELECTED]          = @selected_fg_color
753         text[ACTIVE]            = @fg_color
754         text[INSENSITIVE]       = darker (@bg_color)
755 }
756 widget_class "*.<GtkComboBox>.<GtkCellView>"    style "text_is_fg_color_workaround"
757
758 # For menus where the text color is used instead of the fg color.
759 style "menuitem_text_is_fg_color_workaround" {
760         text[NORMAL]            = @fg_color
761         text[PRELIGHT]          = @selected_fg_color
762         text[SELECTED]          = @selected_fg_color
763         text[ACTIVE]            = @fg_color
764         text[INSENSITIVE]       = darker (@bg_color)
765 }
766 widget "*.gtk-combobox-popup-menu.*"    style "menuitem_text_is_fg_color_workaround"
767
768 # For places where the fg color is used instead of the text color.
769 style "fg_is_text_color_workaround" {
770         fg[NORMAL]              = @text_color
771         fg[PRELIGHT]    = @text_color
772         fg[SELECTED]    = @selected_fg_color
773         fg[ACTIVE]              = @selected_fg_color
774         fg[INSENSITIVE] = darker (@bg_color)
775 }
776 widget_class "*<GtkListItem>*"          style "fg_is_text_color_workaround"
777 widget_class "*<GtkCList>"                  style "fg_is_text_color_workaround"
778 widget_class "*<EelEditableLabel>"      style "fg_is_text_color_workaround"
779
780 # For gvim scrollbars.
781 style "vim-scrollbar" = "scrollbar" {
782         GtkScrollbar    ::slider_width          = 16
783         GtkScrollbar    ::stepper_size          = 16
784
785         engine "pixmap" {
786                 image {
787                         function        = BOX
788                         orientation     = VERTICAL
789                         file            = "assets/scroll-background.png"
790                 }
791         }
792 }
793 widget "vim-main-window.*Scrollbar*"    style "vim-scrollbar"
794
795 # For Eclipse (swt) toolbars.
796 widget "*swt*toolbar*"                  style "default"
797
798