1 # vim:set ft=gtkrc ts=2 sw=2 sts=2 ai et:
3 # This is the main theme file, handling all the default widgets and theme
4 # properties. Since GTK 2 is old, we need to overcome some of its limitations,
5 # which is also mostly done in this file. Sadly not all of them can be overcome
6 # so there will always be a visible difference between the GTK 2 and 3 theme.
16 GtkWidget::focus-padding = 0
17 GtkWidget::focus-line-width = 2
18 GtkWidget::focus-line-pattern = "\2\1"
20 GtkToolbar::space-size = 5 # 1 + 2*2 (separator + margins)
21 GtkToolbar::internal-padding = 2
22 GtkToolButton::icon-spacing = 4
24 GtkWidget::tooltip-radius = 4
25 GtkWidget::tooltip-alpha = 230
26 GtkWidget::new-tooltip-style = 1 #for compatibility
28 GtkWidget::link-color = @link_color
29 GtkWidget::visited-link-color = @visited_link_color
30 GnomeHRef::link_color = @link_color
31 GtkHTML::link-color = @link_color
32 GtkHTML::vlink-color = @visited_link_color
33 GtkIMHtml::hyperlink-color = @link_color
34 GtkIMHtml::hyperlink-visited-color = @visited_link_color
36 GtkSeparatorMenuItem::horizontal-padding = 0
37 GtkSeparatorMenuItem::wide-separators = 1
38 GtkSeparatorMenuItem::separator-height = 3
40 GtkButton::child-displacement-y = 0
42 GtkButton::default-border = {0, 0, 0, 0}
43 GtkButton::default-outside-border = {0, 0, 0, 0}
44 GtkButton::inner-border = {4, 4, 4, 4}
46 GtkEntry::state-hint = 1
47 GtkEntry::inner-border = {4, 4, 4, 4}
49 GtkPaned::handle-size = 8
50 GtkHPaned::handle-size = 8
51 GtkVPaned::handle-size = 8
53 GtkScrollbar::trough-border = 0
54 GtkRange::trough-border = 0
55 GtkRange::slider-width = 17
56 GtkRange::stepper-size = 0
57 GtkRange::activate-slider = 1
59 GtkScrollbar::activate-slider = 1
60 GtkScrollbar::stepper-size = 0
61 GtkScrollbar::has-backward-stepper = 0
62 GtkScrollbar::has-forward-stepper = 0
63 GtkScrollbar::min-slider-length = 32 # 24 + 2*4 (margins)
64 GtkScrolledWindow::scrollbar-spacing = 0
65 GtkScrolledWindow::scrollbars-within-bevel = 1
67 GtkScale::slider_length = 24
68 GtkScale::slider_width = 24
69 GtkScale::trough-side-details = 1
71 GtkProgressBar::min-horizontal-bar-height = 4
72 GtkProgressBar::min-vertical-bar-width = 4
73 GtkProgressBar::xspacing = 4
74 GtkProgressBar::yspacing = 4
76 GtkStatusbar::shadow_type = GTK_SHADOW_NONE
77 GtkSpinButton::shadow_type = GTK_SHADOW_NONE
78 GtkMenuBar::shadow-type = GTK_SHADOW_NONE
79 GtkToolbar::shadow-type = GTK_SHADOW_NONE
80 # TODO: find out what this comment means:
81 # ( every window is misaligned for the sake of menus ):
82 GtkMenuBar::internal-padding = 0
83 GtkMenu::horizontal-padding = 0
84 GtkMenu::vertical-padding = 4
85 GtkMenu::double-arrows = 0
86 GtkMenuItem::arrow-scaling = 1
87 GtkMenuItem::toggle-spacing = 12
89 GtkCheckButton::indicator-size = 24
90 GtkCheckButton::indicator_spacing = 2
91 GtkOptionMenu::indicator_spacing = {8, 8, 4, 4}
93 GtkTreeView::expander-size = 16
94 GtkTreeView::vertical-separator = 0
95 GtkTreeView::horizontal-separator = 4
96 GtkTreeView::allow-rules = 0
97 # Set this because some apps read it
98 GtkTreeView::odd-row-color = @base_color
99 GtkTreeView::even-row-color = @base_color
101 GtkExpander::expander-size = 16
103 GtkNotebook::tab-overlap = 0
109 bg[NORMAL] = @bg_color
110 bg[PRELIGHT] = @bg_color
111 bg[SELECTED] = mix (0.24, @selected_bg_color, @bg_color)
112 bg[INSENSITIVE] = @bg_color
113 bg[ACTIVE] = @bg_color
115 fg[NORMAL] = @fg_color
116 fg[PRELIGHT] = @fg_color
117 fg[SELECTED] = @fg_color
118 fg[INSENSITIVE] = mix (0.5, @fg_color, @bg_color)
119 fg[ACTIVE] = @fg_color
121 text[NORMAL] = @text_color
122 text[PRELIGHT] = @text_color
123 text[SELECTED] = @text_color
124 text[INSENSITIVE] = mix (0.5, @text_color, @base_color)
125 text[ACTIVE] = @text_color
127 base[NORMAL] = @base_color
128 base[PRELIGHT] = mix (0.08, @text_color, @base_color)
129 base[SELECTED] = mix (0.24, @selected_bg_color, @base_color)
130 base[INSENSITIVE] = mix (0.5, @base_color, @bg_color)
131 base[ACTIVE] = mix (0.24, @selected_bg_color, @base_color)
133 # For succinctness, all reasonable pixmap options remain here
135 # Draw frame around menu in a non-compositied environment
136 # This needs to go before pixmap because we need to override some stuff
149 overlay_file = "assets/checkbox-unchecked.png"
150 overlay_stretch = FALSE
157 overlay_file = "assets/checkbox-unchecked-hover.png"
158 overlay_stretch = FALSE
165 overlay_file = "assets/checkbox-unchecked-active.png"
166 overlay_stretch = FALSE
173 overlay_file = "assets/checkbox-unchecked.png"
174 overlay_stretch = FALSE
181 overlay_file = "assets/checkbox-unchecked-disabled.png"
182 overlay_stretch = FALSE
189 overlay_file = "assets/checkbox-checked.png"
190 overlay_stretch = FALSE
197 overlay_file = "assets/checkbox-checked-hover.png"
198 overlay_stretch = FALSE
205 overlay_file = "assets/checkbox-checked-active.png"
206 overlay_stretch = FALSE
213 overlay_file = "assets/checkbox-checked.png"
214 overlay_stretch = FALSE
221 overlay_file = "assets/checkbox-checked-disabled.png"
222 overlay_stretch = FALSE
229 overlay_file = "assets/checkbox-mixed.png"
230 overlay_stretch = FALSE
237 overlay_file = "assets/checkbox-mixed-hover.png"
238 overlay_stretch = FALSE
245 overlay_file = "assets/checkbox-mixed-active.png"
246 overlay_stretch = FALSE
253 overlay_file = "assets/checkbox-mixed.png"
254 overlay_stretch = FALSE
261 overlay_file = "assets/checkbox-mixed-disabled.png"
262 overlay_stretch = FALSE
273 overlay_file = "assets/radio-unchecked.png"
274 overlay_stretch = FALSE
281 overlay_file = "assets/radio-unchecked-hover.png"
282 overlay_stretch = FALSE
289 overlay_file = "assets/radio-unchecked-active.png"
290 overlay_stretch = FALSE
297 overlay_file = "assets/radio-unchecked.png"
298 overlay_stretch = FALSE
305 overlay_file = "assets/radio-unchecked-disabled.png"
306 overlay_stretch = FALSE
313 overlay_file = "assets/radio-checked.png"
314 overlay_stretch = FALSE
321 overlay_file = "assets/radio-checked-hover.png"
322 overlay_stretch = FALSE
329 overlay_file = "assets/radio-checked-active.png"
330 overlay_stretch = FALSE
337 overlay_file = "assets/radio-checked.png"
338 overlay_stretch = FALSE
345 overlay_file = "assets/radio-checked-disabled.png"
346 overlay_stretch = FALSE
353 overlay_file = "assets/radio-mixed.png"
354 overlay_stretch = FALSE
361 overlay_file = "assets/radio-mixed-hover.png"
362 overlay_stretch = FALSE
369 overlay_file = "assets/radio-mixed-active.png"
370 overlay_stretch = FALSE
377 overlay_file = "assets/radio-mixed.png"
378 overlay_stretch = FALSE
385 overlay_file = "assets/radio-mixed-disabled.png"
386 overlay_stretch = FALSE
395 # Disable arrows in spinbuttons
398 detail = "spinbutton"
401 # Disable arrows for qt in scrollbars
405 detail = "vscrollbar"
410 detail = "hscrollbar"
419 overlay_file = "assets/pan-left.png"
420 overlay_stretch = FALSE
421 arrow_direction = LEFT
428 overlay_file = "assets/pan-left.png"
429 overlay_stretch = FALSE
430 arrow_direction = LEFT
437 overlay_file = "assets/pan-left-disabled.png"
438 overlay_stretch = FALSE
439 arrow_direction = LEFT
446 overlay_file = "assets/pan-right.png"
447 overlay_stretch = FALSE
448 arrow_direction = RIGHT
455 overlay_file = "assets/pan-right.png"
456 overlay_stretch = FALSE
457 arrow_direction = RIGHT
464 overlay_file = "assets/pan-right-disabled.png"
465 overlay_stretch = FALSE
466 arrow_direction = RIGHT
472 detail = "menu_scroll_arrow_up"
473 overlay_file = "assets/pan-up-disabled.png"
474 overlay_stretch = FALSE
479 detail = "menu_scroll_arrow_up"
480 overlay_file = "assets/pan-up.png"
481 overlay_stretch = FALSE
487 detail = "menu_scroll_arrow_down"
488 overlay_file = "assets/pan-down-disabled.png"
489 overlay_stretch = FALSE
494 detail = "menu_scroll_arrow_down"
495 overlay_file = "assets/pan-down.png"
496 overlay_stretch = FALSE
504 overlay_file = "assets/pan-up-alt.png"
505 overlay_stretch = FALSE
512 overlay_file = "assets/pan-up.png"
513 overlay_stretch = FALSE
520 overlay_file = "assets/pan-up.png"
521 overlay_stretch = FALSE
528 overlay_file = "assets/pan-up-alt-disabled.png"
529 overlay_stretch = FALSE
536 overlay_file = "assets/pan-down-alt.png"
537 overlay_stretch = FALSE
538 arrow_direction = DOWN
544 overlay_file = "assets/pan-down.png"
545 overlay_stretch = FALSE
546 arrow_direction = DOWN
552 overlay_file = "assets/pan-down.png"
553 overlay_stretch = FALSE
554 arrow_direction = DOWN
560 overlay_file = "assets/pan-down-alt-disabled.png"
561 overlay_stretch = FALSE
562 arrow_direction = DOWN
568 overlay_file = "assets/pan-left-alt.png"
569 overlay_stretch = FALSE
570 arrow_direction = LEFT
576 overlay_file = "assets/pan-left.png"
577 overlay_stretch = FALSE
578 arrow_direction = LEFT
584 overlay_file = "assets/pan-left.png"
585 overlay_stretch = FALSE
586 arrow_direction = LEFT
592 overlay_file = "assets/pan-left-alt-disabled.png"
593 overlay_stretch = FALSE
594 arrow_direction = LEFT
600 overlay_file = "assets/pan-right-alt.png"
601 overlay_stretch = FALSE
602 arrow_direction = RIGHT
608 overlay_file = "assets/pan-right.png"
609 overlay_stretch = FALSE
610 arrow_direction = RIGHT
616 overlay_file = "assets/pan-right.png"
617 overlay_stretch = FALSE
618 arrow_direction = RIGHT
624 overlay_file = "assets/pan-right-alt-disabled.png"
625 overlay_stretch = FALSE
626 arrow_direction = RIGHT
629 ######################
630 # Option Menu Arrows #
631 ######################
636 overlay_file = "assets/pan-down-alt.png"
637 overlay_stretch = FALSE
643 overlay_file = "assets/pan-down.png"
644 overlay_stretch = FALSE
650 overlay_file = "assets/pan-down.png"
651 overlay_stretch = FALSE
657 overlay_file = "assets/pan-down-alt-disabled.png"
658 overlay_stretch = FALSE
667 file = "assets/border.png"
668 border = {1, 0, 0, 0}
673 file = "assets/border.png"
674 border = {0, 0, 1, 0}
683 file = "assets/focus.png"
684 border = {5, 5, 5, 5} # Super strange, {4, 4, 4, 4} does not work properly...
695 overlay_file = "assets/handle-vert.png"
696 overlay_stretch = FALSE
702 overlay_file = "assets/handle-horz.png"
703 overlay_stretch = FALSE
704 orientation = HORIZONTAL
710 overlay_file = "assets/handle-horz-hover.png"
711 overlay_stretch = FALSE
712 orientation = HORIZONTAL
718 overlay_file = "assets/handle-horz-active.png"
719 overlay_stretch = FALSE
720 orientation = HORIZONTAL
726 overlay_file = "assets/handle-vert.png"
727 overlay_stretch = FALSE
728 orientation = VERTICAL
734 overlay_file = "assets/handle-vert-hover.png"
735 overlay_stretch = FALSE
736 orientation = VERTICAL
742 overlay_file = "assets/handle-vert-active.png"
743 overlay_stretch = FALSE
744 orientation = VERTICAL
748 function = RESIZE_GRIP
757 expander_style = EXPANDED
759 file = "assets/pan-down-alt.png"
764 expander_style = EXPANDED
766 file = "assets/pan-down.png"
771 expander_style = EXPANDED
773 file = "assets/pan-down.png"
778 expander_style = EXPANDED
780 file = "assets/pan-down-alt-disabled.png"
787 expander_style = COLLAPSED
789 file = "assets/pan-right-alt.png"
795 expander_style = COLLAPSED
797 file = "assets/pan-right.png"
803 expander_style = COLLAPSED
805 file = "assets/pan-right.png"
811 expander_style = COLLAPSED
813 file = "assets/pan-right-alt-disabled.png"
819 expander_style = SEMI_COLLAPSED
820 file = "assets/pan-right-semi.png"
826 expander_style = SEMI_EXPANDED
827 file = "assets/pan-right-semi.png"
835 expander_style = COLLAPSED
837 file = "assets/pan-left-alt.png"
843 expander_style = COLLAPSED
845 file = "assets/pan-left.png"
851 expander_style = COLLAPSED
853 file = "assets/pan-left.png"
859 expander_style = COLLAPSED
861 file = "assets/pan-left-alt-disabled.png"
867 expander_style = SEMI_COLLAPSED
868 file = "assets/pan-left-semi.png"
874 expander_style = SEMI_EXPANDED
875 file = "assets/pan-left-semi.png"
888 file = "assets/tab.png"
889 border = {0, 1, 0, 0}
904 file = "assets/tab.png"
905 border = {1, 0, 0, 0}
920 file = "assets/tab.png"
921 border = {0, 0, 0, 1}
936 file = "assets/tab.png"
937 border = {0, 0, 1, 0}
952 file = "assets/frame-notebook.png"
953 border = {1, 1, 1, 1}
955 gap_file = "assets/tab.png"
956 gap_border = {1, 0, 0, 0}
963 file = "assets/frame-notebook.png"
964 border = {1, 1, 1, 1}
966 gap_file = "assets/tab.png"
967 gap_border = {0, 1, 0, 0}
974 file = "assets/frame-notebook.png"
975 border = {1, 1, 1, 1}
977 gap_file = "assets/tab.png"
978 gap_border = {0, 0, 1, 0}
985 file = "assets/frame-notebook.png"
986 border = {1, 1, 1, 1}
988 gap_file = "assets/tab.png"
989 gap_border = {0, 0, 0, 1}
997 file = "assets/frame-notebook.png"
998 border = {1, 1, 1, 1}
1009 file = "assets/scrollbar-horz-trough.png"
1010 border = {0, 0, 1, 0}
1011 orientation = HORIZONTAL
1017 file = "assets/scrollbar-vert-ltr-trough.png"
1018 border = {1, 0, 0, 0}
1019 orientation = VERTICAL
1026 file = "assets/scrollbar-vert-rtl-trough.png"
1027 border = {0, 1, 0, 0}
1028 orientation = VERTICAL
1032 # Horizontal sliders
1038 file = "assets/scrollbar-horz-slider.png"
1039 border = {8, 8, 9, 8 }
1041 orientation = HORIZONTAL
1048 file = "assets/scrollbar-horz-slider-hover.png"
1049 border = {8, 8, 9, 8 }
1051 orientation = HORIZONTAL
1058 file = "assets/scrollbar-horz-slider-active.png"
1059 border = {8, 8, 9, 8 }
1061 orientation = HORIZONTAL
1068 file = "assets/scrollbar-horz-slider-disabled.png"
1069 border = {8, 8, 9, 8 }
1071 orientation = HORIZONTAL
1080 file = "assets/scrollbar-vert-ltr-slider.png"
1081 border = {9, 8, 8, 8}
1083 orientation = VERTICAL
1091 file = "assets/scrollbar-vert-ltr-slider-hover.png"
1092 border = {9, 8, 8, 8}
1094 orientation = VERTICAL
1102 file = "assets/scrollbar-vert-ltr-slider-active.png"
1103 border = {9, 8, 8, 8}
1105 orientation = VERTICAL
1113 file = "assets/scrollbar-vert-ltr-slider-disabled.png"
1114 border = {9, 8, 8, 8}
1116 orientation = VERTICAL
1126 file = "assets/scrollbar-vert-rtl-slider.png"
1127 border = {8, 9, 8, 8}
1129 orientation = VERTICAL
1137 file = "assets/scrollbar-vert-rtl-slider-hover.png"
1138 border = {8, 9, 8, 8}
1140 orientation = VERTICAL
1148 file = "assets/scrollbar-vert-rtl-slider-active.png"
1149 border = {8, 9, 8, 8}
1151 orientation = VERTICAL
1159 file = "assets/scrollbar-vert-rtl-slider-disabled.png"
1160 border = {8, 9, 8, 8}
1162 orientation = VERTICAL
1170 # Troughs, overrided later on. We set them here too because some widgets
1171 # don't specify their orientation.
1175 detail = "trough-upper"
1176 file = "assets/scale-horz-trough.png"
1177 border = {6, 6, 0, 0}
1179 orientation = HORIZONTAL
1185 detail = "trough-upper"
1186 file = "assets/scale-horz-trough-disabled.png"
1187 border = {6, 6, 0, 0}
1189 orientation = HORIZONTAL
1194 detail = "trough-lower"
1195 file = "assets/scale-horz-trough-active.png"
1196 border = {6, 6, 0, 0}
1198 orientation = HORIZONTAL
1204 detail = "trough-lower"
1205 file = "assets/scale-horz-trough-disabled.png"
1206 border = {6, 6, 0, 0}
1208 orientation = HORIZONTAL
1213 detail = "trough-upper"
1214 file = "assets/scale-vert-trough.png"
1215 border = {0, 0, 6, 6}
1217 orientation = VERTICAL
1223 detail = "trough-upper"
1224 file = "assets/scale-vert-trough-disabled.png"
1225 border = {0, 0, 6, 6}
1227 orientation = VERTICAL
1232 detail = "trough-lower"
1233 file = "assets/scale-vert-trough-active.png"
1234 border = {0, 0, 6, 6}
1236 orientation = VERTICAL
1242 detail = "trough-lower"
1243 file = "assets/scale-vert-trough-disabled.png"
1244 border = {0, 0, 6, 6}
1246 orientation = VERTICAL
1255 file = "assets/scale-slider.png"
1262 file = "assets/scale-slider-hover.png"
1269 file = "assets/scale-slider-active.png"
1276 file = "assets/scale-slider-disabled.png"
1283 file = "assets/scale-slider.png"
1290 file = "assets/scale-slider-hover.png"
1297 file = "assets/scale-slider-active.png"
1304 file = "assets/scale-slider-disabled.png"
1313 # detail = "menubar"
1314 # file = "assets/border.png"
1315 # border = {0, 0, 0, 1}
1325 detail = "menu_scroll_arrow_up"
1326 file = "assets/border.png"
1331 detail = "menu_scroll_arrow_up"
1332 file = "assets/border.png"
1333 border = {0, 0, 0, 1}
1339 detail = "menu_scroll_arrow_down"
1340 file = "assets/border.png"
1345 detail = "menu_scroll_arrow_down"
1346 file = "assets/border.png"
1347 border = {0, 0, 1, 0}
1358 file = "assets/entry-active.png"
1359 border = {8, 8, 8, 8}
1367 file = "assets/entry-disabled.png"
1368 border = {8, 8, 8, 8}
1375 file = "assets/entry.png"
1376 border = {8, 8, 8, 8}
1384 file = "assets/entry-background.png"
1391 file = "assets/entry-background-disabled.png"
1397 file = "assets/entry-background.png"
1409 detail = "spinbutton_up"
1410 file = "assets/spin-ltr-up.png"
1411 border = {0, 8, 8, 0}
1413 overlay_file = "assets/pan-up-alt.png"
1414 overlay_stretch = FALSE
1421 detail = "spinbutton_up"
1422 file = "assets/spin-ltr-up-hover.png"
1423 border = {0, 8, 8, 0}
1425 overlay_file = "assets/pan-up.png"
1426 overlay_stretch = FALSE
1433 detail = "spinbutton_up"
1434 file = "assets/spin-ltr-up-active.png"
1435 border = {0, 8, 8, 0}
1437 overlay_file = "assets/pan-up.png"
1438 overlay_stretch = FALSE
1445 detail = "spinbutton_up"
1446 file = "assets/spin-ltr-up-disabled.png"
1447 border = {0, 8, 8, 0}
1449 overlay_file = "assets/pan-up-alt-disabled.png"
1450 overlay_stretch = FALSE
1459 detail = "spinbutton_up"
1460 file = "assets/spin-rtl-up.png"
1461 border = {8, 0, 8, 0}
1463 overlay_file = "assets/pan-up-alt.png"
1464 overlay_stretch = FALSE
1471 detail = "spinbutton_up"
1472 file = "assets/spin-rtl-up-hover.png"
1473 border = {8, 0, 8, 0}
1475 overlay_file = "assets/pan-up.png"
1476 overlay_stretch = FALSE
1483 detail = "spinbutton_up"
1484 file = "assets/spin-rtl-up-hover.png"
1485 border = {8, 0, 8, 0}
1487 overlay_file = "assets/pan-up.png"
1488 overlay_stretch = FALSE
1495 detail = "spinbutton_up"
1496 file = "assets/spin-rtl-up-disabled.png"
1497 border = {8, 0, 8, 0}
1499 overlay_file = "assets/pan-up-alt-disabled.png"
1500 overlay_stretch = FALSE
1509 detail = "spinbutton_down"
1510 file = "assets/spin-ltr-down.png"
1511 border = {0, 8, 0, 8}
1513 overlay_file = "assets/pan-down-alt.png"
1514 overlay_stretch = FALSE
1521 detail = "spinbutton_down"
1522 file = "assets/spin-ltr-down-hover.png"
1523 border = {0, 8, 0, 8}
1525 overlay_file = "assets/pan-down.png"
1526 overlay_stretch = FALSE
1533 detail = "spinbutton_down"
1534 file = "assets/spin-ltr-down-active.png"
1535 border = {0, 8, 0, 8}
1537 overlay_file = "assets/pan-down.png"
1538 overlay_stretch = FALSE
1545 detail = "spinbutton_down"
1546 file = "assets/spin-ltr-down-disabled.png"
1547 border = {0, 8, 0, 8}
1549 overlay_file = "assets/pan-down-alt-disabled.png"
1550 overlay_stretch = FALSE
1559 detail = "spinbutton_down"
1560 file = "assets/spin-rtl-down.png"
1561 border = {8, 0, 0, 8}
1563 overlay_file = "assets/pan-down-alt.png"
1564 overlay_stretch = FALSE
1571 detail = "spinbutton_down"
1572 file = "assets/spin-rtl-down-hover.png"
1573 border = {8, 0, 0, 8}
1575 overlay_file = "assets/pan-down.png"
1576 overlay_stretch = FALSE
1583 detail = "spinbutton_down"
1584 file = "assets/spin-rtl-down-active.png"
1585 border = {8, 0, 0, 8}
1587 overlay_file = "assets/pan-down.png"
1588 overlay_stretch = FALSE
1595 detail = "spinbutton_down"
1596 file = "assets/spin-rtl-down-disabled.png"
1597 border = {8, 0, 0, 8}
1599 overlay_file = "assets/pan-down-alt-disabled.png"
1600 overlay_stretch = FALSE
1611 file = "assets/progressbar-progress.png"
1613 border = {0, 0, 0, 0}
1614 orientation = HORIZONTAL
1620 file = "assets/progressbar-progress.png"
1622 border = {0, 0, 0, 0}
1623 orientation = VERTICAL
1630 # Disable active the column highlight
1631 # We need to match specific cells or we break stuff
1632 # Looking at you deadbeef
1636 detail = "cell_even_sorted"
1642 detail = "cell_odd_sorted"
1646 # Disable all the other shadows
1647 # This prevents the Raleigh effect
1655 bg[NORMAL] = @titlebar_bg_color
1656 fg[NORMAL] = mix(0.7, @titlebar_fg_color, @titlebar_bg_color)
1657 fg[PRELIGHT] = @titlebar_fg_color
1658 fg[INSENSITIVE] = mix(0.3, @titlebar_fg_color, @titlebar_bg_color)
1659 # Needed to fix Firefox's menubar text
1660 bg[SELECTED] = mix(0.12, @titlebar_fg_color, @titlebar_bg_color)
1661 fg[SELECTED] = @titlebar_fg_color
1664 style "menubar_item" {
1668 fg[NORMAL] = mix(0.7, @titlebar_fg_color, @titlebar_bg_color)
1669 bg[PRELIGHT] = mix(0.12, @titlebar_fg_color, @titlebar_bg_color)
1670 fg[PRELIGHT] = @titlebar_fg_color
1671 fg[INSENSITIVE] = mix(0.3, @titlebar_fg_color, @titlebar_bg_color)
1678 bg[NORMAL] = @menu_color
1679 bg[INSENSITIVE] = @menu_color
1680 bg[PRELIGHT] = @menu_color
1681 bg[SELECTED] = mix(0.08, @fg_color, @menu_color)
1688 bg[PRELIGHT] = mix(0.08, @fg_color, @menu_color)
1689 fg[PRELIGHT] = @fg_color
1690 # Chromium uses this setting
1691 bg[SELECTED] = mix(0.08, @fg_color, @menu_color)
1692 text[SELECTED] = @fg_color
1693 # Some widgets use text, we need to handle that
1694 text[NORMAL] = @fg_color
1695 text[PRELIGHT] = @fg_color
1697 # Unfortunately we can't tell regular and menu checks/radios apart
1698 # Without the heirarchy
1709 overlay_file = "assets/menu-checkbox-unchecked.png"
1710 overlay_stretch = FALSE
1717 overlay_file = "assets/menu-checkbox-unchecked.png"
1718 overlay_stretch = FALSE
1725 overlay_file = "assets/menu-checkbox-unchecked.png"
1726 overlay_stretch = FALSE
1733 overlay_file = "assets/menu-checkbox-unchecked-disabled.png"
1734 overlay_stretch = FALSE
1741 overlay_file = "assets/menu-checkbox-checked.png"
1742 overlay_stretch = FALSE
1749 overlay_file = "assets/menu-checkbox-checked.png"
1750 overlay_stretch = FALSE
1757 overlay_file = "assets/menu-checkbox-checked.png"
1758 overlay_stretch = FALSE
1765 overlay_file = "assets/menu-checkbox-checked-disabled.png"
1766 overlay_stretch = FALSE
1773 overlay_file = "assets/menu-checkbox-mixed.png"
1774 overlay_stretch = FALSE
1781 overlay_file = "assets/menu-checkbox-mixed.png"
1782 overlay_stretch = FALSE
1789 overlay_file = "assets/menu-checkbox-mixed.png"
1790 overlay_stretch = FALSE
1797 overlay_file = "assets/menu-checkbox-mixed-disabled.png"
1798 overlay_stretch = FALSE
1809 overlay_file = "assets/menu-radio-unchecked.png"
1810 overlay_stretch = FALSE
1817 overlay_file = "assets/menu-radio-unchecked.png"
1818 overlay_stretch = FALSE
1825 overlay_file = "assets/menu-radio-unchecked.png"
1826 overlay_stretch = FALSE
1833 overlay_file = "assets/menu-radio-unchecked-disabled.png"
1834 overlay_stretch = FALSE
1841 overlay_file = "assets/menu-radio-checked.png"
1842 overlay_stretch = FALSE
1849 overlay_file = "assets/menu-radio-checked.png"
1850 overlay_stretch = FALSE
1857 overlay_file = "assets/menu-radio-checked.png"
1858 overlay_stretch = FALSE
1865 overlay_file = "assets/menu-radio-checked-disabled.png"
1866 overlay_stretch = FALSE
1873 overlay_file = "assets/menu-radio-mixed.png"
1874 overlay_stretch = FALSE
1881 overlay_file = "assets/menu-radio-mixed.png"
1882 overlay_stretch = FALSE
1889 overlay_file = "assets/menu-radio-mixed.png"
1890 overlay_stretch = FALSE
1897 overlay_file = "assets/menu-radio-mixed-disabled.png"
1898 overlay_stretch = FALSE
1903 style "separator_menu_item" {
1910 file = "assets/border.png"
1911 border = {0, 0, 0, 1}
1916 style "button_label" {
1917 # fg[NORMAL] = mix(0.7, @fg_color, @bg_color)
1918 # fg[INSENSITIVE] = mix(0.3, @fg_color, @bg_color)
1920 font_name = "Medium"
1923 style "normal_button_label" {
1924 # fg[NORMAL] = @fg_color
1925 # fg[INSENSITIVE] = mix(0.5, @fg_color, @bg_color)
1927 font_name = "Regular"
1934 # For the sake of sanity style buttons this way
1944 file = "assets/button.png"
1945 border = {8, 8, 8, 8}
1953 file = "assets/button-hover.png"
1954 border = {8, 8, 8, 8}
1958 # Don't add hover effect on pressed buttons
1963 file = "assets/button-active.png"
1964 border = {8, 8, 8, 8}
1971 file = "assets/button-active.png"
1972 border = {8, 8, 8, 8}
1979 file = "assets/button-disabled.png"
1980 border = {8, 8, 8, 8}
1986 style "link_button" {
1987 # Disable the button effect, leave just the link
1996 base[NORMAL] = @bg_color
1997 base[SELECTED] = mix (0.24, @selected_bg_color, @bg_color)
1998 base[INSENSITIVE] = @bg_color
1999 base[ACTIVE] = mix (0.24, @selected_bg_color, @bg_color)
2001 # We set this same as the border of the border of the entry
2002 # This way there's no overlap
2011 # This affects only the button beside an entry
2012 GtkButton::inner-border = {0, 0, 0, 0}
2014 # For the sake of sanity style buttons this way
2024 file = "assets/entry.png"
2025 border = {8, 8, 8, 8}
2032 file = "assets/entry-hover.png"
2033 border = {8, 8, 8, 8}
2040 file = "assets/entry-active.png"
2041 border = {8, 8, 8, 8}
2048 file = "assets/entry-disabled.png"
2049 border = {8, 8, 8, 8}
2055 style "combobox_cellview" {
2056 # text[NORMAL] = mix(0.7, @fg_color, @bg_color)
2057 # text[INSENSITIVE] = mix(0.3, @fg_color, @bg_color)
2060 style "combobox_entry" {
2061 # Since one side of the button is missing, we need to shift the arrow a little to the right
2062 GtkButton::inner-border = {0, 2, 0, 0}
2074 file = "assets/combo-left-entry.png"
2075 border = {8, 8, 8, 8}
2084 file = "assets/combo-left-entry-active.png"
2085 border = {8, 8, 8, 8}
2094 file = "assets/combo-left-entry-disabled.png"
2095 border = {8, 8, 8, 8}
2108 file = "assets/combo-right-entry.png"
2109 border = {8, 8, 8, 8}
2118 file = "assets/combo-right-entry-active.png"
2119 border = {8, 8, 8, 8}
2128 file = "assets/combo-right-entry-disabled.png"
2129 border = {8, 8, 8, 8}
2142 file = "assets/combo-right-entry.png"
2143 border = {0, 8, 8, 8}
2152 file = "assets/combo-right-entry-hover.png"
2153 border = {0, 8, 8, 8}
2162 file = "assets/combo-right-entry-active.png"
2163 border = {0, 8, 8, 8}
2172 file = "assets/combo-right-entry-disabled.png"
2173 border = {0, 8, 8, 8}
2186 file = "assets/combo-left-entry.png"
2187 border = {8, 0, 8, 8}
2196 file = "assets/combo-left-entry-hover.png"
2197 border = {8, 0, 8, 8}
2206 file = "assets/combo-left-entry-active.png"
2207 border = {8, 0, 8, 8}
2216 file = "assets/combo-left-entry-disabled.png"
2217 border = {8, 0, 8, 8}
2224 style "combo_button_padding" {
2225 # Since one side of the button is missing, we need to shift the arrow a
2226 # little to the right.
2227 # This is the same thing we've done above but the combo, unlike the combobox,
2228 # uses padding the same way as a button.
2229 GtkButton::inner-border = {3, 6, 3, 3}
2237 style "notebook_tab_label" {
2238 fg[ACTIVE] = mix(0.7, @fg_color, @bg_color)
2240 font_name = "Medium"
2243 style "notebook_viewport" {
2244 bg[NORMAL] = @base_color
2247 style "notebook_bg" {
2248 bg[NORMAL] = @base_color
2249 bg[PRELIGHT] = @base_color
2250 bg[INSENSITIVE] = @base_color
2253 style "notebook_entry" {
2254 base[NORMAL] = @base_color
2255 base[SELECTED] = mix (0.24, @selected_bg_color, @base_color)
2256 base[INSENSITIVE] = @base_color
2257 base[ACTIVE] = mix (0.24, @selected_bg_color, @base_color)
2261 bg[NORMAL] = @bg_color
2262 bg[PRELIGHT] = @bg_color
2263 bg[INSENSITIVE] = @bg_color
2266 style "normal_entry" {
2267 base[NORMAL] = @bg_color
2268 base[SELECTED] = mix (0.24, @selected_bg_color, @bg_color)
2269 base[INSENSITIVE] = @bg_color
2270 base[ACTIVE] = mix (0.24, @selected_bg_color, @bg_color)
2274 bg[NORMAL] = @base_color
2277 style "scale_horz" {
2281 detail = "trough-upper"
2282 file = "assets/scale-horz-trough.png"
2283 border = {6, 6, 0, 0}
2289 detail = "trough-lower"
2290 file = "assets/scale-horz-trough-active.png"
2291 border = {6, 6, 0, 0}
2297 style "scale_vert" {
2301 detail = "trough-upper"
2302 file = "assets/scale-vert-trough.png"
2303 border = {0, 0, 6, 6}
2309 detail = "trough-lower"
2310 file = "assets/scale-vert-trough-active.png"
2311 border = {0, 0, 6, 6}
2317 style "progressbar" {
2321 fg[PRELIGHT] = @selected_fg_color
2327 file = "assets/progressbar-trough.png"
2328 border = {0, 0, 0, 0}
2330 orientation = HORIZONTAL
2336 file = "assets/progressbar-trough.png"
2337 border = {0, 0, 0, 0}
2339 orientation = VERTICAL
2344 style "treeview_header" {
2348 fg[NORMAL] = mix(0.7, @fg_color, @base_color)
2349 fg[PRELIGHT] = @fg_color
2351 font_name = "Medium"
2353 GtkButton::inner-border = {4, 4, 0, 2}
2359 file = "assets/treeview-ltr-button.png"
2360 border = {0, 1, 0, 1}
2368 file = "assets/treeview-ltr-button-hover.png"
2369 border = {0, 1, 0, 1}
2377 file = "assets/treeview-ltr-button-active.png"
2378 border = {0, 1, 0, 1}
2386 file = "assets/treeview-rtl-button.png"
2387 border = {1, 0, 0, 1}
2395 file = "assets/treeview-rtl-button-hover.png"
2396 border = {1, 0, 0, 1}
2404 file = "assets/treeview-rtl-button-active.png"
2405 border = {1, 0, 0, 1}
2413 overlay_file = "assets/pan-up-alt.png"
2414 overlay_stretch = FALSE
2415 arrow_direction = UP
2421 overlay_file = "assets/pan-up.png"
2422 overlay_stretch = FALSE
2423 arrow_direction = UP
2429 overlay_file = "assets/pan-up.png"
2430 overlay_stretch = FALSE
2431 arrow_direction = UP
2437 overlay_file = "assets/pan-down-alt.png"
2438 overlay_stretch = FALSE
2439 arrow_direction = DOWN
2445 overlay_file = "assets/pan-down.png"
2446 overlay_stretch = FALSE
2447 arrow_direction = DOWN
2453 overlay_file = "assets/pan-down.png"
2454 overlay_stretch = FALSE
2455 arrow_direction = DOWN
2460 style "scrolled_window" {
2464 file = "assets/frame.png"
2465 border = {1, 1, 1, 1}
2480 file = "assets/frame.png"
2481 border = {1, 1, 1, 1}
2486 function = SHADOW_GAP
2487 file = "assets/frame.png"
2488 border = {1, 1, 1, 1}
2490 gap_start_file = "assets/border.png"
2491 gap_end_file = "assets/border.png"
2496 style "tool_button" {
2497 GtkButton::inner-border = {2, 2, 2, 2}
2499 # For the sake of sanity style buttons this way
2504 file = "assets/flat-button.png"
2505 border = {8, 8, 8, 8}
2513 file = "assets/flat-button-hover.png"
2514 border = {8, 8, 8, 8}
2518 # Don't add hover effect on pressed buttons
2523 file = "assets/flat-button-active.png"
2524 border = {8, 8, 8, 8}
2531 file = "assets/flat-button-active.png"
2532 border = {8, 8, 8, 8}
2540 file = "assets/flat-button-disabled.png"
2541 border = {8, 8, 8, 8}
2549 file = "assets/button-disabled.png"
2550 border = {8, 8, 8, 8}
2556 style "toolbar_separator" {
2557 GtkWidget::wide-separators = 1
2558 GtkWidget::separator-width = 1
2559 GtkWidget::separator-height = 1
2564 file = "assets/border.png"
2569 style "inline_toolbar" {
2570 # GtkToolbar::button-relief = GTK_RELIEF_NORMAL
2575 file = "assets/frame-inline.png"
2576 border = {1, 1, 0, 1}
2586 bg[NORMAL] = @tooltip_bg_color
2587 fg[NORMAL] = @tooltip_fg_color
2588 bg[SELECTED] = @tooltip_bg_color
2591 style "disable_text_shadow" {
2597 style "disable_separator" {
2601 GtkWidget::wide-separators = 1
2604 # Default style, containing theme properties and trying to match every widget as
2605 # much as possible, which is not only faster than trying to match every widget
2606 # by its own but also less bug-prune and more consistent. However there is some
2607 # widget specific stuff that needs to be taken care of, which is the point of
2608 # every other style below.
2609 class "GtkWidget" style "default"
2611 ######################################
2612 # Override padding, style and colour #
2613 ######################################
2615 class "GtkButton" style "button"
2616 class "GtkLinkButton" style "link_button"
2617 class "GtkEntry" style "entry"
2618 class "GtkOldEditable" style "entry"
2619 class "GtkNotebook" style "notebook"
2620 class "GtkHScale" style "scale_horz"
2621 class "GtkVScale" style "scale_vert"
2622 class "GtkProgressBar" style "progressbar"
2623 class "GtkScrolledWindow" style "scrolled_window"
2624 class "GtkFrame" style "frame"
2625 class "GtkSeparatorToolItem" style "toolbar_separator"
2626 class "GtkMenuBar" style "menubar"
2627 class "GtkMenu" style "menu"
2628 class "GtkTextView" style "textview"
2630 # Menu and menubar items
2631 widget_class "*<GtkMenuItem>*" style "menu_item"
2632 widget_class "*<GtkMenuBar>.<GtkMenuItem>*" style "menubar_item"
2633 widget_class "*<GtkSeparatorMenuItem>*" style "separator_menu_item"
2636 widget_class "*<GtkTreeView>*<GtkButton>*" style "treeview_header"
2638 # Give the file chooser toolbar a border
2639 widget_class "*<GtkFileChooserDefault>*<GtkToolbar>" style "inline_toolbar"
2641 # Fix padding on regular comboboxes
2642 widget_class "*<GtkComboBox>.<GtkButton>" style "combobox"
2643 widget_class "*<GtkOptionMenu>" style "combobox"
2645 # And disable separators on them
2646 widget_class "*<GtkComboBox>.<GtkButton>*<GtkSeparator>" style "disable_separator"
2647 widget_class "*<GtkFontButton>*<GtkSeparator>" style "disable_separator"
2648 widget_class "*<GtkFileChooserButton>*<GtkSeparator>" style "disable_separator"
2650 # Join together the ComboBoxEntry entry and button
2651 widget_class "*<GtkComboBoxEntry>*" style "combobox_entry"
2653 # Join the Combo entry and button
2654 widget_class "*<GtkCombo>*" style "combobox_entry"
2656 # Tweak the padding on the button a little bit because it
2657 # uses it a bit differently
2658 widget_class "*<GtkCombo>.<GtkButton>" style "combo_button_padding"
2660 # Alas we cannot do the same for ComboBoxText because there
2661 # isn't a way to apply the style to only the comboboxes that
2662 # have an entry inside
2664 # Tool buttons have different styles
2665 widget_class "*<GtkToolButton>*<GtkButton>" style "tool_button"
2666 widget_class "*<GtkVBox>*<GtkEventBox>.<GtkToolbar>*<GtkButton>" style "tool_button"
2669 widget_class "*<GtkNotebook>.<GtkLabel>" style "notebook_tab_label"
2670 widget_class "*<GtkNotebook>.<GtkHBox>.<GtkLabel>" style "notebook_tab_label"
2672 # Notebooks are white, act accordingly
2673 widget_class "*<GtkNotebook>*<GtkEntry>" style "notebook_entry"
2674 widget_class "*<GtkNotebook>*<GtkProgressBar>" style "notebook_bg"
2675 widget_class "*<GtkNotebook>*<GtkSpinButton>" style "notebook_bg"
2676 widget_class "*<GtkNotebook>*<GtkScrolledWindow>*<GtkViewport>" style "notebook_bg"
2677 widget_class "*<GtkNotebook>*<GimpRuler>" style "notebook_bg"
2678 widget_class "*<GtkNotebook>.<GimpDisplayShell>*<GtkEventBox>" style "notebook_bg"
2680 # However, stuff inside eventboxes inside notebooks is grey
2682 widget_class "*<GtkNotebook>*<GtkEventBox>*<GtkEntry>" style "normal_entry"
2683 widget_class "*<GtkNotebook>*<GtkEventBox>*<GtkProgressBar>" style "normal_bg"
2684 widget_class "*<GtkNotebook>*<GtkEventBox>*<GtkSpinButton>" style "normal_bg"
2687 widget_class "*<GtkButton>.<GtkLabel>" style "button_label"
2689 # Normalize button labels
2690 widget_class "*<GtkCheckButton>.<GtkLabel>" style "normal_button_label"
2691 widget_class "*<GtkOptionMenu>.<GtkLabel>" style "normal_button_label"
2693 # ComboBoxes tend to draw the button label with text[]
2694 # instead of fg[], we need to fix that
2695 widget_class "*<GtkComboBox>*<GtkCellView>" style "combobox_cellview"
2697 # Disable white text shadows
2698 widget_class "*<GtkLabel>" style "disable_text_shadow"
2699 widget_class "*<GtkCellView>" style "disable_text_shadow"
2702 widget "gtk-tooltip*" style "tooltip"