9af2c114c587853a38d540d69e1461e8f3a89fc8
[profile/ivi/efl-theme-tizen.git] / themes / widgets / genlist / genlist_sweep.edc
1 /*
2  * efl-theme-tizen
3  * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
4  *
5  * Licensed under the Apache License, Version 2.0 (the License);
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  *     http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an AS IS BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17
18
19
20 /*
21  * vim:ts=3
22 */
23 // 2.2.5.1
24    group { name: "elm/genlist/item/mode/slide/default";
25       alias: "elm/genlist/item_odd/mode/slide/default";
26       alias: "elm/genlist/item_compress/mode/slide/default";
27       alias: "elm/genlist/item_compress_odd/mode/slide/default";
28       data.item: "stacking" "above";
29       data.item: "selectraise" "on";
30       data.item: "contents" "elm.slide.swallow.1";
31       data.item: "mode_part" "elm.swallow.origin";
32       data.item: "treesize" "GENLIST_TREESIZE_DEFAULT";
33
34       parts {
35          GENLIST_PART_BG_IMAGE
36          GENLIST_PART_BASE
37          GENLIST_PART_BOTTOM_LINE
38          GENLIST_PART_PADDING_LEFT
39          GENLIST_PART_PADDING_RIGHT
40          GENLIST_PART_PADDING_L_SIZE("elm.padding.btn.left", "elm.padding.left", 171)
41          GENLIST_PART_PADDING_R_SIZE("elm.padding.btn.right", "elm.padding.right", 171)
42
43          GENLIST_PART_ICON("elm.slide.swallow.1",
44             GENLIST_DESCRIPTION_LR("elm.padding.btn.left", "elm.padding.btn.right",
45                min: 326 GENLIST_BTN_01_HEIGHT;
46                max: -1 GENLIST_BTN_01_HEIGHT; )
47          )
48          // Swallow part for original genlist item
49          GENLIST_PART_ICON("elm.swallow.origin";,
50             repeat_events: 0;
51             GENLIST_DESCRIPTION_ENVELOP("base", )
52             description { state: "slide" 0.0;
53                inherit: "default" 0.0;
54                rel1 {
55                   relative: 1 0;
56                   to: "base";
57                }
58                rel2 {
59                   relative: 2 1;
60                   to: "base";
61                }
62             }
63          )
64       }
65       programs {
66          program {
67             name: "slide_right";
68             signal: "elm,state,slide,active";
69             source: "elm";
70             action: STATE_SET "slide" 0.0;
71             target: "elm.swallow.origin";
72             transition: ACCELERATE 0.5;
73          }
74
75          program {
76             name: "slide_left";
77             signal: "elm,state,slide,passive";
78             source: "elm";
79             action: STATE_SET "default" 0.0;
80             target: "elm.swallow.origin";
81             transition: DECELERATE 0.5;
82             after: "signal";
83          }
84          program {
85             name: "signal";
86             action: SIGNAL_EMIT "elm,state,slide,passive,finished" "elm";
87          }
88       }
89    }
90 // 2.2.5.2
91    group { name: "elm/genlist/item/mode/slide2/default";
92       alias: "elm/genlist/item_odd/mode/slide2/default";
93       alias: "elm/genlist/item_compress/mode/slide2/default";
94       alias: "elm/genlist/item_compress_odd/mode/slide2/default";
95       inherit: "elm/genlist/item/mode/slide/default";
96       data.item: "contents" "elm.slide.swallow.1 elm.slide.swallow.2";
97       parts {
98          GENLIST_PART_PADDING_L_SIZE("elm.padding.btn.left", "elm.padding.left", 0)
99          GENLIST_PART_PADDING_R_SIZE("elm.padding.btn.right", "elm.padding.right", 0)
100          GENLIST_PART_PADDING("elm.padding.center", GENLIST_PADDING_SIZE_DEFAULT, 0.5 0, 0.5 1)
101
102          GENLIST_PART_ICON("elm.slide.swallow.1",
103             GENLIST_DESCRIPTION_LR("elm.padding.left", "elm.padding.center",
104                min: 0 GENLIST_BTN_01_HEIGHT;
105                max: -1 GENLIST_BTN_01_HEIGHT; )
106          )
107          GENLIST_PART_ICON("elm.slide.swallow.2",
108             insert_before: "elm.slide.swallow.1";
109             GENLIST_DESCRIPTION_LR("elm.padding.center", "elm.padding.right",
110                min: 0 GENLIST_BTN_01_HEIGHT;
111                max: -1 GENLIST_BTN_01_HEIGHT; )
112          )
113       }
114    }
115 // 2.2.5.3
116    group { name: "elm/genlist/item/mode/slide3/default";
117       alias: "elm/genlist/item_odd/mode/slide3/default";
118       alias: "elm/genlist/item_compress/mode/slide3/default";
119       alias: "elm/genlist/item_compress_odd/mode/slide3/default";
120       inherit: "elm/genlist/item/mode/slide2/default";
121       data.item: "contents" "elm.slide.swallow.1 elm.slide.swallow.2 elm.slide.swallow.3";
122       parts {
123          GENLIST_PART_PADDING("elm.padding.center", GENLIST_PADDING_SIZE_DEFAULT, 0.333 0, 0.333 1)
124          GENLIST_PART_PADDING("elm.padding.center1", GENLIST_PADDING_SIZE_DEFAULT, 0.666 0, 0.666 1)
125          GENLIST_PART_ICON("elm.slide.swallow.1",
126             GENLIST_DESCRIPTION_LR("elm.padding.left", "elm.padding.center",
127                min: 0 GENLIST_BTN_01_HEIGHT;
128                max: -1 GENLIST_BTN_01_HEIGHT; )
129          )
130          GENLIST_PART_ICON("elm.slide.swallow.2",
131             GENLIST_DESCRIPTION_LR("elm.padding.center", "elm.padding.center1",
132                min: 0 GENLIST_BTN_01_HEIGHT;
133                max: -1 GENLIST_BTN_01_HEIGHT; )
134          )
135          GENLIST_PART_ICON("elm.slide.swallow.3",
136             insert_before: "elm.slide.swallow.2";
137             GENLIST_DESCRIPTION_LR("elm.padding.center1", "elm.padding.right",
138                min: 0 GENLIST_BTN_01_HEIGHT;
139                max: -1 GENLIST_BTN_01_HEIGHT; )
140          )
141       }
142    }
143 // 2.2.5.4
144    group { name: "elm/genlist/item/mode/slide4/default";
145       alias: "elm/genlist/item_odd/mode/slide4/default";
146       alias: "elm/genlist/item_compress/mode/slide4/default";
147       alias: "elm/genlist/item_compress_odd/mode/slide4/default";
148       inherit: "elm/genlist/item/mode/slide3/default";
149       data.item: "contents" "elm.slide.swallow.1 elm.slide.swallow.2 elm.slide.swallow.3 elm.slide.swallow.4";
150       parts {
151          GENLIST_PART_PADDING("elm.padding.center", GENLIST_PADDING_SIZE_DEFAULT, 0.25 0, 0.25 1)
152          GENLIST_PART_PADDING("elm.padding.center1", GENLIST_PADDING_SIZE_DEFAULT, 0.5 0, 0.5 1)
153          GENLIST_PART_PADDING("elm.padding.center2", GENLIST_PADDING_SIZE_DEFAULT, 0.75 0, 0.75 1)
154          GENLIST_PART_ICON("elm.slide.swallow.1",
155             GENLIST_DESCRIPTION_LR("elm.padding.left", "elm.padding.center",
156                min: 0 GENLIST_BTN_01_HEIGHT;
157                max: -1 GENLIST_BTN_01_HEIGHT; )
158          )
159          GENLIST_PART_ICON("elm.slide.swallow.2",
160             GENLIST_DESCRIPTION_LR("elm.padding.center", "elm.padding.center1",
161                min: 0 GENLIST_BTN_01_HEIGHT;
162                max: -1 GENLIST_BTN_01_HEIGHT; )
163          )
164          GENLIST_PART_ICON("elm.slide.swallow.3",
165             GENLIST_DESCRIPTION_LR("elm.padding.center1", "elm.padding.center2",
166                min: 0 GENLIST_BTN_01_HEIGHT;
167                max: -1 GENLIST_BTN_01_HEIGHT; )
168          )
169          GENLIST_PART_ICON("elm.slide.swallow.4",
170             insert_before: "elm.slide.swallow.3";
171             GENLIST_DESCRIPTION_LR("elm.padding.center2", "elm.padding.right",
172                min: 0 GENLIST_BTN_01_HEIGHT;
173                max: -1 GENLIST_BTN_01_HEIGHT; )
174          )
175       }
176    }
177
178 #if 0
179 // ---------------------------------------- Belows are not used anymore ?? ------------------------------------------------------
180    group { name: "elm/genlist/item/mode/slide.1text/default";
181       alias: "elm/genlist/item_odd/mode/slide.1text/default";
182       alias: "elm/genlist/item_compress/mode/slide.1text/default";
183       alias: "elm/genlist/item_compress_odd/mode/slide.1text/default";
184       data.item: "stacking" "above";
185       data.item: "selectraise" "on";
186       data.item: "texts" "elm.slide.text.1";
187       data.item: "contents" "elm.slide.swallow.1";
188       data.item: "mode_part" "elm.swallow.origin";
189       data.item: "treesize" "GENLIST_TREESIZE_DEFAULT";
190
191       parts {
192          part { name: "base";
193          type: RECT;
194             scale: 1;
195             description { state: "default" 0.0;
196                min: 0 GENLIST_HEIGHT_1LINE;
197                color: GENLIST_SWEEP_BG_COLOR_INC;
198             }
199          }
200          part { name: "bottom_line";
201             type: RECT;
202             mouse_events: 0;
203             description { state: "default" 0.0;
204                min: 0 1;
205                fixed: 0 1;
206                visible: 1;
207                color: GENLIST_LIST_LINE1_COLOR;
208                rel1 {
209                   relative: 0.0 1.0;
210                   offset: 0 -1;
211                   to: "base";
212                }
213                rel2.to: "base";
214             }
215          }
216          part { name: "base.padding.left";
217             type: RECT;
218             mouse_events: 0;
219             scale: 1;
220             description { state: "default" 0.0;
221                min: GENLIST_PADDING_16_INC 0;
222                fixed: 1 0;
223                visible: 0;
224                rel1.to: "base";
225                rel2 {
226                   relative: 0 1;
227                   to: "base";
228                }
229             }
230          }
231          part { name: "base.padding.right";
232             type: RECT;
233             mouse_events: 0;
234             scale: 1;
235             description { state: "default" 0.0;
236                min: GENLIST_PADDING_16_INC 0;
237                fixed: 1 0;
238                visible: 0;
239                rel1 {
240                   relative: 1 0;
241                   to: "base";
242                }
243                rel2.to: "base";
244             }
245          }
246          part { name: "base.padding.bottom";
247             type: RECT;
248             mouse_events: 0;
249             scale: 1;
250             description { state: "default" 0.0;
251                min: 0 GENLIST_PADDING_6_INC;
252                fixed: 0 1;
253                visible: 0;
254                align: 0.5 1;
255                rel1 {
256                   relative: 0 1;
257                   to: "base";
258                }
259                rel2 {
260                   relative: 1 1;
261                   to: "base";
262                }
263             }
264          }
265          part { name: "elm.slide.text.1";
266             type: TEXT;
267             mouse_events: 0;
268             scale: 1;
269             description { state: "default" 0.0;
270                min: 0 GENLIST_SIZE_45_INC;
271                fixed: 0 1;
272                align: 0.5 0;
273                rel1 {
274                   relative: 1 0;
275                   to_x: "base.padding.left";
276                   to_y: "base";
277                }
278                rel2 {
279                   relative: 0 0;
280                   to_x: "base.padding.right";
281                   to_y: "base";
282                }
283                color: GENLIST_TEXT_COLOR_SWEEP_STYLE;
284                text {
285                   font: "Tizen:style=Roman";
286                   size: GENLIST_FONT_32_INC;
287                   min: 0 1;
288                   align: 0.5 0.5;
289                   text_class: "tizen";
290                }
291             }
292          }
293          part { name: "elm.slide.swallow.1";
294             type: SWALLOW;
295             description { state: "default" 0.0;
296                min: GENLIST_SIZE_390_INC GENLIST_SIZE_SLIDE_60_INC;
297                max: GENLIST_SIZE_390_INC GENLIST_SIZE_SLIDE_60_INC;
298                fixed: 1 1;
299                rel1 {
300                   relative: 0.5 1;
301                   to_x: "base";
302                   to_y: "elm.slide.text.1";
303                }
304                rel2 {
305                   relative: 0.5 0;
306                   to_x: "base";
307                   to_y: "base.padding.bottom";
308                }
309             }
310          }
311          // Transparent part between base parts and slidable parts
312          part { name: "event_block_layer";
313             type: RECT;
314             mouse_events: 1;
315             description { state: "default" 0.0;
316                rel1.to: "base";
317                rel2.to: "base";
318                color: 0 0 0 0;
319             }
320             description { state: "repeat_events" 0.0;
321                inherit: "default" 0.0;
322                visible: 0;
323             }
324          }
325          // Swallow part for original genlist item style
326          part { name: "elm.swallow.origin";
327             type: SWALLOW;
328             description { state: "default" 0.0;
329             }
330             description { state: "slide" 0.0;
331                inherit: "default" 0.0;
332                rel1.relative: 1 0;
333                rel2.relative: 2 1;
334             }
335          }
336          part { name: "disclip";
337             type: RECT;
338             description { state: "default" 0.0;
339                rel1.to: "base";
340                rel2.to: "base";
341             }
342          }
343       }
344       programs {
345          program {
346             name:    "slide_right";
347             signal:  "elm,state,slide,active";
348             source:  "elm";
349             action:  STATE_SET "slide" 0.0;
350             target:  "elm.swallow.origin";
351             transition: ACCELERATE 0.5;
352             after:   "unblock_event";
353          }
354          program {
355             name:    "unblock_event";
356             action:  STATE_SET "repeat_events" 0.0;
357             target:  "event_block_layer";
358          }
359          program {
360             name:    "slide_left";
361             signal:  "elm,state,slide,passive";
362             source:  "elm";
363             action:  STATE_SET "default" 0.0;
364             target:  "event_block_layer";
365             after:   "slide_left2";
366          }
367          program {
368             name:    "slide_left2";
369             action:  STATE_SET "default" 0.0;
370             target:  "elm.swallow.origin";
371             transition: DECELERATE 0.5;
372             after:   "slide_left_finished";
373          }
374          program {
375             name:    "slide_left_finished";
376             action:  SIGNAL_EMIT "elm,state,slide,passive,finished" "elm";
377          }
378       }
379    }
380
381    group { name: "elm/genlist/item/mode/slide2.text/default";
382       alias: "elm/genlist/item_odd/mode/slide2.text/default";
383       alias: "elm/genlist/item_compress/mode/slide2.text/default";
384       alias: "elm/genlist/item_compress_odd/mode/slide2.text/default";
385       data.item: "stacking" "above";
386       data.item: "selectraise" "on";
387       data.item: "texts" "elm.slide.text.1";
388       data.item: "contents" "elm.slide.swallow.1 elm.slide.swallow.2";
389       data.item: "mode_part" "elm.swallow.origin";
390       data.item: "treesize" "GENLIST_TREESIZE_DEFAULT";
391
392       parts {
393          part { name: "base";
394          type: RECT;
395             scale: 1;
396             description { state: "default" 0.0;
397                min: 0 GENLIST_HEIGHT_129_INC;
398                color: GENLIST_SWEEP_BG_COLOR_INC;
399             }
400          }
401          part { name: "bottom_line";
402             type: RECT;
403             mouse_events: 0;
404             description { state: "default" 0.0;
405                min: 0 1;
406                fixed: 0 1;
407                visible: 1;
408                color: GENLIST_LIST_LINE1_COLOR;
409                rel1 {
410                   relative: 0.0 1.0;
411                   offset: 0 -1;
412                   to: "base";
413                }
414                rel2.to: "base";
415             }
416          }
417          part { name: "base.padding.left";
418             type: RECT;
419             mouse_events: 0;
420             scale: 1;
421             description { state: "default" 0.0;
422                min: GENLIST_SIZE_16_INC 0;
423                fixed: 1 0;
424                visible: 0;
425                rel1.to: "base";
426                rel2 {
427                   relative: 0 1;
428                   to: "base";
429                }
430             }
431          }
432          part { name: "base.padding.right";
433             type: RECT;
434             mouse_events: 0;
435             scale: 1;
436             description { state: "default" 0.0;
437                min: GENLIST_SIZE_16_INC 0;
438                fixed: 1 0;
439                visible: 0;
440                rel1 {
441                   relative: 1 0;
442                   to: "base";
443                }
444                rel2.to: "base";
445             }
446          }
447          part { name: "base.padding.bottom";
448             type: RECT;
449             mouse_events: 0;
450             scale: 1;
451             description { state: "default" 0.0;
452                min: 0 GENLIST_PADDING_11_INC;
453                fixed: 0 1;
454                visible: 0;
455                align: 0.5 1;
456                rel1 {
457                   relative: 0 1;
458                   to: "base";
459                }
460                rel2 {
461                   relative: 1 1;
462                   to: "base";
463                }
464             }
465          }
466          part { name: "elm.slide.text.1";
467             type: TEXT;
468             mouse_events: 0;
469             scale: 1;
470             description { state: "default" 0.0;
471                min: 0 GENLIST_SIZE_56_INC;
472                fixed: 0 1;
473                align: 0.5 0;
474                rel1 {
475                   relative: 1 0;
476                   to_x: "base.padding.left";
477                   to_y: "base";
478                }
479                rel2 {
480                   relative: 0 0;
481                   to_x: "base.padding.right";
482                   to_y: "base";
483                }
484                color: GENLIST_TEXT_COLOR_SWEEP_STYLE;
485                text {
486                   font: "Tizen:style=Roman";
487                   size: GENLIST_FONT_32_INC;
488                   min: 0 1;
489                   align: 0.5 0.5;
490                   text_class: "tizen";
491                }
492             }
493          }
494          part { name: "base.padding.center";
495             type: RECT;
496             mouse_events: 0;
497             scale: 1;
498             description { state: "default" 0.0;
499                min: GENLIST_SIZE_16_INC 0;
500                fixed: 1 0;
501                visible: 0;
502                align: 0.5 0.5;
503                rel1 {
504                   relative: 0.5 0;
505                   to: "base";
506                }
507                rel2 {
508                   relative: 0.5 1;
509                   to: "base";
510                }
511             }
512          }
513          part { name: "elm.slide.swallow.1";
514             type: SWALLOW;
515             description { state: "default" 0.0;
516                rel1 {
517                   relative: 1 1;
518                   to_x: "base.padding.left";
519                   to_y: "elm.slide.text.1";
520                }
521                rel2 {
522                   relative: 0 0;
523                   to_x: "base.padding.center";
524                   to_y: "base.padding.bottom";
525                }
526             }
527          }
528          part { name: "elm.slide.swallow.2";
529             type: SWALLOW;
530             description { state: "default" 0.0;
531                rel1 {
532                   relative: 1 1;
533                   to_x: "base.padding.center";
534                   to_y: "elm.slide.text.1";
535                }
536                rel2 {
537                   relative: 0 0;
538                   to_x: "base.padding.right";
539                   to_y: "base.padding.bottom";
540                }
541             }
542          }
543          // Transparent part between base parts and slidable parts
544          part { name: "event_block_layer";
545             type: RECT;
546             mouse_events: 1;
547             description { state: "default" 0.0;
548                rel1.to: "base";
549                rel2.to: "base";
550                color: 0 0 0 0;
551             }
552             description { state: "repeat_events" 0.0;
553                inherit: "default" 0.0;
554                visible: 0;
555             }
556          }
557          // Swallow part for original genlist item style
558          part { name: "elm.swallow.origin";
559             type: SWALLOW;
560             description { state: "default" 0.0;
561             }
562             description { state: "slide" 0.0;
563                inherit: "default" 0.0;
564                rel1.relative: 1 0;
565                rel2.relative: 2 1;
566             }
567          }
568          part { name: "disclip";
569             type: RECT;
570             description { state: "default" 0.0;
571                rel1.to: "base";
572                rel2.to: "base";
573             }
574          }
575       }
576       programs {
577          program {
578             name:    "slide_right";
579             signal:  "elm,state,slide,active";
580             source:  "elm";
581             action:  STATE_SET "slide" 0.0;
582             target:  "elm.swallow.origin";
583             transition: ACCELERATE 0.5;
584             after:   "unblock_event";
585          }
586          program {
587             name:    "unblock_event";
588             action:  STATE_SET "repeat_events" 0.0;
589             target:  "event_block_layer";
590          }
591          program {
592             name:    "slide_left";
593             signal:  "elm,state,slide,passive";
594             source:  "elm";
595             action:  STATE_SET "default" 0.0;
596             target:  "event_block_layer";
597             after:   "slide_left2";
598          }
599          program {
600             name:    "slide_left2";
601             action:  STATE_SET "default" 0.0;
602             target:  "elm.swallow.origin";
603             transition: DECELERATE 0.5;
604             after:   "slide_left_finished";
605          }
606          program {
607             name:    "slide_left_finished";
608             action:  SIGNAL_EMIT "elm,state,slide,passive,finished" "elm";
609          }
610       }
611    }
612
613    group { name: "elm/genlist/item/mode/slide3.text/default";
614       alias: "elm/genlist/item_odd/mode/slide3.text/default";
615       alias: "elm/genlist/item_compress/mode/slide3.text/default";
616       alias: "elm/genlist/item_compress_odd/mode/slide3.text/default";
617       data.item: "stacking" "above";
618       data.item: "selectraise" "on";
619       data.item: "texts" "elm.slide.text.1";
620       data.item: "contents" "elm.slide.swallow.1 elm.slide.swallow.2 elm.slide.swallow.3";
621       data.item: "mode_part" "elm.swallow.origin";
622       data.item: "treesize" "GENLIST_TREESIZE_DEFAULT";
623
624       parts {
625          part { name: "base";
626          type: RECT;
627             scale: 1;
628             description { state: "default" 0.0;
629                min: 0 GENLIST_HEIGHT_1LINE;
630                color: GENLIST_SWEEP_BG_COLOR_INC;
631             }
632          }
633          part { name: "bottom_line";
634             type: RECT;
635             mouse_events: 0;
636             description { state: "default" 0.0;
637                min: 0 1;
638                fixed: 0 1;
639                visible: 1;
640                color: GENLIST_LIST_LINE1_COLOR;
641                rel1 {
642                   relative: 0.0 1.0;
643                   offset: 0 -1;
644                   to: "base";
645                }
646                rel2.to: "base";
647             }
648          }
649          part { name: "base.padding.left";
650             type: RECT;
651             mouse_events: 0;
652             scale: 1;
653             description { state: "default" 0.0;
654                min: GENLIST_SIZE_16_INC 0;
655                fixed: 1 0;
656                visible: 0;
657                rel1.to: "base";
658                rel2 {
659                   relative: 0 1;
660                   to: "base";
661                }
662             }
663          }
664          part { name: "base.padding.right";
665             type: RECT;
666             mouse_events: 0;
667             scale: 1;
668             description { state: "default" 0.0;
669                min: GENLIST_SIZE_16_INC 0;
670                fixed: 1 0;
671                visible: 0;
672                rel1 {
673                   relative: 1 0;
674                   to: "base";
675                }
676                rel2.to: "base";
677             }
678          }
679          part { name: "base.padding.bottom";
680             type: RECT;
681             mouse_events: 0;
682             scale: 1;
683             description { state: "default" 0.0;
684                min: 0 GENLIST_PADDING_6_INC;
685                fixed: 0 1;
686                visible: 0;
687                align: 0.5 1;
688                rel1 {
689                   relative: 0 1;
690                   to: "base";
691                }
692                rel2 {
693                   relative: 1 1;
694                   to: "base";
695                }
696             }
697          }
698          part { name: "elm.slide.text.1";
699             type: TEXT;
700             mouse_events: 0;
701             scale: 1;
702             description { state: "default" 0.0;
703                min: 0 GENLIST_LIST_MAIN_TEXT_SIZE;
704                fixed: 0 1;
705                align: 0.5 0;
706                rel1 {
707                   relative: 1 0;
708                   to_x: "base.padding.left";
709                   to_y: "base";
710                }
711                rel2 {
712                   relative: 0 0;
713                   to_x: "base.padding.right";
714                   to_y: "base";
715                }
716                color: GENLIST_TEXT_COLOR_SWEEP_STYLE;
717                text {
718                   font: "Tizen:style=Roman";
719                   size: GENLIST_FONT_32_INC;
720                   min: 0 1;
721                   align: 0.5 0.5;
722                   text_class: "tizen";
723                }
724             }
725          }
726          part { name: "elm.slide.swallow.2";
727             type: SWALLOW;
728             scale: 1;
729             description { state: "default" 0.0;
730                min: GENLIST_SIZE_SLIDE_220_INC 0;
731                fixed: 1 0;
732                rel1 {
733                   relative: 0.5 1;
734                   to_x: "base";
735                   to_y: "elm.slide.text.1";
736                }
737                rel2 {
738                   relative: 0.5 0;
739                   to_x: "base";
740                   to_y: "base.padding.bottom";
741                }
742             }
743          }
744          part { name: "elm.padding.swallow.2.left";
745             type: RECT;
746             mouse_events: 0;
747             scale: 1;
748             description { state: "default" 0.0;
749                min: GENLIST_SIZE_16_INC 0;
750                fixed: 1 0;
751                align: 1 0.5;
752                visible: 0;
753                rel1.to: "elm.slide.swallow.2";
754                rel2 {
755                   relative: 0 1;
756                   to: "elm.slide.swallow.2";
757                }
758             }
759          }
760          part { name: "elm.slide.swallow.1";
761             type: SWALLOW;
762             scale: 1;
763             description { state: "default" 0.0;
764                min: GENLIST_SIZE_SLIDE_220_INC 0;
765                fixed: 1 0;
766                align: 1 0.5;
767                rel1.to: "elm.padding.swallow.2.left";
768                rel2 {
769                   relative: 0 1;
770                   to: "elm.padding.swallow.2.left";
771                }
772             }
773          }
774          part { name: "elm.padding.swallow.2.right";
775             type: RECT;
776             mouse_events: 0;
777             scale: 1;
778             description { state: "default" 0.0;
779                min: GENLIST_SIZE_16_INC 0;
780                fixed: 1 0;
781                align: 0 0.5;
782                visible: 0;
783                rel1 {
784                   relative: 1 0;
785                   to: "elm.slide.swallow.2";
786                }
787                rel2.to: "elm.slide.swallow.2";
788             }
789          }
790          part { name: "elm.slide.swallow.3";
791             type: SWALLOW;
792             scale: 1;
793             description { state: "default" 0.0;
794                min: GENLIST_SIZE_SLIDE_220_INC 0;
795                fixed: 1 0;
796                align: 0 0.5;
797                rel1 {
798                   relative: 1 0;
799                   to: "elm.padding.swallow.2.right";
800                }
801                rel2.to: "elm.padding.swallow.2.right";
802             }
803          }
804          // Transparent part between base parts and slidable parts
805          part { name: "event_block_layer";
806             type: RECT;
807             mouse_events: 1;
808             description { state: "default" 0.0;
809                rel1.to: "base";
810                rel2.to: "base";
811                color: 0 0 0 0;
812             }
813             description { state: "repeat_events" 0.0;
814                inherit: "default" 0.0;
815                visible: 0;
816             }
817          }
818          // Swallow part for original genlist item style
819          part { name: "elm.swallow.origin";
820             type: SWALLOW;
821             description { state: "default" 0.0;
822             }
823             description { state: "slide" 0.0;
824                inherit: "default" 0.0;
825                rel1.relative: 1 0;
826                rel2.relative: 2 1;
827             }
828          }
829          part { name: "disclip";
830             type: RECT;
831             description { state: "default" 0.0;
832                rel1.to: "base";
833                rel2.to: "base";
834             }
835          }
836       }
837       programs {
838          program {
839             name:    "slide_right";
840             signal:  "elm,state,slide,active";
841             source:  "elm";
842             action:  STATE_SET "slide" 0.0;
843             target:  "elm.swallow.origin";
844             transition: ACCELERATE 0.5;
845             after:   "unblock_event";
846          }
847          program {
848             name:    "unblock_event";
849             action:  STATE_SET "repeat_events" 0.0;
850             target:  "event_block_layer";
851          }
852          program {
853             name:    "slide_left";
854             signal:  "elm,state,slide,passive";
855             source:  "elm";
856             action:  STATE_SET "default" 0.0;
857             target:  "event_block_layer";
858             after:   "slide_left2";
859          }
860          program {
861             name:    "slide_left2";
862             action:  STATE_SET "default" 0.0;
863             target:  "elm.swallow.origin";
864             transition: DECELERATE 0.5;
865             after:   "slide_left_finished";
866          }
867          program {
868             name:    "slide_left_finished";
869             action:  SIGNAL_EMIT "elm,state,slide,passive,finished" "elm";
870          }
871       }
872    }
873
874    group { name: "elm/genlist/item/mode/slide4.text/default";
875       alias: "elm/genlist/item_odd/mode/slide4.text/default";
876       alias: "elm/genlist/item_compress/mode/slide4.text/default";
877       alias: "elm/genlist/item_compress_odd/mode/slide4.text/default";
878       data.item: "stacking" "above";
879       data.item: "selectraise" "on";
880       data.item: "texts" "elm.slide.text.1";
881       data.item: "contents" "elm.slide.swallow.1 elm.slide.swallow.2 elm.slide.swallow.3 elm.slide.swallow.4";
882       data.item: "mode_part" "elm.swallow.origin";
883       data.item: "treesize" "GENLIST_TREESIZE_DEFAULT";
884
885       parts {
886          part { name: "base";
887          type: RECT;
888             scale: 1;
889             description { state: "default" 0.0;
890                min: 0 GENLIST_HEIGHT_129_INC;
891                color: GENLIST_SWEEP_BG_COLOR_INC;
892             }
893          }
894          part { name: "bottom_line";
895             type: RECT;
896             mouse_events: 0;
897             description { state: "default" 0.0;
898                min: 0 1;
899                fixed: 0 1;
900                visible: 1;
901                color: GENLIST_LIST_LINE1_COLOR;
902                rel1 {
903                   relative: 0.0 1.0;
904                   offset: 0 -1;
905                   to: "base";
906                }
907                rel2.to: "base";
908             }
909          }
910          part { name: "base.padding.left";
911             type: RECT;
912             mouse_events: 0;
913             scale: 1;
914             description { state: "default" 0.0;
915                min: GENLIST_SIZE_16_INC 0;
916                fixed: 1 0;
917                visible: 0;
918                rel1.to: "base";
919                rel2 {
920                   relative: 0 1;
921                   to: "base";
922                }
923             }
924          }
925          part { name: "base.padding.right";
926             type: RECT;
927             mouse_events: 0;
928             scale: 1;
929             description { state: "default" 0.0;
930                min: GENLIST_SIZE_16_INC 0;
931                fixed: 1 0;
932                visible: 0;
933                rel1 {
934                   relative: 1 0;
935                   to: "base";
936                }
937                rel2.to: "base";
938             }
939          }
940          part { name: "base.padding.bottom";
941             type: RECT;
942             mouse_events: 0;
943             scale: 1;
944             description { state: "default" 0.0;
945                min: 0 7;
946                fixed: 0 1;
947                visible: 0;
948                align: 0.5 1;
949                rel1 {
950                   relative: 0 1;
951                   to: "base";
952                }
953                rel2 {
954                   relative: 1 1;
955                   to: "base";
956                }
957             }
958          }
959          part { name: "elm.slide.text.1";
960             type: TEXT;
961             mouse_events: 0;
962             scale: 1;
963             description { state: "default" 0.0;
964                min: 0 GENLIST_SIZE_57_INC;
965                fixed: 0 1;
966                align: 0.5 0;
967                rel1 {
968                   relative: 1 0;
969                   to_x: "base.padding.left";
970                   to_y: "base";
971                }
972                rel2 {
973                   relative: 0 0;
974                   to_x: "base.padding.right";
975                   to_y: "base";
976                }
977                color: GENLIST_TEXT_COLOR_SWEEP_STYLE;
978                text {
979                   font: "Tizen:style=Roman";
980                   size: GENLIST_FONT_32_INC;
981                   min: 0 1;
982                   align: 0.5 0.5;
983                   text_class: "tizen";
984                }
985             }
986          }
987          part { name: "base.padding.center";
988             type: RECT;
989             mouse_events: 0;
990             scale: 1;
991             description { state: "default" 0.0;
992                min: GENLIST_PADDING_13_INC 0;
993                fixed: 1 0;
994                visible: 0;
995                align: 0.5 0.5;
996                rel1 {
997                   relative: 0.5 1;
998                   to_x: "base";
999                   to_y: "elm.slide.text.1";
1000                }
1001                rel2 {
1002                   relative: 0.5 0;
1003                   to_x: "base";
1004                   to_y: "base.padding.bottom";
1005                }
1006             }
1007          }
1008          part { name: "elm.slide.swallow.2";
1009             type: SWALLOW;
1010             scale: 1;
1011             description { state: "default" 0.0;
1012                min: GENLIST_SIZE_SLIDE_165_INC GENLIST_SIZE_SLIDE_60_INC;
1013                max: GENLIST_SIZE_SLIDE_165_INC GENLIST_SIZE_SLIDE_60_INC;
1014                fixed: 1 1;
1015                align: 1 0.5;
1016                rel1.to: "base.padding.center";
1017                rel2 {
1018                   relative: 0 1;
1019                   to: "base.padding.center";
1020                }
1021             }
1022          }
1023          part { name: "elm.padding.swallow.2.left";
1024             type: RECT;
1025             mouse_events: 0;
1026             scale: 1;
1027             description { state: "default" 0.0;
1028                min: GENLIST_SIZE_13_INC 0;
1029                fixed: 1 0;
1030                align: 1 0.5;
1031                visible: 0;
1032                rel1.to: "elm.slide.swallow.2";
1033                rel2 {
1034                   relative: 0 1;
1035                   to: "elm.slide.swallow.2";
1036                }
1037             }
1038          }
1039          part { name: "elm.slide.swallow.1";
1040             type: SWALLOW;
1041             scale: 1;
1042             description { state: "default" 0.0;
1043                min: GENLIST_SIZE_SLIDE_165_INC GENLIST_SIZE_SLIDE_60_INC;
1044                max: GENLIST_SIZE_SLIDE_165_INC GENLIST_SIZE_SLIDE_60_INC;
1045                fixed: 1 1;
1046                align: 1 0.5;
1047                rel1.to: "elm.padding.swallow.2.left";
1048                rel2 {
1049                   relative: 0 1;
1050                   to: "elm.padding.swallow.2.left";
1051                }
1052             }
1053          }
1054          part { name: "elm.slide.swallow.3";
1055             type: SWALLOW;
1056             scale: 1;
1057             description { state: "default" 0.0;
1058                min: GENLIST_SIZE_SLIDE_165_INC GENLIST_SIZE_SLIDE_60_INC;
1059                max: GENLIST_SIZE_SLIDE_165_INC GENLIST_SIZE_SLIDE_60_INC;
1060                fixed: 1 1;
1061                align: 0 0.5;
1062                rel1 {
1063                   relative: 1 0;
1064                   to: "base.padding.center";
1065                }
1066                rel2.to: "base.padding.center";
1067             }
1068          }
1069          part { name: "elm.padding.swallow.3.right";
1070             type: RECT;
1071             mouse_events: 0;
1072             scale: 1;
1073             description { state: "default" 0.0;
1074                min: GENLIST_SIZE_13_INC 0;
1075                fixed: 1 0;
1076                align: 0 0.5;
1077                visible: 0;
1078                rel1 {
1079                   relative: 1 0;
1080                   to: "elm.slide.swallow.3";
1081                }
1082                rel2.to: "elm.slide.swallow.2";
1083             }
1084          }
1085          part { name: "elm.slide.swallow.4";
1086             type: SWALLOW;
1087             scale: 1;
1088             description { state: "default" 0.0;
1089                min: GENLIST_SIZE_SLIDE_165_INC GENLIST_SIZE_SLIDE_60_INC;
1090                max: GENLIST_SIZE_SLIDE_165_INC GENLIST_SIZE_SLIDE_60_INC;
1091                fixed: 1 1;
1092                align: 0 0.5;
1093                rel1 {
1094                   relative: 1 0;
1095                   to: "elm.padding.swallow.3.right";
1096                }
1097                rel2.to: "elm.padding.swallow.3.right";
1098             }
1099          }
1100          // Transparent part between base parts and slidable parts
1101          part { name: "event_block_layer";
1102             type: RECT;
1103             mouse_events: 1;
1104             description { state: "default" 0.0;
1105                rel1.to: "base";
1106                rel2.to: "base";
1107                color: 0 0 0 0;
1108             }
1109             description { state: "repeat_events" 0.0;
1110                inherit: "default" 0.0;
1111                visible: 0;
1112             }
1113          }
1114          // Swallow part for original genlist item style
1115          part { name: "elm.swallow.origin";
1116             type: SWALLOW;
1117             description { state: "default" 0.0;
1118             }
1119             description { state: "slide" 0.0;
1120                inherit: "default" 0.0;
1121                rel1.relative: 1 0;
1122                rel2.relative: 2 1;
1123             }
1124          }
1125          part { name: "disclip";
1126             type: RECT;
1127             description { state: "default" 0.0;
1128                rel1.to: "base";
1129                rel2.to: "base";
1130             }
1131          }
1132       }
1133       programs {
1134          program {
1135             name:    "slide_right";
1136             signal:  "elm,state,slide,active";
1137             source:  "elm";
1138             action:  STATE_SET "slide" 0.0;
1139             target:  "elm.swallow.origin";
1140             transition: ACCELERATE 0.5;
1141             after:   "unblock_event";
1142          }
1143          program {
1144             name:    "unblock_event";
1145             action:  STATE_SET "repeat_events" 0.0;
1146             target:  "event_block_layer";
1147          }
1148          program {
1149             name:    "slide_left";
1150             signal:  "elm,state,slide,passive";
1151             source:  "elm";
1152             action:  STATE_SET "default" 0.0;
1153             target:  "event_block_layer";
1154             after:   "slide_left2";
1155          }
1156          program {
1157             name:    "slide_left2";
1158             action:  STATE_SET "default" 0.0;
1159             target:  "elm.swallow.origin";
1160             transition: DECELERATE 0.5;
1161             after:   "slide_left_finished";
1162          }
1163          program {
1164             name:    "slide_left_finished";
1165             action:  SIGNAL_EMIT "elm,state,slide,passive,finished" "elm";
1166          }
1167       }
1168    }
1169 #endif