]> Pileus Git - ~andy/gtk/blob - tests/reftests/treeview-fixed-height.css
stylecontext: Do invalidation on first resize container
[~andy/gtk] / tests / reftests / treeview-fixed-height.css
1 /* "Tradition" theme for GTK 3, by John Lindgren */
2 /* Last modified: October 21, 2012 */
3 /* Public domain */
4
5 /* COLORS */
6
7 @define-color color_base #c8c4c0;
8 @define-color color_sel #406080;
9 @define-color color_tip #ffffc0;
10 @define-color color_dark shade (@color_base, 0.6);
11
12 * {
13     background-color: @color_base;
14     border-color: @color_dark;
15     border-style: solid;
16     color: black;
17 }
18
19 .cell, .check, .entry, .menu, .radio, GtkTextView, GtkTreeView {
20     background-color: white;
21 }
22
23 GtkImage, GtkLabel, .menuitem {
24     background-color: transparent;
25 }
26
27 .tooltip {
28     background-color: @color_tip;
29 }
30
31 *:insensitive {
32     color: @color_dark;
33 }
34
35 *:selected, .menuitem:prelight, *:prelight {
36     background-color: @color_sel;
37     color: white;
38 }
39
40 GtkCheckButton:selected {
41     background-color: @color_base;
42 }
43
44 .check:prelight, .check:selected, .radio:prelight, .radio:selected {
45     background-color: white;
46     color: black;
47 }
48
49 .slider, .pane-separator {
50     background-color: alpha (black, 0);
51     color: alpha (black, 0);
52 }
53
54 /* GRADIENTS */
55
56 .button, .notebook tab:active, .slider {
57     background-image: -gtk-gradient (linear, left top, left bottom,
58      from (shade (@color_base, 1.2)), to (@color_base));
59 }
60
61 .button:active, .notebook tab, .trough {
62     background-image: -gtk-gradient (linear, left top, left bottom,
63      from (shade (@color_base, 0.8)), to (@color_base));
64 }
65
66 .button.vertical, .slider.vertical {
67     background-image: -gtk-gradient (linear, left top, right top,
68      from (shade (@color_base, 1.2)), to (@color_base));
69 }
70
71 .button.vertical:active, .trough.vertical {
72     background-image: -gtk-gradient (linear, left top, right top,
73      from (shade (@color_base, 0.8)), to (@color_base));
74 }
75
76 column-header > .button {
77     background-image: none;
78 }
79
80 .progressbar {
81     background-image: -gtk-gradient (linear, left top, left bottom,
82      from (shade (@color_sel, 1.2)), to (@color_sel));
83     border-color: shade (@color_sel, 0.7);
84 }
85
86 .progressbar.vertical {
87     background-image: -gtk-gradient (linear, left top, right top,
88      from (shade (@color_sel, 1.2)), to (@color_sel));
89 }
90
91 /* SPACING */
92
93 * {
94     border-width: 0px;
95     border-radius: 0px;
96     padding: 0px;
97 }
98
99 .menu {
100     border-width: 1px;
101     padding: 1px;
102 }
103
104 .menuitem {
105     border-radius: 3px;
106     padding: 1px;
107 }
108
109 .toolbar {
110     padding: 0px 3px 0px 3px;
111 }
112
113 .button, .check, .entry, .frame, .notebook, .progressbar, .radio, .scale,
114  .scrollbar, .slider, .trough {
115     border-radius: 2px;
116     border-width: 1px;
117 }
118
119 .notebook tab {
120     padding: 2px;
121 }
122
123 .notebook tab:active {
124     padding: 3px;
125 }
126
127 .button {
128     padding: 3px;
129 }
130
131 .entry, column-header > .button {
132     padding: 2px;
133 }
134
135 GtkComboBox .button {
136     padding: 0px 2px 0px 2px;
137 }
138
139 .combobox-entry > .entry {
140     border-radius: 2px 0px 0px 2px;
141     border-width: 1px 0px 1px 1px;
142 }
143
144 .combobox-entry > .button {
145     border-radius: 0px 2px 2px 0px;
146 }
147
148 .spinbutton.button {
149     border-radius: 0px;
150     border-width: 0px 1px 0px 1px;
151 }
152
153 .spinbutton.button:last-child {
154     border-width: 0px;
155 }
156
157 column-header > .button {
158     border-radius: 0px;
159     border-width: 0px 0px 1px 0px;
160 }
161
162 .scrollbar {
163     border-radius: 0px;
164 }
165
166 .scrollbar.trough {
167     border-width: 1px 1px 0px 1px;
168 }
169
170 .scrollbar.trough.vertical {
171     border-width: 1px 0px 1px 1px;
172 }
173
174 .scrollbar.button.left, .scrollbar.button.right {
175     border-width: 1px 0px 0px 0px;
176 }
177
178 .scrollbar.button.top, .scrollbar.button.bottom {
179     border-width: 0px 0px 0px 1px;
180 }
181
182 .scrollbars-junction {
183     border-width: 1px 0px 0px 1px;
184 }
185
186 .scrollbar.slider {
187     border-width: 1px 1px 0px 1px;
188 }
189
190 .scrollbar.slider.vertical {
191     border-width: 1px 0px 1px 1px;
192 }
193
194 .separator {
195     border-width: 1px;
196     padding: 1px;
197 }
198
199 GtkComboBox .separator, GtkFontButton .separator {
200     border-width: 0px;
201     padding: 0px;
202 }
203
204 .tooltip {
205     border-width: 1px;
206     padding: 2px;
207 }
208
209 /* MISC SETTINGS */
210
211 * {
212     -GtkButton-default-border: 0;
213     -GtkButton-image-spacing: 4;
214     -GtkButtonBox-child-internal-pad-x: 0;
215     -GtkButtonBox-child-internal-pad-y: 0;
216     -GtkButtonBox-child-min-width: 0;
217     -GtkButtonBox-child-min-height: 0;
218     -GtkCheckButton-indicator-size: 12;
219     -GtkCheckMenuItem-indicator-size: 12;
220     -GtkComboBox-arrow-scaling: 0.667;
221     -GtkDialog-action-area-border: 0;
222     -GtkDialog-button-spacing: 6;
223     -GtkDialog-content-area-border: 6;
224     -GtkDialog-content-area-spacing: 6;
225     -GtkEntry-inner-border: 1;
226     -GtkMenu-horizontal-padding: 1;
227     -GtkMenu-horizontal-offset: 0;
228     -GtkMenuBar-internal-padding: 0;
229     -GtkMenuItem-arrow-scaling: 0.667;
230     -GtkMenuItem-toggle-spacing: 6;
231     -GtkNotebook-tab-overlap: 1;
232     -GtkPaned-handle-size: 6;
233     -GtkProgressBar-min-horizontal-bar-height: 12;
234     -GtkProgressBar-min-vertical-bar-width: 12;
235     -GtkRange-slider-width: 12;
236     -GtkRange-trough-border: 0;
237     -GtkScale-slider-length: 30;
238     -GtkScrolledWindow-scrollbar-spacing: 0;
239     -GtkScrolledWindow-scrollbars-within-bevel: 1;
240     -GtkTreeView-horizontal-separator: 0;
241     -GtkTreeView-vertical-separator: 0;
242     -GtkWidget-focus-line-width: 0;
243     -GtkWidget-focus-padding: 0;
244     -GtkWidget-separator-height: 1;
245     -GtkWidget-separator-width: 1;
246     -GtkWidget-wide-separators: TRUE;
247     -GtkWindow-resize-grip-height: 0;
248 }
249
250 .scrollbar {
251     -GtkRange-slider-width: 17;
252     -GtkRange-stepper-size: 16;
253     -GtkRange-trough-under-steppers: FALSE;
254     -GtkScrollbar-min-slider-length: 18;
255 }