Apply EFL migration of thread, common
[apps/core/preloaded/message-app.git] / common / data / msg_genlist.edc
1 #define GENLIST_PART_DISCLIP \
2 part {  name: "disclip"; \
3         type: RECT; \
4         description { state: "default" 0.0; \
5         } \
6         description { state: "disabled" 0.0; \
7                 inherit: "default" 0.0; \
8                 color: 255 255 255 110; \
9         } \
10 }
11
12 #define GENLIST_PART_FLIP \
13 part {  name: "elm.flip.icon"; \
14         clip_to: "disclip"; \
15         type: SWALLOW; \
16         scale: 1; \
17         description { state: "default" 0.0; \
18                 visible: 0; \
19                 fixed: 1 1; \
20                 align: 1 0; \
21                 min: 80 0; \
22                 rel1 { \
23                         relative: 0.0  0.0; \
24                         to_x: "elm.padding.right"; \
25                 } \
26                 rel2 { \
27                         relative: 0.0  1.0; \
28                         to_x: "elm.padding.right"; \
29                 } \
30         } \
31         description { state: "flip_enabled" 0.0; \
32                 inherit: "default" 0.0; \
33                 visible: 1; \
34         } \
35 } \
36 part {  name: "elm.flip.content"; \
37         clip_to: "disclip"; \
38         type: SWALLOW; \
39         scale: 1; \
40         description { state: "default" 0.0; \
41                 visible: 0; \
42                 fixed: 1 1; \
43                 rel1 { \
44                         relative: 1.0  0.5; \
45                         to_x: "elm.padding.left"; \
46                 } \
47                 rel2 { \
48                         relative: 0.0  0.5; \
49                         to_x: "elm.flip.icon"; \
50                 } \
51         } \
52         description { state: "flip_enabled" 0.0; \
53                 inherit: "default" 0.0; \
54                 visible: 1; \
55         } \
56 }
57
58
59 #define GENLIST_PROGRAM_FLIP_2TEXT_1ICON \
60          program { name: "flip_enabled"; \
61             signal: "elm,state,flip,enabled"; \
62             source: "elm"; \
63             action: STATE_SET "flip_enabled" 0.0; \
64             target: "elm.text.1"; \
65             target: "elm.text.2"; \
66             target: "elm.icon"; \
67             target: "elm.flip.content"; \
68          } \
69          program { name: "flip_disabled"; \
70             signal: "elm,state,flip,disabled"; \
71             source: "elm"; \
72             action: STATE_SET "default" 0.0; \
73             target: "elm.text.1"; \
74             target: "elm.text.2"; \
75             target: "elm.icon"; \
76             target: "elm.flip.content"; \
77          }
78
79 #define GENLIST_PROGRAM_FLIP_1TEXT \
80          program { name: "flip_enabled"; \
81             signal: "elm,state,flip,enabled"; \
82             source: "elm"; \
83             action: STATE_SET "flip_enabled" 0.0; \
84             target: "elm.text"; \
85             target: "elm.flip.content"; \
86          } \
87          program { name: "flip_disabled"; \
88             signal: "elm,state,flip,disabled"; \
89             source: "elm"; \
90             action: STATE_SET "default" 0.0; \
91             target: "elm.text"; \
92             target: "elm.flip.content"; \
93          }
94
95
96
97 //////////////////////////////////////////////////////////////////////////////
98 group {
99         name: "elm/genlist/item/1text.custom/default";
100         alias: "elm/genlist/item_odd/1text.custom/default";
101         alias: "elm/genlist/item_compress/1text.custom/default";
102         alias: "elm/genlist/item_compress_odd/itext.custom/default";
103         data.item: "stacking" "above";
104         data.item: "selectraise" "on";
105         data.item: "flips" "elm.flip.icon elm.flip.content";
106         data.item: "treesize" 26;
107         data.item: "texts" "elm.text";
108         data.item: "contents" "elm.icon.edit";
109
110         parts {
111                 part {
112                         name: "base";
113                         type: RECT;
114                         repeat_events: 1;
115                         scale: 1;
116                         description {
117                                 state: "default" 0.0;
118                                 min: 0 112;
119                                 color: 0 0 0 0; // 2nd depth color
120                                 //color: 153 176 195 255; // 2nd depth color
121                         }
122                 }
123
124                 part {
125                         name: "bg_image";
126                         type: RECT;
127                         clip_to: "disclip";
128                         mouse_events: 0;
129                         description {
130                                 state: "default" 0.0;
131                                 color: 0 0 0 0;
132                                 //color: 153 176 195 255;
133                         }
134                         description {
135                                 state: "selected" 0.0;
136                                 color: 42 137 194 255;
137                         }
138                 }
139
140                 part {
141                         name: "bottom_line";
142                         type: RECT;
143                         mouse_events: 0;
144                         description {
145                                 state: "default" 0.0;
146                                 min: 0 1;
147                                 fixed: 0 1;
148                                 visible: 1;
149                                 color: 169 169 169 255;
150                                 rel1 {
151                                         relative: 0.0 1.0;
152                                         offset: 0 -1;
153                                 }
154                         }
155                 }
156                 part {
157                         name: "elm.padding.top";
158                         type: RECT;
159                         scale: 1;
160                         description {
161                                 state: "default" 0.0;
162                                 min: 0 16;
163                                 fixed: 0 1;
164                                 visible: 0;
165                                 rel2.relative: 1.0 0.0;
166                                 align: 0.0 0.0;
167                         }
168                 }
169                 part {
170                         name: "elm.padding.bottom";
171                         type: RECT;
172                         scale: 1;
173                         description {
174                                 state: "default" 0.0;
175                                 min: 0 1;
176                                 fixed: 0 1;
177                                 visible: 0;
178                                 rel1.relative: 0.0 1.0;
179                                 align: 0.0 1.0;
180                         }
181                 }
182                 part {
183                         name: "elm.padding.left";
184                         type: RECT;
185                         scale: 1;
186                         description {
187                                 state: "default" 0.0;
188                                 min: 16 0;
189                                 fixed: 1 0;
190                                 visible: 0;
191                                 rel2.relative: 0.0 1.0;
192                                 align: 0.0 0.0;
193                         }
194                 }
195                 part {
196                         name: "elm.padding.right";
197                         type: RECT;
198                         scale: 1;
199                         description {
200                                 state: "default" 0.0;
201                                 min: 0 0; //16 0;
202                                 fixed: 1 0;
203                                 visible: 0;
204                                 rel1.relative: 1.0 0.0;
205                                 align: 1.0 0.0;
206                         }
207                 }
208
209                 part {
210                         name: "elm.text";
211                         clip_to: "disclip";
212                         type: TEXT;
213                         mouse_events: 0;
214                         scale: 1;
215                         description {
216                                 state: "default" 0.0;
217                                 min: 0 61;
218                                 fixed: 0 1;
219                                 rel1 {
220                                         relative: 1.0 1.0;
221                                         to_x: "elm.padding.left";
222                                         to_y: "elm.padding.top";
223                                 }
224                                 rel2 {
225                                         relative: 0.0 1.0;
226                                         to_x: "elm.padding.right";
227                                         to_y: "elm.padding.top";
228                                 }
229                                 align: 0.0 0.0;
230                                 color: 0 0 0 255;
231                                 text {
232                                         font: "SLP:style=Roman";
233                                         size: 44;
234                                         min: 0 1;
235                                         align: 0.0 0.5;
236                                         text_class: "list_item";
237                                 }
238                         }
239                         description {
240                                 state: "selected" 0.0;
241                                 inherit: "default" 0.0;
242                                 color: 249 249 249 255;
243                         }
244                         description {
245                                 state: "flip_enabled" 0.0;
246                                 inherit: "default" 0.0;
247                                 visible: 0;
248                         }
249                 }
250                 GENLIST_PART_FLIP
251                 GENLIST_PART_DISCLIP
252         }
253         programs {
254         // signal: elm,state,%s,active
255         //   a "check" item named %s went active
256         // signal: elm,state,%s,passive
257         //   a "check" item named %s went passive
258         // default is passive
259                 program {
260                         name: "go_active";
261                         signal: "elm,state,selected";
262                         source: "elm";
263                         action: STATE_SET "selected" 0.0;
264                         target: "bg_image";
265                         target: "elm.text";
266                 }
267                 program {
268                         name: "go_passive";
269                         signal: "elm,state,unselected";
270                         source: "elm";
271                         action: STATE_SET "default" 0.0;
272                         target: "bg_image";
273                         target: "elm.text";
274                         transition: LINEAR 0.1;
275                 }
276                 program {
277                         name: "go_disabled";
278                         signal: "elm,state,disabled";
279                         source: "elm";
280                         action: STATE_SET "disabled" 0.0;
281                         target: "disclip";
282                 }
283                 program { name: "go_enabled";
284                         signal: "elm,state,enabled";
285                         source: "elm";
286                         action: STATE_SET "default" 0.0;
287                         target: "disclip";
288                 }
289                 GENLIST_PROGRAM_FLIP_1TEXT
290         }
291 }
292 group {
293         name: "elm/genlist/item/2text.1icon.2.custom/default";
294         alias: "elm/genlist/item_odd/2text.1icon.2.custom/default";
295         alias: "elm/genlist/item_compress/2text.1icon.2.custom/default";
296         alias: "elm/genlist/item_compress_odd/2text.1icon.2.custom/default";
297         data.item: "stacking" "above";
298         data.item: "selectraise" "on";
299         data.item: "texts" "elm.text.1 elm.text.2";
300         data.item: "contents" "elm.icon";
301         data.item: "flips" "elm.flip.content";
302
303         parts {
304                 part {
305                         name: "base";
306                         type: RECT;
307                         repeat_events: 1;
308                         scale: 1;
309                         description {
310                                 state: "default" 0.0;
311                                 min: 0 129;
312                                 color: 0 0 0 0; // 2nd depth color
313                                 //color: 153 176 195 255; // 2nd depth color
314                         }
315                 }
316
317                 part {
318                         name: "bg_image";
319                         type: RECT;
320                         clip_to: "disclip";
321                         mouse_events: 0;
322                         description {
323                                 state: "default" 0.0;
324                                 color: 0 0 0 0;
325                                 //color: 153 176 195 255;
326                         }
327                         description {
328                                 state: "selected" 0.0;
329                                 color: 42 137 194 255;
330                         }
331                 }
332
333                 part {
334                         name: "bottom_line";
335                         type: RECT;
336                         mouse_events: 0;
337                         description {
338                                 state: "default" 0.0;
339                                 min: 0 1;
340                                 fixed: 0 1;
341                                 visible: 1;
342                                 color: 169 169 169 255;
343                                 rel1 {
344                                         relative: 0.0 1.0;
345                                         offset: 0 -1;
346                                 }
347                         }
348                 }
349                 part {
350                         name: "elm.padding.top";
351                         type: RECT;
352                         scale: 1;
353                         description {
354                                 state: "default" 0.0;
355                                 min: 0 0;
356                                 fixed: 0 1;
357                                 visible: 0;
358                                 rel2.relative: 1.0 0.0;
359                                 align: 0.0 0.0;
360                         }
361                 }
362                 part {
363                         name: "elm.padding.bottom";
364                         type: RECT;
365                         scale: 1;
366                         description {
367                                 state: "default" 0.0;
368                                 min: 0 1;
369                                 fixed: 0 1;
370                                 visible: 0;
371                                 rel1.relative: 0.0 1.0;
372                                 align: 0.0 1.0;
373                         }
374                 }
375                 part {
376                         name: "elm.padding.left";
377                         type: RECT;
378                         scale: 1;
379                         description {
380                                 state: "default" 0.0;
381                                 min: 16 0;
382                                 fixed: 1 0;
383                                 visible: 0;
384                                 rel2.relative: 0.0 1.0;
385                                 align: 0.0 0.0;
386                         }
387                 }
388                 part {
389                         name: "elm.padding.right";
390                         type: RECT;
391                         scale: 1;
392                         description {
393                                 state: "default" 0.0;
394                                 min: 0 0; //16 0;
395                                 fixed: 1 0;
396                                 visible: 0;
397                                 rel1.relative: 1.0 0.0;
398                                 align: 1.0 0.0;
399                         }
400                 }
401                 part {
402                         name: "elm.icon";
403                         clip_to: "disclip";
404                         type: SWALLOW;
405                         scale: 1;
406                         description {
407                                 state: "default" 0.0;
408                                 fixed: 1 1;
409                                 rel1 {
410                                         relative: 0.0 1.0;
411                                         to_x: "elm.padding.right";
412                                         to_y: "elm.padding.top";
413                                 }
414                                 rel2 {
415                                         relative: 0.0 0.0;
416                                         to_x: "elm.padding.right";
417                                         to_y: "elm.padding.bottom";
418                                 }
419                                 align: 1.0 0.5;
420                         }
421                         description {
422                                 state: "flip_enabled" 0.0;
423                                 inherit: "default" 0.0;
424                                 visible: 0;
425                         }
426                 }
427                 part {
428                         name: "elm.padding.icon.left";
429                         clip_to: "disclip";
430                         type: RECT;
431                         scale: 1;
432                         description {
433                                 state: "default" 0.0;
434                                 min: 16 0;
435                                 fixed: 1 0;
436                                 rel1.to_x: "elm.icon";
437                                 rel2 {
438                                         relative: 0.0 1.0;
439                                         to_x: "elm.icon";
440                                 }
441                                 align: 1.0 0.0;
442                                 visible: 0;
443                         }
444                 }
445                 part {
446                         name: "elm.text.1";
447                         clip_to: "disclip";
448                         type: TEXT;
449                         mouse_events: 0;
450                         scale: 1;
451                         description {
452                                 state: "default" 0.0;
453                                 min: 0 61;
454                                 fixed: 0 1;
455                                 rel1 {
456                                         relative: 1.0 1.0;
457                                         to_x: "elm.padding.left";
458                                         to_y: "elm.padding.top";
459                                 }
460                                 rel2 {
461                                         relative: 0.0 1.0;
462                                         to_x: "elm.padding.icon.left";
463                                         to_y: "elm.padding.top";
464                                 }
465                                 align: 0.0 0.0;
466                                 color: 0 0 0 255;
467                                 text {
468                                         font: "SLP:style=Roman";
469                                         size: 44;
470                                         min: 0 1;
471                                         align: 0.0 0.5;
472                                         text_class: "list_item";
473                                 }
474                         }
475                         description {
476                                 state: "selected" 0.0;
477                                 inherit: "default" 0.0;
478                                 color: 249 249 249 255;
479                         }
480                         description {
481                                 state: "flip_enabled" 0.0;
482                                 inherit: "default" 0.0;
483                                 visible: 0;
484                         }
485                 }
486                 part {
487                         name: "elm.text.2";
488                         clip_to: "disclip";
489                         type: TEXT;
490                         mouse_events: 0;
491                         scale: 1;
492                         description { state: "default" 0.0;
493                                 rel1 {
494                                         relative: 1.0 1.0;
495                                         to_x: "elm.padding.left";
496                                         to_y: "elm.text.1";
497                                 }
498                                 rel2 {
499                                         relative: 0.0 0.0;
500                                         to_x: "elm.padding.icon.left";
501                                         to_y: "elm.padding.bottom";
502                                 }
503                                 align: 0.0 0.0;
504                                 color: 124 124 124 255;
505                                 text {
506                                         font: "SLP:style=Medium";
507                                         size: 32;
508                                         min: 0 1;
509                                         align: 0.0 0.5;
510                                         text_class: "slp_medium";
511                                 }
512                         }
513                         description {
514                                 state: "selected" 0.0;
515                                 inherit: "default" 0.0;
516                                 color: 249 249 249 255;
517                         }
518                         description {
519                                 state: "flip_enabled" 0.0;
520                                 inherit: "default" 0.0;
521                                 visible: 0;
522                         }
523                         description {
524                                 state: "flip_enabled" 0.0;
525                                 inherit: "default" 0.0;
526                                 visible: 0;
527                         }
528                 }
529                 GENLIST_PART_FLIP
530                 GENLIST_PART_DISCLIP
531         }
532         programs {
533         // signal: elm,state,%s,active
534         //   a "check" item named %s went active
535         // signal: elm,state,%s,passive
536         //   a "check" item named %s went passive
537         // default is passive
538                 program {
539                         name: "go_active";
540                         signal: "elm,state,selected";
541                         source: "elm";
542                         action: STATE_SET "selected" 0.0;
543                         target: "bg_image";
544                         target: "elm.text.1";
545                         target: "elm.text.2";
546                 }
547                 program {
548                         name: "go_passive";
549                         signal: "elm,state,unselected";
550                         source: "elm";
551                         action: STATE_SET "default" 0.0;
552                         target: "bg_image";
553                         target: "elm.text.1";
554                         target: "elm.text.2";
555                         transition: LINEAR 0.1;
556                 }
557                 program {
558                         name: "go_disabled";
559                         signal: "elm,state,disabled";
560                         source: "elm";
561                         action: STATE_SET "disabled" 0.0;
562                         target: "disclip";
563                 }
564                 program { name: "go_enabled";
565                         signal: "elm,state,enabled";
566                         source: "elm";
567                         action: STATE_SET "default" 0.0;
568                         target: "disclip";
569                 }
570                 GENLIST_PROGRAM_FLIP_2TEXT_1ICON
571         }
572 }
573
574