Merge "Renamed directory groups -> widgets."
[profile/ivi/efl-theme-tizen.git] / themes / widgets / bubble.edc
1 /*
2  * Copyright (c) 2011 Samsung Electronics Co., Ltd All Rights Reserved
3  *
4  *  Licensed under the Apache License, Version 2.0 (the "License");
5  *  you may not use this file except in compliance with the License.
6  *  You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  *  Unless required by applicable law or agreed to in writing, software
11  *  distributed under the License is distributed on an "AS IS" BASIS,
12  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  *  See the License for the specific language governing permissions and
14  *  limitations under the License.
15  *
16  */
17
18 #define BUBBLE_WIDTH            380
19
20 #define BUBBLE_DATE_PAD         15
21 #define BUBBLE_DATE_HEIGHT      30
22
23 #define BUBBLE_TOP_PAD          10
24 #define BUBBLE_RIGHT_PAD        15
25 #define BUBBLE_ICON_PAD         6
26
27 images {
28         image: "07_message_bubble_readmessage.png" COMP;
29         image: "07_message_bubble_sentmessage.png" COMP;
30 }
31
32 // deprecated style
33 group {
34         name: "elm/bubble/base/default";
35         alias: "elm/bubble/base/readmessage";
36
37         parts {
38                 part {
39                         name: "elm.rect.left.pad";
40                         type: RECT;
41                         mouse_events: 0;
42                         scale: 1;
43                         description {
44                                 state: "default" 0.0;
45                                 min: BUBBLE_DATE_PAD 0;
46                                 fixed: 1 0;
47                                 align: 0.0 0.0;
48                                 color: 0 0 0 0;
49                                 rel1 { relative: 0.0 0.0; }
50                                 rel2 { relative: 0.0 0.0; }
51                         }
52                         description {
53                                 state: "expand" 0.0;
54                                 inherit: "default" 0.0;
55                                 min: BUBBLE_DATE_PAD BUBBLE_DATE_HEIGHT;
56                                 fixed: 1 1;
57                         }
58                 }               
59                 part {
60                         name: "elm.rect.top.pad";
61                         type: RECT;
62                         mouse_events: 0;
63                         scale: 1;
64                         description {
65                                 state: "default" 0.0;
66                                 min: 0 BUBBLE_TOP_PAD;
67                                 fixed: 0 1;
68                                 align: 0.0 0.0;
69                                 color: 0 0 0 0;
70                                 rel1 { relative: 0.0 1.0; to_y: "elm.rect.left.pad"; }
71                                 rel2 { relative: 1.0 1.0; to_y: "elm.rect.left.pad"; }
72                         }
73                 }
74                 part {
75                         name: "elm.rect.right.pad";
76                         type: RECT;
77                         mouse_events: 0;                        
78                         scale: 1;
79                         description {
80                                 state: "default" 0.0;
81                                 min: BUBBLE_RIGHT_PAD 0;
82                                 fixed: 1 0;
83                                 align: 0.0 0.0;
84                                 color: 0 0 0 0;
85                                 rel1 { relative: 1.0 0.0; to: "elm.swallow.content"; }
86                                 rel2 { relative: 1.0 1.0; to: "elm.swallow.content"; }
87                         }
88                 }
89                 part { 
90                         name: "elm.rect.bottom.pad";
91                         type: RECT;
92                         mouse_events: 0;                        
93                         scale: 1;
94                         description {
95                                 state: "default" 0.0;
96                                 min: 0 BUBBLE_TOP_PAD;
97                                 align: 0.0 0.0;
98                                 color: 0 0 0 0;
99                                 rel1 { relative: 0.0 1.0; to_y: "elm.rect.icon.bottom.pad"; }
100                                 rel2 { relative: 1.0 1.0; }
101                         }
102                 }
103                 part {
104                         name: "elm.rect.icon.top.pad";
105                         type: RECT;
106                         mouse_events: 0;                        
107                         scale: 1;
108                         description {
109                                 state: "default" 0.0;
110                                 min: 0 0;
111                                 align: 0.0 0.0;
112                                 color: 0 0 0 0;
113                                 rel1 { relative: 0.0 1.0; to: "elm.swallow.content"; }
114                                 rel2 { relative: 1.0 1.0; to: "elm.swallow.content"; }
115                         }
116                         description {
117                                 state: "expand" 0.0;
118                                 inherit: "default" 0.0;
119                                 min: 0 BUBBLE_ICON_PAD;
120                                 fixed: 0 1;
121                         }
122                 }
123                 part {
124                         name: "elm.rect.icon.bottom.pad";
125                         type: RECT;
126                         mouse_events: 0;                        
127                         scale: 1;
128                         description {
129                                 state: "default" 0.0;
130                                 min: 0 0;
131                                 align: 0.0 0.0;
132                                 color: 0 0 0 0;
133                                 rel1 { relative: 0.0 1.0; to: "elm.swallow.icon"; }
134                                 rel2 { relative: 1.0 1.0; to: "elm.swallow.icon"; }
135                         }
136                         description {
137                                 state: "expand" 0.0;
138                                 inherit: "default" 0.0;
139                                 min: 0 BUBBLE_ICON_PAD;
140                                 fixed: 0 1;
141                         }                       
142                 }                               
143                 part { 
144                         name: "elm.text";
145                         type: TEXT;
146                         mouse_events: 0;
147                         scale: 1;
148                         description { 
149                                 state: "default" 0.0;
150                                 align: 0.0 0.5;
151                                 fixed: 1 1;
152                                 visible: 0;
153                                 text {
154                                         font: "SLP:style=Roman";
155                                         size: 14;
156                                         min: 1 0;
157                                         align: 0.0 0.5;
158                                 }
159                                 color: 76 75 73 255;
160                                 rel1 { relative: 1.0 0.0; to: "elm.rect.left.pad"; }
161                                 rel2 { relative: 1.0 1.0; to: "elm.rect.left.pad"; }
162                         }
163                         description {
164                                 state: "expand" 0.0;
165                                 inherit: "default" 0.0;
166                                 visible: 1;
167                         }
168                 }               
169                 part { 
170                         name: "elm.image.bg";
171                         type: IMAGE;
172                         scale: 1;
173                         description { 
174                                 state: "default" 0.0;
175                                 align: 0.0 0.0;
176                                 rel1 { relative: 0.0 0.0; to_x: "elm.rect.left.pad"; to_y: "elm.rect.top.pad"; }
177                                 rel2 { relative: 1.0 1.0; to_x: "elm.rect.right.pad"; to_y: "elm.rect.bottom.pad"; }
178                                 image {
179                                         normal: "07_message_bubble_readmessage.png";
180                                         border: 1 11 7 12;
181                                         border_scale: 1;
182                                 }
183                         }
184                 }
185                 part {
186                         name: "elm.rect.bg.pad";
187                         type: RECT;
188                         scale: 1;
189                         description {
190                                 state: "default" 0.0;
191                                 color: 0 0 0 0;
192                                 rel1 { relative: 1.0 0.0; to: "elm.image.bg"; }
193                                 rel2 { relative: 1.0 1.0; to_y: "elm.image.bg"; }
194                         }
195                 }
196                 part { 
197                         name: "elm.swallow.content";
198                         type: SWALLOW;
199                         scale: 1;
200                         description { 
201                                 state: "default" 0.0;
202                                 align: 0.0 0.0;
203                                 fixed: 1 1;
204                                 rel1 { relative: 1.0 1.0; to_x: "elm.rect.left.pad"; to_y: "elm.rect.top.pad"; }
205                                 rel2 { relative: 0.7 1.0; to_y: "elm.rect.top.pad"; }
206                         }
207                 }       
208                 part { 
209                         name: "elm.swallow.icon";
210                         type: SWALLOW;
211                         description { 
212                                 state: "default" 0.0;
213                                 min: 0 0; 
214                                 align: 0.0 0.0;
215                                 rel1 { relative: 0.0 1.0; to: "elm.rect.icon.top.pad"; }
216                                 rel2 { relative: 0.5 1.0; to_y: "elm.rect.icon.top.pad"; }
217                         }
218                         description {
219                                 state: "expand" 0.0;
220                                 inherit : "default" 0.0;
221                                 min: 0 50; //default height of icon
222                                 fixed: 0 1;
223                         }                       
224                 }
225                 part {
226                         name: "elm.swallow.sweep";
227                         type: SWALLOW;
228                         description {
229                                 state: "default" 0.0;
230                                 rel1 { relative: 0.0 0.0; to_y: "elm.image.bg"; }
231                                 rel2 { relative: 1.0 1.0; to_y: "elm.image.bg"; }
232                         }
233                 }
234                 /*part { 
235                         name: "elm.info";
236                         type: TEXT;
237                         mouse_events:   0;
238                         scale: 1;
239                         description { 
240                                 state: "default" 0.0;
241                                 align: 1.0 0.0;
242                                 fixed: 1 1;
243                                 rel1 {
244                                         relative: 1.0 0.0;
245                                         offset: -5 4;
246                                 }
247                                 rel2 {
248                                         relative: 1.0 0.0;
249                                         offset: -5 4;
250                                 }
251                                 color: 0 0 0 64;
252                                 text {
253                                         font: "Helvetica_:style=Bold";
254                                         size: 16;
255                                         min: 1 1;
256                                         max: 1 1;
257                                         align: 1.0 0.0;
258                                 }
259                         }
260                 }*/             
261         }
262         programs {
263                 program {
264                         name: "text_add";
265                         signal: "elm,state,text,visible";
266                         source: "elm";
267                         action: STATE_SET "expand" 0.0;
268                         target: "elm.rect.left.pad";
269                         target: "elm.text";
270                 }
271                 program {
272                         name: "text_del";
273                         signal: "elm,state,text,hidden";
274                         source: "elm";
275                         action: STATE_SET "default" 0.0;
276                         target: "elm.rect.left.pad";
277                         target: "elm.text";
278                 }
279                 program {
280                         name: "icon_add";
281                         signal: "elm,state,icon,visible";
282                         source: "elm";
283                         action: STATE_SET "expand" 0.0;
284                         target: "elm.rect.icon.top.pad";
285                         target: "elm.swallow.icon";                     
286                         target: "elm.rect.icon.bottom.pad";
287                 }
288                 program {
289                         name: "icon_del";
290                         signal: "elm,state,icon,hidden";
291                         source: "elm";
292                         action: STATE_SET "default" 0.0;
293                         target: "elm.rect.icon.top.pad";
294                         target: "elm.swallow.icon";                     
295                         target: "elm.rect.icon.bottom.pad";
296                 }       
297         }
298 }
299
300 // deprecated style
301 group { 
302         name: "elm/bubble/base/sentmessage";
303
304         parts {
305                 part {
306                         name: "elm.rect.right.pad";
307                         type: RECT;
308                         mouse_events: 0;
309                         scale: 1;
310                         description {
311                                 state: "default" 0.0;
312                                 min: BUBBLE_DATE_PAD 0;
313                                 fixed: 1 0;
314                                 align: 1.0 0.0;
315                                 color: 0 0 0 0;
316                                 rel1 { relative: 1.0 0.0; }
317                                 rel2 { relative: 1.0 0.0; }
318                         }
319                         description {
320                                 state: "expand" 0.0;
321                                 inherit: "default" 0.0;
322                                 min: BUBBLE_DATE_PAD BUBBLE_DATE_HEIGHT;
323                                 fixed: 1 1;
324                         }
325                 }               
326                 part {
327                         name: "elm.rect.top.pad";
328                         type: RECT;
329                         mouse_events: 0;                        
330                         scale: 1;
331                         description {
332                                 state: "default" 0.0;
333                                 min: 0 BUBBLE_TOP_PAD;
334                                 fixed: 0 1;
335                                 align: 1.0 0.0;
336                                 color: 0 0 0 0;
337                                 rel1 { relative: 0.0 1.0; to_y: "elm.rect.right.pad"; }
338                                 rel2 { relative: 1.0 1.0; to_y: "elm.rect.right.pad"; }
339                         }
340                 }
341                 part {
342                         name: "elm.rect.left.pad";
343                         type: RECT;
344                         mouse_events: 0;                        
345                         scale: 1;
346                         description {
347                                 state: "default" 0.0;
348                                 min: BUBBLE_RIGHT_PAD 0;
349                                 fixed: 1 0;
350                                 align: 1.0 0.0;
351                                 color: 0 0 0 0;
352                                 rel1 { relative: 0.0 0.0; to: "elm.swallow.content"; }
353                                 rel2 { relative: 0.0 1.0; to: "elm.swallow.content"; }
354                         }
355                 }
356                 part { 
357                         name: "elm.rect.bottom.pad";
358                         type: RECT;
359                         mouse_events: 0;                        
360                         scale: 1;
361                         description {
362                                 state: "default" 0.0;
363                                 min: 0 BUBBLE_TOP_PAD;
364                                 align: 0.0 0.0;
365                                 color: 0 0 0 0;
366                                 rel1 { relative: 0.0 1.0; to_y: "elm.rect.icon.bottom.pad"; }
367                                 rel2 { relative: 1.0 1.0; }
368                         }
369                 }
370                 part {
371                         name: "elm.rect.icon.top.pad";
372                         type: RECT;
373                         mouse_events: 0;                        
374                         scale: 1;
375                         description {
376                                 state: "default" 0.0;
377                                 min: 0 0;
378                                 align: 0.0 0.0;
379                                 color: 0 0 0 0;
380                                 rel1 { relative: 0.0 1.0; to: "elm.swallow.content"; }
381                                 rel2 { relative: 1.0 1.0; to: "elm.swallow.content"; }
382                         }
383                         description {
384                                 state: "expand" 0.0;
385                                 inherit: "default" 0.0;
386                                 min: 0 BUBBLE_ICON_PAD;
387                                 fixed: 0 1;
388                         }
389                 }
390                 part {
391                         name: "elm.rect.icon.bottom.pad";
392                         type: RECT;
393                         mouse_events: 0;                        
394                         scale: 1;
395                         description {
396                                 state: "default" 0.0;
397                                 min: 0 0;
398                                 align: 0.0 0.0;
399                                 color: 0 0 0 0;
400                                 rel1 { relative: 0.0 1.0; to: "elm.swallow.icon"; }
401                                 rel2 { relative: 1.0 1.0; to: "elm.swallow.icon"; }
402                         }
403                         description {
404                                 state: "expand" 0.0;
405                                 inherit: "default" 0.0;
406                                 min: 0 BUBBLE_ICON_PAD;
407                                 fixed: 0 1;
408                         }                       
409                 }                       
410                 part { 
411                         name: "elm.text";
412                         type: TEXT;
413                         mouse_events: 0;
414                         scale: 1;
415                         description { 
416                                 state: "default" 0.0;
417                                 align: 1.0 0.5;
418                                 fixed: 1 1;
419                                 visible: 0;
420                                 text {
421                                         font: "SLP:style=Roman";
422                                         size: 14;
423                                         min: 1 0;
424                                         align: 0.0 0.5;
425                                 }
426                                 color: 76 75 73 255;
427                                 rel1 { relative: 0.0 0.0; to: "elm.rect.right.pad"; }
428                                 rel2 { relative: 0.0 1.0; to: "elm.rect.right.pad"; }
429                         }
430                         description {
431                                 state: "expand" 0.0;
432                                 inherit: "default" 0.0;
433                                 visible: 1;
434                         }                       
435                 }               
436                 part { 
437                         name: "elm.image.bg";
438                         type: IMAGE;
439                         scale: 1;
440                         description { 
441                                 state: "default" 0.0;
442                                 align: 1.0 0.0;
443                                 rel1 { relative: 0.0 0.0; to_x: "elm.rect.left.pad"; to_y: "elm.rect.top.pad"; }
444                                 rel2 { relative: 1.0 1.0; to_x: "elm.rect.right.pad"; to_y: "elm.rect.bottom.pad"; }
445                                 image {
446                                         normal: "07_message_bubble_sentmessage.png";
447                                         border: 11 1 7 12;
448                                         border_scale: 1;
449                                 }
450                         }
451                 }       
452                 part {
453                         name: "elm.rect.bg.pad";
454                         type: RECT;
455                         scale: 1;
456                         description {
457                                 state: "default" 0.0;
458                                 color: 0 0 0 0;
459                                 rel1 { relative: 0.0 0.0; to_y: "elm.image.bg"; }
460                                 rel2 { relative: 0.0 1.0; to: "elm.image.bg"; }
461                         }
462                 }               
463                 part { 
464                         name: "elm.swallow.content";
465                         type: SWALLOW;
466                         scale: 1;
467                         description { 
468                                 state: "default" 0.0;
469                                 align: 1.0 0.0;
470                                 fixed: 1 1;
471                                 rel1 { relative: 0.3 1.0; to_y: "elm.rect.top.pad"; }
472                                 rel2 { relative: 0.0 1.0; to_x: "elm.rect.right.pad"; to_y: "elm.rect.top.pad"; }
473                         }
474                 }               
475                 part { 
476                         name: "elm.swallow.icon";
477                         type: SWALLOW;
478                         description { 
479                                 state: "default" 0.0;
480                                 min: 0 0; 
481                                 align: 1.0 0.0;
482                                 rel1 { relative: 0.5 1.0; to_y: "elm.rect.icon.top.pad"; }
483                                 rel2 { relative: 1.0 1.0; to: "elm.rect.icon.top.pad"; }
484                         }
485                         description {
486                                 state: "expand" 0.0;
487                                 inherit : "default" 0.0;
488                                 min: 0 50; //default height of icon
489                                 fixed: 0 1;
490                         }
491                 }
492                 part {
493                         name: "elm.swallow.sweep";
494                         type: SWALLOW;
495                         description {
496                                 state: "default" 0.0;
497                                 rel1 { relative: 0.0 0.0; to_y: "elm.image.bg"; }
498                                 rel2 { relative: 1.0 1.0; to_y: "elm.image.bg"; }
499                         }
500                 }               
501                 /*part { 
502                         name: "elm.info";
503                         type: TEXT;
504                         mouse_events:   0;
505                         scale: 1;
506                         description { 
507                                 state: "default" 0.0;
508                                 align: 1.0 0.0;
509                                 fixed: 1 1;
510                                 rel1 {
511                                         relative: 1.0 0.0;
512                                         offset: -5 4;
513                                 }
514                                 rel2 {
515                                         relative: 1.0 0.0;
516                                         offset: -5 4;
517                                 }
518                                 color: 0 0 0 64;
519                                 text {
520                                         font: "Helvetica_:style=Bold";
521                                         size: 16;
522                                         min: 1 1;
523                                         max: 1 1;
524                                         align: 1.0 0.0;
525                                 }
526                         }
527                 }*/             
528         }
529         programs {
530                 program {
531                         name: "text_add";
532                         signal: "elm,state,text,visible";
533                         source: "elm";
534                         action: STATE_SET "expand" 0.0;
535                         target: "elm.rect.right.pad";
536                         target: "elm.text";
537                 }
538                 program {
539                         name: "text_del";
540                         signal: "elm,state,text,hidden";
541                         source: "elm";
542                         action: STATE_SET "default" 0.0;
543                         target: "elm.rect.right.pad";
544                         target: "elm.text";
545                 }       
546                 program {
547                         name: "icon_add";
548                         signal: "elm,state,icon,visible";
549                         source: "elm";
550                         action: STATE_SET "expand" 0.0;
551                         target: "elm.rect.icon.top.pad";
552                         target: "elm.swallow.icon";
553                         target: "elm.rect.icon.bottom.pad";
554                 }
555                 program {
556                         name: "icon_del";
557                         signal: "elm,state,icon,hidden";
558                         source: "elm";
559                         action: STATE_SET "default" 0.0;
560                         target: "elm.rect.icon.top.pad";
561                         target: "elm.swallow.icon";
562                         target: "elm.rect.icon.bottom.pad";
563                 }
564         }
565 }
566
567    group { name: "elm/layout/bubble/readmessage/default";
568       parts {
569          part { name: "base";
570             type: RECT;
571             repeat_events: 1;
572             description { state: "default" 0.0;
573                color: 0 0 0 0;
574             }
575          }
576          part { name: "elm.padding.left";
577             type: RECT;
578             scale: 1;
579             description { state: "default" 0.0;
580                min: GENLIST_PADDING_3_INC 0;
581                fixed: 1 0;
582                visible: 0;
583                rel1.relative: 0.0 0.0;
584                rel2 {
585                   relative: 0.0 1.0;
586                   to_y: "elm.padding.bottom";
587                }
588                align: 0.0 0.0;
589             }
590          }
591          part { name: "elm.swallow.select_icon";
592             clip_to: "disclip";
593             type: SWALLOW;
594             scale: 1;
595             description { state: "default" 0.0;
596                fixed: 1 1;
597                align: 0.0 0.5;
598                visible: 0;
599                rel1 {
600                   relative: 1.0 0.0;
601                   to_x: "elm.padding.left";
602                }
603                rel2 {
604                   relative: 1.0 0.0;
605                   to_x: "elm.padding.left";
606                   to_y: "elm.padding.bottom";
607                }
608             }
609             description { state: "selectview" 0.0;
610                inherit: "default" 0.0;
611                visible: 1;
612             }
613          }
614          part { name: "elm.padding.icon1.right";
615             type: RECT;
616             scale: 1;
617             description { state: "default" 0.0;
618                min: GENLIST_PADDING_3_INC 0;
619                fixed: 1 0;
620                visible: 0;
621                color: 0 255 255 255;
622                rel1 {
623                   relative: 1.0 0.0;
624                   to_x: "elm.swallow.select_icon";
625                }
626                rel2 {
627                   relative: 1.0 0.0;
628                   to_x: "elm.swallow.select_icon";
629                   to_y: "elm.padding.bottom";
630                }
631                align: 0.0 0.0;
632             }
633          }
634          part { name: "elm.icon";
635             clip_to: "disclip";
636             type: SWALLOW;
637             scale: 1;
638             description { state: "default" 0.0;
639                rel2 {
640                   relative: 0.76 0.0;
641                   to_y: "elm.padding.bottom";
642                }
643             }
644             description { state: "selectview" 0.0;
645                inherit: "default" 0.0;
646                align: 1.0 0.0;
647                rel1 {
648                   relative: 1.0 0.0;
649                   to_x: "elm.padding.icon1.right";
650                }
651                rel2 {
652                   relative: 0.86 0.0;
653                   to_y: "elm.padding.bottom";
654                }
655             }
656          }
657          part { name: "elm.swallow.button1";
658             clip_to: "disclip";
659             type: SWALLOW;
660             scale: 1;
661             description { state: "default" 0.0;
662                align: 0.0 1.0;
663                fixed: 1 1;
664                rel1 { relative: 0.80 0.80; to_y: "elm.icon"; }
665                rel2 { relative: 0.88 0.95; to_y: "elm.icon"; }
666             }
667          }
668          part { name: "elm.swallow.button2";
669             clip_to: "disclip";
670             type: SWALLOW;
671             scale: 1;
672             description { state: "default" 0.0;
673                align: 0.0 1.0;
674                fixed: 1 1;
675                rel1 { relative: 0.89 0.80; to_y: "elm.icon"; }
676                rel2 { relative: 0.97 0.95; to_y: "elm.icon"; }
677             }
678          }
679          part { name: "elm.padding.bottom";
680               type: RECT;
681               scale: 1;
682               description { state: "default" 0.0;
683                  min: 0 GENLIST_PADDING_15_INC;
684                  fixed: 0 1;
685                  visible: 0;
686                  rel1.relative: 0.0 1.0;
687                  align: 0.0 1.0;
688               }
689          }
690          part { name: "disclip";
691              type: RECT;
692              description { state: "default" 0.0;
693              }
694              description { state: "disabled" 0.0;
695                 inherit: "default" 0.0;
696                 color: GENLIST_PART_DISCLIP_COLOR_INC;
697              }
698          }
699       }
700       programs {
701          program { name: "go_disabled";
702             signal: "elm,state,disabled";
703             source: "elm";
704             action: STATE_SET "disabled" 0.0;
705             target: "disclip";
706          }
707          program { name: "go_enabled";
708             signal: "elm,state,enabled";
709             source: "elm";
710             action: STATE_SET "default" 0.0;
711             target: "disclip";
712          }
713          program { name: "go_defaultview";
714             signal: "elm,state,select,disable";
715             source: "elm";
716             action: STATE_SET "default" 0.0;
717             //transition: DECELERATE 0.7;
718            target: "elm.swallow.select_icon";
719             target: "elm.icon";
720          }
721          program { name: "go_selectview";
722             signal: "elm,state,select,enable";
723             source: "elm";
724             action: STATE_SET "selectview" 0.0;
725             transition: DECELERATE 0.7;
726             target: "elm.swallow.select_icon";
727             target: "elm.icon";
728          }
729       }
730    }
731
732    group { name: "elm/layout/bubble/sentmessage/default";
733       parts {
734          part { name: "base";
735             type: RECT;
736             repeat_events: 1;
737             description { state: "default" 0.0;
738                color: 0 0 0 0;
739             }
740          }
741          part { name: "elm.padding.left";
742             type: RECT;
743             scale: 1;
744             description { state: "default" 0.0;
745                min: GENLIST_PADDING_3_INC 0;
746                fixed: 1 0;
747                visible: 0;
748                rel1.relative: 0.0 0.0;
749                rel2 {
750                   relative: 0.0 1.0;
751                   to_y: "elm.padding.bottom";
752                }
753                align: 0.0 0.0;
754             }
755          }
756          part { name: "elm.swallow.select_icon";
757             clip_to: "disclip";
758             type: SWALLOW;
759             scale: 1;
760             description { state: "default" 0.0;
761                fixed: 1 1;
762                align: 0.0 0.5;
763                visible: 0;
764                rel1 {
765                   relative: 1.0 0.0;
766                   to_x: "elm.padding.left";
767                }
768                rel2 {
769                   relative: 1.0 0.0;
770                   to_x: "elm.padding.left";
771                   to_y: "elm.padding.bottom";
772                }
773             }
774             description { state: "selectview" 0.0;
775                inherit: "default" 0.0;
776                visible: 1;
777             }
778          }
779          part { name: "elm.padding.icon1.right";
780             type: RECT;
781             scale: 1;
782             description { state: "default" 0.0;
783                min: GENLIST_PADDING_3_INC 0;
784                fixed: 1 0;
785                visible: 0;
786                color: 0 255 255 255;
787                rel1 {
788                   relative: 1.0 0.0;
789                   to_x: "elm.swallow.select_icon";
790                }
791                rel2 {
792                   relative: 1.0 0.0;
793                   to_x: "elm.swallow.select_icon";
794                   to_y: "elm.padding.bottom";
795                }
796                align: 0.0 0.0;
797             }
798          }
799          part { name: "elm.icon";
800             clip_to: "disclip";
801             type: SWALLOW;
802             scale: 1;
803             description { state: "default" 0.0;
804                rel1.relative: 0.24 0.0; //to_y: "elm.rect.top.pad"; }
805                rel2 {
806                   relative: 1.0 0.0;
807                   to_y: "elm.padding.bottom";
808                }
809             }
810             description { state: "selectview" 0.0;
811                inherit: "default" 0.0;
812                align: 1.0 0.0;
813                rel1 {
814                   relative: 0.28 0.0;
815                }
816             }
817          }
818          part { name: "elm.swallow.button1";
819             clip_to: "disclip";
820             type: SWALLOW;
821             scale: 1;
822             description { state: "default" 0.0;
823                align: 0.0 1.0;
824                fixed: 1 1;
825                max: 40 40;
826                rel1 { relative: 0.03 0.80; to_y: "elm.icon"; }
827                rel2 { relative: 0.11 0.95; to_y: "elm.icon"; }
828             }
829          }
830          part { name: "elm.swallow.button2";
831             clip_to: "disclip";
832             type: SWALLOW;
833             scale: 1;
834             description { state: "default" 0.0;
835                align: 0.0 1.0;
836                fixed: 1 1;
837                max: 40 40;
838                rel1 { relative: 0.12 0.80; to_y: "elm.icon"; }
839                rel2 { relative: 0.20 0.95; to_y: "elm.icon"; }
840             }
841          }
842          part { name: "elm.padding.bottom";
843               type: RECT;
844               scale: 1;
845               description { state: "default" 0.0;
846                  min: 0 GENLIST_PADDING_15_INC;
847                  fixed: 0 1;
848                  visible: 0;
849                  rel1.relative: 0.0 1.0;
850                  align: 0.0 1.0;
851               }
852          }
853          part { name: "disclip";
854              type: RECT;
855              description { state: "default" 0.0;
856              }
857              description { state: "disabled" 0.0;
858                 inherit: "default" 0.0;
859                 color: GENLIST_PART_DISCLIP_COLOR_INC;
860              }
861          }
862       }
863       programs {
864          program { name: "go_disabled";
865             signal: "elm,state,disabled";
866             source: "elm";
867             action: STATE_SET "disabled" 0.0;
868             target: "disclip";
869          }
870          program { name: "go_enabled";
871             signal: "elm,state,enabled";
872             source: "elm";
873             action: STATE_SET "default" 0.0;
874             target: "disclip";
875          }
876          program { name: "go_defaultview";
877             signal: "elm,state,select,disable";
878             source: "elm";
879             action: STATE_SET "default" 0.0;
880             //transition: DECELERATE 0.7;
881             target: "elm.swallow.select_icon";
882             target: "elm.icon";
883          }
884          program { name: "go_selectview";
885             signal: "elm,state,select,enable";
886             source: "elm";
887             action: STATE_SET "selectview" 0.0;
888             //transition: DECELERATE 0.7;
889             target: "elm.swallow.select_icon";
890             target: "elm.icon";
891          }
892       }
893    }
894