0224490b2485a47dff281505696f70a01f396873
[framework/uifw/elementary.git] / data / themes / widgets / index.edc
1 group { name: "elm/index/base/vertical/default";
2    images {
3       image: "bt_base1.png" COMP;
4       image: "bt_base2.png" COMP;
5       image: "bt_hilight.png" COMP;
6       image: "bt_shine.png" COMP;
7    }
8    parts {
9       part { name: "clip";
10          type: RECT;
11          mouse_events:  0;
12          description { state: "default" 0.0;
13             visible:  0;
14             color: 255 255 255 0;
15          }
16          description { state: "active" 0.0;
17             visible:  1;
18             color: 255 255 255 255;
19          }
20       }
21       part { name: "clip2";
22          type: RECT;
23          mouse_events:  0;
24          clip_to: "clip";
25          description { state: "default" 0.0;
26             visible: 0;
27             color: 255 255 255 0;
28          }
29          description { state: "active" 0.0;
30             visible:  1;
31             color: 255 255 255 255;
32          }
33       }
34       part { name: "elm.swallow.index.0";
35          type: SWALLOW;
36          clip_to: "clip";
37          description { state: "default" 0.0;
38             align: 1.0 0.5;
39             fixed: 1 1;
40             rel1 {
41                relative: 1.0 0.5;
42                offset: -1 5;
43             }
44             rel2 {
45                relative: 1.0 0.5;
46                offset: -1 -6;
47             }
48          }
49       }
50       part { name: "button_image";
51          mouse_events: 1;
52          clip_to: "clip2";
53          description { state: "default" 0.0;
54             rel1 {
55                to: "elm.text.body";
56                offset: -5 -5;
57             }
58             rel2 {
59                to: "elm.text";
60                offset: 4 4;
61             }
62             image {
63                normal: "bt_base2.png";
64                border: 7 7 7 7;
65             }
66             image.middle: SOLID;
67          }
68       }
69       part { name: "elm.text.body";
70          type: TEXT;
71          effect: SOFT_SHADOW;
72          mouse_events: 0;
73          scale: 1;
74          clip_to: "clip2";
75          description { state: "default" 0.0;
76             align: 1.0 0.5;
77             fixed: 1 1;
78             rel1 {
79                to: "elm.text";
80                relative: 0.0 0.0;
81                offset: 5 0;
82             }
83             rel2 {
84                to: "elm.text";
85                relative: 0.0 1.0;
86                offset: 5 -1;
87             }
88             color: 224 224 224 255;
89             color3: 0 0 0 64;
90             text {
91                font:     "Sans,Edje-Vera";
92                size:     20;
93                min:      1 1;
94                align:    1.0 0.5;
95             }
96          }
97       }
98       part { name: "elm.text";
99          type: TEXT;
100          effect: SOFT_SHADOW;
101          mouse_events: 0;
102          scale: 1;
103          clip_to: "clip2";
104          description { state: "default" 0.0;
105             align: 1.0 0.5;
106             fixed: 1 1;
107             rel1 {
108                to_x: "elm.swallow.event.0";
109                to_y: "elm.dragable.pointer";
110                relative: 0.0 0.5;
111                offset: -16 0;
112             }
113             rel2 {
114                to_x: "elm.swallow.event.0";
115                to_y: "elm.dragable.pointer";
116                relative: 0.0 0.5;
117                offset: -16 -1;
118             }
119             color: 255 0 0 255;
120             color3: 0 0 0 64;
121             text {
122                font:     "Sans,Edje-Vera";
123                size:     20;
124                min:      1 1;
125                align:    1.0 0.5;
126             }
127          }
128       }
129       part {        name: "over1";
130          mouse_events: 0;
131          clip_to: "clip2";
132          description { state: "default" 0.0;
133             rel1 {
134                to: "button_image";
135             }
136             rel2 {
137                to: "button_image";
138                relative: 1.0 0.5;
139             }
140             image {
141                normal: "bt_hilight.png";
142                border: 7 7 7 0;
143             }
144          }
145       }
146       part { name: "over2";
147          mouse_events: 1;
148          repeat_events: 1;
149          ignore_flags: ON_HOLD;
150          clip_to: "clip2";
151          description { state: "default" 0.0;
152             rel1 {
153                to: "button_image";
154             }
155             rel2 {
156                to: "button_image";
157             }
158             image {
159                normal: "bt_shine.png";
160                border: 7 7 7 7;
161             }
162          }
163       }
164       part { name: "elm.dragable.pointer";
165          type: RECT;
166          mouse_events: 0;
167          dragable {
168             x: 1 1 0;
169             y: 1 1 0;
170          }
171          clip_to: "clip";
172          description { state: "default" 0.0;
173             fixed: 1 1;
174             min: 8 8;
175             max: 8 8;
176             visible: 0;
177             rel1 {
178                relative: 0.0 0.0;
179                offset:   0 0;
180             }
181             rel2 {
182                relative: 0.0 0.0;
183                offset:   0 0;
184             }
185          }
186       }
187       part { name: "elm.swallow.event.0";
188          type: SWALLOW;
189          description { state: "default" 0.0;
190             align: 1.0 0.5;
191             fixed: 1 1;
192             rel1 {
193                relative: 1.0 0.0;
194                offset: -1 0;
195             }
196             rel2 {
197                relative: 1.0 1.0;
198                offset: -1 -1;
199             }
200          }
201       }
202    }
203    programs {
204       program { name: "active";
205          signal: "elm,state,active";
206          source: "elm";
207          action: STATE_SET "active" 0.0;
208          transition: DECELERATE 0.5;
209          target: "clip";
210       }
211       program { name: "inactive";
212          signal: "elm,state,inactive";
213          source: "elm";
214          action: STATE_SET "default" 0.0;
215          transition: DECELERATE 0.5;
216          target: "clip";
217       }
218       program { name: "active2";
219          signal: "elm,indicator,state,active";
220          source: "elm";
221          action: STATE_SET "active" 0.0;
222          transition: DECELERATE 0.5;
223          target: "clip2";
224       }
225       program { name: "inactive2";
226          signal: "elm,indicator,state,inactive";
227          source: "elm";
228          action: STATE_SET "default" 0.0;
229          transition: DECELERATE 0.5;
230          target: "clip2";
231       }
232    }
233 }
234
235 group { name: "elm/index/item/vertical/default";
236    data.item: "stacking" "above";
237    data.item: "selectraise" "on";
238    images {
239       image: "ilist_1.png" COMP;
240       image: "ilist_item_shadow.png" COMP;
241    }
242    parts {
243       part {
244          name: "base_sh";
245          mouse_events: 0;
246          description {
247             state: "default" 0.0;
248             align: 0.0 0.0;
249             min: 0 10;
250             fixed: 1 1;
251             rel1 {
252                to: "base";
253                relative: 0.0 1.0;
254                offset: 0 0;
255             }
256             rel2 {
257                to: "base";
258                relative: 1.0 1.0;
259                offset: -1 0;
260             }
261             image {
262                normal: "ilist_item_shadow.png";
263             }
264             fill.smooth: 0;
265          }
266       }
267       part {
268          name: "base";
269          mouse_events: 0;
270          description {
271             state: "default" 0.0;
272             image {
273                normal: "ilist_1.png";
274                border: 2 2 2 2;
275             }
276             fill.smooth: 0;
277          }
278          description { state: "active" 0.0;
279             inherit: "default" 0.0;
280             rel1 {
281                offset: -16 0;
282             }
283          }
284       }
285       part { name: "elm.text";
286          type:           TEXT;
287          mouse_events:   0;
288          scale: 1;
289          description {
290             state: "default" 0.0;
291                    //               min: 16 16;
292             rel1 {
293                to: "base";
294                relative: 0.0  0.0;
295                offset:   4 4;
296             }
297             rel2 {
298                to: "base";
299                relative: 0.5  1.0;
300                offset:   -1 -1;
301             }
302             color: 0 0 0 128;
303             text {
304                font: "Sans";
305                size: 10;
306                min: 1 1;
307                     //                  min: 0 1;
308                align: 0.5 0.5;
309             }
310          }
311          description { state: "active" 0.0;
312             inherit: "default" 0.0;
313             color: 0 0 0 255;
314          }
315       }
316    }
317    programs {
318       program { name: "active";
319          signal: "elm,state,active";
320          source: "elm";
321          action: STATE_SET "active" 0.0;
322          transition: DECELERATE 0.5;
323          target: "elm.text";
324          target: "base";
325       }
326       program { name: "inactive";
327          signal: "elm,state,inactive";
328          source: "elm";
329          action: STATE_SET "default" 0.0;
330          transition: DECELERATE 0.5;
331          target: "elm.text";
332          target: "base";
333       }
334    }
335 }
336
337 group { name: "elm/index/item_odd/vertical/default";
338    data.item: "stacking" "below";
339    images {
340       image: "ilist_2.png" COMP;
341    }
342    parts {
343       part {
344          name: "base";
345          mouse_events: 0;
346          description {
347             state: "default" 0.0;
348             image {
349                normal: "ilist_2.png";
350                border: 2 2 2 2;
351             }
352             fill.smooth: 0;
353          }
354          description { state: "active" 0.0;
355             inherit: "default" 0.0;
356             rel1 {
357                offset: -16 0;
358             }
359          }
360       }
361       part { name: "elm.text";
362          type:           TEXT;
363          mouse_events:   0;
364          scale: 1;
365          description {
366             state: "default" 0.0;
367                    //               min: 16 16;
368             rel1 {
369                to: "base";
370                relative: 0.0  0.0;
371                offset:   4 4;
372             }
373             rel2 {
374                to: "base";
375                relative: 0.5  1.0;
376                offset:   -1 -1;
377             }
378             color: 0 0 0 128;
379             text {
380                font: "Sans";
381                size: 10;
382                min: 1 1;
383                     //                  min: 0 1;
384                align: 0.5 0.5;
385             }
386          }
387          description { state: "active" 0.0;
388             inherit: "default" 0.0;
389             color: 0 0 0 255;
390          }
391       }
392    }
393    programs {
394       program { name: "active";
395          signal: "elm,state,active";
396          source: "elm";
397          action: STATE_SET "active" 0.0;
398          transition: DECELERATE 0.5;
399          target: "elm.text";
400          target: "base";
401       }
402       program { name: "inactive";
403          signal: "elm,state,inactive";
404          source: "elm";
405          action: STATE_SET "default" 0.0;
406          transition: DECELERATE 0.5;
407          target: "elm.text";
408          target: "base";
409       }
410    }
411 }
412