merge with master
[platform/core/uifw/efl-theme-tizen.git] / themes / widgets / popup.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 #define POPUP_ITEM_STATE_ENABLED  0
21 #define POPUP_ITEM_STATE_DISABLED 1
22
23 /*popup widget specific notify style style*/
24 group { name: "elm/notify/center/popup";
25    alias: "elm/notify/center/verticalbuttonstyle";
26    alias: "elm/notify/center/menustyle";
27    alias: "elm/notify/center/min_menustyle";
28    alias: "elm/notify/center/liststyle";
29    alias: "elm/notify/center/min_liststyle";
30    alias: "elm/notify/center/customstyle";
31    alias: "elm/notify/center/volumebarstyle";
32    alias: "elm/notify/center/volumebarstyle_text";
33    alias: "elm/notify/center/content_expand";
34    parts {
35       part { name: "base";
36          type: RECT;
37          scale: 1;
38          description { state: "default" 0.0;
39             color: 0 0 0 0;
40             rel1.relative: 0.0 0.0;
41             rel2.relative: 1.0 1.0;
42          }
43       }
44       part { name: "persp";
45         type: RECT;
46         description { state: "default" 0.0;
47            min: 32 32;
48            max: 32 32;
49            align: 0.5 0.5;
50            color: 0 0 0 0;
51            visible: 1;
52            perspective {
53               zplane: -200;
54               focal: 1000;
55            }
56         }
57      }
58      part { name: "persp1";
59         type: RECT;
60         description { state: "default" 0.0;
61            min: 32 32;
62            max: 32 32;
63            align: 0.5 0.5;
64            visible: 1;
65            color: 0 0 0 0;
66            perspective {
67               zplane: 0;
68               focal: 1000;
69            }
70         }
71      }
72      part { name: "elm.swallow.content";
73         type: SWALLOW;
74         scale: 1;
75         //clip_to: "clipper";
76         description { state: "default" 0.0;
77            rel1.to: "base";
78            rel2.to: "base";
79            map {
80               on: 1;
81               backface_cull: 1;
82               perspective: "persp";
83               smooth: 0;
84            }
85         }
86         description { state: "visible" 0.0;
87            rel1.to: "base";
88            rel2.to: "base";
89            map {
90               on: 1;
91               backface_cull: 1;
92               perspective: "persp1";
93               smooth: 0;
94            }
95         }
96         description { state: "end" 0.0;
97            rel1.to: "base";
98            rel2.to: "base";
99            map {
100               on: 0;
101               smooth: 0;
102            }
103         }
104      }
105      /*
106      part { name: "clipper";
107         type: RECT;
108         scale: 1;
109         description { state: "default" 0.0;
110            rel1.to: "base";
111            rel2.to: "base";
112            color: 255 255 255 0;
113         }
114         description { state: "visible" 0.0;
115            inherit: "default";
116            color: 255 255 255 255;
117         }
118         description { state: "end" 0.0;
119            inherit: "default";
120            color: 255 255 255 255;
121         }
122      }
123      */
124    }
125    programs {
126        program { name: "show";
127            signal: "elm,action,show";
128            source: "elm";
129            action: STATE_SET "default" 0.0;
130            target: "elm.swallow.content";
131        }
132        program { name: "show_1";
133             signal: "show";
134             action: STATE_SET "default" 0.0;
135             target: "elm.swallow.content";
136             //target: "clipper";
137             after: "end";
138             //after: "end1";
139        }
140        program { name: "end";
141            action: STATE_SET "visible" 0.0;
142            target: "elm.swallow.content";
143            transition: SIN_FAC 0.33 1.4;
144            after: "end2";
145        }
146        /*
147        program { name: "end1";
148            action: STATE_SET "visible" 0.0;
149            //target: "clipper";
150            transition: SIN_FAC 0.33 0.5;
151            after: "end3";
152        }
153        program { name: "end3";
154            action: STATE_SET "end" 0.0;
155            target: "clipper";
156        }
157        */
158        program { name: "end2";
159            action: STATE_SET "end" 0.0;
160            target: "elm.swallow.content";
161        }
162        program { name: "hide";
163            signal: "elm,action,hide";
164            source: "elm";
165            action: STATE_SET "default" 0.0;
166            target: "elm.swallow.content";
167        }
168    }
169 }
170
171 group { name: "elm/notify/center/transparent";
172    inherit: "elm/notify/center/popup";
173    alias: "elm/notify/center/verticalbuttonstyle_transparent";
174    alias: "elm/notify/center/menustyle_transparent";
175    alias: "elm/notify/center/min_menustyle_transparent";
176    alias: "elm/notify/center/liststyle_transparent";
177    alias: "elm/notify/center/min_liststyle_transparent";
178    alias: "elm/notify/center/customstyle_transparent";
179    alias: "elm/notify/center/volumebarstyle_transparent";
180    alias: "elm/notify/center/volumebarstyle_text_transparent";
181    alias: "elm/notify/center/content_expand_transparent";
182    parts {
183       part { name: "elm.swallow.content";
184          type: SWALLOW;
185          scale: 1;
186          description { state: "default" 0.0;
187             map.on: 0;
188          }
189          description { state: "visible" 0.0;
190             map.on: 0;
191          }
192          description { state: "end" 0.0;
193             map.on: 0;
194          }
195       }
196    }
197 }
198
199 group { name: "elm/notify/block_events/popup";
200    alias: "elm/notify/block_events/verticalbuttonstyle";
201    alias: "elm/notify/block_events/menustyle";
202    alias: "elm/notify/block_events/min_menustyle";
203    alias: "elm/notify/block_events/liststyle";
204    alias: "elm/notify/block_events/min_liststyle";
205    alias: "elm/notify/block_events/customstyle";
206    alias: "elm/notify/block_events/volumebarstyle";
207    alias: "elm/notify/block_events/volumebarstyle_text";
208    alias: "elm/notify/block_events/content_expand";
209    images {
210       image: "00_popup_dim_lighting.png" COMP;
211    }
212    parts {
213       part { name: "block_events";
214          type: IMAGE;
215          scale: 1;
216          description { state: "default" 0.0;
217             image.normal: "00_popup_dim_lighting.png";
218             fill.smooth: 0;
219          }
220          description { state: "show" 0.0;
221             inherit: "default" 0.0;
222          }
223          description { state: "clicked" 0.0;
224             inherit: "default" 0.0;
225          }
226       }
227       part { name: "block_events_color";
228          type: RECT;
229          scale: 1;
230          description { state: "default" 0.0;
231             color: POPUP_DIM_BG_DEFAULT_COLOR_INC;
232          }
233          description { state: "show" 0.0;
234             inherit: "default" 0.0;
235             color: POPUP_DIM_BG_COLOR_INC;
236          }
237          description { state: "clicked" 0.0;
238             inherit: "default" 0.0;
239             color: POPUP_DIM_BG_COLOR_INC;
240          }
241       }
242    }
243    programs {
244        program { name: "show";
245            signal: "elm,action,show";
246            source: "elm";
247            action: STATE_SET "default" 0.0;
248            target: "block_events";
249            target: "block_events_color";
250        }
251       program { name: "show1";
252          signal: "show";
253          action: STATE_SET "show" 0.0;
254          transition: SIN_FAC 0.33 0.5;
255          target: "block_events";
256          target: "block_events_color";
257       }
258       program { name: "block_clicked";
259          signal: "mouse,clicked,1";
260          source: "block_events_color";
261          action: SIGNAL_EMIT "elm,action,click" "elm";
262          after: "deeper_block_color";
263       }
264       program {
265          name: "deeper_block_color";
266          action: STATE_SET "clicked" 0.0;
267          target: "block_events";
268          source: "block_events_color";
269          transition: LINEAR 0.2;
270          after: "default_block_color";
271       }
272       program {
273          name: "default_block_color";
274          action: STATE_SET "show" 0.0;
275          target: "block_events";
276          target: "block_events_color";
277          transition: LINEAR 0.2;
278       }
279    }
280 }
281
282 group { name: "elm/notify/block_events/transparent";
283    alias: "elm/notify/block_events/verticalbuttonstyle_transparent";
284    alias: "elm/notify/block_events/menustyle_transparent";
285    alias: "elm/notify/block_events/min_menustyle_transparent";
286    alias: "elm/notify/block_events/liststyle_transparent";
287    alias: "elm/notify/block_events/min_liststyle_transparent";
288    alias: "elm/notify/block_events/customstyle_transparent";
289    alias: "elm/notify/block_events/volumebarstyle_transparent";
290    alias: "elm/notify/block_events/volumebarstyle_text_transparent";
291    alias: "elm/notify/block_events/content_expand_transparent";
292    parts {
293       part { name: "block_events";
294          type: RECT;
295          description { state: "default" 0.0;
296             color: POPUP_DIM_BG_TRANS_COLOR_INC;
297          }
298          description { state: "clicked" 0.0;
299             color: POPUP_DIM_BG_CLICKED_TRANS_COLOR_INC;
300          }
301       }
302    }
303    programs {
304       program { name: "block_clicked";
305          signal: "mouse,clicked,1";
306          source: "block_events";
307          action: SIGNAL_EMIT "elm,action,click" "elm";
308          after: "deeper_block_color";
309       }
310       program {
311          name: "deeper_block_color";
312          action: STATE_SET "clicked" 0.0;
313          target: "block_events";
314          transition: LINEAR 0.2;
315          after: "default_block_color";
316       }
317       program {
318          name: "default_block_color";
319          action: STATE_SET "default" 0.0;
320          target: "block_events";
321          transition: LINEAR 0.2;
322       }
323    }
324 }
325
326 group { name: "elm/label/base/popup/default";
327    alias: "elm/label/base/popup/content_expand";
328    alias: "elm/label/base/popup/transparent";
329    styles {
330       style { name: "popup_desc_style";
331          base: "font=Tizen:style=Medium font_size="POPUP_DESCRIPTION_DEFAULT_TEXT_FONT_SIZE_INC" align=left color="POPUP_DEFAULT_DESCRIPTION_TEXT_COLOR_INC" text_class=slp wrap=mixed ellipsis=1";
332          tag: "br" "\n";
333          tag: "ps" "ps";
334          tag: "whitecolor" "+ color=#ffffff";
335          tag: "tab" "\t";
336       }
337    }
338    parts {
339       part { name: "elm.text";
340          type: TEXTBLOCK;
341          mouse_events: 0;
342          scale: 1;
343          description { state: "default" 0.0;
344             min: POPUP_DESCRIPTION_DEFAULT_TEXT_MIN_INC;
345             max: POPUP_DESCRIPTION_DEFAULT_TEXT_MIN_INC;
346             text {
347                style: "popup_desc_style";
348                min: 0 0;
349             }
350          }
351       }
352    }
353 }
354
355 group { name: "elm/popup/base/default";
356    alias: "elm/popup/base/transparent";
357    alias: "elm/popup/base/verticalbuttonstyle";
358    alias: "elm/popup/base/verticalbuttonstyle_transparent";
359    alias: "elm/popup/base/customstyle";
360    alias: "elm/popup/base/customstyle_transparent";
361    images {
362       image: "00_popup_bg.png" COMP;
363    }
364    styles {
365       style { name: "popup_title_style";
366          base: "font=Tizen:style=Medium font_size="POPUP_BASE_DEFAULT_TEXT_FONT_SIZE_INC" align=left color="POPUP_DEFAULT_TITLE_TEXT_COLOR_INC" style="POPUP_DEFAULT_TITLE_TEXT_SHADOW_STYLE" shadow_color="POPUP_DEFAULT_TITLE_TEXT_SHADOW_COLOR" wrap=mixed ellipsis=0.0 text_class=tizen";
367          tag:  "br" "\n";
368          tag:  "tab" "\t";
369       }
370    }
371    parts {
372       part {
373          name:"shadow_left_top_padding";
374          type: SPACER;
375          scale: 1;
376          description { state: "default" 0.0;
377             min: POPUP_DESC_LEFT_PADDING POPUP_DESC_TOP_PADDING;
378             max: POPUP_DESC_LEFT_PADDING POPUP_DESC_TOP_PADDING;
379             align: 0 0;
380             fixed: 1 1;
381          }
382       }
383       part {
384          name:"shadow_right_bottom_padding";
385          type: SPACER;
386          scale: 1;
387          description { state: "default" 0.0;
388             min: POPUP_DESC_RIGHT_PADDING POPUP_DESC_BOTTOM_PADDING;
389             max: POPUP_DESC_RIGHT_PADDING POPUP_DESC_BOTTOM_PADDING;
390             align: 1 1;
391             fixed: 1 1;
392          }
393       }
394       part { name: "base";
395          type: IMAGE;
396          scale: 1;
397          description { state: "default" 0.0;
398             min: POPUP_BASE_DEFAULT_BASE_DEFAULT_MIN_INC;
399             max: POPUP_BASE_DEFAULT_BASE_DEFAULT_MAX_INC;
400             image {
401                normal: "00_popup_bg.png";
402                border: POPUP_BASE_DEFAULT_BG_DEFAULT_IMAGE_BORDER_INC;
403                border_scale: 1;
404             }
405             fill.smooth: 0;
406             align: 0.5 0.5;
407          }
408          description { state: "landscape" 0.0;
409             inherit: "default" 0.0;
410             min: POPUP_BASE_DEFAULT_BASE_LANDSCAPE_MIN_INC;
411             max: POPUP_BASE_DEFAULT_BASE_LANDSCAPE_MAX_INC;
412          }
413       }
414       part { name: "elm.bg.title";
415          type: SPACER;
416          scale: 1;
417          description { state: "default" 0.0;
418             min: POPUP_BASE_DEFAULT_TITLE_DEFAULT_MIN_INC;
419             max: POPUP_BASE_DEFAULT_TITLE_DEFAULT_MIN_INC;
420             fixed: 1 1;
421             align: 0.5 0.0;
422             rel1 {
423                relative: 0.5 1.0;
424                to_y: "shadow_left_top_padding";
425             }
426             rel2 {
427                relative: 0.5 1.0;
428                to_y: "shadow_left_top_padding";
429             }
430          }
431          description { state: "visible" 0.0;
432             inherit: "default" 0.0;
433          }
434          description { state: "landscape" 0.0;
435             inherit: "default" 0.0;
436             min: POPUP_BASE_DEFAULT_TITLE_LANDSCAPE_MIN_INC;
437             max: POPUP_BASE_DEFAULT_TITLE_LANDSCAPE_MIN_INC;
438          }
439          description { state: "landscape_visible" 0.0;
440             inherit: "landscape" 0.0;
441          }
442       }
443       part { name: "action_top_padding";
444          type: SPACER;
445          scale: 1;
446          description { state: "default" 0.0;
447             min: 0 POPUP_ACTION_DESC_TOP_PADDING;
448             max: 0 POPUP_ACTION_DESC_TOP_PADDING;
449             fixed: 1 1;
450             align: 0.5 0.0;
451             rel1 {
452                relative: 0.5 1.0;
453                to_y: "shadow_left_top_padding";
454             }
455             rel2 {
456                relative: 0.5 1.0;
457                to_y: "shadow_left_top_padding";
458             }
459          }
460       }
461       part { name: "label_top_padding";
462          type: SPACER;
463          scale: 1;
464          description { state: "default" 0.0;
465             min: 0 (POPUP_LABEL_DESC_TOP_PADDING-POPUP_CONTENT_DEFAULT_PADDING_TOP_MIN_INC);
466             max: 0 (POPUP_LABEL_DESC_TOP_PADDING-POPUP_CONTENT_DEFAULT_PADDING_TOP_MIN_INC);
467             fixed: 1 1;
468             align: 0.5 0.0;
469             rel1 {
470                relative: 0.5 1.0;
471                to_y: "shadow_left_top_padding";
472             }
473             rel2 {
474                relative: 0.5 1.0;
475                to_y: "shadow_left_top_padding";
476             }
477          }
478       }
479       part { name: "label_bottom_padding";
480          type: SPACER;
481          scale: 1;
482          description { state: "default" 0.0;
483             min: 0 (POPUP_LABEL_DESC_BOTTOM_PADDING-POPUP_CONTENT_DEFAULT_PADDING_BOTTOM_MIN_INC);
484             max: 0 (POPUP_LABEL_DESC_BOTTOM_PADDING-POPUP_CONTENT_DEFAULT_PADDING_BOTTOM_MIN_INC);
485             fixed: 1 1;
486             align: 0.5 1.0;
487             rel1 {
488                relative: 0.5 0.0;
489                to_y: "shadow_right_bottom_padding";
490             }
491             rel2 {
492                relative: 0.5 0.0;
493                to_y: "shadow_right_bottom_padding";
494             }
495          }
496       }
497       part { name: "title_left_top_padding";
498          type: SPACER;
499          scale: 1;
500          description { state: "default" 0.0;
501             align: 0.0 0.0;
502             rel1.to: "elm.bg.title";
503             fixed: 1 1;
504             min: 0 POPUP_TITLE_TOP_PADDING;
505             max: 0 POPUP_TITLE_TOP_PADDING;
506          }
507       }
508       part { name: "title_right_bottom_padding";
509          type: SPACER;
510          scale: 1;
511          description { state: "default" 0.0;
512             align: 1.0 1.0;
513             rel2.to: "elm.bg.title";
514             fixed: 1 1;
515             min: 0 POPUP_TITLE_BOTTOM_PADDING;
516             max: 0 POPUP_TITLE_BOTTOM_PADDING;
517          }
518       }
519       part { name: "icon_rect";
520          type: SPACER;
521          scale: 1;
522          description { state: "default" 0.0;
523             min: 0 0;
524             fixed: 1 1;
525             rel1 {
526                relative: 1.0 1.0;
527                to: "title_left_top_padding";
528             }
529             rel2 {
530                relative: 1.0 1.0;
531                to_x: "title_left_top_padding";
532                to_y: "elm.bg.title";
533             }
534             align: 0.0 0.5;
535          }
536          description { state: "visible" 0.0;
537             inherit: "default" 0.0;
538             min: POPUP_BASE_DEFAULT_TITLE_ICON_DEFAULT_MIN_MAX_INC;
539             max: POPUP_BASE_DEFAULT_TITLE_ICON_DEFAULT_MIN_MAX_INC;
540          }
541       }
542       part { name: "padding_after_icon";
543          type: SPACER;
544          scale: 1;
545          description { state: "default" 0.0;
546             min: 0 0;
547             fixed: 1 1;
548             rel1 {
549                relative: 1.0 0.0;
550                to: "icon_rect";
551             }
552             rel2 {
553                relative: 1.0 0.0;
554                to: "icon_rect";
555             }
556          }
557          description { state: "visible" 0.0;
558             inherit: "default" 0.0;
559             min: POPUP_TITLE_ICON_TEXT_PADDING_INC;
560          }
561       }
562       part { name: "elm.swallow.title.icon";
563          type: SWALLOW;
564          scale: 1;
565          description { state: "default" 0.0;
566             rel1.to: "icon_rect";
567             rel2.to: "icon_rect";
568          }
569       }
570       part { name: "elm.text.title";
571          type: TEXTBLOCK;
572          scale:1;
573          description { state: "default" 0.0;
574             fixed: 1 1;
575             text {
576               style: "popup_title_style";
577               align: 0.0 0.0;
578             }
579             rel1 {
580                relative: 1.0 0.0;
581                to: "padding_after_icon";
582             }
583             rel2 {
584                relative: 0.0 1.0;
585                to: "title_right_bottom_padding";
586             }
587             align: 0.0 0.5;
588          }
589       }
590       part { name: "access.title";
591          type: RECT;
592          repeat_events: 1;
593          description { state: "default" 0.0;
594             fixed: 1 1;
595             rel1.to: "elm.bg.title";
596             rel2.to:"elm.bg.title";
597             color: 0 0 0 0;
598          }
599       }
600       part { name: "elm.swallow.content";
601          type: SWALLOW;
602          scale: 1;
603          description { state: "default" 0.0;
604             min: POPUP_BASE_DEFAULT_CONTENT_DEFAULT_MIN_MAX_INC;
605             max: POPUP_BASE_DEFAULT_CONTENT_DEFAULT_MIN_MAX_INC;
606             fixed: 1 0;
607             rel1 {
608                relative: 0.0 1.0;
609                to_x: "base";
610                to_y: "label_top_padding";
611             }
612             rel2 {
613                relative: 1.0 0.0;
614                to_x: "base";
615                to_y: "label_bottom_padding";
616             }
617          }
618          description { state: "show_title_area" 0.0;
619             inherit: "default" 0.0;
620             rel1 {
621                relative: 0.0 1.0;
622                to_x: "base";
623                to_y: "elm.bg.title";
624             }
625             rel2 {
626                relative: 1.0 0.0;
627                to_x: "base";
628                to_y: "shadow_right_bottom_padding";
629             }
630          }
631          description { state: "show_action_area" 0.0;
632             inherit: "default" 0.0;
633             rel1 {
634                relative: 0.0 1.0;
635                to_x: "base";
636                to_y: "action_top_padding";
637             }
638             rel2 {
639                relative: 1.0 0.0;
640                to_x: "base";
641                to_y: "elm.swallow.action_area";
642             }
643          }
644          description { state: "show_action_title_area" 0.0;
645             inherit: "default" 0.0;
646             rel1 {
647                relative: 0.0 1.0;
648                to_x: "base";
649                to_y: "elm.bg.title";
650             }
651             rel2 {
652                relative: 1.0 0.0;
653                to_x: "base";
654                to_y: "elm.swallow.action_area";
655             }
656          }
657       }
658       part { name: "access.body";
659          type: RECT;
660          repeat_events: 1;
661          description { state: "default" 0.0;
662             fixed: 1 1;
663             rel1.to: "elm.swallow.content";
664             rel2.to: "elm.swallow.content";
665             color: 0 0 0 0;
666          }
667       }
668       part { name: "elm.swallow.action_area";
669          type: SWALLOW;;
670          scale: 1;
671          description { state: "default" 0.0;
672             min: POPUP_BASE_DEFAULT_BUTTON_BG_DEFAULT_MIN_INC;
673             fixed: 1 1;
674             align: 0.5 1.0;
675             visible: 0;
676             rel1 {
677                relative: 0.0 0.0;
678                to_x: "base";
679                to_y: "shadow_right_bottom_padding";
680             }
681             rel2 {
682                relative: 1.0 0.0;
683                to_x: "base";
684                to_y: "shadow_right_bottom_padding";
685             }
686          }
687          description { state: "visible" 0.0;
688             inherit: "default" 0.0;
689             visible: 1;
690          }
691       }
692    }
693    programs {
694       program { name: show_title_icon;
695          signal: "elm,state,title,icon,visible";
696          source: "elm";
697          action: STATE_SET "visible" 0.0;
698          target: "icon_rect";
699          target: "padding_after_icon";
700       }
701       program { name: hide_title_icon;
702          signal: "elm,state,title,icon,hidden";
703          source: "elm";
704          action: STATE_SET "default" 0.0;
705          target: "padding_after_icon";
706          target: "icon_rect";
707       }
708       program { name: show_title_area;
709          signal: "elm,state,title_area,visible";
710          source: "elm";
711          script {
712             new st[31];
713             new Float:vl;
714             get_state(PART:"elm.swallow.action_area", st, 30, vl);
715             if (!strcmp(st, "visible"))
716               set_state(PART:"elm.swallow.content", "show_action_title_area", 0.0);
717             else
718               set_state(PART:"elm.swallow.content", "show_title_area", 0.0);
719             get_state(PART:"base", st, 30, vl);
720             if (!strcmp(st, "landscape"))
721               set_state(PART:"elm.bg.title", "landscape_visible", 0.0);
722             else
723               set_state(PART:"elm.bg.title", "visible", 0.0);
724          }
725       }
726       program { name: hide_title_area;
727          signal: "elm,state,title_area,hidden";
728          source: "elm";
729          action: STATE_SET "default" 0.0;
730          script {
731             new st[31];
732             new Float:vl;
733             get_state(PART:"elm.swallow.action_area", st, 30, vl);
734             if (!strcmp(st, "visible"))
735               set_state(PART:"elm.swallow.content", "show_action_area", 0.0);
736             else
737               set_state(PART:"elm.swallow.content", "default", 0.0);
738             get_state(PART:"base", st, 30, vl);
739             if (!strcmp(st, "landscape"))
740               set_state(PART:"elm.bg.title", "landscape", 0.0);
741             else
742               set_state(PART:"elm.bg.title", "default", 0.0);
743          }
744       }
745       program { name: show_action_area;
746          signal: "elm,state,action_area,visible";
747          source: "elm";
748          script {
749             new st[31];
750             new Float:vl;
751             get_state(PART:"elm.bg.title", st, 30, vl);
752             if ((!strcmp(st, "visible")) || (!strcmp(st, "landscape_visible")))
753               set_state(PART:"elm.swallow.content", "show_action_title_area", 0.0);
754             else
755               set_state(PART:"elm.swallow.content", "show_action_area", 0.0);
756             set_state(PART:"elm.swallow.action_area", "visible", 0.0);
757          }
758       }
759       program { name: hide_action_area;
760          signal: "elm,state,action_area,hidden";
761          source: "elm";
762          action: STATE_SET "default" 0.0;
763          script {
764             new st[31];
765             new Float:vl;
766             get_state(PART:"elm.bg.title", st, 30, vl);
767             if ((!strcmp(st, "visible")) || (!strcmp(st, "landscape_visible")))
768               set_state(PART:"elm.swallow.content", "show_title_area", 0.0);
769             else
770               set_state(PART:"elm.swallow.content", "default", 0.0);
771             set_state(PART:"elm.swallow.action_area", "default", 0.0);
772          }
773       }
774       program { name: "change_to_landscape";
775          signal: "elm,state,landscape";
776          source: "elm";
777          action: STATE_SET "landscape" 0.0;
778          target: "base";
779          target: "elm.bg.title";
780       }
781       program { name: "change_to_portrait";
782          signal: "elm,state,portrait";
783          source: "elm";
784          action: STATE_SET "default" 0.0;
785          target: "base";
786          target: "elm.bg.title";
787       }
788       program { name: "landscape_mode";
789          source: "elm";
790          signal: "elm,state,orient,90";
791          action: SIGNAL_EMIT "elm,state,landscape" "elm";
792       }
793       program { name: "landscape_mode2";
794          source: "elm";
795          signal: "elm,state,orient,270";
796          action: SIGNAL_EMIT "elm,state,landscape" "elm";
797       }
798       program { name: "portrait_mode";
799          source: "elm";
800          signal: "elm,state,orient,0";
801          action: SIGNAL_EMIT "elm,state,portrait" "elm";
802       }
803       program { name: "portrait_mode2";
804             source: "elm";
805             signal: "elm,state,orient,180";
806             action: SIGNAL_EMIT "elm,state,portrait" "elm";
807       }
808    } /* end of programs */
809 }
810
811 group { name: "elm/popup/base/content_no_vhpad";
812    inherit: "elm/popup/base/default";
813    alias: "elm/popup/base/min_menustyle";
814    parts {
815       part { name: "label_top_padding";
816          type: SPACER;
817          scale: 1;
818          description { state: "default" 0.0;
819             min: 0 0;
820             max: 0 0;
821             fixed: 1 1;
822             align: 0.5 0.0;
823             rel1 {
824                relative: 0.5 1.0;
825                to_y: "shadow_left_top_padding";
826             }
827             rel2 {
828                relative: 0.5 1.0;
829                to_y: "shadow_left_top_padding";
830             }
831          }
832       }
833       part { name: "label_bottom_padding";
834          type: SPACER;
835          scale: 1;
836          description { state: "default" 0.0;
837             min: 0 0;
838             max: 0 0;
839             fixed: 1 1;
840             align: 0.5 1.0;
841             rel1 {
842                relative: 0.5 0.0;
843                to_y: "shadow_right_bottom_padding";
844             }
845             rel2 {
846                relative: 0.5 0.0;
847                to_y: "shadow_right_bottom_padding";
848             }
849          }
850       }
851    }
852 }
853
854 group { name: "elm/popup/content/default";
855    alias: "elm/popup/content/transparent";
856    alias: "elm/popup/content/customstyle";
857    alias: "elm/popup/content/customstyle_transparent";
858    parts{
859       part { name: "pad_t";
860          type: SPACER;
861          scale: 1;
862          mouse_events: 0;
863          description { state: "default" 0.0;
864             align: 0.5 0.0;
865             min: 0 POPUP_CONTENT_DEFAULT_PADDING_TOP_MIN_INC;
866             max: 0 POPUP_CONTENT_DEFAULT_PADDING_TOP_MIN_INC;
867             fixed: 0 1;
868             rel1 {
869                relative: 1.0 0.0;
870                to_x: "pad_l";
871             }
872             rel2 {
873                relative: 0.0 0.0;
874                to_x: "pad_r";
875             }
876          }
877       }
878       part { name: "pad_l";
879          type: SPACER;
880          scale: 1;
881          description { state: "default" 0.0;
882             min: POPUP_CONTENT_DEFAULT_PADDING_LEFT_MIN_INC 0;
883             max: POPUP_CONTENT_DEFAULT_PADDING_LEFT_MIN_INC 0;
884             fixed: 1 0;
885             rel2.relative: 0.0 1.0;
886             align: 0.0 0.0;
887          }
888       }
889       part { name: "pad_r";
890          type: SPACER;
891          scale: 1;
892          description { state: "default" 0.0;
893             min: POPUP_CONTENT_DEFAULT_PADDING_RIGHT_MIN_INC 0;
894             max: POPUP_CONTENT_DEFAULT_PADDING_RIGHT_MIN_INC 0;
895             fixed: 1 0;
896             rel1.relative: 1.0 0.0;
897             align: 1.0 0.0;
898          }
899       }
900       part { name:"elm.swallow.content";
901          type: SWALLOW;
902          scale: 1;
903          description { state: "default" 0.0;
904             fixed: 1 0;
905             rel1 {
906                relative: 1.0 1.0;
907                to_x: "pad_l";
908                to_y: "pad_t";
909             }
910             rel2 {
911                relative: 0.0 0.0;
912                to_x: "pad_r";
913                to_y: "pad_b";
914             }
915          }
916       }
917       part { name: "pad_b";
918          type: SPACER;
919          scale: 1;
920          description { state: "default" 0.0;
921             align: 0.5 1.0;
922             min: 0 POPUP_CONTENT_DEFAULT_PADDING_BOTTOM_MIN_INC;
923             max: 0 POPUP_CONTENT_DEFAULT_PADDING_BOTTOM_MIN_INC;
924             fixed: 0 1;
925             rel1 {
926                relative: 0.0 1.0;
927                to_x: "pad_l";
928             }
929             rel2.to_x: "pad_r";
930          }
931       }
932    }
933 }
934
935 group { name: "elm/popup/content/content_no_vhpad";
936    parts {
937       part { name:"elm.swallow.content";
938          type: SWALLOW;
939          scale: 1;
940          description { state: "default" 0.0;
941             fixed: 1 0;
942          }
943       }
944    }
945 }
946
947 ///////////////////////////////////////////////////////////////////////////////
948
949 group { name: "elm/popup/item/default";
950    alias: "elm/popup/item/min_menustyle";
951    script {
952       public item_state = POPUP_ITEM_STATE_ENABLED;
953    }
954    parts {
955       part { name: "event_blocker";
956          type: RECT;
957          description { state: "default" 0.0;
958             color: 0 0 0 0;
959          }
960       }
961       part { name: "bg";
962          type: RECT;
963          mouse_events: 0;
964          scale: 1;
965          description { state: "default" 0.0;
966             color: GENLIST_LIST_BG_COLOR;
967             min: POPUP_ITEM_BG_DEFAULT_MIN_INC;
968             align: 0.5 0.0;
969          }
970          description { state: "clicked" 0.0;
971             color: GENLIST_LIST_PRESS_COLOR;
972          }
973       }
974       part { name: "padding_left_top";
975          type: SPACER;
976          scale: 1;
977          description { state: "default" 0.0;
978             align: 0.0 0.0;
979             rel2.relative: 0.0 0.0;
980             min: POPUP_ITEM_LEFT_MIN_PADDING_INC;
981             fixed: 1 1;
982          }
983       }
984       part { name: "padding_right_bottom";
985          type: SPACER;
986          scale: 1;
987          description { state: "default" 0.0;
988             align: 1.0 1.0;
989             rel1.relative: 1.0 1.0;
990             min: POPUP_ITEM_RIGHT_MIN_PADDING_INC;
991             fixed: 1 1;
992          }
993       }
994       part { name: "separator";
995          mouse_events: 0;
996          type: RECT;
997          scale: 1;
998          description { state: "dafault" 0.0;
999             color: GENLIST_LIST_LINE1_COLOR;
1000             align: 0.5 1.0;
1001             min: 0 1;
1002             max: 999999 1;
1003          }
1004       }
1005       part { name: "padding_icon_text";
1006          type: SPACER;
1007          scale: 1;
1008          description { state: "default" 0.0; //when only icon or no icon is there
1009             align: 0.0 0.0;
1010             rel1 {
1011                relative: 1.0 0.0;
1012                to: "elm.swallow.content";
1013             }
1014             rel2.to: "elm.swallow.content";
1015             fixed: 1 0;
1016             min: 0 0;
1017          }
1018          description { state: "visible" 0.0; //when icon is visible
1019             inherit: "default" 0.0;
1020             min: POPUP_ITEM_ICON_TEXT_PADDING_INC;
1021          }
1022          description { state: "icononly" 0.0;
1023             inherit: "default" 0.0;
1024          }
1025       }
1026       part { name: "elm.swallow.content";
1027          type: SWALLOW;
1028          scale: 1;
1029          description { state: "default" 0.0;
1030             visible: 0;
1031             align: 0.0 0.5;
1032             rel1 {
1033                relative: 1.0 1.0;
1034                to: "padding_left_top";
1035             }
1036             rel2 {
1037                relative: 1.0 0.0;
1038                to_x: "padding_left_top";
1039                to_y: "padding_right_bottom";
1040             }
1041             fixed: 1 0;
1042          }
1043          description { state: "visible" 0.0;
1044             fixed: 1 0;
1045             min: 40 40;
1046             max: 40 40;
1047             align: 0.0 0.5;
1048             rel1 {
1049                relative: 1.0 1.0;
1050                to: "padding_left_top";
1051             }
1052             rel2 {
1053                relative: 1.0 0.0;
1054                to_x: "padding_left_top";
1055                to_y: "padding_right_bottom";
1056             }
1057             aspect: 1.0 1.0;
1058             aspect_preference: VERTICAL;
1059          }
1060          description { state: "icononly" 0.0;
1061             min: 40 40;
1062             max: 40 40;
1063             rel1 {
1064                relative: 1.0 1.0;
1065                to: "padding_left_top";
1066             }
1067             rel2 {
1068                relative: 0.0 0.0;
1069                to: "padding_right_bottom";
1070             }
1071             aspect: 1.0 1.0;
1072             aspect_preference: VERTICAL;
1073          }
1074       }
1075       part { name: "elm.text";
1076          type: TEXT;
1077          mouse_events: 0;
1078          scale: 1;
1079          description { state: "default" 0.0;
1080             visible: 0;
1081             rel1 {
1082                relative: 1.0 1.0;
1083                to_x: "padding_icon_text";
1084                to_y: "padding_left_top";
1085             }
1086             rel2 {
1087                relative: 0.0 0.0;
1088                to:"padding_right_bottom";
1089             }
1090             align: 0.0 0.5;
1091             color: GENLIST_LIST_MAIN_TEXT_UNREAD_COLOR;
1092             text {
1093                align: 0 0.5;
1094                min: 0 1;
1095                font: "Tizen:style=Regular";
1096                size: GENLIST_LIST_MAIN_TEXT_SIZE;
1097                text_class: "list_item";
1098             }
1099          }
1100          description { state: "visible" 0.0;
1101             inherit: "default" 0.0;
1102             visible: 1;
1103          }
1104          description { state: "clicked" 0.0;
1105             inherit: "default" 0.0;
1106             visible: 1;
1107             color: GENLIST_LIST_TEXT_FOCUS_COLOR;
1108          }
1109          description { state: "disabled" 0.0;
1110             inherit: "default" 0.0;
1111             color: POPUP_ITEM_TEXT_DISABLED_COLOR_INC;
1112          }
1113          description { state: "disabled_visible" 0.0;
1114             inherit: "default" 0.0;
1115             color: POPUP_ITEM_TEXT_DISABLED_VISIBLE_COLOR_INC;
1116             visible: 1;
1117          }
1118       }
1119       part { name: "over1";
1120          type: RECT;
1121          repeat_events: 1;
1122          ignore_flags: ON_HOLD;
1123          description { state: "default" 0.0;
1124             color: 0 0 0 0;
1125          }
1126       }
1127       part { name: "over2";
1128          type: RECT;
1129          repeat_events: 1;
1130          description { state: "default" 0.0;
1131             color: 0 0 0 0;
1132          }
1133       }
1134       part { name: "disclip";
1135          type: RECT;
1136          description { state: "default" 0.0;
1137             visible: 0;
1138          }
1139          description { state: "disabled" 0.0;
1140             color: 0 0 0 0;
1141          }
1142       }
1143    }
1144    programs {
1145       program { name: "item_unclick";
1146          signal: "mouse,up,1";
1147          source: "over1";
1148          action: SIGNAL_EMIT "elm,action,click" "";
1149       }
1150       program { name: "disable";
1151          signal: "elm,state,item,disabled";
1152          source: "elm";
1153          action: STATE_SET "disabled" 0.0;
1154          target: "disclip";
1155          after: "disable_text";
1156       }
1157       program { name: "enable";
1158          signal: "elm,state,item,enabled";
1159          source: "elm";
1160          action: STATE_SET "default" 0.0;
1161          target: "disclip";
1162          after: "enable_text";
1163       }
1164       program { name: "item_click2";
1165          signal: "mouse,down,1";
1166          source: "over2";
1167          script {
1168             new st[31];
1169             new Float:vl;
1170             get_state(PART:"elm.text", st, 30, vl);
1171             if (!strcmp(st, "visible"))
1172               set_state(PART:"elm.text", "clicked", 0.0);
1173             set_state(PART:"bg", "clicked", 0.0);
1174          }
1175       }
1176       program { name: "item_unclick2";
1177          signal: "mouse,up,1";
1178          source: "over2";
1179          script {
1180             new st[31];
1181             new Float:vl;
1182             get_state(PART:"elm.text", st, 30, vl);
1183             if (!strcmp(st, "clicked"))
1184               set_state(PART:"elm.text", "visible", 0.0);
1185             set_state(PART:"bg", "default", 0.0);
1186          }
1187       }
1188       program { name: "disable_text";
1189          script {
1190             new st[31];
1191             new Float:vl;
1192             get_state(PART:"elm.text", st, 30, vl);
1193             if (!strcmp(st, "visible"))
1194               set_state(PART:"elm.text", "disabled_visible", 0.0);
1195             else
1196               set_state(PART:"elm.text", "disabled", 0.0);
1197             set_int(item_state, POPUP_ITEM_STATE_DISABLED);
1198          }
1199       }
1200       program { name: "enable_text";
1201          script {
1202             new st[31];
1203             new Float:vl;
1204             get_state(PART:"elm.text", st, 30, vl);
1205             if (!strcmp(st, "disabled_visible"))
1206               set_state(PART:"elm.text", "visible", 0.0);
1207             else
1208               set_state(PART:"elm.text", "default", 0.0);
1209             set_int(item_state, POPUP_ITEM_STATE_ENABLED);
1210          }
1211       }
1212       program { name: "text_show";
1213          signal: "elm,state,item,text,visible";
1214          source: "elm";
1215          script {
1216             new st[31];
1217             new Float:vl;
1218             get_state(PART:"elm.swallow.content", st, 30, vl);
1219             if (!strcmp(st, "icononly")) {
1220                set_state(PART:"elm.swallow.content", "visible", 0.0);
1221                set_state(PART:"padding_icon_text", "visible", 0.0);
1222             }
1223             if(get_int(item_state) != POPUP_ITEM_STATE_DISABLED)
1224               set_state(PART:"elm.text", "visible", 0.0);
1225             else
1226               set_state(PART:"elm.text", "disabled_visible", 0.0);
1227          }
1228       }
1229       program { name: "text_hide";
1230          signal: "elm,state,item,text,hidden";
1231          source: "elm";
1232          script {
1233             new st[31];
1234             new Float:vl;
1235             get_state(PART:"elm.swallow.content", st, 30, vl);
1236             if (!strcmp(st, "visible")) {
1237                set_state(PART:"elm.swallow.content", "icononly", 0.0);
1238                set_state(PART:"padding_icon_text", "icononly", 0.0);
1239             }
1240             set_state(PART:"elm.text", "default", 0.0);
1241          }
1242       }
1243       program { name: "icon_show";
1244          signal: "elm,state,item,icon,visible";
1245          source: "elm";
1246          script {
1247             new st[31];
1248             new Float:vl;
1249             get_state(PART:"elm.text", st, 30, vl);
1250             if (!strcmp(st, "visible")) {
1251                set_state(PART:"elm.swallow.content", "visible", 0.0);
1252                set_state(PART:"padding_icon_text", "visible", 0.0);
1253             }
1254             else {
1255                set_state(PART:"elm.swallow.content", "icononly", 0.0);
1256                set_state(PART:"padding_icon_text", "icononly", 0.0);
1257             }
1258          }
1259       }
1260       program { name: "icon_hide";
1261          signal: "elm,state,item,icon,hidden";
1262          source: "elm";
1263          action:  STATE_SET "default" 0.0;
1264          target: "elm.swallow.content";
1265       }
1266    }
1267 }
1268
1269 ////////////////////////////////////////////////////////////////////////////////////////
1270 group { name: "elm/label/base/popup/verticalbuttonstyle";
1271    styles
1272      {
1273         style { name: "popup_desc_style_center";
1274            base: "font=Tizen:style=Medium font_size="POPUP_DESCRIPTION_DEFAULT_TEXT_FONT_SIZE_INC" align=center color="POPUP_DEFAULT_DESCRIPTION_TEXT_COLOR_INC" text_class=tizen";
1275            tag:  "br" "\n";
1276            tag:  "ps" "ps";
1277            tag:  "whitecolor" "+ color=#ffffff";
1278            tag:  "tab" "\t";
1279         }
1280      }
1281    parts {
1282       part { name: "elm.text";
1283          type: TEXTBLOCK;
1284          mouse_events: 0;
1285          scale: 1;
1286          description { state: "default" 0.0;
1287             text {
1288                style: "popup_desc_style_center";
1289                min: 0 1;
1290                max: 0 1;
1291             }
1292          }
1293       }
1294    }
1295 }
1296
1297
1298 group { name: "elm/popup/buttons3/verticalbuttonstyle";
1299    alias: "elm/popup/buttons3/verticalbuttonstyle_transparent";
1300    data.item: "action_area_height" POPUP_BUTTON_VERTICAL_ACTION_AREA_HEIGHT;
1301    parts {
1302       part { name: "bg";
1303          type: SPACER;
1304          scale: 1;
1305          description { state: "default" 0.0;
1306             min: POPUP_BASE_VERTICAL_BUTTON_BUTTONAREA_DEFAULT_MIN_INC;
1307             fixed: 1 0;
1308          }
1309       }
1310       part { name: "elm.rect.pad_btn_top";
1311          type: SPACER;
1312          scale: 1;
1313          description { state: "default" 0.0;
1314             min: POPUP_BUTTON3_VERTICAL_BUTTON_PADDING_TOP_MIN_INC;
1315             fixed: 0 1;
1316             align: 0.0 0.0;
1317             rel1 {
1318                relative: 0.0 0.0;
1319             }
1320             rel2 {
1321                relative: 1.0 0.0;
1322             }
1323          }
1324       }
1325       part { name:"actionbtn1";
1326          type: SWALLOW;
1327          scale: 1;
1328          description { state: "default" 0.0;
1329             min: POPUP_BUTTON3_VERTICAL_BUTTON_BUTTON_MIN_MAX_INC;
1330             max: POPUP_BUTTON3_VERTICAL_BUTTON_BUTTON_MIN_MAX_INC;
1331             fixed: 1 1;
1332             align: 0.5 0.0;
1333             rel1 {
1334                relative: 0.0 1.0; to_y: "elm.rect.pad_btn_top";
1335             }
1336          }
1337       }
1338       part { name: "elm.rect.pad_btn";
1339          type: SPACER;
1340          scale: 1;
1341          description { state: "default" 0.0;
1342             min: POPUP_BUTTON3_VERTICAL_BUTTON_PADDING_BUTTON_MIN_INC;
1343             max: POPUP_BUTTON3_VERTICAL_BUTTON_PADDING_BUTTON_MAX_INC;
1344             fixed: 1 1;
1345             align: 0.5 0.0;
1346             rel1 {
1347                relative: 0.0 1.0; to: "actionbtn1";
1348             }
1349             rel2 {
1350                relative: 1.0 1.0; to: "actionbtn1";
1351             }
1352          }
1353       }
1354       part { name:"actionbtn2";
1355          type: SWALLOW;
1356          scale: 1;
1357          description { state: "default" 0.0;
1358             min: POPUP_BUTTON3_VERTICAL_BUTTON_BUTTON_MIN_MAX_INC;
1359             max: POPUP_BUTTON3_VERTICAL_BUTTON_BUTTON_MIN_MAX_INC;
1360             fixed: 1 1;
1361             align: 0.5 0.0;
1362             rel1 { relative: 0 1.0; to_y: "elm.rect.pad_btn"; }
1363          }
1364       }
1365       part { name: "elm.rect.pad_btn2";
1366          type: SPACER;
1367          scale: 1;
1368          description { state: "default" 0.0;
1369             min: POPUP_BUTTON3_VERTICAL_BUTTON_PADDING_BUTTON_MIN_INC;
1370             max: POPUP_BUTTON3_VERTICAL_BUTTON_PADDING_BUTTON_MAX_INC;
1371             fixed: 1 1;
1372             align: 0.5 0.0;
1373             rel1 {
1374                relative: 0.0 1.0; to: "actionbtn2";
1375             }
1376             rel2 {
1377                relative: 1.0 1.0; to: "actionbtn2";
1378             }
1379          }
1380       }
1381       part { name:"actionbtn3";
1382          type: SWALLOW;
1383          scale: 1;
1384          description { state: "default" 0.0;
1385             min: POPUP_BUTTON3_VERTICAL_BUTTON_BUTTON_MIN_MAX_INC;
1386             max: POPUP_BUTTON3_VERTICAL_BUTTON_BUTTON_MIN_MAX_INC;
1387             fixed: 1 1;
1388             align: 0.5 0.0;
1389             rel1 {
1390                relative: 0.0 1.0; to_y: "elm.rect.pad_btn2";
1391             }
1392          }
1393       }
1394    }
1395 }
1396
1397 group { name: "elm/popup/content/menustyle";
1398    alias: "elm/popup/content/menustyle_transparent";
1399    parts{
1400       part { name: "left_padding";
1401          type: SPACER;
1402          scale: 1;
1403          description { state: "default" 0.0;
1404             fixed: 1 0;
1405             align: 0.0 0.5;
1406             min: POPUP_CONTENT_LISTSTYLE_PADDING_RIGHT_MIN_INC;
1407             rel1 {
1408                relative: 0.0 0.0;
1409             }
1410             rel2 {
1411                relative: 0.0 1.0;
1412             }
1413          }
1414       }
1415       part{ name:"elm.swallow.content";
1416          type: SWALLOW;
1417          scale: 1;
1418          description { state: "default" 0.0;
1419             min: POPUP_CONTENT_LISTSTYLE_CONTENT_DEFAULT_MIN_INC;
1420             max: POPUP_CONTENT_LISTSTYLE_CONTENT_DEFAULT_MIN_INC;
1421             align: 0.5 0.5;
1422             fixed: 1 0;
1423             rel1 {
1424                relative: 1.0 0.0;
1425                to:"left_padding";
1426             }
1427             rel2 {
1428                relative: 0.0 1.0;
1429                to:"right_padding";
1430             }
1431          }
1432       }
1433       part { name: "right_padding";
1434          type: SPACER;
1435          scale: 1;
1436          description { state: "default" 0.0;
1437             fixed: 1 0;
1438             align: 1.0 0.5;
1439             min: POPUP_CONTENT_LISTSTYLE_PADDING_RIGHT_MIN_INC;
1440             rel1 {
1441                relative: 1.0 0.0;
1442             }
1443             rel2 {
1444                relative: 1.0 1.0;
1445             }
1446          }
1447       }
1448    }
1449 }
1450
1451 group { name: "elm/popup/content/min_menustyle";
1452    alias: "elm/popup/content/min_menustyle_transparent";
1453    parts{
1454       part { name: "left_padding";
1455          type: SPACER;
1456          scale: 1;
1457          description { state: "default" 0.0;
1458             fixed: 1 0;
1459             align: 0.0 0.5;
1460             min: POPUP_CONTENT_LISTSTYLE_PADDING_RIGHT_MIN_INC;
1461             rel1 {
1462                relative: 0.0 0.0;
1463             }
1464             rel2 {
1465                relative: 0.0 1.0;
1466             }
1467          }
1468       }
1469       part{ name:"elm.swallow.content";
1470          type: SWALLOW;
1471          scale: 1;
1472          description { state: "default" 0.0;
1473             min: POPUP_CONTENT_MINSTYLE_CONTENT_DEFAULT_MIN_INC;
1474             align: 0.5 0.5;
1475             fixed: 1 0;
1476             rel1 {
1477                relative: 1.0 0.0;
1478                to:"left_padding";
1479             }
1480             rel2 {
1481                relative: 0.0 1.0;
1482                to:"right_padding";
1483             }
1484          }
1485       }
1486       part { name: "right_padding";
1487          type: SPACER;
1488          scale: 1;
1489          description { state: "default" 0.0;
1490             fixed: 1 0;
1491             align: 1.0 0.5;
1492             min: POPUP_CONTENT_LISTSTYLE_PADDING_RIGHT_MIN_INC;
1493             rel1 {
1494                relative: 1.0 0.0;
1495             }
1496             rel2 {
1497                relative: 1.0 1.0;
1498             }
1499          }
1500       }
1501    }
1502 }
1503
1504 group { name: "elm/popup/content/liststyle";
1505    alias: "elm/popup/content/liststyle_transparent";
1506    parts{
1507       part { name: "left_top_padding";
1508          type: SPACER;
1509          scale: 1;
1510          description { state: "default" 0.0;
1511             fixed: 1 1;
1512             align: 0.0 0.0;
1513             min: POPUP_CONTENT_LISTSTYLE_PADDING_TOP_MIN_MAX_INC;
1514             max: POPUP_CONTENT_LISTSTYLE_PADDING_TOP_MIN_MAX_INC;
1515          }
1516       }
1517       part{ name:"elm.swallow.content";
1518          type: SWALLOW;
1519          scale: 1;
1520          description { state: "default" 0.0;
1521             min: POPUP_CONTENT_LISTSTYLE_CONTENT_DEFAULT_MIN_INC;
1522             max: POPUP_CONTENT_LISTSTYLE_CONTENT_DEFAULT_MIN_INC;
1523             align: 0.5 0.5;
1524             fixed: 1 0;
1525             rel1 {
1526                relative: 1.0 1.0;
1527                to:"left_top_padding";
1528             }
1529             rel2 {
1530                relative: 0.0 1.0;
1531                to:"right_padding";
1532             }
1533          }
1534       }
1535       part { name: "right_padding";
1536          type: SPACER;
1537          scale: 1;
1538          description { state: "default" 0.0;
1539             fixed: 1 0;
1540             align: 1.0 0.5;
1541             min: POPUP_CONTENT_LISTSTYLE_PADDING_RIGHT_MIN_INC;
1542             rel1 {
1543                relative: 1.0 0.0;
1544             }
1545             rel2 {
1546                relative: 1.0 1.0;
1547             }
1548          }
1549       }
1550    }
1551 }
1552
1553 group { name: "elm/popup/content/min_liststyle";
1554    alias: "elm/popup/content/min_liststyle_transparent";
1555    parts{
1556       part { name: "left_top_padding";
1557          type: SPACER;
1558          scale: 1;
1559          description { state: "default" 0.0;
1560             fixed: 1 1;
1561             align: 0.0 0.0;
1562             min: POPUP_CONTENT_LISTSTYLE_PADDING_TOP_MIN_MAX_INC;
1563             max: POPUP_CONTENT_LISTSTYLE_PADDING_TOP_MIN_MAX_INC;
1564          }
1565       }
1566       part{ name:"elm.swallow.content";
1567          type: SWALLOW;
1568          scale: 1;
1569          description { state: "default" 0.0;
1570             min: POPUP_CONTENT_MINSTYLE_CONTENT_DEFAULT_MIN_INC;
1571             align: 0.5 0.5;
1572             fixed: 1 0;
1573             rel1 {
1574                relative: 1.0 1.0;
1575                to:"left_top_padding";
1576             }
1577             rel2 {
1578                relative: 0.0 1.0;
1579                to:"right_padding";
1580             }
1581          }
1582       }
1583       part { name: "right_padding";
1584          type: SPACER;
1585          scale: 1;
1586          description { state: "default" 0.0;
1587             fixed: 1 0;
1588             align: 1.0 0.5;
1589             min: POPUP_CONTENT_LISTSTYLE_PADDING_RIGHT_MIN_INC;
1590             rel1 {
1591                relative: 1.0 0.0;
1592             }
1593             rel2 {
1594                relative: 1.0 1.0;
1595             }
1596          }
1597       }
1598    }
1599 }
1600
1601
1602 group { name: "elm/popup/buttons1/default";
1603    alias: "elm/popup/buttons1/transparent";
1604    data.item: "action_area_height" POPUP_BUTTON_DEFAULT_ACTION_AREA_HEIGHT;
1605    parts{
1606       part{ name:"actionbtn1";
1607          type: SWALLOW;
1608          scale: 1;
1609          description { state: "default" 0.0;
1610             min: POPUP_BUTTON1_DEFAULT_BUTTON1_DEFAULT_MIN_INC;
1611             max: POPUP_BUTTON1_DEFAULT_BUTTON1_DEFAULT_MAX_INC;
1612             fixed: 1 1;
1613             rel1.relative: 0.5 0.0;
1614             rel2.relative: 0.5 1.0;
1615          }
1616       }
1617    }
1618 }
1619
1620 group { name: "elm/popup/buttons2/default";
1621    alias: "elm/popup/buttons2/transparent";
1622    data.item: "action_area_height" POPUP_BUTTON_DEFAULT_ACTION_AREA_HEIGHT;
1623    parts{
1624       part { name: "left_pad_btn";
1625          type: SPACER;
1626          scale: 1;
1627          description { state: "default" 0.0;
1628             min: POPUP_BUTTON2_DEFAULT_PADDING_LEFT_RIGHT_WIDTH_INC POPUP_BUTTON2_DEFAULT_HEIGHT_INC;
1629             max: POPUP_BUTTON2_DEFAULT_PADDING_LEFT_RIGHT_WIDTH_INC POPUP_BUTTON2_DEFAULT_HEIGHT_INC;
1630             fixed: 1 1;
1631             align: 0 0.5;
1632             rel1.relative: 0.0 0.0;
1633          }
1634       }
1635       part { name: "right_pad_btn";
1636          type: SPACER;
1637          scale: 1;
1638          description { state: "default" 0.0;
1639             min: POPUP_BUTTON2_DEFAULT_PADDING_LEFT_RIGHT_WIDTH_INC POPUP_BUTTON2_DEFAULT_HEIGHT_INC;
1640             max: POPUP_BUTTON2_DEFAULT_PADDING_LEFT_RIGHT_WIDTH_INC POPUP_BUTTON2_DEFAULT_HEIGHT_INC;
1641             fixed: 1 1;
1642             align: 1 0.5;
1643             rel2.relative: 1.0 1.0;
1644          }
1645       }
1646       part { name:"actionbtn1";
1647          type: SWALLOW;
1648          scale: 1;
1649          description { state: "default" 0.0;
1650             fixed: 1 1;
1651             align: 1.0 0.5;
1652             rel1 {
1653                relative: 1.0 0.0;
1654                to: "left_pad_btn";
1655             }
1656             rel2 {
1657                relative: 0.0 1.0;
1658                to: "elm.rect.pad_btn";
1659             }
1660          }
1661       }
1662       part { name: "elm.rect.pad_btn";
1663          type: SPACER;
1664          scale: 1;
1665          description { state: "default" 0.0;
1666             min: POPUP_BUTTON2_DEFAULT_PADDING_BUTTON_MIN_MAX_INC;
1667             max: POPUP_BUTTON2_DEFAULT_PADDING_BUTTON_MIN_MAX_INC;
1668             fixed: 1 1;
1669             rel1.relative: 0.5 0.0;
1670             rel2.relative: 0.5 1.0;
1671          }
1672       }
1673       part { name:"actionbtn2";
1674          type: SWALLOW;
1675          scale: 1;
1676          description { state: "default" 0.0;
1677             fixed: 1 1;
1678             align: 0.0 0.5;
1679             rel1 {
1680                relative: 1.0 0.0;
1681                to: "elm.rect.pad_btn";
1682             }
1683             rel2 {
1684                relative: 0.0 1.0;
1685                to: "right_pad_btn";
1686             }
1687          }
1688       }
1689    }
1690 }
1691
1692 group { name: "elm/popup/buttons3/default";
1693    alias: "elm/popup/buttons3/menustyle";
1694    alias: "elm/popup/buttons3/transparent";
1695    data.item: "action_area_height" POPUP_BUTTON_DEFAULT_ACTION_AREA_HEIGHT;
1696    parts{
1697       part { name: "left_pad_btn";
1698          type: SPACER;
1699          scale: 1;
1700          description { state: "default" 0.0;
1701             min: POPUP_BUTTON3_DEFAULT_PADDING_LEFT_RIGHT_WIDTH_INC POPUP_BUTTON3_DEFAULT_HEIGHT_INC;
1702             max: POPUP_BUTTON3_DEFAULT_PADDING_LEFT_RIGHT_WIDTH_INC POPUP_BUTTON3_DEFAULT_HEIGHT_INC;
1703             fixed: 1 1;
1704             align: 0 0.5;
1705             rel1.relative: 0.0 0.0;
1706          }
1707       }
1708       part { name: "right_pad_btn";
1709          type: SPACER;
1710          scale: 1;
1711          description { state: "default" 0.0;
1712             min: POPUP_BUTTON3_DEFAULT_PADDING_LEFT_RIGHT_WIDTH_INC POPUP_BUTTON3_DEFAULT_HEIGHT_INC;
1713             max: POPUP_BUTTON3_DEFAULT_PADDING_LEFT_RIGHT_WIDTH_INC POPUP_BUTTON3_DEFAULT_HEIGHT_INC;
1714             fixed: 1 1;
1715             align: 1 0.5;
1716             rel2.relative: 1.0 1.0;
1717          }
1718       }
1719       part { name: "btn_area";
1720          type: SPACER;
1721          scale: 1;
1722          description { state: "default" 0.0;
1723             fixed: 1 1;
1724             rel1 {
1725                relative: 1.0 0.0;
1726                to: "left_pad_btn";
1727             }
1728             rel2 {
1729                relative: 0.0 1.0;
1730                to: "right_pad_btn";
1731             }
1732          }
1733       }
1734       part{ name:"actionbtn1";
1735          type: SWALLOW;
1736          scale: 1;
1737          description { state: "default" 0.0;
1738             fixed: 1 1;
1739             align: 1.0 0.5;
1740             rel1 {
1741                relative: 1.0 0.0;
1742                to: "left_pad_btn";
1743             }
1744             rel2 {
1745                relative: 0.0 1.0;
1746                to: "elm.rect.pad_btn";
1747             }
1748          }
1749       }
1750       part { name: "elm.rect.pad_btn";
1751          type: SPACER;
1752          scale: 1;
1753          description { state: "default" 0.0;
1754             min: POPUP_BUTTON3_DEFAULT_PADDING_BUTTON_MIN_MAX_INC;
1755             max: POPUP_BUTTON3_DEFAULT_PADDING_BUTTON_MIN_MAX_INC;
1756             fixed: 1 1;
1757             rel1.relative: 0.33 0.0;
1758             rel1.to: "btn_area";
1759             rel2.relative: 0.33 1.0;
1760             rel2.to: "btn_area";
1761          }
1762       }
1763       part{ name:"actionbtn2";
1764          type: SWALLOW;
1765          scale: 1;
1766          description { state: "default" 0.0;
1767             fixed: 1 1;
1768             rel1 {
1769                relative: 1.0 0.0;
1770                to: "elm.rect.pad_btn";
1771             }
1772             rel2 {
1773                relative: 0.0 1.0;
1774                to: "elm.rect.pad_btn2";
1775             }
1776          }
1777       }
1778       part { name: "elm.rect.pad_btn2";
1779          type: SPACER;
1780          scale: 1;
1781          description { state: "default" 0.0;
1782             min: POPUP_BUTTON3_DEFAULT_PADDING_BUTTON_MIN_MAX_INC;
1783             max: POPUP_BUTTON3_DEFAULT_PADDING_BUTTON_MIN_MAX_INC;
1784             fixed: 1 1;
1785             rel1.relative: 0.67 0.0;
1786             rel1.to: "btn_area";
1787             rel2.relative: 0.67 1.0;
1788             rel2.to: "btn_area";
1789          }
1790       }
1791       part{ name:"actionbtn3";
1792          type: SWALLOW;
1793          scale: 1;
1794          description { state: "default" 0.0;
1795             fixed: 1 1;
1796             align: 0.0 0.5;
1797             rel1 {
1798                relative: 1.0 0.0;
1799                to: "elm.rect.pad_btn2";
1800             }
1801             rel2 {
1802                relative: 0.0 1.0;
1803                to: "right_pad_btn";
1804             }
1805          }
1806       }
1807    }
1808 }
1809
1810 group { name: "elm/popup/base/volumebarstyle";
1811    inherit: "elm/popup/base/default";
1812    alias: "elm/popup/base/volumebarstyle_transparent";
1813    images {
1814       image: "00_popup_bg.png" COMP;
1815    }
1816    parts {
1817       part { name: "elm.swallow.content";
1818          type: SWALLOW;
1819          scale: 1;
1820          description { state: "default" 0.0;
1821             min: POPUP_CONTENT_VOLUMEBAR_STYLE_CONTENT_DEFAULT_MIN_INC;
1822             fixed: 1 0;
1823             rel1 {
1824                relative: 0.0 1.0;
1825                to_x: "base";
1826                to_y: "shadow_left_top_padding";
1827             }
1828             rel2 {
1829                relative: 1.0 0.0;
1830                to_x: "base";
1831                to_y: "shadow_right_bottom_padding";
1832             }
1833          }
1834          description { state: "show_title_area" 0.0;
1835             inherit: "default" 0.0;
1836             rel1 {
1837                relative: 0.0 1.0;
1838                to_x: "base";
1839                to_y: "elm.bg.title";
1840             }
1841             rel2 {
1842                relative: 1.0 0.0;
1843                to_x: "base";
1844                to_y: "shadow_right_bottom_padding";
1845             }
1846          }
1847          description { state: "show_action_area" 0.0;
1848             inherit: "default" 0.0;
1849             rel1 {
1850                relative: 0.0 1.0;
1851                to_x: "base";
1852                to_y: "shadow_left_top_padding";
1853             }
1854             rel2 {
1855                relative: 1.0 0.0;
1856                to_x: "base";
1857                to_y: "elm.swallow.action_area";
1858             }
1859          }
1860          description { state: "show_action_title_area" 0.0;
1861             inherit: "default" 0.0;
1862             rel1 {
1863                relative: 0.0 1.0;
1864                to_x: "base";
1865                to_y: "elm.bg.title";
1866             }
1867             rel2 {
1868                relative: 1.0 0.0;
1869                to_x: "base";
1870                to_y: "elm.swallow.action_area";
1871             }
1872          }
1873       }
1874    }
1875 }
1876
1877 group { name: "elm/popup/base/volumebarstyle_text";
1878    alias: "elm/popup/base/volumebarstyle_text_transparent";
1879    inherit: "elm/popup/base/volumebarstyle";
1880    parts {
1881       part { name: "elm.swallow.content";
1882          type: SWALLOW;
1883          scale: 1;
1884          description { state: "default" 0.0;
1885             min: POPUP_CONTENT_VOLUMEBAR_TEXT_STYLE_CONTENT_DEFAULT_MIN_INC;
1886             fixed: 1 0;
1887             rel1 {
1888                relative: 0.0 1.0;
1889                to_x: "base";
1890                to_y: "shadow_left_top_padding";
1891             }
1892             rel2 {
1893                relative: 1.0 0.0;
1894                to_x: "base";
1895                to_y: "shadow_right_bottom_padding";
1896             }
1897          }
1898          description { state: "show_title_area" 0.0;
1899             inherit: "default" 0.0;
1900             rel1 {
1901                relative: 0.0 1.0;
1902                to_x: "base";
1903                to_y: "elm.bg.title";
1904             }
1905             rel2 {
1906                relative: 1.0 0.0;
1907                to_x: "base";
1908                to_y: "shadow_right_bottom_padding";
1909             }
1910          }
1911          description { state: "show_action_area" 0.0;
1912             inherit: "default" 0.0;
1913             rel1 {
1914                relative: 0.0 1.0;
1915                to_x: "base";
1916                to_y: "shadow_left_top_padding";
1917             }
1918             rel2 {
1919                relative: 1.0 0.0;
1920                to_x: "base";
1921                to_y: "elm.swallow.action_area";
1922             }
1923          }
1924          description { state: "show_action_title_area" 0.0;
1925             inherit: "default" 0.0;
1926             rel1 {
1927                relative: 0.0 1.0;
1928                to_x: "base";
1929                to_y: "elm.bg.title";
1930             }
1931             rel2 {
1932                relative: 1.0 0.0;
1933                to_x: "base";
1934                to_y: "elm.swallow.action_area";
1935             }
1936          }
1937       }
1938    }
1939 }
1940
1941 group { name: "elm/popup/base/content_expand";
1942    alias: "elm/popup/base/content_expand_transparent";
1943    images {
1944       image: "00_popup_bg.png" COMP;
1945    }
1946    parts {
1947       part {
1948          name: "shadow_right_bottom_padding";
1949          type: SPACER;
1950          scale: 1;
1951          description { state: "default" 0.0;
1952             min: POPUP_DESC_RIGHT_PADDING POPUP_DESC_BOTTOM_PADDING;
1953             max: POPUP_DESC_RIGHT_PADDING POPUP_DESC_BOTTOM_PADDING;
1954             align: 1.0 1.0;
1955             fixed: 1 1;
1956          }
1957       }
1958       part { name: "base";
1959          type: IMAGE;
1960          scale: 1;
1961          description { state: "default" 0.0;
1962             rel1.to_x: "elm.swallow.content";
1963             rel2.to_x: "elm.bg.action_area";
1964             image {
1965                normal: "00_popup_bg.png";
1966                border: POPUP_BASE_DEFAULT_BG_DEFAULT_IMAGE_BORDER_INC;
1967                border_scale: 1;
1968             }
1969             fill.smooth: 0;
1970             align: 0.0 0.0;
1971          }
1972       }
1973       part { name: "elm.bg.title";
1974          type: RECT;
1975          scale: 1;
1976          description { state: "default" 0.0;
1977             min: POPUP_BASE_CONTENT_EXPAND_TITLE_DEFAULT_MIN_INC;
1978             fixed: 0 1;
1979             align: 0.5 0.0;
1980             visible: 0;
1981             color: 0 0 0 0;
1982             rel1.to_x: "base";
1983             rel2 {
1984                relative: 1.0 0.0;
1985                to_x: "base";
1986             }
1987          }
1988          description { state: "visible" 0.0;
1989             inherit: "default" 0.0;
1990             visible: 1;
1991          }
1992       }
1993       part { name: "left_pad";
1994          type: SPACER;
1995          scale: 1;
1996          description { state: "default" 0.0;
1997             min: POPUP_BASE_DEFAULT_PADDING_MIN_MAX_INC;
1998             max: POPUP_BASE_DEFAULT_PADDING_MIN_MAX_INC;
1999             fixed: 1 1;
2000             align: 0.0 0.0;
2001             rel1.to: "elm.bg.title";
2002          }
2003       }
2004       part { name: "right_pad";
2005          type: SPACER;
2006          scale: 1;
2007          description { state: "default" 0.0;
2008             min: POPUP_BASE_DEFAULT_PADDING_MIN_MAX_INC;
2009             max: POPUP_BASE_DEFAULT_PADDING_MIN_MAX_INC;
2010             fixed: 1 1;
2011             align: 1.0 1.0;
2012             rel2.to: "elm.bg.title";
2013          }
2014       }
2015       part { name: "elm.swallow.title.icon";
2016          type: SWALLOW;
2017          scale: 1;
2018          description { state: "default" 0.0;
2019             min: POPUP_BASE_DEFAULT_TITLE_ICON_DEFAULT_MIN_MAX_INC;
2020             max: POPUP_BASE_DEFAULT_TITLE_ICON_DEFAULT_MIN_MAX_INC;
2021             fixed: 1 1;
2022             align: 0.0 0.5;
2023             rel1 {
2024                to: "left_pad";
2025                relative: 1.0 0.0;
2026             }
2027             rel2 {
2028                to: "right_pad";
2029                relative: 0.0 1.0;
2030             }
2031             visible: 0;
2032          }
2033          description { state: "visible" 0.0;
2034             inherit: "default" 0.0;
2035             visible: 1;
2036          }
2037       }
2038       part { name: "elm.text.title";
2039          type: TEXTBLOCK;
2040          scale:1;
2041          description { state: "default" 0.0;
2042             text {
2043               style: "popup_title_style";
2044               min: 0 0;
2045               max: 0 1;
2046               align: 0.5 0.0;
2047             }
2048             visible:0;
2049             rel1 {
2050                relative: 1.0 0.0;
2051                to: "left_pad";
2052             }
2053             rel2 {
2054                relative: 0.0 1.0;
2055                to: "right_pad";
2056             }
2057          }
2058          description { state: "visible" 0.0;
2059             inherit: "default" 0.0;
2060             visible: 1;
2061          }
2062       }
2063       part { name: "elm.swallow.content";
2064          type: SWALLOW;
2065          scale: 1;
2066          description { state: "default" 0.0;
2067             min: POPUP_BASE_DEFAULT_CONTENT_DEFAULT_MIN_MAX_INC;
2068             max: POPUP_BASE_DEFAULT_CONTENT_DEFAULT_MIN_MAX_INC;
2069             rel1.relative: 0.5 0.0;
2070             rel2.relative: 0.5 1.0;
2071          }
2072          description { state: "show_title_area" 0.0;
2073             inherit: "default" 0.0;
2074             rel1 {
2075                relative: 0.5 1.0;
2076                to_y: "elm.bg.title";
2077             }
2078          }
2079          description { state: "show_action_area" 0.0;
2080             inherit: "default" 0.0;
2081             rel2 {
2082                relative: 0.5 0.0;
2083                to_y: "elm.bg.action_area";
2084             }
2085          }
2086          description { state: "show_action_title_area" 0.0;
2087             inherit: "default" 0.0;
2088             rel1 {
2089                relative: 0.5 1.0;
2090                to_y: "elm.bg.title";
2091             }
2092             rel2 {
2093                relative: 0.5 0.0;
2094                to_y: "elm.bg.action_area";
2095             }
2096          }
2097       }
2098       part { name: "elm.bg.action_area";
2099          type: RECT;
2100          scale: 1;
2101          description { state: "default" 0.0;
2102             min: POPUP_BASE_CONTENT_EXPAND_BG_DEFAULT_MIN_INC;
2103             fixed: 0 1;
2104             align: 0.5 1.0;
2105             visible: 0;
2106             rel1 {
2107                relative: 0.0 0.0;
2108                to_y: "shadow_right_bottom_padding";
2109             }
2110             rel2 {
2111                relative: 1.0 0.0;
2112                to_y: "shadow_right_bottom_padding";
2113             }
2114             color: 0 0 0 0;
2115          }
2116          description { state: "visible" 0.0;
2117             inherit: "default" 0.0;
2118             visible: 1;
2119          }
2120       }
2121       part { name: "elm.swallow.action_area";
2122          type: SWALLOW;
2123          scale: 1;
2124          description { state: "default" 0.0;
2125             rel1.to: "elm.bg.action_area";
2126             rel2.to: "elm.bg.action_area";
2127          }
2128       }
2129    }
2130    programs {
2131       program { name: show_title_icon;
2132          signal: "elm,state,title,icon,visible";
2133          source: "elm";
2134          action: STATE_SET "visible" 0.0;
2135          target: "elm.swallow.title.icon";
2136       }
2137       program { name: hide_title_icon;
2138          signal: "elm,state,title,icon,hidden";
2139          source: "elm";
2140          action: STATE_SET "default" 0.0;
2141          target: "elm.swallow.title.icon";
2142       }
2143       program { name: show_title_text;
2144          signal: "elm,state,title,text,visible";
2145          source: "elm";
2146          action: STATE_SET "visible" 0.0;
2147          target: "elm.text.title";
2148       }
2149       program { name: hide_title_text;
2150          signal: "elm,state,title,text,hidden";
2151          source: "elm";
2152          action: STATE_SET "default" 0.0;
2153          target: "elm.text.title";
2154       }
2155       program { name: show_title_area;
2156          signal: "elm,state,title_area,visible";
2157          source: "elm";
2158          script {
2159             new st[31];
2160             new Float:vl;
2161             get_state(PART:"elm.swallow.action_area", st, 30, vl);
2162             if (!strcmp(st, "visible"))
2163               set_state(PART:"elm.swallow.content", "show_action_title_area", 0.0);
2164             else
2165               set_state(PART:"elm.swallow.content", "show_title_area", 0.0);
2166             set_state(PART:"elm.bg.title", "visible", 0.0);
2167          }
2168       }
2169       program { name: hide_title_area;
2170          signal: "elm,state,title_area,hidden";
2171          source: "elm";
2172          action: STATE_SET "default" 0.0;
2173          script {
2174             new st[31];
2175             new Float:vl;
2176             get_state(PART:"elm.swallow.action_area", st, 30, vl);
2177             if (!strcmp(st, "visible"))
2178               set_state(PART:"elm.swallow.content", "show_action_area", 0.0);
2179             else
2180               set_state(PART:"elm.swallow.content", "default", 0.0);
2181             set_state(PART:"elm.bg.title", "default", 0.0);
2182          }
2183       }
2184       program { name: show_action_area;
2185          signal: "elm,state,action_area,visible";
2186          source: "elm";
2187          script {
2188             new st[31];
2189             new Float:vl;
2190             get_state(PART:"elm.bg.title", st, 30, vl);
2191             if (!strcmp(st, "visible"))
2192               set_state(PART:"elm.swallow.content", "show_action_title_area", 0.0);
2193             else
2194               set_state(PART:"elm.swallow.content", "show_action_area", 0.0);
2195             set_state(PART:"elm.bg.action_area", "visible", 0.0);
2196          }
2197       }
2198       program { name: hide_action_area;
2199          signal: "elm,state,action_area,hidden";
2200          source: "elm";
2201          action: STATE_SET "default" 0.0;
2202          script {
2203             new st[31];
2204             new Float:vl;
2205             get_state(PART:"elm.bg.title", st, 30, vl);
2206             if (!strcmp(st, "visible"))
2207               set_state(PART:"elm.swallow.content", "show_title_area", 0.0);
2208             else
2209               set_state(PART:"elm.swallow.content", "default", 0.0);
2210             set_state(PART:"elm.bg.action_area", "default", 0.0);
2211          }
2212       }
2213    }
2214 }
2215
2216 group { name: "elm/popup/buttons1/content_expand";
2217    alias: "elm/popup/buttons1/content_expand_transparent";
2218    data.item: "action_area_height" POPUP_BUTTON_DEFAULT_ACTION_AREA_HEIGHT;
2219    parts{
2220       part{ name:"actionbtn1";
2221          type: SWALLOW;
2222          scale: 1;
2223          description { state: "default" 0.0;
2224             rel1.relative: 0.2 0.1;
2225             rel2.relative: 0.8 0.9;
2226          }
2227       }
2228    }
2229 }
2230
2231 group { name: "elm/popup/buttons2/content_expand";
2232    alias: "elm/popup/buttons2/content_expand_transparent";
2233    data.item: "action_area_height" POPUP_BUTTON_DEFAULT_ACTION_AREA_HEIGHT;
2234    parts{
2235       part{ name:"actionbtn1";
2236          type: SWALLOW;
2237          scale: 1;
2238          description { state: "default" 0.0;
2239             align: 0.0 0.5;
2240             rel1.relative: 0.1 0.1;
2241             rel2.relative: 0.45 0.9;
2242          }
2243       }
2244       part{ name:"actionbtn2";
2245          type: SWALLOW;
2246          scale: 1;
2247          description { state: "default" 0.0;
2248             align: 0.0 0.5;
2249             rel1.relative: 0.55 0.1;
2250             rel2.relative: 0.9 0.9;
2251          }
2252       }
2253    }
2254 }
2255
2256 group { name: "elm/popup/buttons3/content_expand";
2257    alias: "elm/popup/buttons3/content_expand_transparent";
2258    data.item: "action_area_height" POPUP_BUTTON_DEFAULT_ACTION_AREA_HEIGHT;
2259    parts{
2260       part{ name:"actionbtn1";
2261          type: SWALLOW;
2262          scale: 1;
2263          description { state: "default" 0.0;
2264             align: 0.0 0.5;
2265             rel1.relative: 0.05 0.1;
2266             rel2.relative: 0.3 0.9;
2267          }
2268       }
2269       part{ name:"actionbtn2";
2270          type: SWALLOW;
2271          scale: 1;
2272          description { state: "default" 0.0;
2273             align: 0.0 0.5;
2274             rel1.relative: 0.375 0.1;
2275             rel2.relative: 0.625 0.9;
2276          }
2277       }
2278       part{ name:"actionbtn3";
2279          type: SWALLOW;
2280          scale: 1;
2281          description { state: "default" 0.0;
2282             align: 0.0 0.5;
2283             rel1.relative: 0.7 0.1;
2284             rel2.relative: 0.95 0.9;
2285          }
2286       }
2287    }
2288 }
2289
2290 group { name: "elm/popup/item/content_expand";
2291    alias: "elm/popup/item/content_expand_transparent";
2292    inherit: "elm/popup/item/default";
2293    parts {
2294       part { name: "bg";
2295          mouse_events: 0;
2296          type: RECT;
2297          description { state: "default" 0.0;
2298             color: 240 240 240 255;
2299             min: 620 112;
2300             align: 0.5 0.0;
2301          }
2302          description { state: "clicked" 0.0;
2303             color: 190 170 150 255;
2304          }
2305       }
2306    }
2307 }
2308
2309 group { name: "elm/popup/content/content_expand";
2310    alias: "elm/popup/content/content_expand_transparent";
2311    parts{
2312       part{ name:"elm.swallow.content";
2313          type: SWALLOW;
2314          scale: 1;
2315          description { state: "default" 0.0;
2316          }
2317       }
2318    }
2319 }
2320
2321 #undef POPUP_ITEM_STATE_ENABLED
2322 #undef POPUP_ITEM_STATE_DISABLED