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