]> Pileus Git - ~andy/gtk/blob - gtk/gtk-win32-base.css
stylecontext: Do invalidation on first resize container
[~andy/gtk] / gtk / gtk-win32-base.css
1 @define-color bg_color -gtk-win32-color(button, 15);
2 @define-color text_color -gtk-win32-color(button, 18);
3 @define-color base_color #fff;
4 @define-color selected_bg_color -gtk-win32-color(button, 13);
5 @define-color selected_fg_color -gtk-win32-color(button, 14);
6 @define-color info_fg_color rgb (181, 171, 156);
7 @define-color info_bg_color rgb (252, 252, 189);
8 @define-color warning_fg_color rgb (173, 120, 41);
9 @define-color warning_bg_color rgb (250, 173, 61);
10 @define-color question_fg_color rgb (97, 122, 214);
11 @define-color question_bg_color rgb (138, 173, 212);
12 @define-color error_fg_color rgb (166, 38, 38);
13 @define-color error_bg_color rgb (237, 54, 54);
14
15 GtkWindow,
16 GtkViewport {
17     background-color: @bg_color;
18 }
19
20 * {
21     color: -gtk-win32-color(button, 18);
22     -GtkWidget-link-color: -gtk-win32-color(button, 26);
23     -GtkWidget-visited-link-color: -gtk-win32-color(button, 26);
24     border-color: shade (@bg_color, 0.6);
25
26     -GtkScrolledWindow-scrollbars-within-bevel: 1;
27     -GtkScrolledWindow-scrollbars-spacing: 0;
28 }
29
30 GtkFrame {
31     border-width: 2px;
32     border-style: solid;
33     background-color: transparent;
34     border-image: -gtk-win32-theme-part(button, 4 1) 2 2 2 2 stretch;
35 }
36
37 *:insensitive {
38     color: -gtk-win32-color(button, 17);
39 }
40
41 *:selected,
42 *:selected:focus {
43     background-color: @selected_bg_color;
44     color: @selected_fg_color;
45 }
46
47 .info {
48     background-color: @info_bg_color;
49     color: @info_fg_color;
50 }
51
52 .warning {
53     background-color: @warning_bg_color;
54     color: @warning_fg_color;
55 }
56
57 .question {
58     background-color: @question_bg_color;
59     color: @question_fg_color;
60 }
61
62 .error {
63     background-color: @error_bg_color;
64     color: @error_fg_color;
65 }
66
67 .highlight {
68     background-color: @selected_bg_color;
69     color: @selected_fg_color;
70 }
71
72 .light-area-focus {
73     color: #000;
74 }
75
76 .dark-area-focus {
77     color: #fff;
78 }
79
80 .notebook > GtkScrolledWindow.frame {
81     border-style: none;
82 }
83
84 GtkScrolledWindow.frame {
85   border-style: solid;
86   border-width: 2px;
87   border-image: -gtk-win32-theme-part(listview, 5 1) 2 2 2 2 stretch;
88 }
89
90 .view {
91   border-width: 0;
92   border-radius: 0;
93   background-color: @base_color;
94   color: @text_color;
95 }
96
97 .view:selected {
98   background-color: shade (@bg_color, 0.9);
99   color: @fg_color;
100 }
101
102 .view:selected:focused {
103   background-color: @selected_bg_color;
104   color: @selected_fg_color;
105 }
106
107 .tooltip {
108     background-color: -gtk-win32-color(button, 24);
109     color: -gtk-win32-color(button, 23);
110     border-width: 1px;
111     border-style: solid;
112 }
113
114 .tooltip * {
115     color: -gtk-win32-color(button, 23);
116 }
117
118 GtkAssistant .sidebar .highlight {
119     font: bold;
120     color:  -gtk-win32-color(button, 9);
121 }
122
123 /* Buttons */
124
125 .button {
126     color: -gtk-win32-color(button, 18);
127     background-color: transparent;
128     background-image: -gtk-win32-theme-part(button, 1 1);
129     border-width: 0;
130     -GtkWidget-focus-line-width: 1;
131     -GtkWidget-focus-padding: 3;
132     -GtkButton-interior-focuse: true;
133     padding: 3px;
134 }
135
136 .button:insensitive {
137     background-image: -gtk-win32-theme-part(button, 1 4);
138 }
139
140 .button:focused {
141     background-image: -gtk-win32-theme-part(button, 1 5);
142 }
143
144 .button:prelight, .button:prelight:focused {
145     background-image: -gtk-win32-theme-part(button, 1 2);
146     color: #000000;
147 }
148
149 .button:active, .button:active:focused, .button:active:focused:prelight {
150     background-image: -gtk-win32-theme-part(button, 1 3);
151 }
152
153 /* Check buttons */
154
155 .check {
156     background-color: transparent;
157     background-image: -gtk-win32-theme-part(button, 3 1);
158     border-width: 0;
159 }
160
161 .check:insensitive {
162     background-image: -gtk-win32-theme-part(button, 3 4);
163 }
164
165 /* The GtkButton here is to avoid problems with checkboxes
166    in a listview where all checkboxes in a row gets prelighted
167    whenever the row is prelighted */
168
169 GtkButton.check:prelight {
170     background-image: -gtk-win32-theme-part(button, 3 2);
171 }
172
173 .check:active {
174     background-image: -gtk-win32-theme-part(button, 3 5);
175 }
176
177 .check:active:insensitive {
178     background-image: -gtk-win32-theme-part(button, 3 8);
179 }
180
181 GtkButton.check:active:prelight {
182     background-image: -gtk-win32-theme-part(button, 3 6);
183 }
184
185 .check:inconsistent {
186     background-image: -gtk-win32-theme-part(button, 3 9);
187 }
188
189 .check:inconsistent:insensitive {
190     background-image: -gtk-win32-theme-part(button, 3 12);
191 }
192
193 .check:inconsistent:prelight {
194     background-image: -gtk-win32-theme-part(button, 3 10);
195 }
196
197 /* Radio buttons */
198
199 .radio {
200     background-color: transparent;
201     background-image: -gtk-win32-theme-part(button, 2 1);
202     border-width: 0;
203 }
204
205 .radio:insensitive {
206     background-image: -gtk-win32-theme-part(button, 2 4);
207 }
208
209 .radio:prelight {
210     background-image: -gtk-win32-theme-part(button, 2 2);
211 }
212
213 .radio:active {
214     background-image: -gtk-win32-theme-part(button, 2 5);
215 }
216
217 .radio:active:insensitive {
218     background-image: -gtk-win32-theme-part(button, 2 8);
219 }
220
221 .radio:active:prelight {
222     background-image: -gtk-win32-theme-part(button, 2 6);
223 }
224
225 .radio:inconsistent {
226     background-image: -gtk-win32-theme-part(button, 2 1, over (2 5, 0.3));
227 }
228
229 .radio:inconsistent:insensitive {
230     background-image: -gtk-win32-theme-part(button, 2 4, over (2 8, 0.3));
231 }
232
233 .radio:inconsistent:prelight {
234     background-image: -gtk-win32-theme-part(button, 2 4, over(2 6, 0.3));
235 }
236
237 /* Scrollbars */
238
239 /* TODO: Win32 has different concept for upper and lower trough, we
240    don't use this atm */
241
242 .scrollbar {
243     background-color: transparent;
244     -GtkRange-trough-border: 0;
245     -GtkRange-arrow-scaling: 0.0;
246     -GtkRange-slider-width: -gtk-win32-size(scrollbar, 3);
247 }
248
249 .scrollbar.vertical {
250     -GtkRange-slider-width: -gtk-win32-size(scrollbar, 2);
251 }
252
253 .scrollbar.button.bottom {
254     background-image: -gtk-win32-theme-part(scrollbar, 1 5);
255 }
256
257 .scrollbar.button.bottom:prelight {
258     background-image: -gtk-win32-theme-part(scrollbar, 1 6);
259 }
260
261 .scrollbar.button.bottom:active,
262 .scrollbar.button.bottom:active:prelight {
263     background-image: -gtk-win32-theme-part(scrollbar, 1 7);
264 }
265
266 .scrollbar.button.bottom:insensitive {
267     background-image: -gtk-win32-theme-part(scrollbar, 1 8);
268 }
269
270 .scrollbar.button.top {
271     background-image: -gtk-win32-theme-part(scrollbar, 1 1);
272 }
273
274 .scrollbar.button.top:prelight {
275     background-image: -gtk-win32-theme-part(scrollbar, 1 2);
276 }
277
278 .scrollbar.button.top:active,
279 .scrollbar.button.top:active:prelight {
280     background-image: -gtk-win32-theme-part(scrollbar, 1 3);
281 }
282
283 .scrollbar.button.top:insensitive {
284     background-image: -gtk-win32-theme-part(scrollbar, 1 4);
285 }
286
287 .scrollbar.button.left {
288     background-image: -gtk-win32-theme-part(scrollbar, 1 9);
289 }
290
291 .scrollbar.button.left:prelight {
292     background-image: -gtk-win32-theme-part(scrollbar, 1 10);
293 }
294
295 .scrollbar.button.left:active,
296 .scrollbar.button.left:active:prelight {
297     background-image: -gtk-win32-theme-part(scrollbar, 1 11);
298 }
299
300 .scrollbar.button.left:insensitive {
301     background-image: -gtk-win32-theme-part(scrollbar, 1 12);
302 }
303
304 .scrollbar.button.right {
305     background-image: -gtk-win32-theme-part(scrollbar, 1 13);
306 }
307
308 .scrollbar.button.right:prelight {
309     background-image: -gtk-win32-theme-part(scrollbar, 1 14);
310 }
311
312 .scrollbar.button.right:active,
313 .scrollbar.button.right:active:prelight {
314     background-image: -gtk-win32-theme-part(scrollbar, 1 15);
315 }
316
317 .scrollbar.button.right:insensitive {
318     background-image: -gtk-win32-theme-part(scrollbar, 1 16);
319 }
320
321 .scrollbar.trough {
322     border-width: 0;
323     background-image: -gtk-win32-theme-part(scrollbar, 2 1, over (4 1));
324 }
325
326 .scrollbar.trough.vertical {
327     border-width: 0;
328     background-image: -gtk-win32-theme-part(scrollbar, 2 1, over (6 1));
329 }
330
331 .scrollbar.slider {
332     border-width: 0;
333     background-image: -gtk-win32-theme-part(scrollbar, 2 1, over (8 1));
334 }
335
336 .scrollbar.slider:prelight {
337     background-image: -gtk-win32-theme-part(scrollbar, 2 2, over (8 2));
338 }
339
340 .scrollbar.slider.vertical {
341     background-image: -gtk-win32-theme-part(scrollbar, 3 1, over (9 1));
342 }
343
344 .scrollbar.slider.vertical:prelight {
345     background-image: -gtk-win32-theme-part(scrollbar, 3 2, over (9 2));
346 }
347
348 /* Entry */
349
350 /* We apply the border as a border combined with the background so that
351    gtk_entry_set_has_frame works */
352
353 .entry {
354     border-width: 1px;
355     border-style: solid;
356     border-image: -gtk-win32-theme-part(edit, 6 1)  1 1 1 1 stretch;
357     background-image: -gtk-win32-theme-part(edit, 6 1, margins(-1 -1 -1 -1));
358     padding: 2px;
359 }
360 .entry:insensitive {
361     border-image: -gtk-win32-theme-part(edit, 6 4)  1 1 1 1 stretch;
362     background-image: -gtk-win32-theme-part(edit, 6 4, margins(-1 -1 -1 -1));
363     color: #a7aba7;
364 }
365 .entry:prelight {
366     border-image: -gtk-win32-theme-part(edit, 6 2)  1 1 1 1 stretch;
367     background-image: -gtk-win32-theme-part(edit, 6 2, margins(-1 -1 -1 -1));
368 }
369 .entry:focused {
370     border-image: -gtk-win32-theme-part(edit, 6 3)  1 1 1 1 stretch;
371     background-image: -gtk-win32-theme-part(edit, 6 3, margins(-1 -1 -1 -1));
372 }
373
374 /* Spinbuttons */
375
376 .spinbutton .button,
377 .spinbutton .button:focused {
378     background-color: transparent;
379     background-image: -gtk-win32-theme-part(spin, 1 1, margins(-1 -1 0 -1));
380     color: rgba(0, 0, 0, 0);
381 }
382
383 .spinbutton .button:last-child {
384     background-image: -gtk-win32-theme-part(spin, 1 1, margins(-1 -1 0 -2));
385 }
386
387 .spinbutton .button:prelight,
388 .spinbutton .button:prelight:focused {
389     background-image: -gtk-win32-theme-part(spin, 1 2, margins(-1 -1 0 -1));
390 }
391
392 .spinbutton .button:active,
393 .spinbutton .button:active:prelight,
394 .spinbutton .button:active:focused,
395 .spinbutton .button:active:prelight:focused {
396     background-image: -gtk-win32-theme-part(spin, 1 3, margins(-1 -1 0 -1));
397 }
398
399 .spinbutton .button:insensitive {
400     background-image: -gtk-win32-theme-part(spin, 1 4, margins(-1 -1 0 -1));
401 }
402
403 .spinbutton .button:insensitive:last-child {
404     background-image: -gtk-win32-theme-part(spin, 1 4, margins(-1 -1 0 -2));
405 }
406
407 .spinbutton .button.bottom,
408 .spinbutton .button.bottom:focused {
409     background-image: -gtk-win32-theme-part(spin, 2 1);
410 }
411
412 .spinbutton .button.bottom:prelight,
413 .spinbutton .button.bottom:prelight:focused {
414     background-image: -gtk-win32-theme-part(spin, 2 2);
415 }
416
417 .spinbutton .button.bottom:active,
418 .spinbutton .button.bottom:active:prelight {
419     background-image: -gtk-win32-theme-part(spin, 2 3);
420 }
421
422 .spinbutton .button.bottom:insensitive {
423     background-image: -gtk-win32-theme-part(spin, 2 4);
424 }
425
426 /* Ranges */
427
428 /* TODO: The trough is not quite right, it covers everything,
429    but in win32 the slider 'sticks out' on the sides of the
430    trough */
431
432 .scale {
433     background-color: transparent;
434     -GtkScale-value-spacing: 0;
435     -GtkScale-slider-length: 9;
436     -GtkRange-slider-width: 20;
437     -GtkRange-trough-border: 0;
438 }
439
440 .scale.trough {
441     border-style: none;
442     border-width: 0;
443     background-image: -gtk-win32-theme-part(trackbar, 1 1, margins (2 0 2 0));
444 }
445
446 .scale.trough.vertical {
447     background-image: -gtk-win32-theme-part(trackbar, 1 1, margins (0 2 0 2));
448 }
449
450 .scale.slider {
451     background-color: transparent;
452     border-width: 0;
453     color: rgba(0,0,0,0);
454     background-image: -gtk-win32-theme-part(trackbar, 3 1);
455 }
456
457 .scale.slider:prelight {
458     background-image: -gtk-win32-theme-part(trackbar, 3 2);
459 }
460
461 .scale.slider:active,
462 .scale.slider:prelight:active {
463     background-image: -gtk-win32-theme-part(trackbar, 3 3);
464 }
465
466 .scale.slider:focus {
467     background-image: -gtk-win32-theme-part(trackbar, 3 4);
468 }
469
470 .scale.slider:insensitive {
471     background-image: -gtk-win32-theme-part(trackbar, 3 5);
472 }
473
474 .scale.slider.vertical {
475     background-image: -gtk-win32-theme-part(trackbar, 6 1);
476 }
477
478 .scale.slider.vertical:prelight {
479     background-image: -gtk-win32-theme-part(trackbar, 6 2);
480 }
481
482 .scale.slider.vertical:active,
483 .scale.slider.vertical:prelight:active {
484     background-image: -gtk-win32-theme-part(trackbar, 6 3);
485 }
486
487 .scale.slider.vertical:focus {
488     background-image: -gtk-win32-theme-part(trackbar, 6 4);
489 }
490
491 .scale.slider.vertical:insensitive {
492     background-image: -gtk-win32-theme-part(trackbar, 6 5);
493 }
494
495 .scale.slider.scale-has-marks-below {
496     background-image: -gtk-win32-theme-part(trackbar, 4 1);
497 }
498
499 .scale.slider.scale-has-marks-below:prelight {
500     background-image: -gtk-win32-theme-part(trackbar, 4 2);
501 }
502
503 .scale.slider.scale-has-marks-below:active,
504 .scale.slider.scale-has-marks-below:prelight:active {
505     background-image: -gtk-win32-theme-part(trackbar, 4 3);
506 }
507
508 .scale.slider.scale-has-marks-below:focus {
509     background-image: -gtk-win32-theme-part(trackbar, 4 4);
510 }
511
512 .scale.slider.scale-has-marks-below:insensitive {
513     background-image: -gtk-win32-theme-part(trackbar, 4 5);
514 }
515
516 .scale.slider.scale-has-marks-below.vertical {
517     background-image: -gtk-win32-theme-part(trackbar, 8 1);
518 }
519
520 .scale.slider.scale-has-marks-below.vertical:prelight {
521     background-image: -gtk-win32-theme-part(trackbar, 8 2);
522 }
523
524 .scale.slider.scale-has-marks-below.vertical:active,
525 .scale.slider.scale-has-marks-below.vertical:prelight:active {
526     background-image: -gtk-win32-theme-part(trackbar, 8 3);
527 }
528
529 .scale.slider.scale-has-marks-below.vertical:focus {
530     background-image: -gtk-win32-theme-part(trackbar, 8 4);
531 }
532
533 .scale.slider.scale-has-marks-below.vertical:insensitive {
534     background-image: -gtk-win32-theme-part(trackbar, 8 5);
535 }
536
537
538
539 .scale.slider.scale-has-marks-above {
540     background-image: -gtk-win32-theme-part(trackbar, 5 1);
541 }
542
543 .scale.slider.scale-has-marks-above:prelight {
544     background-image: -gtk-win32-theme-part(trackbar, 5 2);
545 }
546
547 .scale.slider.scale-has-marks-above:active,
548 .scale.slider.scale-has-marks-above:prelight:active {
549     background-image: -gtk-win32-theme-part(trackbar, 5 3);
550 }
551
552 .scale.slider.scale-has-marks-above:focus {
553     background-image: -gtk-win32-theme-part(trackbar, 5 4);
554 }
555
556 .scale.slider.scale-has-marks-above:insensitive {
557     background-image: -gtk-win32-theme-part(trackbar, 5 5);
558 }
559
560 .scale.slider.scale-has-marks-above.vertical {
561     background-image: -gtk-win32-theme-part(trackbar, 7 1);
562 }
563
564 .scale.slider.scale-has-marks-above.vertical:prelight {
565     background-image: -gtk-win32-theme-part(trackbar, 7 2);
566 }
567
568 .scale.slider.scale-has-marks-above.vertical:active,
569 .scale.slider.scale-has-marks-above.vertical:prelight:active {
570     background-image: -gtk-win32-theme-part(trackbar, 7 3);
571 }
572
573 .scale.slider.scale-has-marks-above.vertical:focus {
574     background-image: -gtk-win32-theme-part(trackbar, 7 4);
575 }
576
577 .scale.slider.scale-has-marks-above.vertical:insensitive {
578     background-image: -gtk-win32-theme-part(trackbar, 7 5);
579 }
580
581 /* Progress bars */
582
583 GtkProgressBar {
584     background-color: transparent;
585     padding: 0;
586 }
587
588 GtkProgressBar.trough {
589     border-width: 0;
590     background-image: -gtk-win32-theme-part(progress, 1 1);
591 }
592
593 GtkProgressBar.progressbar,
594 GtkEntry.progressbar,
595 GtkEntry.progressbar:focused {
596     border-width: 0;
597     background-image: -gtk-win32-theme-part(progress, 5 1);
598 }
599
600 GtkProgressBar.progressbar.pulse,
601 GtkEntry.progressbar.pulse,
602 GtkEntry.progressbar.pulse:focused {
603     background-color: transparent;
604     background-image: -gtk-win32-theme-part(progress, 8 1);
605 }
606
607 GtkProgressBar.trough.vertical {
608     background-image: -gtk-win32-theme-part(progress, 2 1);
609 }
610
611 .progressbar.vertical {
612     background-image: -gtk-win32-theme-part(progress, 6 1);
613 }
614
615 .progressbar.pulse.vertical {
616     background-image: -gtk-win32-theme-part(progress, 10 1);
617 }
618
619 /* Combobox */
620
621 GtkComboBox.combobox-entry .button {
622     background-color: transparent;
623     border-width: 0;
624     background-image: -gtk-win32-theme-part(combobox, 1 1);
625     color: rgba(0, 0, 0, 0);
626 }
627
628 GtkComboBox.combobox-entry .button:prelight,
629 GtkComboBox.combobox-entry .button:focused,
630 GtkComboBox.combobox-entry .button:prelight:focused {
631     background-image: -gtk-win32-theme-part(combobox, 1 2);
632 }
633 GtkComboBox.combobox-entry .button:active,
634 GtkComboBox.combobox-entry .button:active:focused,
635 GtkComboBox.combobox-entry .button:active:prelight,
636 GtkComboBox.combobox-entry .button:active:focused:prelight {
637     background-image: -gtk-win32-theme-part(combobox, 1 3);
638 }
639 GtkComboBox.combobox-entry .button:insensitive {
640     background-image: -gtk-win32-theme-part(combobox, 1 4);
641 }
642
643 GtkComboBox .separator {
644     /* always disable separators */
645     -GtkWidget-wide-separators: true;
646     -GtkWidget-horizontal-separator: 0;
647     -GtkWidget-vertical-separator: 0;
648 }
649
650 /* Notebook */
651
652 .notebook {
653     background-color: #ffffff;
654     border-width: 1px 1px 1px 1px;
655     border-style: solid;
656     background-origin: padding-box;
657     background-clip: border-box;
658     background-image: -gtk-win32-theme-part(tab, 9 1, margins(-1 -3 -2 -1));
659     border-image: -gtk-win32-theme-part(tab, 9 1, margins(0 -2 -1 0)) 1 1 1 1 repeat;
660     -GtkNotebook-tab-overlap: 1;
661     -GtkNotebook-tab-curvature: 0;
662 }
663
664 .notebook tab {
665     border-width: 0;
666     background-image: -gtk-win32-theme-part(tab, 1 1);
667     padding: 0px 4px 0px 4px;
668 }
669
670 .notebook tab.left, .notebook tab.right {
671     padding: 4px 0px 4px 0px;
672 }
673
674 .notebook tab:active {
675     background-image: -gtk-win32-theme-part(tab, 1 3, margins(0 0 -1 0));
676 }
677 .notebook tab:active.top {
678     padding: 2px 4px 1px 4px;
679 }
680
681 .notebook tab:active.bottom {
682     padding: 1px 4px 2px 4px;
683 }
684
685 .notebook tab:active.right {
686     padding: 4px 4px 4px 1px;
687 }
688
689 .notebook tab:active.left {
690     padding: 4px 1px 4px 4px;
691 }
692
693 /* Toolbar */
694
695 .toolbar {
696     background-color: transparent;
697     border-width: 0;
698     background-image: -gtk-win32-theme-part(rebar, 6 1);
699 }
700
701 .toolbar .button,
702 .toolbar .button:focused {
703     background-color: transparent;
704     background-image: -gtk-win32-theme-part(toolbar, 1 1);
705 }
706
707 .toolbar .button:prelight,
708 .toolbar .button:prelight:focused {
709     background-image: -gtk-win32-theme-part(toolbar, 1 2);
710 }
711
712 .toolbar .button:active {
713     background-image: -gtk-win32-theme-part(toolbar, 1 3);
714 }
715
716 .toolbar .button:active:prelight {
717     background-image: -gtk-win32-theme-part(toolbar, 1 6);
718 }
719
720 .toolbar .button:insensitive {
721     background-image: -gtk-win32-theme-part(toolbar, 1 4);
722 }
723
724 /* Column headers */
725
726 column-header .button,
727 column-header .button:focus {
728     background-color: transparent;
729     border-width: 0;
730     background-image: -gtk-win32-theme-part(header, 1 1);
731 }
732
733 column-header .button:prelight,
734 column-header .button:prelight:focus {
735     background-image: -gtk-win32-theme-part(header, 1 2);
736 }
737
738 column-header .button:active,
739 column-header .button:active:prelight,
740 column-header .button:active:focus,
741 column-header .button:active:prelight:focus {
742     background-image: -gtk-win32-theme-part(header, 1 3);
743 }
744
745 GtkSwitch {
746     font: bold condensed 10;
747     color: -gtk-win32-color(button, 18);
748 }
749
750 GtkSwitch.slider {
751     padding: 4px;
752     background-color: transparent;
753     background-image: -gtk-win32-theme-part(scrollbar, 2 1, over (8 1));
754     border-width: 0;
755 }
756
757 GtkSwitch.trough:insensitive {
758     background-image: -gtk-win32-theme-part(button, 1 4);
759 }
760
761 GtkSwitch.trough {
762     background-image: -gtk-win32-theme-part(button, 1 1);
763 }
764
765 GtkSwitch.trough:active {
766     background-image: -gtk-win32-theme-part(button, 1 2);
767 }
768
769 /* Menus */
770
771 .menu {
772     background-color: -gtk-win32-color(button, 4);
773     border-color: shade (-gtk-win32-color(button, 4), 0.6);
774     border-style: solid;
775     border-width: 1px;
776     padding: 2px;
777 }
778
779 .menuitem {
780     color: -gtk-win32-color(button, 7);
781 }
782
783 .menubar .menuitem *:backdrop {
784     color: mix (-gtk-win32-color(button, 7), white, 0.5);
785 }
786
787 .menubar > .menuitem {
788     padding: 3px 5px;
789 }
790
791 /* Assistant */
792
793 GtkAssistant .sidebar .highlight {
794     background-color: blue;
795     font: bold;
796 }
797
798 GtkAssistant .sidebar {
799     padding: 12px;
800
801     background-color: white;
802
803     border-image: none;
804     border-width: 0 1px 0 0;
805     border-style: solid;
806 }
807
808 GtkColorSwatch {
809     border-style: solid;
810     border-width: 1px;
811 }
812
813 GtkColorSwatch:prelight {
814     border-color: shade (@bg_color, 0.2);
815 }
816
817 .separator,
818 .separator:prelight {
819     color: shade (@bg_color, 0.6);
820 }
821
822 GtkStatusbar > GtkFrame {
823     border-width: 1px 1px 1px 1px;
824     border-style: solid;
825     border-image:  -gtk-win32-theme-part(status, 0 0, margins (-1 0 0 0))  2 1 1 1 stretch;
826     background-image: none;
827 }
828
829 /*
830  This doesn't quite look right with no background (i.e. when not on a statusbar
831
832 .grip {
833     background-color: transparent;
834     background-image:  -gtk-win32-theme-part(status, 3 1);
835 }
836 */