OSDN Git Service

initial commit
[pacbang-linux/pacbang-gtk-theme.git] / gtk / BoxFlatRed / gtk-2.0 / main.rc
1 style "default" {
2
3   xthickness = 1
4   ythickness = 1
5
6   # Style Properties
7
8   GtkWidget::focus-line-width = 1
9   GtkMenuBar::window-dragging = 1
10   GtkToolbar::window-dragging = 1
11   GtkToolbar::internal-padding = 4
12   GtkToolButton::icon-spacing = 4
13
14   GtkWidget::tooltip-radius = 2
15   GtkWidget::tooltip-alpha = 235
16   GtkWidget::new-tooltip-style = 1 #for compatibility
17
18   GtkSeparatorMenuItem::horizontal-padding = 3
19   GtkSeparatorMenuItem::wide-separators = 1
20   GtkSeparatorMenuItem::separator-height = 1
21
22   GtkButton::child-displacement-y = 0
23   GtkButton::default-border = { 0, 0, 0, 0 }
24   GtkButton::default-outside_border = { 0, 0, 0, 0 }
25
26   GtkEntry::state-hint = 1
27
28   GtkScrollbar::trough-border = 0
29   GtkRange::trough-border = 0
30   GtkRange::slider-width = 13
31   GtkRange::stepper-size = 0
32
33   GtkScrollbar::activate-slider = 1
34   GtkScrollbar::has-backward-stepper = 0  
35   GtkScrollbar::has-forward-stepper = 0
36   GtkScrollbar::min-slider-length = 32
37   GtkScrolledWindow::scrollbar-spacing = 0
38   GtkScrolledWindow::scrollbars-within-bevel = 1
39
40   GtkScale::slider_length = 15
41   GtkScale::slider_width = 15
42   GtkScale::trough-side-details = 1
43
44   GtkProgressBar::min-horizontal-bar-height = 8
45   GtkProgressBar::min-vertical-bar-width = 8
46
47   GtkStatusbar::shadow_type = GTK_SHADOW_NONE
48   GtkSpinButton::shadow_type = GTK_SHADOW_NONE
49   GtkMenuBar::shadow-type = GTK_SHADOW_NONE
50   GtkToolbar::shadow-type = GTK_SHADOW_NONE
51   GtkMenuBar::internal-padding = 0 #( every window is misaligned for the sake of menus ):
52   GtkMenu::horizontal-padding = 0
53   GtkMenu::vertical-padding = 0
54
55   GtkCheckButton::indicator_spacing = 3
56   GtkOptionMenu::indicator_spacing = { 8, 2, 0, 0 }
57
58   GtkTreeView::row_ending_details = 0
59   GtkTreeView::expander-size = 11
60   GtkTreeView::vertical-separator = 4
61   GtkTreeView::horizontal-separator = 4
62   GtkTreeView::allow-rules = 1
63
64   GtkExpander::expander-size = 11
65
66   GnomeHRef::link_color = @link_color
67   GtkHTML::link-color = @link_color
68   GtkIMHtmlr::hyperlink-color = @link_color
69   GtkIMHtml::hyperlink-color = @link_color
70   GtkWidget::link-color = @link_color
71   GtkWidget::visited-link-color = @text_color
72
73   # Colors
74
75   bg[NORMAL] = @bg_color
76   bg[PRELIGHT] = shade (1.02, @bg_color)
77   bg[SELECTED] = @selected_bg_color
78   bg[INSENSITIVE] = @insensitive_bg_color
79   bg[ACTIVE] = shade (0.9, @bg_color)
80
81   fg[NORMAL] = @text_color
82   fg[PRELIGHT] = @fg_color
83   fg[SELECTED] = @selected_fg_color
84   fg[INSENSITIVE] = @insensitive_fg_color
85   fg[ACTIVE] = @fg_color
86
87   text[NORMAL] = @text_color
88   text[PRELIGHT] = @text_color
89   text[SELECTED] = @selected_fg_color
90   text[INSENSITIVE] = @insensitive_fg_color
91   text[ACTIVE] = @selected_fg_color
92
93   base[NORMAL] = @base_color
94   base[PRELIGHT] = shade (0.95, @bg_color)
95   base[SELECTED] = @selected_bg_color
96   base[INSENSITIVE] = @bg_color
97   base[ACTIVE] = shade (0.9, @selected_bg_color)
98
99   # For succinctness, all reasonable pixmap options remain here
100
101   engine "pixmap" {
102
103     # Check Buttons
104
105     image {
106       function  = CHECK
107       recolorable = TRUE
108       state = NORMAL
109       shadow = OUT
110       overlay_file = "assets/checkbox-unchecked.png"
111       overlay_stretch = FALSE
112     }
113
114     image {
115       function = CHECK
116       recolorable = TRUE
117       state = PRELIGHT
118       shadow = OUT
119       overlay_file = "assets/checkbox-unchecked.png"
120       overlay_stretch = FALSE
121     }
122
123     image {
124       function = CHECK
125       recolorable = TRUE
126       state = ACTIVE
127       shadow = OUT
128       overlay_file = "assets/checkbox-unchecked.png"
129       overlay_stretch = FALSE
130     }
131
132     image {
133       function = CHECK
134       recolorable = TRUE
135       state = SELECTED
136       shadow = OUT
137       overlay_file = "assets/checkbox-unchecked.png"
138       overlay_stretch = FALSE
139     }
140
141     image {
142       function = CHECK
143       recolorable = TRUE
144       state = INSENSITIVE
145       shadow = OUT
146       overlay_file = "assets/checkbox-unchecked-insensitive.png"
147       overlay_stretch = FALSE
148     }
149
150     image {
151       function = CHECK
152       recolorable = TRUE
153       state = NORMAL
154       shadow = IN
155       overlay_file = "assets/checkbox-checked.png"
156       overlay_stretch = FALSE
157     }
158
159     image {
160       function = CHECK
161       recolorable = TRUE
162       state = PRELIGHT
163       shadow = IN
164       overlay_file = "assets/checkbox-checked.png"
165       overlay_stretch = FALSE
166     }
167
168     image {
169       function = CHECK
170       recolorable = TRUE
171       state = ACTIVE
172       shadow = IN
173       overlay_file = "assets/checkbox-checked.png"
174       overlay_stretch = FALSE
175     }
176
177     image {
178       function = CHECK
179       recolorable = TRUE
180       state = SELECTED
181       shadow = IN
182       overlay_file = "assets/checkbox-checked.png"
183       overlay_stretch = FALSE
184     }
185
186     image {
187       function = CHECK
188       recolorable = TRUE
189       state = INSENSITIVE
190       shadow = IN
191       overlay_file = "assets/checkbox-checked-insensitive.png"
192       overlay_stretch = FALSE
193     }
194
195     # Radio Buttons
196
197     image {
198       function = OPTION
199       state = NORMAL
200       shadow = OUT
201       overlay_file = "assets/radio-unchecked.png"
202       overlay_stretch = FALSE
203     }
204
205     image {
206       function = OPTION
207       state = PRELIGHT
208       shadow = OUT
209       overlay_file = "assets/radio-unchecked.png"
210       overlay_stretch = FALSE
211     }
212
213     image {
214       function = OPTION
215       state = ACTIVE
216       shadow = OUT
217       overlay_file = "assets/radio-unchecked.png"
218       overlay_stretch = FALSE
219     }
220
221     image {
222       function = OPTION
223       state = SELECTED
224       shadow = OUT
225       overlay_file = "assets/radio-unchecked.png"
226       overlay_stretch = FALSE
227     }
228
229     image {
230       function = OPTION
231       state = INSENSITIVE
232       shadow = OUT
233       overlay_file = "assets/radio-unchecked-insensitive.png"
234       overlay_stretch = FALSE
235     }
236
237     image {
238       function = OPTION
239       state = NORMAL
240       shadow = IN
241       overlay_file = "assets/radio-checked.png"
242       overlay_stretch = FALSE
243     }
244
245     image {
246       function = OPTION
247       state = PRELIGHT
248       shadow = IN
249       overlay_file = "assets/radio-checked.png"
250       overlay_stretch = FALSE
251     }
252
253     image {
254       function = OPTION
255       state = ACTIVE
256       shadow = IN
257       overlay_file = "assets/radio-checked.png"
258       overlay_stretch = FALSE
259     }
260
261     image {
262       function = OPTION
263       state = SELECTED
264       shadow = IN
265       overlay_file = "assets/radio-checked.png"
266       overlay_stretch = FALSE
267     }
268
269     image {
270       function = OPTION
271       state = INSENSITIVE
272       shadow = IN
273       overlay_file = "assets/radio-checked-insensitive.png"
274       overlay_stretch = FALSE
275     }
276
277     # Arrows
278
279     image {
280       function = ARROW
281       overlay_file = "assets/arrow-up.png"
282       overlay_border = { 0, 0, 0, 0 }
283       overlay_stretch = FALSE
284       arrow_direction = UP
285     }
286
287     image {
288       function = ARROW
289       state = PRELIGHT
290       overlay_file = "assets/arrow-up-prelight.png"
291       overlay_border = { 0, 0, 0, 0 }
292       overlay_stretch = FALSE
293       arrow_direction = UP
294     }
295
296     image {
297       function = ARROW
298       state = ACTIVE
299       overlay_file = "assets/arrow-up-prelight.png"
300       overlay_border = { 0, 0, 0, 0 }
301       overlay_stretch = FALSE
302       arrow_direction = UP
303     }
304
305     image {
306       function = ARROW
307       state = INSENSITIVE
308       overlay_file = "assets/arrow-up-insens.png"
309       overlay_border = { 0, 0, 0, 0 }
310       overlay_stretch = FALSE
311       arrow_direction = UP
312     }
313
314     image {
315       function = ARROW
316       state = NORMAL
317       overlay_file = "assets/arrow-down.png"
318       overlay_border = { 0, 0, 0, 0 }
319       overlay_stretch = FALSE
320       arrow_direction = DOWN
321     }
322
323     image {
324       function = ARROW
325       state = PRELIGHT
326       overlay_file = "assets/arrow-down-prelight.png"
327       overlay_border = { 0, 0, 0, 0 }
328       overlay_stretch = FALSE
329       arrow_direction = DOWN
330     }
331
332     image {
333       function = ARROW
334       state = ACTIVE
335       overlay_file = "assets/arrow-down-prelight.png"
336       overlay_border = { 0, 0, 0, 0 }
337       overlay_stretch = FALSE
338       arrow_direction = DOWN
339     }
340
341     image {
342       function = ARROW
343       state = INSENSITIVE
344       overlay_file = "assets/arrow-down-insens.png"
345       overlay_border = { 0, 0, 0, 0 }
346       overlay_stretch = FALSE
347       arrow_direction = DOWN
348     }
349
350     image {
351       function = ARROW
352       overlay_file = "assets/arrow-left.png"
353       overlay_border = { 0, 0, 0, 0 }
354       overlay_stretch = FALSE
355       arrow_direction = LEFT
356     }
357
358     image {
359       function = ARROW
360       state= PRELIGHT
361       overlay_file = "assets/arrow-left-prelight.png"
362       overlay_border = { 0, 0, 0, 0 }
363       overlay_stretch = FALSE
364       arrow_direction = LEFT
365     }
366
367     image {
368       function = ARROW
369       state = ACTIVE
370       overlay_file = "assets/arrow-left-prelight.png"
371       overlay_border = { 0, 0, 0, 0 }
372       overlay_stretch = FALSE
373       arrow_direction = LEFT
374     }
375
376     image {
377       function = ARROW
378       state = INSENSITIVE
379       overlay_file = "assets/arrow-left-insens.png"
380       overlay_border = { 0, 0, 0, 0 }
381       overlay_stretch = FALSE
382       arrow_direction = LEFT
383     }
384
385     image {
386       function = ARROW
387       overlay_file = "assets/arrow-right.png"
388       overlay_border = { 0, 0, 0, 0 }
389       overlay_stretch = FALSE
390       arrow_direction = RIGHT
391     }
392
393     image {
394       function = ARROW
395       state = PRELIGHT
396       overlay_file = "assets/arrow-right-prelight.png"
397       overlay_border = { 0, 0, 0, 0 }
398       overlay_stretch = FALSE
399       arrow_direction = RIGHT
400     }
401
402     image {
403       function = ARROW
404       state = ACTIVE
405       overlay_file = "assets/arrow-right-prelight.png"
406       overlay_border = { 0, 0, 0, 0 }
407       overlay_stretch = FALSE
408       arrow_direction = RIGHT
409     }
410
411     image {
412       function = ARROW
413       state = INSENSITIVE
414       overlay_file = "assets/arrow-right-insens.png"
415       overlay_border = { 0, 0, 0, 0 }
416       overlay_stretch = FALSE
417       arrow_direction = RIGHT
418     }
419
420     # Option Menu Arrows
421
422     image {
423       function = TAB
424       state = INSENSITIVE
425       overlay_file = "assets/arrow-down-insens.png"
426       overlay_stretch = FALSE
427     }
428
429     image {
430       function = TAB
431       state = NORMAL
432       overlay_file = "assets/arrow-down.png"
433       overlay_border = { 0, 0, 0, 0 }
434       overlay_stretch = FALSE
435     }
436
437     image {
438       function = TAB
439       state = PRELIGHT
440       overlay_file = "assets/arrow-down-prelight.png"
441       overlay_border = { 0, 0, 0, 0 }
442       overlay_stretch = FALSE
443     }
444
445     # Lines
446
447     image {
448       function = VLINE
449       file = "assets/line-v.png"
450       border = { 0, 0, 0, 0 }
451       stretch = TRUE
452     }
453
454     image {
455       function = HLINE
456       file = "assets/line-h.png"
457       border = { 0, 0, 0, 0 }
458       stretch = TRUE
459     }
460
461     # Focuslines
462
463     image {
464       function = FOCUS
465       file = "assets/focus-line.png"
466       border = { 1, 1, 1, 1 }
467       stretch = TRUE
468     }
469
470     # Handles
471
472     image {
473       function = HANDLE
474       overlay_file = "assets/handle-h.png"
475       overlay_stretch = FALSE
476       orientation = HORIZONTAL
477     }
478
479     image {
480       function = HANDLE
481       overlay_file = "assets/handle-v.png"
482       overlay_stretch = FALSE
483       orientation = VERTICAL
484     }
485
486     # Expanders
487
488     image {
489       function = EXPANDER
490       expander_style = COLLAPSED
491       file = "assets/plus.png"
492     }
493
494     image {
495       function = EXPANDER
496       expander_style = EXPANDED
497       file = "assets/minus.png"
498     }
499
500     image {
501       function = EXPANDER
502       expander_style = SEMI_EXPANDED
503       file = "assets/minus.png"
504     }
505
506     image {
507       function = EXPANDER
508       expander_style = SEMI_COLLAPSED
509       file = "assets/plus.png"
510     }
511
512     image {
513       function = RESIZE_GRIP
514       state = NORMAL
515       detail = "statusbar"
516       overlay_file = "assets/null.png"  
517       overlay_border = { 0,0,0,0 }
518       overlay_stretch = FALSE
519     }
520
521     # Shadows ( this area needs help :P )
522
523     image {
524       function = SHADOW_GAP
525       file = "assets/null.png"
526       border = { 4, 4, 4, 4 }
527       stretch = TRUE
528     }
529   }
530 }
531
532
533 style "toplevel_hack" {
534
535   engine "adwaita" {
536   }
537 }
538
539 style "ooo_stepper_hack" {
540
541   GtkScrollbar::stepper-size = 0
542   GtkScrollbar::has-backward-stepper = 0
543   GtkScrollbar::has-forward-stepper = 0
544
545 }
546
547 style "scrollbar" {
548
549   engine "pixmap" {
550
551     image {
552       function = BOX
553       detail = "trough"
554       file = "assets/trough-scrollbar-horiz.png"
555       border = { 2, 2, 3, 3 }
556       stretch = TRUE
557       orientation = HORIZONTAL
558     }
559
560     image {
561       function = BOX
562       detail = "trough"
563       file = "assets/trough-scrollbar-vert.png"
564       border = { 3, 3, 2, 2 }
565       stretch = TRUE
566       orientation = VERTICAL
567     }
568
569     image {
570       function = ARROW
571       overlay_file = "assets/null.png"
572       overlay_border = { 0, 0, 0, 0 }
573       overlay_stretch = FALSE
574       arrow_direction = UP
575     }
576
577     image {
578       function = ARROW
579       overlay_file = "assets/null.png"
580       overlay_border = { 0, 0, 0, 0 }
581       overlay_stretch = FALSE
582       arrow_direction = DOWN
583     }
584
585     image {
586       function = ARROW
587       overlay_file = "assets/null.png"
588       overlay_border = { 0, 0, 0, 0 }
589       overlay_stretch = FALSE
590       arrow_direction = LEFT
591     }
592
593     image {
594       function = ARROW
595       overlay_file = "assets/null.png"
596       overlay_border = { 0, 0, 0, 0 }
597       overlay_stretch = FALSE
598       arrow_direction = RIGHT
599     }
600
601     # Sliders
602
603     image {
604       function = SLIDER
605       state = NORMAL
606       file = "assets/slider-horiz.png" 
607       border = { 5, 5, 3, 3 }
608       stretch = TRUE
609       orientation = HORIZONTAL
610     }
611
612     image {
613       function = SLIDER
614       state = ACTIVE
615       file = "assets/slider-horiz-active.png" 
616       border = { 5, 5, 3, 3 }
617       stretch = TRUE
618       orientation = HORIZONTAL
619     }
620
621     image {
622       function = SLIDER
623       state = PRELIGHT
624       file = "assets/slider-horiz-prelight.png" 
625       border = { 5, 5, 3, 3 }
626       stretch = TRUE
627       orientation = HORIZONTAL
628     }
629
630     image {
631       function = SLIDER
632       state = INSENSITIVE
633       file = "assets/slider-horiz-insens.png"
634       border = { 5, 5, 3, 3 }
635       stretch = TRUE
636       orientation = HORIZONTAL
637     }
638
639 # X Verticals
640
641     image {
642       function = SLIDER
643       state = NORMAL
644       file = "assets/slider-vert.png" 
645       border = { 3, 3, 5, 5 }
646       stretch = TRUE
647       orientation = VERTICAL
648     }
649
650     image {
651       function = SLIDER
652       state = ACTIVE
653       file = "assets/slider-vert-active.png" 
654       border = { 3, 3, 5, 5 }
655       stretch = TRUE
656       orientation = VERTICAL
657     }
658
659     image {
660       function = SLIDER
661       state = PRELIGHT
662       file = "assets/slider-vert-prelight.png" 
663       border = { 3, 3, 5, 5 }
664       stretch = TRUE
665       orientation = VERTICAL
666     }
667
668     image {
669       function = SLIDER
670       state = INSENSITIVE
671       file = "assets/slider-vert-insens.png"
672       border = { 3, 3, 5, 5 }
673       stretch = TRUE
674       orientation = VERTICAL
675     }
676   }
677 }
678
679 style "menu" {
680
681   xthickness = 0
682   ythickness = 0
683
684   GtkMenuItem::arrow-scaling = 0.4
685
686   bg[NORMAL] = @menu_bg
687   bg[INSENSITIVE] = @menu_bg
688   bg[PRELIGHT] = @menu_bg
689
690   engine "pixmap" { # For menus that use horizontal lines rather than gtkseparator
691
692     image {
693       function = HLINE
694       file = "assets/null.png"
695       border = { 0, 0, 0, 0 }
696       stretch = TRUE
697     }
698   }
699 }
700
701 style "menu_item"
702 {
703   xthickness = 2
704   ythickness = 4
705
706   # HACK: Gtk doesn't actually read this value
707   # while rendering the menu items, but Libreoffice
708   # does; setting this value equal to the one in
709   # fg[PRELIGHT] ensures a code path in the LO theming code
710   # that falls back to a dark text color for menu item text
711   # highlight. The price to pay is black text on menus as well,
712   # but at least it's readable.
713   # See https://bugs.freedesktop.org/show_bug.cgi?id=38038
714   bg[SELECTED] = @selected_fg_color
715
716         fg[NORMAL] = @fg_color
717         fg[SELECTED] = @selected_fg_color
718   fg[PRELIGHT] = @selected_fg_color
719
720   text[PRELIGHT] = @selected_fg_color
721
722   engine "pixmap" {
723
724     image {
725       function = BOX
726       state = PRELIGHT
727       file = "assets/menuitem.png"
728       border = { 1, 0, 1, 0 }
729       stretch = TRUE
730     }
731
732     # Check Buttons
733
734     image {
735       function = CHECK
736       recolorable = TRUE
737       state = NORMAL
738       shadow = OUT
739       overlay_file = "assets/menu-checkbox-unchecked.png"
740       overlay_stretch = FALSE
741     }
742
743     image {
744       function = CHECK
745       recolorable = TRUE
746       state = PRELIGHT
747       shadow = OUT
748       overlay_file = "assets/menu-checkbox-unchecked.png"
749       overlay_stretch = FALSE
750     }
751
752     image {
753       function = CHECK
754       recolorable = TRUE
755       state = ACTIVE
756       shadow = OUT
757       overlay_file = "assets/menu-checkbox-unchecked.png"
758       overlay_stretch = FALSE
759     }
760
761     image {
762       function = CHECK
763       recolorable = TRUE
764       state = INSENSITIVE
765       shadow = OUT
766       overlay_file = "assets/menu-checkbox-unchecked-insensitive.png"
767       overlay_stretch = FALSE
768     }
769
770     image {
771       function = CHECK
772       recolorable = TRUE
773       state = NORMAL
774       shadow = IN
775       overlay_file = "assets/menu-checkbox-checked.png"
776       overlay_stretch = FALSE
777     }
778
779     image {
780       function = CHECK
781       recolorable = TRUE
782       state = PRELIGHT
783       shadow = IN
784       overlay_file = "assets/menu-checkbox-checked.png"
785       overlay_stretch = FALSE
786     }
787
788     image {
789       function = CHECK
790       recolorable = TRUE
791       state = ACTIVE
792       shadow = IN
793       overlay_file = "assets/menu-checkbox-checked.png"
794       overlay_stretch = FALSE
795     }
796
797     image {
798       function = CHECK
799       recolorable = TRUE
800       state = INSENSITIVE
801       shadow = IN
802       overlay_file = "assets/menu-checkbox-checked-insensitive.png"
803       overlay_stretch = FALSE
804     }
805
806     # Radio Buttons
807
808     image {
809       function = OPTION
810       state = NORMAL
811       shadow = OUT
812       overlay_file = "assets/menu-radio-unchecked.png"
813       overlay_stretch = FALSE
814     }
815
816     image {
817       function = OPTION
818       state = PRELIGHT
819       shadow = OUT
820       overlay_file = "assets/menu-radio-unchecked.png"
821       overlay_stretch = FALSE
822     }
823
824     image {
825       function = OPTION
826       state = ACTIVE
827       shadow = OUT
828       overlay_file = "assets/menu-radio-unchecked.png"
829       overlay_stretch = FALSE
830     }
831
832     image {
833       function = OPTION
834       state = INSENSITIVE
835       shadow = OUT
836       overlay_file = "assets/menu-radio-unchecked-insensitive.png"
837       overlay_stretch = FALSE
838     }
839
840     image {
841       function = OPTION
842       state = NORMAL
843       shadow = IN
844       overlay_file = "assets/menu-radio-checked.png"
845       overlay_stretch = FALSE
846     }
847
848     image {
849       function = OPTION
850       state = PRELIGHT
851       shadow = IN
852       overlay_file = "assets/menu-radio-checked.png"
853       overlay_stretch = FALSE
854     }
855
856     image {
857       function = OPTION
858       state = ACTIVE
859       shadow = IN
860       overlay_file = "assets/menu-radio-checked.png"
861       overlay_stretch = FALSE
862     }
863
864     image {
865       function = OPTION
866       state = INSENSITIVE
867       shadow = IN
868       overlay_file = "assets/menu-radio-checked-insensitive.png"
869       overlay_stretch = FALSE
870     }
871
872     image {
873       function = SHADOW # This fixes boxy Qt menu items
874       file = "assets/null.png"
875       border = { 4, 4, 4, 4 }
876       stretch = TRUE
877     }
878
879     # Arrow Buttons
880
881     image {
882       function = ARROW
883       state = NORMAL
884       overlay_file = "assets/menu-arrow.png"
885       overlay_border = { 0, 0, 0, 0 }
886       overlay_stretch = FALSE
887       arrow_direction = RIGHT
888     }
889
890     image {
891       function = ARROW
892       state = PRELIGHT
893       overlay_file = "assets/menu-arrow-prelight.png"
894       overlay_border = { 0, 0, 0, 0 }
895       overlay_stretch = FALSE
896       arrow_direction = RIGHT
897     }
898   }
899 }
900
901 style "button" {
902
903   xthickness = 4
904   ythickness = 4
905
906   engine "pixmap" {
907
908     image {
909       function = BOX
910       state = NORMAL
911       file = "assets/button.png"
912       border = { 4, 4, 4, 4 }
913       stretch = TRUE
914     }
915
916     image {
917       function = BOX
918       state = PRELIGHT
919       file = "assets/button-hover.png"
920       border = { 4, 4, 4, 4 }
921       stretch = TRUE
922     }
923
924     image {
925       function = BOX
926       state = ACTIVE
927       file = "assets/button-active.png"
928       border = { 4, 4, 4, 4 }
929       stretch = TRUE
930     }
931
932     image {
933       function = BOX
934       state = INSENSITIVE
935       file = "assets/button-insensitive.png"
936       border = { 4, 4, 4, 4 }
937       stretch = TRUE
938     }
939   }
940 }
941
942 style "checkbutton" {
943
944   fg[PRELIGHT] = @text_color
945   fg[ACTIVE] = @text_color
946
947 }
948
949 style "entry" {
950
951   xthickness = 6
952   ythickness = 4
953
954   base[NORMAL] = @base_color
955   base[INSENSITIVE] = @insensitive_bg_color
956
957   engine "pixmap" {
958
959     image {
960       function = SHADOW
961       detail = "entry"
962       state = NORMAL
963       shadow = IN
964       file = "assets/entry-border-bg.png"
965       border = { 12, 12, 12, 12 }
966       stretch = TRUE
967     }
968
969     image {
970       function = SHADOW
971       detail = "entry"
972       state = INSENSITIVE
973       shadow = IN
974       file = "assets/entry-border-disabled-bg.png"
975       border = { 12, 12, 12, 12 }
976       stretch = TRUE
977     }
978
979     image {
980       function = SHADOW
981       detail = "entry"
982       state = ACTIVE
983       file = "assets/entry-border-active-bg.png"
984       border = { 12, 12, 12, 12 }
985       stretch = TRUE
986     }
987
988     image {
989       function = FLAT_BOX
990       detail = "entry_bg"
991       state = NORMAL
992       overlay_file = "assets/null.png"
993       overlay_border = { 0, 0, 0, 0 }
994       overlay_stretch = TRUE
995     }
996
997     image {
998       function = FLAT_BOX
999       detail = "entry_bg"
1000       state = ACTIVE
1001       overlay_file = "assets/null.png"
1002       overlay_border = { 0, 0, 0, 0 }
1003       overlay_stretch = TRUE
1004     }
1005   }
1006 }
1007
1008 style "notebook_entry" {
1009   xthickness = 6
1010
1011   engine "pixmap" {
1012
1013     image {
1014       function = SHADOW
1015       detail = "entry"
1016       state = NORMAL
1017       shadow = IN
1018       file = "assets/notebook-entry-border-bg.png"
1019       border = { 12, 12, 12, 12 }
1020       stretch = TRUE
1021     }
1022
1023     image {
1024       function = SHADOW
1025       detail = "entry"
1026       state = INSENSITIVE
1027       shadow = IN
1028       file = "assets/notebook-entry-border-disabled-bg.png"
1029       border = { 12, 12, 12, 12 }
1030       stretch = TRUE
1031     }
1032
1033     image {
1034       function = SHADOW
1035       detail = "entry"
1036       state = ACTIVE
1037       file = "assets/notebook-entry-border-active-bg.png"
1038       border = { 12, 12, 12, 12 }
1039       stretch = TRUE
1040     }
1041
1042     image {
1043       function = FLAT_BOX
1044       detail = "entry_bg"
1045       state = NORMAL
1046       overlay_file = "assets/null.png"
1047       overlay_border = { 0, 0, 0, 0 }
1048       overlay_stretch = TRUE
1049     }
1050
1051     image {
1052       function = FLAT_BOX
1053       detail = "entry_bg"
1054       state = ACTIVE
1055       overlay_file = "assets/null.png"
1056       overlay_border = { 0, 0, 0, 0 }
1057       overlay_stretch = TRUE
1058     }
1059   }
1060 }
1061
1062 style "notebook_tab_label" {
1063
1064  fg[ACTIVE] = @text_color
1065
1066 }
1067
1068 style "combobox_entry"
1069 {
1070   xthickness = 3
1071   ythickness = 4
1072
1073   engine "pixmap" {
1074
1075     # LTR version
1076
1077     image {
1078       function = SHADOW
1079       detail = "entry"
1080       state = NORMAL
1081       shadow = IN
1082       file = "assets/combo-entry.png"
1083       border = { 4, 4, 5, 4 }
1084       stretch = TRUE
1085       direction = LTR
1086     }
1087
1088     image {
1089       function = SHADOW
1090       detail = "entry"
1091       state = INSENSITIVE
1092       shadow = IN
1093       file = "assets/combo-entry-insensitive.png"
1094       border = { 4, 4, 5, 4 }
1095       stretch = TRUE
1096       direction = LTR
1097     }
1098
1099     image {
1100       function = SHADOW
1101       detail = "entry"
1102       state = ACTIVE
1103       file = "assets/combo-entry-focus.png"
1104       border = { 4, 4, 5, 4 }
1105       stretch = TRUE
1106       direction = LTR
1107     }
1108
1109     # RTL version
1110
1111     image {
1112       function = SHADOW
1113       detail = "entry"
1114       state = NORMAL
1115       shadow = IN
1116       file = "assets/combo-entry-rtl.png"
1117       border = { 4, 4, 5, 4 }
1118       stretch = TRUE
1119       direction = RTL
1120     }
1121
1122     image {
1123       function = SHADOW
1124       detail = "entry"
1125       state = INSENSITIVE
1126       shadow = IN
1127       file = "assets/combo-entry-insensitive-rtl.png"
1128       border = { 4, 4, 5, 4 }
1129       stretch = TRUE
1130       direction = RTL
1131     }
1132
1133     image {
1134       function = SHADOW
1135       detail = "entry"
1136       state = ACTIVE
1137       file = "assets/combo-entry-focus-rtl.png"
1138       border = { 4, 4, 5, 4 }
1139       stretch = TRUE
1140       direction = RTL
1141     }
1142   }
1143 }
1144
1145 style "notebook_combobox_entry" {
1146
1147   engine "pixmap" {
1148
1149     # LTR version
1150
1151     image {
1152       function = SHADOW
1153       detail = "entry"
1154       state = NORMAL
1155       shadow = IN
1156       file = "assets/combo-entry-notebook.png"
1157       border = { 4, 4, 5, 4 }
1158       stretch = TRUE
1159       direction = LTR
1160     }
1161
1162     image {
1163       function = SHADOW
1164       detail = "entry"
1165       state = INSENSITIVE
1166       shadow = IN
1167       file = "assets/combo-entry-insensitive-notebook.png"
1168       border = { 4, 4, 5, 4 }
1169       stretch = TRUE
1170       direction = LTR
1171     }
1172
1173     image {
1174       function = SHADOW
1175       detail = "entry"
1176       state = ACTIVE
1177       file = "assets/combo-entry-focus-notebook.png"
1178       border = { 4, 4, 5, 4 }
1179       stretch = TRUE
1180       direction = LTR
1181     }
1182
1183     # RTL version
1184
1185     image {
1186       function = SHADOW
1187       detail = "entry"
1188       state = NORMAL
1189       shadow = IN
1190       file = "assets/combo-entry-notebook-rtl.png"
1191       border = { 4, 4, 5, 4 }
1192       stretch = TRUE
1193       direction = RTL
1194     }
1195
1196     image {
1197       function = SHADOW
1198       detail = "entry"
1199       state = INSENSITIVE
1200       shadow = IN
1201       file = "assets/combo-entry-insensitive-notebook-rtl.png"
1202       border = { 4, 4, 5, 4 }
1203       stretch = TRUE
1204       direction = RTL
1205     }
1206
1207     image {
1208       function = SHADOW
1209       detail = "entry"
1210       state = ACTIVE
1211       file = "assets/combo-entry-focus-notebook-rtl.png"
1212       border = { 4, 4, 5, 4 }
1213       stretch = TRUE
1214       direction = RTL
1215     }
1216   }
1217 }
1218
1219 style "combobox_entry_button"
1220 {
1221   xthickness = 6
1222
1223   fg[ACTIVE] = @text_color
1224
1225   engine "pixmap" {
1226
1227     # LTR version
1228
1229     image {
1230       function = BOX
1231       state = NORMAL
1232       file = "assets/combo-entry-button.png"
1233       border = { 4, 4, 5, 4 }
1234       stretch = TRUE
1235       direction = LTR
1236     }
1237
1238     image {
1239       function = BOX
1240       state = PRELIGHT
1241       file = "assets/combo-entry-button.png"
1242       border = { 4, 4, 5, 4 }
1243       stretch = TRUE
1244       direction = LTR
1245     }
1246
1247     image {
1248       function = BOX
1249       state = INSENSITIVE
1250       file = "assets/combo-entry-button-insensitive.png"
1251       border = { 4, 4, 5, 4 }
1252       stretch = TRUE
1253       direction = LTR
1254     }
1255
1256     image {
1257       function = BOX
1258       state = ACTIVE
1259       file = "assets/combo-entry-button-active.png"
1260       border = { 4, 4, 5, 4 }
1261       stretch = TRUE
1262       direction = LTR
1263     }
1264
1265     # RTL version
1266     image {
1267       function = BOX
1268       state = NORMAL
1269       file = "assets/combo-entry-button-rtl.png"
1270       border = { 4, 4, 5, 4 }
1271       stretch = TRUE
1272       direction = RTL
1273     }
1274
1275     image {
1276       function = BOX
1277       state = PRELIGHT
1278       file = "assets/combo-entry-button-rtl.png"
1279       border = { 4, 4, 5, 4 }
1280       stretch = TRUE
1281       direction = RTL
1282     }
1283
1284     image {
1285       function = BOX
1286       state = INSENSITIVE
1287       file = "assets/combo-entry-button-insensitive-rtl.png"
1288       border = { 4, 4, 5, 4 }
1289       stretch = TRUE
1290       direction = RTL
1291     }
1292
1293     image {
1294       function = BOX
1295       state = ACTIVE
1296       file = "assets/combo-entry-button-active-rtl.png"
1297       border = { 4, 4, 5, 4 }
1298       stretch = TRUE
1299       direction = RTL
1300     }
1301   }
1302 }
1303
1304 style "spinbutton" {
1305
1306   bg[NORMAL] = @bg_color
1307
1308   xthickness = 6
1309   ythickness = 4
1310
1311   engine "pixmap" {
1312
1313     image {
1314     function = ARROW
1315     }
1316
1317     # Spin-Up LTR
1318
1319     image {
1320       function = BOX
1321       state = NORMAL
1322       detail = "spinbutton_up"
1323       file = "assets/up-background.png"
1324       border = { 1, 4, 5, 0 }
1325       stretch = TRUE
1326       overlay_file = "assets/arrow-up-small.png"
1327       overlay_stretch = FALSE
1328       direction = LTR
1329     }
1330
1331     image {
1332       function = BOX
1333       state = PRELIGHT
1334       detail = "spinbutton_up"
1335       file = "assets/up-background.png"
1336       border = { 1, 4, 5, 0 }
1337       stretch = TRUE
1338       overlay_file = "assets/arrow-up-small-prelight.png"
1339       overlay_stretch = FALSE
1340       direction = LTR
1341     }
1342
1343     image {
1344       function = BOX
1345       state = INSENSITIVE
1346       detail = "spinbutton_up"
1347       file = "assets/up-background-disable.png"
1348       border = { 1, 4, 5, 0 }
1349       stretch = TRUE
1350       overlay_file = "assets/arrow-up-small-insens.png"
1351       overlay_stretch = FALSE
1352       direction = LTR
1353     }
1354
1355     image {
1356       function = BOX
1357       state = ACTIVE
1358       detail = "spinbutton_up"
1359       file = "assets/up-background.png"
1360       border = { 1, 4, 5, 0 }
1361       stretch = TRUE
1362       overlay_file = "assets/arrow-up-small-prelight.png"
1363       overlay_stretch = FALSE
1364       direction = LTR
1365     }
1366
1367     # Spin-Up RTL
1368
1369     image {
1370       function = BOX
1371       state = NORMAL
1372       detail = "spinbutton_up"
1373       file = "assets/up-background-rtl.png"
1374       border = { 4, 1, 5, 0 }
1375       stretch = TRUE
1376       overlay_file = "assets/arrow-up-small.png"
1377       overlay_stretch = FALSE
1378       direction = RTL
1379     }
1380
1381     image {
1382       function = BOX
1383       state = PRELIGHT
1384       detail = "spinbutton_up"
1385       file = "assets/up-background-rtl.png"
1386       border = { 4, 1, 5, 0 }
1387       stretch = TRUE
1388       overlay_file = "assets/arrow-up-small-prelight.png"
1389       overlay_stretch = FALSE
1390       direction = RTL
1391     }
1392
1393     image {
1394       function = BOX
1395       state = INSENSITIVE
1396       detail = "spinbutton_up"
1397       file = "assets/up-background-disable-rtl.png"
1398       border = { 4, 1, 5, 0 }
1399       stretch = TRUE
1400       overlay_file = "assets/arrow-up-small-insens.png"
1401       overlay_stretch = FALSE
1402       direction = RTL
1403     }
1404
1405     image {
1406       function = BOX
1407       state = ACTIVE
1408       detail = "spinbutton_up"
1409       file = "assets/up-background-rtl.png"
1410       border = { 4, 1, 5, 0 }
1411       stretch   = TRUE
1412       overlay_file = "assets/arrow-up-small-prelight.png"
1413       overlay_stretch   = FALSE
1414       direction = RTL
1415     }
1416
1417     # Spin-Down LTR
1418
1419     image {
1420       function = BOX
1421       state = NORMAL
1422       detail = "spinbutton_down"
1423       file = "assets/down-background.png"
1424       border = { 1, 4, 1, 4 }
1425       stretch = TRUE
1426       overlay_file = "assets/arrow-down-small.png"
1427       overlay_stretch = FALSE
1428       direction = LTR
1429     }
1430
1431     image {
1432       function = BOX
1433       state = PRELIGHT
1434       detail = "spinbutton_down"
1435       file = "assets/down-background.png"
1436       border = { 1, 4, 1, 4 }
1437       stretch = TRUE
1438       overlay_file = "assets/arrow-down-small-prelight.png"
1439       overlay_stretch = FALSE
1440       direction = LTR
1441     }
1442
1443     image {
1444       function = BOX
1445       state = INSENSITIVE
1446       detail = "spinbutton_down"
1447       file = "assets/down-background-disable.png"
1448       border = { 1, 4, 1, 4 }
1449       stretch = TRUE
1450       overlay_file = "assets/arrow-down-small-insens.png"
1451       overlay_stretch = FALSE
1452       direction = LTR
1453     }
1454
1455     image {
1456       function = BOX
1457       state = ACTIVE
1458       detail = "spinbutton_down"
1459       file = "assets/down-background.png"
1460       border = { 1, 4, 1, 4 }
1461       stretch = TRUE
1462       overlay_file = "assets/arrow-down-small-prelight.png"
1463       overlay_stretch = FALSE
1464       direction = LTR
1465     }
1466
1467     # Spin-Down RTL
1468
1469     image {
1470       function = BOX
1471       state = NORMAL
1472       detail = "spinbutton_down"
1473       file = "assets/down-background-rtl.png"
1474       border = { 4, 1, 1, 4 }
1475       stretch = TRUE
1476       overlay_file = "assets/arrow-down-small.png"
1477       overlay_stretch = FALSE
1478       direction = RTL
1479     }
1480
1481     image {
1482       function = BOX
1483       state = PRELIGHT
1484       detail = "spinbutton_down"
1485       file = "assets/down-background-rtl.png"
1486       border = { 4, 1, 1, 4 }
1487       stretch = TRUE
1488       overlay_file = "assets/arrow-down-small-prelight.png"
1489       overlay_stretch = FALSE
1490       direction = RTL
1491     }
1492
1493     image {
1494       function = BOX
1495       state = INSENSITIVE
1496       detail = "spinbutton_down"
1497       file = "assets/down-background-disable-rtl.png"
1498       border = { 4, 1, 1, 4 }
1499       stretch = TRUE
1500       overlay_file = "assets/arrow-down-small-insens.png"
1501       overlay_stretch = FALSE
1502       direction = RTL
1503     }
1504
1505     image {
1506       function = BOX
1507       state = ACTIVE
1508       detail = "spinbutton_down"
1509       file = "assets/down-background-rtl.png"
1510       border = { 4, 1, 1, 4 }
1511       stretch = TRUE
1512       overlay_file = "assets/arrow-down-small-prelight.png"
1513       overlay_stretch = FALSE
1514       direction = RTL
1515     }
1516   }
1517 }
1518
1519 style "gimp_spin_scale" {
1520
1521   bg[NORMAL] = @base_color
1522
1523   engine "pixmap" {
1524
1525     image {
1526       function = FLAT_BOX
1527       detail = "entry_bg"
1528       state = NORMAL
1529     }
1530
1531     image {
1532       function = FLAT_BOX
1533       detail = "entry_bg"
1534       state = ACTIVE
1535     }
1536
1537     image {
1538       function = BOX
1539       state = NORMAL
1540       detail = "spinbutton_up"
1541       overlay_file = "assets/arrow-up-small.png"
1542       overlay_stretch = FALSE
1543     }
1544
1545     image {
1546       function = BOX
1547       state = PRELIGHT
1548       detail = "spinbutton_up"
1549       overlay_file = "assets/arrow-up-small-prelight.png"
1550       overlay_stretch = FALSE
1551     }
1552
1553     image {
1554       function = BOX
1555       state = ACTIVE
1556       detail = "spinbutton_up"
1557       overlay_file = "assets/arrow-up-small-prelight.png"
1558       overlay_stretch = FALSE
1559     }
1560
1561     image {
1562       function = BOX
1563       state = INSENSITIVE
1564       detail = "spinbutton_up"
1565       overlay_file = "assets/arrow-up-small-insens.png"
1566       overlay_stretch = FALSE
1567     }
1568
1569     image {
1570       function = BOX
1571       state = NORMAL
1572       detail = "spinbutton_down"
1573       overlay_file = "assets/arrow-down-small.png"
1574       overlay_stretch = FALSE
1575     }
1576
1577     image {
1578       function = BOX
1579       state = PRELIGHT
1580       detail = "spinbutton_down"
1581       overlay_file = "assets/arrow-down-small-prelight.png"
1582       overlay_stretch = FALSE
1583     }
1584
1585     image {
1586       function = BOX
1587       state = ACTIVE
1588       detail = "spinbutton_down"
1589       overlay_file = "assets/arrow-down-small-prelight.png"
1590       overlay_stretch = FALSE
1591     }
1592
1593     image {
1594       function = BOX
1595       state = INSENSITIVE
1596       detail = "spinbutton_down"
1597       overlay_file = "assets/arrow-down-small-insens.png"
1598       overlay_stretch = FALSE
1599     }
1600   }
1601 }
1602
1603 style "libreoffice_entry" {
1604
1605   engine "pixmap" {
1606
1607     image {
1608       function = FLAT_BOX
1609       detail = "entry_bg"
1610       state = NORMAL
1611       overlay_file = "assets/entry-border-fill.png"
1612       overlay_border = { 0, 0, 0, 0 }
1613       overlay_stretch = TRUE
1614     }
1615
1616     image {
1617       function = FLAT_BOX
1618       detail = "entry_bg"
1619       state = ACTIVE
1620       overlay_file = "assets/entry-border-fill.png"
1621       overlay_border = { 0, 0, 0, 0 }
1622       overlay_stretch = TRUE
1623     }
1624
1625     image {
1626       function = SHADOW
1627       detail = "entry"
1628       state = NORMAL
1629       shadow = IN
1630       file = "assets/entry-border-bg-solid.png"
1631       border = { 12, 12, 12, 12 }
1632       stretch = TRUE
1633     }
1634
1635     image {
1636       function = SHADOW
1637       detail = "entry"
1638       state = ACTIVE
1639       file = "assets/entry-border-active-bg-solid.png"
1640       border = { 12, 12, 12, 12 }
1641       stretch = TRUE
1642     }
1643   }
1644 }
1645
1646 style "standalone_entry" {
1647
1648   engine "pixmap" {
1649
1650     image {
1651       function = FLAT_BOX
1652       detail = "entry_bg"
1653       state = NORMAL
1654       file = "assets/entry-border-fill.png"
1655       stretch = TRUE
1656       border = { 0, 0, 0, 0 }
1657     }
1658
1659     image {
1660       function = FLAT_BOX
1661       detail = "entry_bg"
1662       state = ACTIVE
1663       file = "assets/entry-border-fill.png"
1664       stretch = TRUE
1665       border = { 0, 0, 0, 0 }
1666     }
1667
1668     image {
1669       function = SHADOW
1670       detail = "entry"
1671       state = NORMAL
1672       shadow = IN
1673       file = "assets/entry-border-bg-solid.png"
1674       border = { 12, 12, 12, 12 }
1675       stretch = TRUE
1676     }
1677
1678     image {
1679       function = SHADOW
1680       detail = "entry"
1681       state = ACTIVE
1682       file = "assets/entry-border-active-bg-solid.png"
1683       border = { 12, 12, 12, 12 }
1684       stretch = TRUE
1685     }
1686   }
1687 }
1688
1689 style "notebook" {
1690
1691   xthickness = 5
1692   ythickness = 2
1693
1694   engine "pixmap" {
1695
1696     image {
1697       function = EXTENSION
1698       state = ACTIVE
1699       file = "assets/null.png"
1700       border = { 0,0,0,0 }
1701       stretch = TRUE
1702       gap_side = TOP
1703     }
1704
1705     image {
1706       function = EXTENSION
1707       state = ACTIVE
1708       file = "assets/null.png"
1709       border = { 0,0,0,0 }
1710       stretch = TRUE
1711       gap_side = BOTTOM
1712     }
1713
1714     image {
1715       function = EXTENSION
1716       state = ACTIVE
1717       file = "assets/null.png"
1718       border = { 0,0,0,0 }
1719       stretch = TRUE
1720       gap_side = RIGHT
1721     }
1722
1723     image {
1724       function = EXTENSION
1725       state = ACTIVE
1726       file = "assets/null.png"
1727       border = { 0,0,0,0 }
1728       stretch = TRUE
1729       gap_side = LEFT
1730     }   
1731
1732     image {
1733       function = EXTENSION
1734       file = "assets/tab-top-active.png"
1735       border = { 3,3,3,3 }
1736       stretch = TRUE
1737       gap_side = BOTTOM
1738     }
1739
1740     image {
1741       function = EXTENSION
1742       file = "assets/tab-bottom-active.png"
1743       border = { 3,3,3,3 }
1744       stretch = TRUE
1745       gap_side = TOP
1746     }
1747
1748     image {
1749       function = EXTENSION
1750       file = "assets/tab-left-active.png"
1751       border = { 3,3,3,3 }
1752       stretch = TRUE
1753       gap_side = RIGHT
1754     }
1755
1756     image {
1757       function = EXTENSION
1758       file = "assets/tab-right-active.png"
1759       border = { 3,3,3,3 }
1760       stretch = TRUE
1761       gap_side = LEFT
1762     }
1763
1764     # How to draw boxes with a gap on one side (ie the page of a notebook)
1765
1766     image {
1767       function = BOX_GAP
1768       file = "assets/notebook.png" 
1769       border = { 4, 4, 4, 4 }
1770       stretch = TRUE
1771       gap_file = "assets/notebook-gap-horiz.png"
1772       gap_border = { 1, 1, 0, 0 }
1773       gap_side = TOP
1774     }
1775
1776     image {
1777       function = BOX_GAP
1778       file = "assets/notebook.png"
1779       border = { 4, 4, 4, 4 }
1780       stretch = TRUE
1781       gap_file = "assets/notebook-gap-horiz.png"
1782       gap_border = { 1, 1, 0, 0 }
1783       gap_side = BOTTOM
1784     }
1785
1786     image {
1787       function = BOX_GAP
1788       file = "assets/notebook.png"
1789       border = { 4, 4, 4, 4 }
1790       stretch = TRUE
1791       gap_file = "assets/notebook-gap-vert.png"
1792       gap_border = { 0, 0, 1, 1 }
1793       gap_side = LEFT
1794     }
1795
1796     image {
1797       function = BOX_GAP
1798       file = "assets/notebook.png" 
1799       border = { 4, 4, 4, 4 }
1800       stretch = TRUE
1801       gap_file = "assets/notebook-gap-vert.png"
1802       gap_border = { 0, 0, 1, 1 }
1803       gap_side = RIGHT
1804     }
1805
1806     # How to draw the box of a notebook when it isnt attached to a tab
1807
1808     image {
1809       function = BOX
1810       file = "assets/notebook.png"
1811       border = { 4, 4, 4, 4 }
1812       stretch = TRUE
1813     }
1814   }
1815 }
1816
1817 style "handlebox" {
1818
1819   engine "pixmap" {
1820
1821     image {
1822     function = BOX
1823     file = "assets/null.png"
1824     border = { 4, 4, 4, 4 }
1825     stretch = TRUE
1826     detail = "handlebox_bin"
1827     shadow = IN
1828     }
1829
1830     image {
1831     function = BOX
1832     file = "assets/null.png"
1833     border = { 4, 4, 4, 4 }
1834     stretch = TRUE
1835     detail = "handlebox_bin"
1836     shadow = OUT
1837     }
1838   }
1839 }
1840
1841 style "combobox_separator" {
1842
1843   xthickness = 0
1844   ythickness = 0
1845   GtkWidget::wide-separators = 1
1846
1847 }
1848
1849 style "combobox" {
1850
1851   xthickness = 0
1852   ythickness = 0
1853
1854 }
1855
1856 style "combobox_button" {
1857
1858   xthickness = 3
1859   ythickness = 3
1860
1861 }
1862
1863 style "range" {
1864
1865   engine "pixmap" {
1866
1867     image {
1868       function = BOX
1869       detail = "trough-upper"
1870       file = "assets/trough-horizontal.png"
1871       border = { 8, 8, 0, 0 }
1872       stretch = TRUE
1873       orientation = HORIZONTAL
1874     }
1875
1876     image {
1877       function = BOX
1878       detail = "trough-lower"
1879       file = "assets/trough-horizontal-active.png"
1880       border = { 8, 8, 0, 0 }
1881       stretch = TRUE
1882       orientation = HORIZONTAL
1883     }
1884
1885     image {
1886       function = BOX
1887       detail = "trough-upper"
1888       file = "assets/trough-vertical.png"
1889       border = { 0, 0, 8, 8 }
1890       stretch = TRUE
1891       orientation = VERTICAL
1892     }
1893
1894     image {
1895       function = BOX
1896       detail = "trough-lower"
1897       file = "assets/trough-vertical-active.png"
1898       border = { 0, 0, 8, 8 }
1899       stretch = TRUE
1900       orientation = VERTICAL
1901     }
1902
1903     # Horizontal
1904
1905     image {
1906       function = SLIDER
1907       state = NORMAL
1908       file = "assets/null.png"
1909       border = { 0, 0, 0, 0 }
1910       stretch = TRUE
1911       overlay_file = "assets/slider.png"
1912       overlay_stretch = FALSE
1913       orientation = HORIZONTAL
1914     }
1915
1916     image {
1917       function = SLIDER
1918       state = PRELIGHT
1919       file = "assets/null.png"
1920       border = { 0, 0, 0, 0 }
1921       stretch = TRUE
1922       overlay_file = "assets/slider-prelight.png"
1923       overlay_stretch = FALSE
1924       orientation = HORIZONTAL
1925     }
1926
1927     image {
1928       function = SLIDER
1929       state = INSENSITIVE
1930       file = "assets/null.png"
1931       border = { 0, 0, 0, 0 }
1932       stretch = TRUE
1933       overlay_file = "assets/slider-insensitive.png"
1934       overlay_stretch = FALSE
1935       orientation = HORIZONTAL
1936     }
1937
1938     # Vertical
1939
1940     image {
1941       function = SLIDER
1942       state = NORMAL
1943       file = "assets/null.png"
1944       border = { 0, 0, 0, 0 }
1945       stretch = TRUE
1946       overlay_file = "assets/slider.png"
1947       overlay_stretch = FALSE
1948       orientation = VERTICAL
1949     }
1950
1951     image {
1952       function = SLIDER
1953       state = PRELIGHT
1954       file = "assets/null.png"
1955       border = { 0, 0, 0, 0 }
1956       stretch = TRUE
1957       overlay_file = "assets/slider-prelight.png"
1958       overlay_stretch = FALSE
1959       orientation = VERTICAL
1960     }
1961
1962     image {
1963       function = SLIDER
1964       state = INSENSITIVE
1965       file = "assets/null.png"
1966       border = { 0, 0, 0, 0 }
1967       stretch = TRUE
1968       overlay_file = "assets/slider-insensitive.png"
1969       overlay_stretch = FALSE
1970       orientation = VERTICAL
1971     }
1972
1973     # Function below removes ugly boxes
1974
1975     image {
1976       function = BOX
1977       file = "assets/null.png"
1978       border = { 3, 3, 3, 3 }
1979       stretch = TRUE
1980     }
1981   }
1982 }
1983
1984 style "progressbar" {
1985
1986   xthickness = 1
1987   ythickness = 1
1988
1989   fg[NORMAL] = @fg_color
1990   fg[PRELIGHT] = @selected_fg_color
1991
1992   engine "pixmap" {
1993
1994     image {
1995       function = BOX
1996       detail = "trough"
1997       file = "assets/trough-progressbar.png"
1998       border = { 4, 4, 4, 4 }
1999       stretch = TRUE
2000       orientation = HORIZONTAL
2001     }
2002
2003     image {
2004       function = BOX
2005       detail = "bar"
2006       file = "assets/progressbar.png"
2007       stretch = TRUE
2008       border = { 3, 3, 3, 3 }
2009       orientation = HORIZONTAL
2010     }
2011
2012     image {
2013       function = BOX
2014       detail = "trough"
2015       file = "assets/trough-progressbar_v.png"
2016       border = { 4, 4, 4, 4 }
2017       stretch = TRUE
2018       orientation = VERTICAL
2019     }
2020
2021     image {
2022       function = BOX
2023       detail = "bar"
2024       file = "assets/progressbar_v.png"
2025       stretch = TRUE
2026       border = { 3, 3, 3, 3 }
2027       orientation = VERTICAL
2028     }
2029   }
2030 }
2031
2032 style "separator_menu_item" {
2033
2034   engine "pixmap" {
2035
2036     image {
2037       function = BOX
2038       file = "assets/null.png"
2039       border = { 0, 0, 1, 0 }
2040       stretch = TRUE
2041     }
2042   }
2043 }
2044
2045 style "treeview_header" {
2046   ythickness = 1
2047
2048   fg[PRELIGHT] = mix(0.70, @text_color, @base_color)
2049   font_name = "Bold"
2050
2051   engine "pixmap" {
2052
2053     image {
2054       function = BOX
2055       file = "assets/tree_header.png"
2056       border = { 1, 1, 1, 1 }
2057       stretch = TRUE
2058     }
2059   }
2060 }
2061
2062 # Treeview Rows
2063
2064 style "treeview" {
2065
2066   xthickness = 2
2067   ythickness = 0
2068
2069   base[NORMAL] = @base_color
2070
2071   engine "pixmap" {
2072
2073     image {
2074       function = FLAT_BOX
2075       recolorable = TRUE
2076       state = NORMAL
2077       file = "assets/null.png"
2078       stretch = TRUE
2079     }
2080   }
2081 }    
2082
2083 style "scrolled_window" {
2084
2085   xthickness = 1
2086   ythickness = 1
2087
2088   engine "pixmap" {
2089
2090     image {
2091       function = SHADOW
2092       file = "assets/frame.png"
2093       border = { 5, 5, 5, 5 }
2094       stretch = TRUE
2095     }
2096   }
2097 }
2098
2099 style "frame" {
2100
2101   xthickness = 1
2102   ythickness = 1
2103
2104   engine "pixmap" {
2105
2106     image {
2107       function = SHADOW
2108       file = "assets/frame.png"
2109       border = { 1, 1, 1, 1 }
2110       stretch = TRUE
2111       shadow = IN
2112     }
2113
2114     image {
2115       function = SHADOW_GAP
2116       file = "assets/frame.png"
2117       border = { 1, 1, 1, 1 }
2118       stretch = TRUE
2119       gap_start_file = "assets/frame-gap-start.png"
2120       gap_start_border = { 1, 0, 0, 0 }
2121       gap_end_file = "assets/frame-gap-end.png"
2122       gap_end_border = { 0, 1, 0, 0 }
2123       shadow = IN
2124     }
2125
2126     image {
2127       function = SHADOW
2128       file = "assets/frame.png"
2129       border = { 1, 1, 1, 1 }
2130       stretch = TRUE
2131       shadow = OUT
2132     }
2133
2134     image {
2135       function = SHADOW_GAP
2136       file = "assets/frame.png"
2137       border = { 1, 1, 1, 1 }
2138       stretch = TRUE
2139       gap_start_file = "assets/frame-gap-start.png"
2140       gap_start_border = { 1, 0, 0, 0 }
2141       gap_end_file = "assets/frame-gap-end.png"
2142       gap_end_border = { 0, 1, 0, 0 }
2143       shadow = OUT
2144     }
2145
2146     image {
2147       function = SHADOW
2148       file = "assets/frame.png"
2149       border = { 1, 1, 1, 1 }
2150       stretch = TRUE
2151       shadow = ETCHED_IN
2152     }
2153
2154     image {
2155       function = SHADOW_GAP
2156       file = "assets/frame.png"
2157       border = { 1, 1, 1, 1 }
2158       stretch = TRUE
2159       gap_start_file = "assets/frame-gap-start.png"
2160       gap_start_border = { 1, 0, 0, 0 }
2161       gap_end_file = "assets/frame-gap-end.png"
2162       gap_end_border = { 0, 1, 0, 0 }
2163       shadow = ETCHED_IN
2164     }
2165
2166     image {
2167       function = SHADOW
2168       file = "assets/frame.png"
2169       border = { 1, 1, 1, 1 }
2170       stretch = TRUE
2171       shadow = ETCHED_OUT
2172     }
2173
2174     image {
2175       function = SHADOW_GAP
2176       file = "assets/frame.png"
2177       border = { 1, 1, 1, 1 }
2178       stretch = TRUE
2179       gap_start_file = "assets/frame-gap-start.png"
2180       gap_start_border = { 1, 0, 0, 0 }
2181       gap_end_file = "assets/frame-gap-end.png"
2182       gap_end_border = { 0, 1, 0, 0 }
2183       shadow = ETCHED_OUT
2184     }
2185   }
2186 }
2187
2188 style "gimp_toolbox_frame" {
2189
2190   engine "pixmap" {
2191
2192     image {
2193       function = SHADOW
2194     }
2195   }
2196 }
2197
2198 style "toolbar" {
2199
2200   engine "pixmap" {
2201
2202     image {
2203       function = BOX
2204       file  = "assets/toolbar.png"
2205       stretch  = TRUE
2206       border = { 1, 1, 1, 1 }
2207     }
2208
2209     image {
2210       function = HANDLE
2211       overlay_file = "assets/handle-h.png"
2212       overlay_stretch = FALSE
2213       orientation = HORIZONTAL
2214     }
2215
2216     image {
2217       function = HANDLE
2218       overlay_file = "assets/handle-v.png"
2219       overlay_stretch = FALSE
2220       orientation = VERTICAL
2221     }
2222
2223     image {
2224       function = VLINE
2225       recolorable = TRUE
2226       file = "assets/null.png"
2227     }
2228
2229     image {
2230       function = HLINE
2231       recolorable = TRUE
2232       file = "assets/null.png"
2233     }
2234   }
2235 }
2236
2237 style "inline_toolbar" {
2238
2239   GtkToolbar::button-relief = GTK_RELIEF_NORMAL
2240
2241   engine "pixmap" {
2242
2243     image {
2244       function = BOX
2245       file = "assets/inline-toolbar.png"
2246       stretch = TRUE
2247       border = { 1, 1, 1, 1 }
2248     }
2249   }
2250 }
2251
2252 style "notebook_viewport" {
2253
2254   bg[NORMAL] = @notebook_bg
2255 }
2256
2257
2258 style "notebook_eventbox" {
2259
2260   bg[NORMAL] = @notebook_bg
2261   bg[ACTIVE] = @bg_color
2262 }
2263
2264 style "tooltips" {
2265
2266   xthickness = 8
2267   ythickness = 4
2268
2269   bg[NORMAL] = @tooltip_bg_color
2270   fg[NORMAL] = @tooltip_fg_color
2271   bg[SELECTED] = @tooltip_bg_color
2272
2273 }
2274
2275 style "eclipse-tooltips" {
2276
2277   xthickness = 8
2278   ythickness = 4
2279
2280   bg[NORMAL] = shade(1.05, @bg_color)
2281   fg[NORMAL] = @text_color
2282   bg[SELECTED] = shade(1.05, @bg_color)
2283
2284 }
2285
2286 style "xfdesktop-icon-view" {
2287   XfdesktopIconView::label-alpha = 0
2288   XfdesktopIconView::selected-label-alpha = 100
2289   XfdesktopIconView::shadow-x-offset = 0
2290   XfdesktopIconView::shadow-y-offset = 1
2291   XfdesktopIconView::selected-shadow-x-offset = 0
2292   XfdesktopIconView::selected-shadow-y-offset = 1
2293   XfdesktopIconView::shadow-color = "#000000"
2294   XfdesktopIconView::selected-shadow-color = "#000000"
2295   XfdesktopIconView::shadow-blur-radius = 2
2296   XfdesktopIconView::cell-spacing = 2
2297   XfdesktopIconView::cell-padding = 6
2298   XfdesktopIconView::cell-text-width-proportion = 1.9
2299
2300   fg[NORMAL] = @selected_fg_color
2301   fg[ACTIVE] = @selected_fg_color
2302 }
2303
2304 style "xfwm-tabwin" {
2305   Xfwm4TabwinWidget::border-width = 1
2306   Xfwm4TabwinWidget::border-alpha = 1.0
2307   Xfwm4TabwinWidget::icon-size = 64
2308   Xfwm4TabwinWidget::alpha = 1.0
2309   Xfwm4TabwinWidget::border-radius = 2
2310
2311         bg[NORMAL] = @bg_color
2312         bg[SELECTED] = @bg_color
2313
2314         fg[NORMAL] = @fg_color
2315
2316   engine "murrine" {
2317     contrast = 0.7
2318     glazestyle = 0
2319     glowstyle = 0
2320     highlight_shade = 1.0
2321     gradient_shades = {1.0,1.0,1.0,1.0}
2322     border_shades = { 0.8, 0.8 }
2323   }
2324 }
2325
2326 style "xfwm-tabwin-button" {
2327
2328   font_name = "bold"
2329   bg[SELECTED] = @selected_bg_color
2330 }
2331
2332 # Chromium
2333 style "chrome_menu_item" {
2334
2335   bg[SELECTED] = @selected_bg_color
2336
2337 }
2338
2339 # Text Style
2340 style "text" {
2341   engine "murrine" { textstyle = 0 }
2342 }
2343
2344 style "null" {
2345
2346   engine "pixmap" {
2347
2348     image {
2349     function = BOX
2350     file = "assets/null.png"
2351     stretch = TRUE
2352     }
2353   }
2354 }
2355
2356
2357 class "GtkWidget"                                                   style "default"
2358 class "GtkScrollbar"                                                style "scrollbar"
2359 class "GtkButton"                                                   style "button"
2360 class "GtkEntry"                                                    style "entry"
2361 class "GtkOldEditable"                                              style "entry"
2362 class "GtkSpinButton"                                               style "spinbutton"
2363 class "GtkNotebook"                                                 style "notebook"
2364 class "GtkRange"                                                    style "range"
2365 class "GtkProgressBar"                                              style "progressbar"
2366 class "GtkSeparatorMenuItem"                                        style "separator_menu_item"
2367 class "GtkScrolledWindow"                                           style "scrolled_window"
2368 class "GtkFrame"                                                    style "frame"
2369 class "GtkTreeView"                                                 style "treeview"
2370 class "GtkToolbar"                                                  style "toolbar"
2371 class "*HandleBox"                                                  style "toolbar"
2372
2373 widget_class "*<GtkMenu>*"                                          style "menu"
2374 widget_class "*<GtkMenuItem>*"                                      style "menu_item"
2375 widget_class "*<GtkCheckButton>*"                                   style "checkbutton"
2376 widget_class "*<GtkComboBox>"                                       style "combobox"
2377 widget_class "*<GtkComboBox>*<GtkButton>"                           style "combobox_button"
2378 widget_class "*<GtkComboBox>*<GtkSeparator>"                        style "combobox_separator"
2379 widget_class "*<GtkTreeView>*<GtkButton>*"                          style "treeview_header"
2380 widget_class "*<GtkFileChooserDefault>*<GtkToolbar>"                style "inline_toolbar"
2381 widget_class "*<GtkComboBoxEntry>*<GtkEntry>"                       style "combobox_entry"
2382 widget_class "*<GtkComboBoxEntry>*<GtkButton>"                      style "combobox_entry_button"
2383 widget_class "*<GtkNotebook>*<GtkScrolledWindow>*<GtkViewport>"     style "notebook_viewport"
2384 widget_class "*HandleBox"                                           style "toolbar"
2385
2386 # Entries in notebooks draw with notebook's base color, but not if there's
2387 # something else in the middle that draws gray again
2388 widget_class "*<GtkNotebook>*<GtkEntry>"                                    style "notebook_entry"
2389 widget_class "*<GtkNotebook>*<GtkEventBox>*<GtkEntry>"                      style "entry"
2390
2391 widget_class "*<GtkNotebook>*<GtkComboBoxEntry>*<GtkEntry>"                 style "notebook_combobox_entry"
2392 widget_class "*<GtkNotebook>*<GtkEventBox>*<GtkComboBoxEntry>*<GtkEntry>"   style "combobox_entry"
2393
2394 # We also need to avoid changing fg color for the inactive notebook tab labels
2395 widget_class "*<GtkNotebook>.<GtkLabel>"                            style "notebook_tab_label"
2396
2397 # GTK tooltips
2398 widget "gtk-tooltip*"                                               style "tooltips"
2399
2400 #Fix GVim tabs
2401 widget_class "*<GtkNotebook>*<GtkEventBox>"                         style "notebook_eventbox"
2402
2403 # Xchat special cases
2404 widget "*xchat-inputbox"                                            style "entry"
2405
2406 # GIMP
2407 # Disable gradients completely for GimpSpinScale
2408 #class "GimpSpinScale"                                               style "gimp_spin_scale"
2409
2410 # Remove borders from "Wilbert frame" in Gimp
2411 widget_class "*<GimpToolbox>*<GtkFrame>"                            style "gimp_toolbox_frame"
2412
2413 # Chrome/Chromium
2414 widget_class "*Chrom*Button*"                                       style "button"
2415 widget_class "*<GtkCustomMenu>*<GtkCustomMenuItem>*"                style "chrome_menu_item"
2416
2417 # We use this weird selector to target an offscreen entry as created
2418 # by Chrome/Chromium to derive the style for its toolbar
2419 widget_class "<GtkEntry>"                                           style "standalone_entry"
2420
2421 # Eclipse/SWT
2422 widget "gtk-tooltips*"                                              style "eclipse-tooltips"
2423 widget "*swt-toolbar-flat"                                          style "null"
2424
2425 # Openoffice, Libreoffice
2426 class "GtkWindow"                                                   style "toplevel_hack"
2427 widget "*openoffice-toplevel*"                                      style "ooo_stepper_hack"
2428 widget "*openoffice-toplevel*GtkEntry"                              style "libreoffice_entry"
2429 widget "*openoffice-toplevel*GtkSpinButton"                         style "libreoffice_entry"
2430 widget "*libreoffice-toplevel*GtkEntry"                             style "libreoffice_entry"
2431 widget "*libreoffice-toplevel*GtkSpinButton"                        style "libreoffice_entry"
2432
2433 # Xfce
2434 widget_class "*XfdesktopIconView*"                                  style "xfdesktop-icon-view"
2435 widget "xfwm4-tabwin*"                                              style "xfwm-tabwin"
2436 widget "xfwm4-tabwin*GtkButton*"                                    style "xfwm-tabwin-button"
2437
2438 # Fixes ugly text shadows for insensitive text
2439 widget_class "*<GtkLabel>"                                          style "text" 
2440 widget_class "*<GtkComboBox>*<GtkCellLayout>"                       style "text"
2441 widget_class "*<GtkNotebook>*<GtkLabel>"                            style "text"
2442 widget_class "*<GtkNotebook>*<GtkCellLayout>"                       style "text"