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