879505c2536d2c93ffb88ec6704593a01a616667
[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: "clip";
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: "clip";
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: "clip";
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: "clip";
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: "clip";
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        }
219    }
220
221    group { name: "elm/index/item/vertical/default";
222        data.item: "stacking" "above";
223        data.item: "selectraise" "on";
224        images {
225            image: "ilist_1.png" COMP;
226            image: "ilist_item_shadow.png" COMP;
227        }
228        parts {
229            part {
230                name: "base_sh";
231                mouse_events: 0;
232                description {
233                    state: "default" 0.0;
234                    align: 0.0 0.0;
235                    min: 0 10;
236                    fixed: 1 1;
237                    rel1 {
238                        to: "base";
239                        relative: 0.0 1.0;
240                        offset: 0 0;
241                    }
242                    rel2 {
243                        to: "base";
244                        relative: 1.0 1.0;
245                        offset: -1 0;
246                    }
247                    image {
248                        normal: "ilist_item_shadow.png";
249                    }
250                    fill.smooth: 0;
251                }
252            }
253            part {
254                name: "base";
255                mouse_events: 0;
256                description {
257                    state: "default" 0.0;
258                    image {
259                        normal: "ilist_1.png";
260                        border: 2 2 2 2;
261                    }
262                    fill.smooth: 0;
263                }
264                description { state: "active" 0.0;
265                    inherit: "default" 0.0;
266                    rel1 {
267                        offset: -16 0;
268                    }
269                }
270            }
271            part { name: "elm.text";
272                type:           TEXT;
273                mouse_events:   0;
274                scale: 1;
275                description {
276                    state: "default" 0.0;
277                           //               min: 16 16;
278                    rel1 {
279                        to: "base";
280                        relative: 0.0  0.0;
281                        offset:   4 4;
282                    }
283                    rel2 {
284                        to: "base";
285                        relative: 0.5  1.0;
286                        offset:   -1 -1;
287                    }
288                    color: 0 0 0 128;
289                    text {
290                        font: "Sans";
291                        size: 10;
292                        min: 1 1;
293                             //                  min: 0 1;
294                        align: 0.5 0.5;
295                    }
296                }
297                description { state: "active" 0.0;
298                    inherit: "default" 0.0;
299                    color: 0 0 0 255;
300                }
301            }
302        }
303        programs {
304            program { name: "active";
305                signal: "elm,state,active";
306                source: "elm";
307                action: STATE_SET "active" 0.0;
308                transition: DECELERATE 0.5;
309                target: "elm.text";
310                target: "base";
311            }
312            program { name: "inactive";
313                signal: "elm,state,inactive";
314                source: "elm";
315                action: STATE_SET "default" 0.0;
316                transition: DECELERATE 0.5;
317                target: "elm.text";
318                target: "base";
319            }
320        }
321    }
322
323    group { name: "elm/index/item_odd/vertical/default";
324        data.item: "stacking" "below";
325        images {
326            image: "ilist_2.png" COMP;
327        }
328        parts {
329            part {
330                name: "base";
331                mouse_events: 0;
332                description {
333                    state: "default" 0.0;
334                    image {
335                        normal: "ilist_2.png";
336                        border: 2 2 2 2;
337                    }
338                    fill.smooth: 0;
339                }
340                description { state: "active" 0.0;
341                    inherit: "default" 0.0;
342                    rel1 {
343                        offset: -16 0;
344                    }
345                }
346            }
347            part { name: "elm.text";
348                type:           TEXT;
349                mouse_events:   0;
350                scale: 1;
351                description {
352                    state: "default" 0.0;
353                           //               min: 16 16;
354                    rel1 {
355                        to: "base";
356                        relative: 0.0  0.0;
357                        offset:   4 4;
358                    }
359                    rel2 {
360                        to: "base";
361                        relative: 0.5  1.0;
362                        offset:   -1 -1;
363                    }
364                    color: 0 0 0 128;
365                    text {
366                        font: "Sans";
367                        size: 10;
368                        min: 1 1;
369                             //                  min: 0 1;
370                        align: 0.5 0.5;
371                    }
372                }
373                description { state: "active" 0.0;
374                    inherit: "default" 0.0;
375                    color: 0 0 0 255;
376                }
377            }
378        }
379        programs {
380            program { name: "active";
381                signal: "elm,state,active";
382                source: "elm";
383                action: STATE_SET "active" 0.0;
384                transition: DECELERATE 0.5;
385                target: "elm.text";
386                target: "base";
387            }
388            program { name: "inactive";
389                signal: "elm,state,inactive";
390                source: "elm";
391                action: STATE_SET "default" 0.0;
392                transition: DECELERATE 0.5;
393                target: "elm.text";
394                target: "base";
395            }
396        }
397    }
398
399 ///////////////////////////////////////////////////////////////////////////////