update changelog
[profile/ivi/efl-theme-tizen.git] / themes / widgets / popup.edc
1 /*
2  * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved 
3  *
4  * PROPRIETARY/CONFIDENTIAL
5  *
6  * This software is the confidential and proprietary information of SAMSUNG
7  * ELECTRONICS ("Confidential Information"). You agree and acknowledge that this
8  * software is owned by Samsung and you shall not disclose such Confidential
9  * Information and shall use it only in accordance with the terms of the license
10  * agreement you entered into with SAMSUNG ELECTRONICS. SAMSUNG make no
11  * representations or warranties about the suitability of the software, either
12  * express or implied, including but not limited to the implied warranties of
13  * merchantability, fitness for a particular purpose, or non-infringement.
14  * SAMSUNG shall not be liable for any damages suffered by licensee arising out
15  * of or releated to this software.
16  *
17  */
18
19 #define POPUP_ITEM_STATE_ENABLED  0
20 #define POPUP_ITEM_STATE_DISABLED 1
21
22 /*popup widget specific notify style style*/
23 group { name: "elm/notify/center/popup";
24    parts {
25        part { name: "base";
26            type: RECT;
27            scale : 1;
28            mouse_events: 0;
29            repeat_events: 1;
30            description { state: "default" 0.0;
31                color: 0 0 0 0;
32                rel1.relative: 0.0 0.0;
33                rel2.relative: 1.0 1.0;
34            }
35        }
36       part { name: "persp";
37         type: RECT;
38         description { state: "default" 0.0;
39            min: 32 32;
40            max: 32 32;
41            align: 0.5 0.5;
42            color: 0 0 0 0;
43            visible: 1;
44            perspective {
45               zplane: -200;
46               focal: 1000;
47            }
48         }
49      }
50      part { name: "persp1";
51         type: RECT;
52         description { state: "default" 0.0;
53            min: 32 32;
54            max: 32 32;
55            align: 0.5 0.5;
56            visible: 1;
57            color: 0 0 0 0;
58            perspective {
59               zplane: 0;
60               focal: 1000;
61            }
62         }
63      }
64        part { name: "pop";
65            scale : 1;
66            mouse_events: 1;
67            description { state: "default" 0.0;
68                rel1.to: "elm.swallow.content";
69                rel2.to: "elm.swallow.content";
70                image {
71                      middle: DEFAULT;
72                      border_scale: 0;
73                }
74            }
75        }
76        part { name: "elm.swallow.content";
77            type: SWALLOW;
78            scale : 1;
79            description { state: "default" 0.0;
80                rel1.to: "base";
81                rel2.to: "base";
82                map {
83                   on: 1;
84                   backface_cull: 1;
85                   perspective: "persp";
86                }
87            }
88            description { state: "visible" 0.0;
89                rel1.to: "base";
90                rel2.to: "base";
91                map {
92                   on: 1;
93                   backface_cull: 1;
94                   perspective: "persp1";
95                }
96            }
97            description { state: "end" 0.0;
98                rel1.to: "base";
99                rel2.to: "base";
100                map {
101                   on: 0;
102                }
103            }
104        }
105    }
106    programs {
107        program { name: "show";
108            signal: "elm,action,show";
109            source: "elm";
110            action: STATE_SET "default" 0.0;
111            target: "elm.swallow.content";
112        }
113        program { name: "show_2";
114             signal: "show";
115             action: STATE_SET "visible" 0.0;
116             target: "elm.swallow.content";
117             transition: LINEAR 0.2;
118             after: "end";
119        }
120        program { name: "end";
121            action: STATE_SET "end" 0.0;
122            target: "elm.swallow.content";
123        }
124        program { name: "hide";
125            signal: "elm,action,hide";
126            source: "elm";
127            action: STATE_SET "default" 0.0;
128            target: "elm.swallow.content";
129        }
130    }
131 }
132
133 group { name: "elm/notify/block_events/popup";
134    parts {
135       part { name: "block_events";
136          type: RECT;
137          description { state: "default" 0.0;
138             color: POPUP_DIM_BG_COLOR_INC;
139          }
140          description { state: "clicked" 0.0;
141             color: POPUP_DIM_BG_CLICKED_COLOR_INC;
142          }
143       }
144    }
145    programs {
146       program { name: "block_clicked";
147          signal: "mouse,clicked,1";
148          source: "block_events";
149          action: SIGNAL_EMIT "elm,action,click" "elm";
150          after: "deeper_block_color";
151       }
152       program {
153          name: "deeper_block_color";
154          action: STATE_SET "clicked" 0.0;
155          target: "block_events";
156          transition: LINEAR 0.2;
157          after: "default_block_color";
158       }
159       program {
160          name: "default_block_color";
161          action: STATE_SET "default" 0.0;
162          target: "block_events";
163          transition: LINEAR 0.2;
164       }
165    }
166 }
167
168 group { name: "elm/notify/block_events/transparent";
169    parts {
170       part { name: "block_events";
171          type: RECT;
172          description { state: "default" 0.0;
173             color: POPUP_DIM_BG_TRANS_COLOR_INC;
174          }
175          description { state: "clicked" 0.0;
176             color: POPUP_DIM_BG_CLICKED_TRANS_COLOR_INC;
177          }
178       }
179    }
180    programs {
181       program { name: "block_clicked";
182          signal: "mouse,clicked,1";
183          source: "block_events";
184          action: SIGNAL_EMIT "elm,action,click" "elm";
185          after: "deeper_block_color";
186       }
187       program {
188          name: "deeper_block_color";
189          action: STATE_SET "clicked" 0.0;
190          target: "block_events";
191          transition: LINEAR 0.2;
192          after: "default_block_color";
193       }
194       program {
195          name: "default_block_color";
196          action: STATE_SET "default" 0.0;
197          target: "block_events";
198          transition: LINEAR 0.2;
199       }
200    }
201 }
202
203 group { name: "elm/label/base/popup/default";
204    alias: "elm/label/base/popup/verticalbuttonstyle";
205    alias: "elm/label/base/popup/content_expand";
206    styles
207      {
208         style { name: "popup_desc_style";
209            base: "font=SLP:style=Roman font_size="POPUP_DESCRIPTION_DEFAULT_TEXT_FONT_SIZE_INC" align=center color="POPUP_DEFAULT_DESCRIPTION_TEXT_COLOR_INC" text_class=slp_roman wrap=mixed ellipsis=1";
210            tag:  "br" "\n";
211            tag:  "ps" "ps";
212            tag:  "whitecolor" "+ color=#ffffff";
213            tag:  "tab" "\t";
214         }
215      }
216    parts {
217       part { name: "elm.text";
218          type: TEXTBLOCK;
219          mouse_events: 0;
220          scale: 1;
221          description { state: "default" 0.0;
222             min: POPUP_DESCRIPTION_DEFAULT_TEXT_MIN_INC;
223             max: POPUP_DESCRIPTION_DEFAULT_TEXT_MIN_INC;
224             text {
225                style: "popup_desc_style";
226                min: 0 0;
227             }
228          }
229       }
230    }
231 }
232
233 group { name: "elm/popup/base/default";
234    images {
235       image: "00_popup_title_bg.png" COMP;
236       image: "00_popup_bottom_bg.png" COMP;
237       image: "00_popup_bg.png" COMP;
238    }
239    styles {
240       style { name: "popup_title_style";
241          base: "font=SLP:style=Medium font_size="POPUP_BASE_DEFAULT_TEXT_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed ellipsis=1.0 text_class=slp_medium";
242          tag:  "br" "\n";
243          tag:  "tab" "\t";
244       }
245    }
246    parts {
247       part { name: "base";
248          type: IMAGE;
249          scale : 1;
250          description { state: "default" 0.0;
251             min: POPUP_BASE_DEFAULT_BASE_DEFAULT_MIN_INC;
252             max: POPUP_BASE_DEFAULT_BASE_DEFAULT_MAX_INC;
253             image {
254                normal: "00_popup_bg.png";
255                border: POPUP_BASE_DEFAULT_BG_DEFAULT_IMAGE_BORDER_INC;
256                border_scale: 1;
257             }
258             align: 0.0 0.0;
259          }
260       }
261       part { name: "elm.bg.title";
262          type: IMAGE;
263          scale : 1;
264          description { state: "default" 0.0;
265             min: POPUP_BASE_DEFAULT_TITLE_DEFAULT_MIN_INC;
266             fixed : 1 1;
267             align: 0.5 0.0;
268             visible: 0;
269             image.normal: "00_popup_title_bg.png";
270             image.border: POPUP_BASE_DEFAULT_TITLE_DEFAULT_IMAGE_BORDER_INC;
271             image.border_scale: 1;
272             rel1 {
273                relative: 0.5 0.0;
274                to: "base";
275             }
276             rel2 {
277                relative: 0.5 0.0;
278                to: "base";
279             }
280          }
281          description { state: "visible" 0.0;
282             inherit: "default" 0.0;
283             visible: 1;
284          }
285       }
286       part { name: "left_pad";
287          type: RECT;
288          scale: 1;
289          description { state: "default" 0.0;
290             min: POPUP_BASE_DEFAULT_PADDING_MIN_MAX_INC;
291             max: POPUP_BASE_DEFAULT_PADDING_MIN_MAX_INC;
292             fixed: 1 1;
293             align: 0.0 0.0;
294             visible: 0;
295             rel1.to: "elm.bg.title";
296          }
297       }
298       part { name: "right_pad";
299          type: RECT;
300          scale: 1;
301          description { state: "default" 0.0;
302             min: POPUP_BASE_DEFAULT_PADDING_MIN_MAX_INC;
303             max: POPUP_BASE_DEFAULT_PADDING_MIN_MAX_INC;
304             fixed: 1 1;
305             align: 1.0 1.0;
306             visible: 0;
307             rel2.to: "elm.bg.title";
308          }
309       }
310       part { name: "elm.swallow.title.icon";
311          type: SWALLOW;
312          scale: 1;
313          description { state: "default" 0.0;
314             min: POPUP_BASE_DEFAULT_TITLE_ICON_DEFAULT_MIN_MAX_INC;
315             max: POPUP_BASE_DEFAULT_TITLE_ICON_DEFAULT_MIN_MAX_INC;
316             fixed: 1 1;
317             align: 0.0 0.5;
318             rel1 {
319                to: "left_pad";
320                relative: 1.0 0.0;
321             }
322             rel2 {
323                to: "right_pad";
324                relative: 0.0 1.0;
325             }
326             visible: 0;
327          }
328          description { state: "visible" 0.0;
329             inherit: "default" 0.0;
330             visible: 1;
331          }
332       }
333       part { name: "elm.text.title";
334          type: TEXTBLOCK;
335          scale:1;
336          description { state: "default" 0.0;
337             fixed: 1 1;
338             text {
339               style: "popup_title_style";
340               min: 0 0;
341               max: 0 1;
342               align: 0.5 0.0;
343             }
344             color: POPUP_DEFAULT_TITLE_TEXT_COLOR_INC;
345             visible:0;
346             rel1 {
347                relative: 1.0 0.0;
348                to: "left_pad";
349             }
350             rel2 {
351                relative: 0.0 1.0;
352                to: "right_pad";
353             }
354          }
355          description { state: "visible" 0.0;
356             inherit: "default" 0.0;
357             visible: 1;
358          }
359       }
360       part { name: "elm.swallow.content";
361          type: SWALLOW;
362          scale : 1;
363          description { state: "default" 0.0;
364             min: POPUP_BASE_DEFAULT_CONTENT_DEFAULT_MIN_MAX_INC;
365             max: POPUP_BASE_DEFAULT_CONTENT_DEFAULT_MIN_MAX_INC;
366             fixed: 1 0;
367             rel1 {
368                relative: 0.5 0.0;
369                to: "base";
370             }
371             rel2 {
372                relative: 0.5 1.0;
373                to: "base";
374             }
375          }
376          description { state: "show_title_area" 0.0;
377             inherit: "default" 0.0;
378             rel1 {
379                relative: 0.5 1.0;
380                to: "elm.bg.title";
381             }
382          }
383          description { state: "show_action_area" 0.0;
384             inherit: "default" 0.0;
385             rel2 {
386                relative: 0.5 0.0;
387                to: "elm.bg.action_area";
388             }
389          }
390          description { state: "show_action_title_area" 0.0;
391             inherit: "default" 0.0;
392             rel1 {
393                relative: 0.5 1.0;
394                to: "elm.bg.title";
395             }
396             rel2 {
397                relative: 0.5 0.0;
398                to: "elm.bg.action_area";
399             }
400          }
401       }
402       part { name: "elm.bg.action_area";
403          type: IMAGE;
404          scale : 1;
405          description { state: "default" 0.0;
406             min: POPUP_BASE_DEFAULT_BUTTON_BG_DEFAULT_MIN_INC;
407             fixed : 1 1;
408             align: 0.5 1.0;
409             visible: 0;
410             image.normal: "00_popup_bottom_bg.png";
411             image.border: POPUP_BASE_DEFAULT_BUTTON_BG_IMAGE_BORDER_INC;
412             image.border_scale: 1;
413             rel1 {
414                relative: 0.0 1.0;
415                to: "base";
416             }
417             rel2.to: "base";
418          }
419          description { state: "visible" 0.0;
420             inherit: "default" 0.0;
421             visible: 1;
422          }
423       }
424       part { name: "elm.swallow.action_area";
425          type: SWALLOW;
426          scale : 1;
427          description { state: "default" 0.0;
428             align: 0.0 0.0;
429             rel1.to: "elm.bg.action_area";
430             rel2.to: "elm.bg.action_area";
431          }
432       }
433    }
434    programs {
435       program { name: show_title_icon;
436          signal: "elm,state,title,icon,visible";
437          source: "elm";
438          action: STATE_SET "visible" 0.0;
439          target: "elm.swallow.title.icon";
440       }
441       program { name: hide_title_icon;
442          signal: "elm,state,title,icon,hidden";
443          source: "elm";
444          action: STATE_SET "default" 0.0;
445          target: "elm.swallow.title.icon";
446       }
447       program { name: show_title_text;
448          signal: "elm,state,title,text,visible";
449          source: "elm";
450          action: STATE_SET "visible" 0.0;
451          target: "elm.text.title";
452       }
453       program { name: hide_title_text;
454          signal: "elm,state,title,text,hidden";
455          source: "elm";
456          action: STATE_SET "default" 0.0;
457          target: "elm.text.title";
458       }
459       program { name: show_title_area;
460          signal: "elm,state,title_area,visible";
461          source: "elm";
462          script {
463             new st[31];
464             new Float:vl;
465             get_state(PART:"elm.swallow.action_area", st, 30, vl);
466             if (!strcmp(st, "visible"))
467               set_state(PART:"elm.swallow.content", "show_action_title_area", 0.0);
468             else
469               set_state(PART:"elm.swallow.content", "show_title_area", 0.0);
470             set_state(PART:"elm.bg.title", "visible", 0.0);
471          }
472       }
473       program { name: hide_title_area;
474          signal: "elm,state,title_area,hidden";
475          source: "elm";
476          action: STATE_SET "default" 0.0;
477          script {
478             new st[31];
479             new Float:vl;
480             get_state(PART:"elm.swallow.action_area", st, 30, vl);
481             if (!strcmp(st, "visible"))
482               set_state(PART:"elm.swallow.content", "show_action_area", 0.0);
483             else
484               set_state(PART:"elm.swallow.content", "default", 0.0);
485             set_state(PART:"elm.bg.title", "default", 0.0);
486          }
487       }
488       program { name: show_action_area;
489          signal: "elm,state,action_area,visible";
490          source: "elm";
491          script {
492             new st[31];
493             new Float:vl;
494             get_state(PART:"elm.bg.title", st, 30, vl);
495             if (!strcmp(st, "visible"))
496               set_state(PART:"elm.swallow.content", "show_action_title_area", 0.0);
497             else
498               set_state(PART:"elm.swallow.content", "show_action_area", 0.0);
499             set_state(PART:"elm.bg.action_area", "visible", 0.0);
500          }
501       }
502       program { name: hide_action_area;
503          signal: "elm,state,action_area,hidden";
504          source: "elm";
505          action: STATE_SET "default" 0.0;
506          script {
507             new st[31];
508             new Float:vl;
509             get_state(PART:"elm.bg.title", st, 30, vl);
510             if (!strcmp(st, "visible"))
511               set_state(PART:"elm.swallow.content", "show_title_area", 0.0);
512             else
513               set_state(PART:"elm.swallow.content", "default", 0.0);
514             set_state(PART:"elm.bg.action_area", "default", 0.0);
515          }
516       }
517    } /* end of programs */
518 }
519
520 group { name: "elm/popup/content/default";
521    parts{
522       part { name: "pad_t";
523          type: RECT;
524          scale : 1;
525          mouse_events: 0;
526          description { state: "default" 0.0;
527             align: 0.5 0.0;
528             min: POPUP_CONTENT_DEFAULT_PADDING_TOP_MIN_INC;
529             fixed: 0 1;
530             visible: 0;
531             rel1 {
532                relative: 1.0 0.0;
533                to_x: "pad_l";
534             }
535             rel2 {
536                relative: 0.0 0.0;
537                to_x: "pad_r";
538             }
539          }
540       }
541       part { name: "pad_l";
542          type: RECT;
543          scale: 1;
544          description { state: "default" 0.0;
545             min : POPUP_CONTENT_DEFAULT_PADDING_LEFT_MIN_INC;
546             fixed: 1 0;
547             rel2.relative: 0.0 1.0;
548             visible: 0;
549             align: 0.0 0.0;
550          }
551       }
552       part { name: "pad_r";
553          type: RECT;
554          scale: 1;
555          description { state: "default" 0.0;
556             min : POPUP_CONTENT_DEFAULT_PADDING_RIGHT_MIN_INC;
557             fixed: 1 0;
558             rel1.relative: 1.0 0.0;
559             visible: 0;
560             align: 1.0 0.0;
561          }
562       }
563       part{ name:"elm.swallow.content";
564          type: SWALLOW;
565          scale : 1;
566          description { state: "default" 0.0;
567             min: POPUP_CONTENT_DEFAULT_CONTENT_DEFAULT_MIN_INC;
568             fixed: 1 0;
569             rel1 {
570                relative: 0.5 1.0;
571                to: "pad_t";
572             }
573             rel2 {
574                relative: 0.5 0.0;
575                to: "pad_b";
576             }
577          }
578       }
579       part { name: "pad_b";
580          type: RECT;
581          scale : 1;
582          mouse_events: 0;
583          description { state: "default" 0.0;
584             align: 0.5 1.0;
585             min: POPUP_CONTENT_DEFAULT_PADDING_BOTTOM_MIN_INC;
586             fixed: 0 1;
587             visible: 0;
588             rel1 {
589                relative: 0.0 1.0;
590                to_x: "pad_l";
591             }
592             rel2.to_x: "pad_r";
593          }
594       }
595    }
596 }
597
598 ///////////////////////////////////////////////////////////////////////////////
599 group {
600    name: "elm/popup/item/default";
601    script {
602       public item_state = POPUP_ITEM_STATE_ENABLED;
603    }
604    parts {
605       part { name: "event_blocker";
606          description { state: "default" 0.0;
607          }
608       }
609       part { name: "bg";
610          mouse_events: 0;
611          type: RECT;
612          description { state: "default" 0.0;
613             color: 240 240 240 255;
614             min: 0 71;
615             align: 0.5 0.0;
616          }
617          description { state: "clicked" 0.0;
618             color: 190 170 150 255;
619          }
620       }
621       part { name: "padding_left_top";
622          type: RECT;
623          scale: 1;
624          mouse_events: 0;
625          description { state: "default" 0.0;
626             align: 0.0 0.0;
627             rel2.relative: 0.0 0.0;
628             min: 10 10;
629             fixed: 1 1;
630             visible: 0;
631          }
632       }
633       part { name: "padding_right_bottom";
634          type: RECT;
635          scale: 1;
636          mouse_events: 0;
637          description { state: "default" 0.0;
638             align: 1.0 1.0;
639             rel1.relative: 1.0 1.0;
640             min: 10 10;
641             fixed: 1 1;
642             visible: 0;
643          }
644       }
645       part { name: "separator";
646          mouse_events: 0;
647          type: RECT;
648          scale: 1;
649          description { state: "dafault" 0.0;
650             color: 180 180 180 255;
651             align: 0.5 1.0;
652             min: 0 1;
653             max: 999999 1;
654          }
655       }
656       part { name: "padding_icon_text";
657          type: RECT;
658          scale: 1;
659          mouse_events: 0;
660          description { state: "default" 0.0; //when only icon or no icon is there
661             align: 0.0 0.0;
662             rel1 {
663                relative: 1.0 0.0;
664                to: "elm.swallow.content";
665             }
666             rel2.to: "elm.swallow.content";
667             fixed: 1 0;
668             min: 0 0;
669             visible: 0;
670          }
671          description { state: "visible" 0.0; //when icon is visible
672             inherit: "default" 0.0;
673             min: 10 0;
674          }
675          description { state: "icononly" 0.0;
676             inherit: "default" 0.0;
677          }
678       }
679       part { name: "elm.swallow.content";
680          type: SWALLOW;
681          scale: 1;
682          description { state: "default" 0.0;
683             visible: 0;
684             align: 0.0 0.5;
685             rel1 {
686                relative: 1.0 1.0;
687                to: "padding_left_top";
688             }
689             rel2 {
690                relative: 1.0 0.0;
691                to_x: "padding_left_top";
692                to_y: "padding_right_bottom";
693             }
694             fixed: 1 0;
695          }
696          description { state: "visible" 0.0;
697             fixed: 1 0;
698             min: 40 40;
699             max: 40 40;
700             align: 0.0 0.5;
701             rel1 {
702                relative: 1.0 1.0;
703                to: "padding_left_top";
704             }
705             rel2 {
706                relative: 1.0 0.0;
707                to_x: "padding_left_top";
708                to_y: "padding_right_bottom";
709             }
710             aspect: 1.0 1.0;
711             aspect_preference: VERTICAL;
712          }
713          description { state: "icononly" 0.0;
714             min: 40 40;
715             max: 40 40;
716             rel1 {
717                relative: 1.0 1.0;
718                to: "padding_left_top";
719             }
720             rel2 {
721                relative: 0.0 0.0;
722                to: "padding_right_bottom";
723             }
724             aspect: 1.0 1.0;
725             aspect_preference: VERTICAL;
726          }
727       }
728       part { name: "elm.text";
729          type: TEXT;
730          mouse_events: 0;
731          scale: 1;
732          description { state: "default" 0.0;
733             visible: 0;
734             rel1 {
735                relative: 1.0 1.0;
736                to_x: "padding_icon_text";
737                to_y: "padding_left_top";
738             }
739             rel2 {
740                relative: 0.0 0.0;
741                to:"padding_right_bottom";
742             }
743             align: 0.0 0.5;
744             color: 0 0 0 255;
745             text {
746                font: "SLP:style=Bold";
747                size: 20;
748                min:  0 0;
749                align: 0.0 0.5;
750                text: "slp";
751             }
752          }
753          description { state: "visible" 0.0;
754             inherit: "default" 0.0;
755             visible: 1;
756             min: 90 40;
757          }
758          description { state: "clicked" 0.0;
759             inherit: "default" 0.0;
760             visible: 1;
761             min: 0 0;
762             color: 255 255 255 255;
763          }
764          description { state: "disabled" 0.0;
765             inherit: "default" 0.0;
766             color: 128 128 128 255;
767          }
768          description { state: "disabled_visible" 0.0;
769             inherit: "default" 0.0;
770             color: 128 128 128 255;
771             visible: 1;
772             min: 90 40;
773          }
774       }
775       part { name: "over1";
776          repeat_events: 1;
777          ignore_flags: ON_HOLD;
778          description { state: "default" 0.0;
779          }
780       }
781       part { name: "over2";
782          repeat_events: 1;
783          description { state: "default" 0.0;
784          }
785       }
786       part { name: "disclip";
787          type: RECT;
788          description { state: "default" 0.0;
789             visible: 0;
790          }
791          description { state: "disabled" 0.0;
792             color: 87 87 87 128;
793          }
794       }
795    }
796    programs {
797       program { name: "item_unclick";
798          signal: "mouse,up,1";
799          source: "over1";
800          action: SIGNAL_EMIT "elm,action,click" "";
801       }
802       program { name: "disable";
803          signal: "elm,state,item,disabled";
804          source: "elm";
805          action: STATE_SET "disabled" 0.0;
806          target: "disclip";
807          after: "disable_text";
808       }
809       program { name: "enable";
810          signal: "elm,state,item,enabled";
811          source: "elm";
812          action: STATE_SET "default" 0.0;
813          target: "disclip";
814          after: "enable_text";
815       }
816       program { name: "item_click2";
817          signal: "mouse,down,1";
818          source: "over2";
819          script {
820             new st[31];
821             new Float:vl;
822             get_state(PART:"elm.text", st, 30, vl);
823             if (!strcmp(st, "visible"))
824               set_state(PART:"elm.text", "clicked", 0.0);
825             set_state(PART:"bg", "clicked", 0.0);
826          }
827       }
828       program { name: "item_unclick2";
829          signal: "mouse,up,1";
830          source: "over2";
831          script {
832             new st[31];
833             new Float:vl;
834             get_state(PART:"elm.text", st, 30, vl);
835             if (!strcmp(st, "clicked"))
836               set_state(PART:"elm.text", "visible", 0.0);
837             set_state(PART:"bg", "default", 0.0);
838          }
839       }
840       program { name: "disable_text";
841          script {
842             new st[31];
843             new Float:vl;
844             get_state(PART:"elm.text", st, 30, vl);
845             if (!strcmp(st, "visible"))
846               set_state(PART:"elm.text", "disabled_visible", 0.0);
847             else
848               set_state(PART:"elm.text", "disabled", 0.0);
849             set_int(item_state, POPUP_ITEM_STATE_DISABLED);
850          }
851       }
852       program { name: "enable_text";
853          script {
854             new st[31];
855             new Float:vl;
856             get_state(PART:"elm.text", st, 30, vl);
857             if (!strcmp(st, "disabled_visible"))
858               set_state(PART:"elm.text", "visible", 0.0);
859             else
860               set_state(PART:"elm.text", "default", 0.0);
861             set_int(item_state, POPUP_ITEM_STATE_ENABLED);
862          }
863       }
864       program { name: "text_show";
865          signal: "elm,state,item,text,visible";
866          source: "elm";
867          script {
868             new st[31];
869             new Float:vl;
870             get_state(PART:"elm.swallow.content", st, 30, vl);
871             if (!strcmp(st, "icononly")) {
872                set_state(PART:"elm.swallow.content", "visible", 0.0);
873                set_state(PART:"padding_icon_text", "visible", 0.0);
874             }
875             if(get_int(item_state) != POPUP_ITEM_STATE_DISABLED)
876               set_state(PART:"elm.text", "visible", 0.0);
877             else
878               set_state(PART:"elm.text", "disabled_visible", 0.0);
879          }
880       }
881       program { name: "text_hide";
882          signal: "elm,state,item,text,hidden";
883          source: "elm";
884          script {
885             new st[31];
886             new Float:vl;
887             get_state(PART:"elm.swallow.content", st, 30, vl);
888             if (!strcmp(st, "visible")) {
889                set_state(PART:"elm.swallow.content", "icononly", 0.0);
890                set_state(PART:"padding_icon_text", "icononly", 0.0);
891             }
892             set_state(PART:"elm.text", "default", 0.0);
893          }
894       }
895       program { name: "icon_show";
896          signal: "elm,state,item,icon,visible";
897          source: "elm";
898          script {
899             new st[31];
900             new Float:vl;
901             get_state(PART:"elm.text", st, 30, vl);
902             if (!strcmp(st, "visible")) {
903                set_state(PART:"elm.swallow.content", "visible", 0.0);
904                set_state(PART:"padding_icon_text", "visible", 0.0);
905             }
906             else {
907                set_state(PART:"elm.swallow.content", "icononly", 0.0);
908                set_state(PART:"padding_icon_text", "icononly", 0.0);
909             }
910          }
911       }
912       program { name: "icon_hide";
913          signal: "elm,state,item,icon,hidden";
914          source: "elm";
915          action:  STATE_SET "default" 0.0;
916          target: "elm.swallow.content";
917       }
918    }
919 }
920
921 group { name: "elm/popup/base/verticalbuttonstyle";
922    images {
923       image: "00_popup_title_bg.png" COMP;
924       image: "00_popup_bottom_bg.png" COMP;
925       image: "00_popup_bg.png" COMP;
926    }
927    parts {
928       part { name: "base";
929          type: IMAGE;
930          scale : 1;
931          description { state: "default" 0.0;
932             min: POPUP_BASE_VERTICAL_BUTTON_BASE_MIN_INC;
933             max: POPUP_BASE_VERTICAL_BUTTON_BASE_MAX_INC;
934             image {
935                normal: "00_popup_bg.png";
936                border: POPUP_BASE_VERTICAL_BUTTON_BG_IMAGE_BORDER_INC;
937                border_scale: 1;
938             }
939             align: 0.0 0.0;
940          }
941       }
942       part { name: "elm.bg.title";
943          type: IMAGE;
944          scale : 1;
945          description { state: "default" 0.0;
946             min: POPUP_BASE_VERTICAL_BUTTON_TITLE_DEFAULT_MIN_INC;
947             fixed : 1 1;
948             align: 0.5 0.0;
949             visible: 0;
950             image.normal: "00_popup_title_bg.png";
951             image.border: POPUP_BASE_VERTICAL_BUTTON_TITLE_IMAGE_BORDER_MIN_INC;
952             image.border_scale: 1;
953             rel1 {
954                relative: 0.5 0.0;
955                to: "base";
956             }
957             rel2 {
958                relative: 0.5 0.0;
959                to: "base";
960             }
961          }
962          description { state: "visible" 0.0;
963             inherit: "default" 0.0;
964             visible: 1;
965          }
966       }
967       part { name: "elm.swallow.title.icon";
968          type: SWALLOW;
969          scale: 1;
970          description { state: "default" 0.0;
971             min: POPUP_BASE_VERTICAL_BUTTON_TITLE_ICON_MIN_MAX_INC;
972             max: POPUP_BASE_VERTICAL_BUTTON_TITLE_ICON_MIN_MAX_INC;
973             fixed: 1 1;
974             align: 0.0 0.5;
975             rel1.to: "elm.bg.title";
976             rel2.to: "elm.bg.title";
977             visible: 0;
978          }
979          description { state: "visible" 0.0;
980             inherit: "default" 0.0;
981             visible: 1;
982          }
983       }
984       part { name: "elm.text.title";
985          type: TEXTBLOCK;
986          scale:1;
987          description { state: "default" 0.0;
988             text {
989               style: "popup_title_style";
990               min: 0 0;
991               max: 0 1;
992               align: 0.5 0.0;
993             }
994             color: POPUP_DEFAULT_TITLE_TEXT_COLOR_INC;
995             visible:0;
996             rel1.to:"elm.bg.title";
997             rel2.to: "elm.bg.title";
998          }
999          description { state: "visible" 0.0;
1000             inherit: "default" 0.0;
1001             visible: 1;
1002          }
1003       }
1004       part { name: "elm.swallow.content";
1005          type: SWALLOW;
1006          scale : 1;
1007          description { state: "default" 0.0;
1008             min: POPUP_BASE_VERTICAL_BUTTON_CONTENT_DEFAULT_MIN_INC;
1009             max: POPUP_BASE_VERTICAL_BUTTON_CONTENT_DEFAULT_MIN_INC;
1010             fixed: 1 0;
1011             rel1 {
1012                relative: 0.5 0.0;
1013                to: "base";
1014             }
1015             rel2 {
1016                relative: 0.5 1.0;
1017                to: "base";
1018             }
1019          }
1020          description { state: "show_title_area" 0.0;
1021             inherit: "default" 0.0;
1022             rel1 {
1023                relative: 0.5 1.0;
1024                to: "elm.bg.title";
1025             }
1026          }
1027          description { state: "show_action_area" 0.0;
1028             inherit: "default" 0.0;
1029             rel2 {
1030                relative: 0.5 0.0;
1031                to: "elm.swallow.action_area";
1032             }
1033          }
1034          description { state: "show_action_title_area" 0.0;
1035             inherit: "default" 0.0;
1036             rel1 {
1037                relative: 0.5 1.0;
1038                to: "elm.bg.title";
1039             }
1040             rel2 {
1041                relative: 0.5 0.0;
1042                to: "elm.swallow.action_area";
1043             }
1044          }
1045       }
1046       part { name: "elm.swallow.action_area";
1047          type: SWALLOW;
1048          scale : 1;
1049          description { state: "default" 0.0;
1050             align: 0.5 1.0;
1051             fixed: 0 1;
1052             min: POPUP_BASE_VERTICAL_BUTTON_BUTTONAREA_DEFAULT_MIN_INC;
1053             visible: 1;
1054             rel1 {
1055                relative: 0.0 1.0;
1056                to: "base";
1057             }
1058             rel2.to: "base";
1059          }
1060       }
1061    }
1062    programs {
1063       program { name: show_title_icon;
1064          signal: "elm,state,title,icon,visible";
1065          source: "elm";
1066          action: STATE_SET "visible" 0.0;
1067          target: "elm.swallow.title.icon";
1068       }
1069       program { name: hide_title_icon;
1070          signal: "elm,state,title,icon,hidden";
1071          source: "elm";
1072          action: STATE_SET "default" 0.0;
1073          target: "elm.swallow.title.icon";
1074       }
1075       program { name: show_title_text;
1076          signal: "elm,state,title,text,visible";
1077          source: "elm";
1078          action: STATE_SET "visible" 0.0;
1079          target: "elm.text.title";
1080       }
1081       program { name: hide_title_text;
1082          signal: "elm,state,title,text,hidden";
1083          source: "elm";
1084          action: STATE_SET "default" 0.0;
1085          target: "elm.text.title";
1086       }
1087       program { name: show_title_area;
1088          signal: "elm,state,title_area,visible";
1089          source: "elm";
1090          script {
1091             new st[31];
1092             new Float:vl;
1093             get_state(PART:"elm.swallow.action_area", st, 30, vl);
1094             if (!strcmp(st, "visible"))
1095               set_state(PART:"elm.swallow.content", "show_action_title_area", 0.0);
1096             else
1097               set_state(PART:"elm.swallow.content", "show_title_area", 0.0);
1098             set_state(PART:"elm.bg.title", "visible", 0.0);
1099          }
1100       }
1101       program { name: hide_title_area;
1102          signal: "elm,state,title_area,hidden";
1103          source: "elm";
1104          action: STATE_SET "default" 0.0;
1105          script {
1106             new st[31];
1107             new Float:vl;
1108             get_state(PART:"elm.swallow.action_area", st, 30, vl);
1109             if (!strcmp(st, "visible"))
1110               set_state(PART:"elm.swallow.content", "show_action_area", 0.0);
1111             else
1112               set_state(PART:"elm.swallow.content", "default", 0.0);
1113             set_state(PART:"elm.bg.title", "default", 0.0);
1114          }
1115       }
1116       program { name: show_action_area;
1117          signal: "elm,state,action_area,visible";
1118          source: "elm";
1119          script {
1120             new st[31];
1121             new Float:vl;
1122             get_state(PART:"elm.bg.title", st, 30, vl);
1123             if (!strcmp(st, "visible"))
1124               set_state(PART:"elm.swallow.content", "show_action_title_area", 0.0);
1125             else
1126               set_state(PART:"elm.swallow.content", "show_action_area", 0.0);
1127          }
1128       }
1129       program { name: hide_action_area;
1130          signal: "elm,state,action_area,hidden";
1131          source: "elm";
1132          action: STATE_SET "default" 0.0;
1133          script {
1134             new st[31];
1135             new Float:vl;
1136             get_state(PART:"elm.bg.title", st, 30, vl);
1137             if (!strcmp(st, "visible"))
1138               set_state(PART:"elm.swallow.content", "show_title_area", 0.0);
1139             else
1140               set_state(PART:"elm.swallow.content", "default", 0.0);
1141          }
1142       }
1143    } /* end of programs */
1144 }
1145
1146 group { name: "elm/popup/buttons3/verticalbuttonstyle";
1147    data.item: "action_area_height" POPUP_BUTTON_VERTICAL_ACTION_AREA_HEIGHT;
1148    parts{
1149       part { name: "elm.swallow.buttonArea.Background";
1150          type: IMAGE;
1151          scale : 1;
1152          description { state: "default" 0.0;
1153             align: 0.5 0.0;
1154             image.normal: "00_popup_bottom_bg.png";
1155             image.border: POPUP_BUTTON3_VERTICAL_BUTTON_BG_IMAGE_BORDER_INC;
1156             image.border_scale: 1;
1157             rel1 {
1158                relative: 0.0 0.0;
1159             }
1160             rel2 {
1161                relative: 1.0 1.0;
1162             }
1163          }
1164       }
1165       part { name: "elm.rect.pad_btn_top";
1166          type: RECT;
1167          scale : 1;
1168          description { state: "default" 0.0;
1169             min: POPUP_BUTTON3_VERTICAL_BUTTON_PADDING_TOP_MIN_INC;
1170             fixed : 0 1;
1171             align: 0.0 0.0;
1172             color: 0 0 0 0;
1173             rel1 {
1174                relative: 0.0 0.0;
1175             }
1176             rel2 {
1177                relative: 1.0 0.0;
1178             }
1179          }
1180       }
1181       part{ name:"actionbtn1";
1182          type: SWALLOW;
1183          scale : 1;
1184          description { state: "default" 0.0;
1185             min: POPUP_BUTTON3_VERTICAL_BUTTON_BUTTON_MIN_MAX_INC;
1186             max: POPUP_BUTTON3_VERTICAL_BUTTON_BUTTON_MIN_MAX_INC;
1187             fixed : 1 1;
1188             align: 0.5 0.0;
1189             rel1 {
1190                relative: 0.0 1.0; to_y: "elm.rect.pad_btn_top";
1191             }
1192          }
1193       }
1194       part { name: "elm.rect.pad_btn";
1195          type: RECT;
1196          scale : 1;
1197          description { state: "default" 0.0;
1198             min: POPUP_BUTTON3_VERTICAL_BUTTON_PADDING_BUTTON_MIN_INC;
1199             max: POPUP_BUTTON3_VERTICAL_BUTTON_PADDING_BUTTON_MAX_INC;
1200             fixed : 1 1;
1201             align: 0.5 0.0;
1202             color: 0 0 0 0;
1203             rel1 {
1204                relative: 0.0 1.0; to: "actionbtn1";
1205             }
1206             rel2 {
1207                relative: 1.0 1.0; to: "actionbtn1";
1208             }
1209          }
1210       }
1211       part{ name:"actionbtn2";
1212          type: SWALLOW;
1213          scale : 1;
1214          description { state: "default" 0.0;
1215             min: POPUP_BUTTON3_VERTICAL_BUTTON_BUTTON_MIN_MAX_INC;
1216             max: POPUP_BUTTON3_VERTICAL_BUTTON_BUTTON_MIN_MAX_INC;
1217             fixed : 1 1;
1218             align: 0.5 0.0;
1219             rel1 { relative: 0 1.0; to_y: "elm.rect.pad_btn"; }
1220          }
1221       }
1222       part { name: "elm.rect.pad_btn2";
1223          type: RECT;
1224          scale : 1;
1225          description { state: "default" 0.0;
1226             min: POPUP_BUTTON3_VERTICAL_BUTTON_PADDING_BUTTON_MIN_INC;
1227             max: POPUP_BUTTON3_VERTICAL_BUTTON_PADDING_BUTTON_MAX_INC;
1228             fixed : 1 1;
1229             align: 0.5 0.0;
1230             color: 0 0 0 0;
1231             rel1 {
1232                relative: 0.0 1.0; to: "actionbtn2";
1233             }
1234             rel2 {
1235                relative: 1.0 1.0; to: "actionbtn2";
1236             }
1237          }
1238       }
1239       part{ name:"actionbtn3";
1240          type: SWALLOW;
1241          scale : 1;
1242          description { state: "default" 0.0;
1243             min: POPUP_BUTTON3_VERTICAL_BUTTON_BUTTON_MIN_MAX_INC;
1244             max: POPUP_BUTTON3_VERTICAL_BUTTON_BUTTON_MIN_MAX_INC;
1245             fixed : 1 1;
1246             align: 0.5 0.0;
1247             rel1 {
1248                relative: 0.0 1.0; to_y: "elm.rect.pad_btn2";
1249             }
1250          }
1251       }
1252    }
1253 }
1254
1255 group { name: "elm/popup/content/menustyle";
1256    parts{
1257       part { name: "left_padding";
1258          type: RECT;
1259          scale: 1;
1260          description { state: "default" 0.0;
1261             fixed: 1 0;
1262             visible: 0;
1263             align: 0.0 0.5;
1264             min: POPUP_CONTENT_LISTSTYLE_PADDING_RIGHT_MIN_INC;
1265             rel1 {
1266                relative: 0.0 0.0;
1267             }
1268             rel2 {
1269                relative: 0.0 1.0;
1270             }
1271          }
1272       }
1273       part{ name:"elm.swallow.content";
1274          type: SWALLOW;
1275          scale : 1;
1276          description { state: "default" 0.0;
1277             min: POPUP_CONTENT_LISTSTYLE_CONTENT_DEFAULT_MIN_INC;
1278             max: POPUP_CONTENT_LISTSTYLE_CONTENT_DEFAULT_MIN_INC;
1279             align: 0.5 0.5;
1280             fixed: 1 0;
1281             rel1 {
1282                relative: 1.0 0.0;
1283                to:"left_padding";
1284             }
1285             rel2 {
1286                relative: 0.0 1.0;
1287                to:"right_padding";
1288             }
1289          }
1290       }
1291       part { name: "right_padding";
1292          type: RECT;
1293          scale: 1;
1294          description { state: "default" 0.0;
1295             fixed: 1 0;
1296             visible: 0;
1297             align: 1.0 0.5;
1298             min: POPUP_CONTENT_LISTSTYLE_PADDING_RIGHT_MIN_INC;
1299             rel1 {
1300                relative: 1.0 0.0;
1301             }
1302             rel2 {
1303                relative: 1.0 1.0;
1304             }
1305          }
1306       }
1307    }
1308 }
1309
1310 group { name: "elm/popup/content/min_menustyle";
1311    parts{
1312       part { name: "left_padding";
1313          type: RECT;
1314          scale: 1;
1315          description { state: "default" 0.0;
1316             fixed: 1 0;
1317             visible: 0;
1318             align: 0.0 0.5;
1319             min: POPUP_CONTENT_LISTSTYLE_PADDING_RIGHT_MIN_INC;
1320             rel1 {
1321                relative: 0.0 0.0;
1322             }
1323             rel2 {
1324                relative: 0.0 1.0;
1325             }
1326          }
1327       }
1328       part{ name:"elm.swallow.content";
1329          type: SWALLOW;
1330          scale : 1;
1331          description { state: "default" 0.0;
1332             min: POPUP_CONTENT_MINSTYLE_CONTENT_DEFAULT_MIN_INC;
1333             align: 0.5 0.5;
1334             fixed: 1 0;
1335             rel1 {
1336                relative: 1.0 0.0;
1337                to:"left_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/liststyle";
1365    parts{
1366       part { name: "left_top_padding";
1367          type: RECT;
1368          scale: 1;
1369          description { state: "default" 0.0;
1370             fixed: 1 1;
1371             visible: 0;
1372             align: 0.0 0.0;
1373             min: POPUP_CONTENT_LISTSTYLE_PADDING_TOP_MIN_MAX_INC;
1374             max: POPUP_CONTENT_LISTSTYLE_PADDING_TOP_MIN_MAX_INC;
1375          }
1376       }
1377       part{ name:"elm.swallow.content";
1378          type: SWALLOW;
1379          scale : 1;
1380          description { state: "default" 0.0;
1381             min: POPUP_CONTENT_LISTSTYLE_CONTENT_DEFAULT_MIN_INC;
1382             max: POPUP_CONTENT_LISTSTYLE_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 group { name: "elm/popup/content/min_liststyle";
1415    parts{
1416       part { name: "left_top_padding";
1417          type: RECT;
1418          scale: 1;
1419          description { state: "default" 0.0;
1420             fixed: 1 1;
1421             visible: 0;
1422             align: 0.0 0.0;
1423             min: POPUP_CONTENT_LISTSTYLE_PADDING_TOP_MIN_MAX_INC;
1424             max: POPUP_CONTENT_LISTSTYLE_PADDING_TOP_MIN_MAX_INC;
1425          }
1426       }
1427       part{ name:"elm.swallow.content";
1428          type: SWALLOW;
1429          scale : 1;
1430          description { state: "default" 0.0;
1431             min: POPUP_CONTENT_MINSTYLE_CONTENT_DEFAULT_MIN_INC;
1432             align: 0.5 0.5;
1433             fixed: 1 0;
1434             rel1 {
1435                relative: 1.0 1.0;
1436                to:"left_top_padding";
1437             }
1438             rel2 {
1439                relative: 0.0 1.0;
1440                to:"right_padding";
1441             }
1442          }
1443       }
1444       part { name: "right_padding";
1445          type: RECT;
1446          scale: 1;
1447          description { state: "default" 0.0;
1448             fixed: 1 0;
1449             visible: 0;
1450             align: 1.0 0.5;
1451             min: POPUP_CONTENT_LISTSTYLE_PADDING_RIGHT_MIN_INC;
1452             rel1 {
1453                relative: 1.0 0.0;
1454             }
1455             rel2 {
1456                relative: 1.0 1.0;
1457             }
1458          }
1459       }
1460    }
1461 }
1462
1463 group { name: "elm/popup/base/customstyle";
1464    images {
1465       image: "00_popup_bottom_bg.png" COMP;
1466       image: "00_popup_bg.png" COMP;
1467    }
1468    styles {
1469       style { name: "popup_title_custom_style";
1470          base: "font=SLP:style=Medium font_size="POPUP_BASE_CUSTOMSTYLE_TEXT_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed ellipsis=1.0 text_class=slp_medium";
1471          tag:  "br" "\n";
1472          tag:  "tab" "\t";
1473       }
1474    }
1475    parts {
1476       part { name: "base";
1477          type: IMAGE;
1478          scale : 1;
1479          description { state: "default" 0.0;
1480             min: POPUP_BASE_CUSTOMSTYLE_BASE_DEFAULT_MIN_INC;
1481             max: POPUP_BASE_CUSTOMSTYLE_BASE_DEFAULT_MAX_INC;
1482             image {
1483                normal: "00_popup_bg.png";
1484                border: POPUP_BASE_CUSTOMSTYLE_BG_DEFAULT_IMAGE_BORDER_INC;
1485                border_scale: 1;
1486             }
1487             align: 0.0 0.0;
1488          }
1489       }
1490       part { name: "elm.bg.title";
1491          type: IMAGE;
1492          scale : 1;
1493          description { state: "default" 0.0;
1494             min: POPUP_BASE_CUSTOMSTYLE_TITLE_DEFAULT_MIN_INC;
1495             fixed : 1 1;
1496             align: 0.5 0.0;
1497             visible: 0;
1498             rel1 {
1499                relative: 0.5 0.0;
1500                to: "base";
1501             }
1502             rel2 {
1503                relative: 0.5 0.0;
1504                to: "base";
1505             }
1506          }
1507          description { state: "visible" 0.0;
1508             inherit: "default" 0.0;
1509             visible: 1;
1510          }
1511       }
1512       part { name: "elm.rect.title.bottom.line";
1513          type: RECT;
1514          description { state: "default" 0.0;
1515             min: POPUP_BASE_CUSTOMSTYLE_TITLE_BOTTOM_LINE_MIN_INC;
1516             fixed : 0 1;
1517             align: 0.5 0.0;
1518             visible: 0;
1519             color: POPUP_CUSTOMSTYLE_TITLE_BOTTOM_LINE_COLOR_INC;
1520             rel1 {
1521                relative: 0.0 1.0;
1522                to: "elm.bg.title";
1523             }
1524             rel2 {
1525                to: "elm.bg.title";
1526                offset: 0 1;
1527             }
1528          }
1529          description { state: "visible" 0.0;
1530             inherit: "default" 0.0;
1531             visible: 1;
1532          }
1533       }
1534       part { name: "elm.swallow.title.icon";
1535          type: SWALLOW;
1536          scale: 1;
1537          description { state: "default" 0.0;
1538             min: POPUP_BASE_CUSTOMSTYLE_TITLE_ICON_DEFAULT_MIN_MAX_INC;
1539             max: POPUP_BASE_CUSTOMSTYLE_TITLE_ICON_DEFAULT_MIN_MAX_INC;
1540             fixed: 1 1;
1541             align: 0.0 0.5;
1542             rel1.to: "elm.bg.title";
1543             rel2.to: "elm.bg.title";
1544             visible: 0;
1545          }
1546          description { state: "visible" 0.0;
1547             inherit: "default" 0.0;
1548             visible: 1;
1549          }
1550       }
1551       part { name: "elm.text.title";
1552          type: TEXTBLOCK;
1553          scale:1;
1554          description { state: "default" 0.0;
1555             text {
1556               style: "popup_title_custom_style";
1557               min: 0 0;
1558               max: 0 1;
1559               align: 0.5 0.0;
1560             }
1561             color: POPUP_CUSTOMSTYLE_TITLE_TEXT_COLOR_INC;
1562             visible:0;
1563             rel1.to: "elm.bg.title";
1564             rel2.to: "elm.bg.title";
1565          }
1566          description { state: "visible" 0.0;
1567             inherit: "default" 0.0;
1568             visible: 1;
1569          }
1570       }
1571       part { name: "elm.swallow.content";
1572          type: SWALLOW;
1573          scale : 1;
1574          description { state: "default" 0.0;
1575             min: POPUP_BASE_CUSTOMSTYLE_CONTENT_DEFAULT_MIN_INC;
1576             max: POPUP_BASE_CUSTOMSTYLE_CONTENT_DEFAULT_MIN_INC;
1577             fixed: 1 0;
1578             rel1 {
1579                relative: 0.5 0.0;
1580                to: "base";
1581             }
1582             rel2 {
1583                relative: 0.5 1.0;
1584                to: "base";
1585             }
1586          }
1587          description { state: "show_title_area" 0.0;
1588             inherit: "default" 0.0;
1589             rel1 {
1590                relative: 0.5 1.0;
1591                to: "elm.rect.title.bottom.line";
1592             }
1593          }
1594          description { state: "show_action_area" 0.0;
1595             inherit: "default" 0.0;
1596             rel2 {
1597                relative: 0.5 0.0;
1598                to: "elm.swallow.action_area";
1599             }
1600          }
1601          description { state: "show_action_title_area" 0.0;
1602             inherit: "default" 0.0;
1603             rel1 {
1604                relative: 0.5 1.0;
1605                to: "elm.rect.title.bottom.line";
1606             }
1607             rel2 {
1608                relative: 0.5 0.0;
1609                to: "elm.bg.action_area";
1610             }
1611          }
1612       }
1613       part { name: "elm.bg.action_area";
1614          type: IMAGE;
1615          scale : 1;
1616          description { state: "default" 0.0;
1617             min: POPUP_BASE_CUSTOMSTYLE_BUTTONAREA_BG_DEFAULT_MIN_INC;
1618             fixed : 1 1;
1619             align: 0.5 1.0;
1620             visible: 0;
1621             image.normal: "00_popup_bottom_bg.png";
1622             image.border: POPUP_BASE_CUSTOMSTYLE_BUTTONAREA_BG_IMAGE_BORDER_INC;
1623             image.border_scale: 1;
1624             rel1 {
1625                relative: 0.0 1.0;
1626                to: "base";
1627             }
1628             rel2.to: "base";
1629          }
1630          description { state: "visible" 0.0;
1631             inherit: "default" 0.0;
1632             visible: 1;
1633          }
1634       }
1635       part { name: "elm.swallow.action_area";
1636          type: SWALLOW;
1637          scale : 1;
1638          description { state: "default" 0.0;
1639             align: 0.0 0.0;
1640             rel1.to: "elm.bg.action_area";
1641             rel2.to: "elm.bg.action_area";
1642          }
1643       }
1644    }
1645    programs {
1646       program { name: show_title_icon;
1647          signal: "elm,state,title,icon,visible";
1648          source: "elm";
1649          action: STATE_SET "visible" 0.0;
1650          target: "elm.swallow.title.icon";
1651       }
1652       program { name: hide_title_icon;
1653          signal: "elm,state,title,icon,hidden";
1654          source: "elm";
1655          action: STATE_SET "default" 0.0;
1656          target: "elm.swallow.title.icon";
1657       }
1658       program { name: show_title_text;
1659          signal: "elm,state,title,text,visible";
1660          source: "elm";
1661          action: STATE_SET "visible" 0.0;
1662          target: "elm.text.title";
1663       }
1664       program { name: hide_title_text;
1665          signal: "elm,state,title,text,hidden";
1666          source: "elm";
1667          action: STATE_SET "default" 0.0;
1668          target: "elm.text.title";
1669       }
1670       program { name: show_title_area;
1671          signal: "elm,state,title_area,visible";
1672          source: "elm";
1673          script {
1674             new st[31];
1675             new Float:vl;
1676             get_state(PART:"elm.swallow.action_area", st, 30, vl);
1677             if (!strcmp(st, "visible"))
1678               set_state(PART:"elm.swallow.content", "show_action_title_area", 0.0);
1679             else
1680               set_state(PART:"elm.swallow.content", "show_title_area", 0.0);
1681             set_state(PART:"elm.bg.title", "visible", 0.0);
1682             set_state(PART:"elm.rect.title.bottom.line", "visible", 0.0);
1683
1684          }
1685       }
1686       program { name: hide_title_area;
1687          signal: "elm,state,title_area,hidden";
1688          source: "elm";
1689          action: STATE_SET "default" 0.0;
1690          script {
1691             new st[31];
1692             new Float:vl;
1693             get_state(PART:"elm.swallow.action_area", st, 30, vl);
1694             if (!strcmp(st, "visible"))
1695               set_state(PART:"elm.swallow.content", "show_action_area", 0.0);
1696             else
1697               set_state(PART:"elm.swallow.content", "default", 0.0);
1698             set_state(PART:"elm.bg.title", "default", 0.0);
1699             set_state(PART:"elm.rect.title.bottom.line", "default", 0.0);
1700          }
1701       }
1702       program { name: show_action_area;
1703          signal: "elm,state,action_area,visible";
1704          source: "elm";
1705          script {
1706             new st[31];
1707             new Float:vl;
1708             get_state(PART:"elm.bg.title", st, 30, vl);
1709             if (!strcmp(st, "visible"))
1710               set_state(PART:"elm.swallow.content", "show_action_title_area", 0.0);
1711             else
1712               set_state(PART:"elm.swallow.content", "show_action_area", 0.0);
1713             set_state(PART:"elm.bg.action_area", "visible", 0.0);
1714          }
1715       }
1716       program { name: hide_action_area;
1717          signal: "elm,state,action_area,hidden";
1718          source: "elm";
1719          action: STATE_SET "default" 0.0;
1720          script {
1721             new st[31];
1722             new Float:vl;
1723             get_state(PART:"elm.bg.title", st, 30, vl);
1724             if (!strcmp(st, "visible"))
1725               set_state(PART:"elm.swallow.content", "show_title_area", 0.0);
1726             else
1727               set_state(PART:"elm.swallow.content", "default", 0.0);
1728             set_state(PART:"elm.bg.action_area", "default", 0.0);
1729          }
1730       }
1731    } /* end of programs */
1732 }
1733
1734 group { name: "elm/popup/content/customstyle";
1735    parts{
1736       part{ name:"elm.swallow.content";
1737          type: SWALLOW;
1738          scale : 1;
1739          description { state: "default" 0.0;
1740             min: POPUP_CONTENT_CUSTOMSTYLE_DEFAULT_MIN_INC;
1741          }
1742       }
1743    }
1744 }
1745
1746 group { name: "elm/popup/buttons1/default";
1747    data.item: "action_area_height" POPUP_BUTTON_DEFAULT_ACTION_AREA_HEIGHT;
1748    parts{
1749       part{ name:"actionbtn1";
1750          type: SWALLOW;
1751          scale : 1;
1752          description { state: "default" 0.0;
1753             min: POPUP_BUTTON1_DEFAULT_BUTTON1_DEFAULT_MIN_MAX_INC;
1754             max: POPUP_BUTTON1_DEFAULT_BUTTON1_DEFAULT_MIN_MAX_INC;
1755             fixed : 1 1;
1756             rel1.relative: 0.5 0.0;
1757             rel2.relative: 0.5 1.0;
1758          }
1759       }
1760    }
1761 }
1762
1763 group { name: "elm/popup/buttons2/default";
1764    data.item: "action_area_height" POPUP_BUTTON_DEFAULT_ACTION_AREA_HEIGHT;
1765    parts{
1766       part{ name:"actionbtn1";
1767          type: SWALLOW;
1768          scale : 1;
1769          description { state: "default" 0.0;
1770             min: POPUP_BUTTON2_DEFAULT_BUTTON_DEFAULT_MIN_MAX_INC;
1771             max: POPUP_BUTTON2_DEFAULT_BUTTON_DEFAULT_MIN_MAX_INC;
1772             fixed : 1 1;
1773             align: 1.0 0.5;
1774             rel1.to: "elm.rect.pad_btn";
1775             rel2 {
1776                relative: 0.0 1.0;
1777                to: "elm.rect.pad_btn";
1778             }
1779          }
1780       }
1781       part { name: "elm.rect.pad_btn";
1782          type: RECT;
1783          scale : 1;
1784          description { state: "default" 0.0;
1785             min: POPUP_BUTTON2_DEFAULT_PADDING_BUTTON_MIN_MAX_INC;
1786             max: POPUP_BUTTON2_DEFAULT_PADDING_BUTTON_MIN_MAX_INC;
1787             fixed : 1 1;
1788             visible: 0;
1789             rel1.relative: 0.5 0.0;
1790             rel2.relative: 0.5 1.0;
1791          }
1792       }
1793       part{ name:"actionbtn2";
1794          type: SWALLOW;
1795          scale : 1;
1796          description { state: "default" 0.0;
1797             min: POPUP_BUTTON2_DEFAULT_BUTTON_DEFAULT_MIN_MAX_INC;
1798             max: POPUP_BUTTON2_DEFAULT_BUTTON_DEFAULT_MIN_MAX_INC;
1799             fixed : 1 1;
1800             align: 0.0 0.5;
1801             rel1 {
1802                relative: 1.0 0.0;
1803                to: "elm.rect.pad_btn";
1804             }
1805             rel2.to: "elm.rect.pad_btn";
1806          }
1807       }
1808    }
1809 }
1810
1811 group { name: "elm/popup/buttons3/default";
1812    alias: "elm/popup/buttons3/menustyle";
1813    data.item: "action_area_height" POPUP_BUTTON_DEFAULT_ACTION_AREA_HEIGHT;
1814    parts{
1815       part{ name:"actionbtn1";
1816          type: SWALLOW;
1817          scale : 1;
1818          description { state: "default" 0.0;
1819             min: POPUP_BUTTON3_DEFAULT_BUTTON_DEFAULT_MIN_MAX_INC;
1820             max: POPUP_BUTTON3_DEFAULT_BUTTON_DEFAULT_MIN_MAX_INC;
1821             fixed : 1 1;
1822             align: 1.0 0.5;
1823             rel1.to: "elm.rect.pad_btn";
1824             rel2 {
1825                relative: 0.0 1.0;
1826                to: "elm.rect.pad_btn";
1827             }
1828          }
1829       }
1830       part { name: "elm.rect.pad_btn";
1831          type: RECT;
1832          scale : 1;
1833          description { state: "default" 0.0;
1834             min: POPUP_BUTTON3_DEFAULT_PADDING_BUTTON_MIN_MAX_INC;
1835             max: POPUP_BUTTON3_DEFAULT_PADDING_BUTTON_MIN_MAX_INC;
1836             fixed : 1 1;
1837             visible: 0;
1838             rel1.to: "actionbtn2";
1839             rel2 {
1840                relative: 0.0 1.0;
1841                to: "actionbtn2";
1842             }
1843          }
1844       }
1845       part{ name:"actionbtn2";
1846          type: SWALLOW;
1847          scale : 1;
1848          description { state: "default" 0.0;
1849             min: POPUP_BUTTON3_DEFAULT_BUTTON_DEFAULT_MIN_MAX_INC;
1850             max: POPUP_BUTTON3_DEFAULT_BUTTON_DEFAULT_MIN_MAX_INC;
1851             fixed : 1 1;
1852             rel1.relative: 0.5 0.0;
1853             rel2.relative: 0.5 1.0;
1854          }
1855       }
1856       part { name: "elm.rect.pad_btn2";
1857          type: RECT;
1858          scale : 1;
1859          description { state: "default" 0.0;
1860             min: POPUP_BUTTON3_DEFAULT_PADDING_BUTTON_MIN_MAX_INC;
1861             max: POPUP_BUTTON3_DEFAULT_PADDING_BUTTON_MIN_MAX_INC;
1862             fixed : 1 1;
1863             visible: 0;
1864             rel1 {
1865                relative: 1.0 0.0;
1866                to: "actionbtn2";
1867             }
1868             rel2.to: "actionbtn2";
1869          }
1870       }
1871       part{ name:"actionbtn3";
1872          type: SWALLOW;
1873          scale : 1;
1874          description { state: "default" 0.0;
1875             min: POPUP_BUTTON3_DEFAULT_BUTTON_DEFAULT_MIN_MAX_INC;
1876             max: POPUP_BUTTON3_DEFAULT_BUTTON_DEFAULT_MIN_MAX_INC;
1877             fixed : 1 1;
1878             align: 0.0 0.5;
1879             rel1 {
1880                relative: 1.0 0.0;
1881                to: "elm.rect.pad_btn2";
1882             }
1883             rel2.to: "elm.rect.pad_btn2";
1884          }
1885       }
1886    }
1887 }
1888
1889 group { name: "elm/popup/base/volumebarstyle";
1890    images {
1891       image: "00_popup_title_bg.png" COMP;
1892       image: "00_popup_bottom_bg.png" COMP;
1893       image: "00_popup_bg.png" COMP;
1894    }
1895    parts {
1896       part { name: "base";
1897          type: IMAGE;
1898          scale : 1;
1899          description { state: "default" 0.0;
1900             min: POPUP_BASE_VOLUMEBAR_STYLE_BASE_DEFAULT_MIN_INC;
1901             max: POPUP_BASE_VOLUMEBAR_STYLE_BASE_DEFAULT_MAX_INC;
1902             image {
1903                normal: "00_popup_bg.png";
1904                border: POPUP_BASE_DEFAULT_BG_DEFAULT_IMAGE_BORDER_INC;
1905                border_scale: 1;
1906             }
1907             align: 0.0 0.0;
1908          }
1909       }
1910       part { name: "elm.bg.title";
1911          type: IMAGE;
1912          scale : 1;
1913          description { state: "default" 0.0;
1914             min: POPUP_BASE_DEFAULT_TITLE_VOLUMEBAR_MIN_INC;
1915             fixed : 1 1;
1916             align: 0.5 0.0;
1917             visible: 0;
1918             image.normal: "00_popup_title_bg.png";
1919             image.border: POPUP_BASE_VOLUMEBAR_STYLE_TITLE_DEFAULT_IMAGE_BORDER_INC;
1920             image.border_scale: 1;
1921             rel1 {
1922                relative: 0.5 0.0;
1923                to: "base";
1924             }
1925             rel2 {
1926                relative: 0.5 0.0;
1927                to: "base";
1928             }
1929          }
1930          description { state: "visible" 0.0;
1931             inherit: "default" 0.0;
1932             visible: 1;
1933          }
1934       }
1935       part { name: "left_pad";
1936          type: RECT;
1937          scale: 1;
1938          description { state: "default" 0.0;
1939             min: POPUP_BASE_DEFAULT_PADDING_MIN_MAX_INC;
1940             max: POPUP_BASE_DEFAULT_PADDING_MIN_MAX_INC;
1941             fixed: 1 1;
1942             align: 0.0 0.0;
1943             visible: 0;
1944             rel1.to: "elm.bg.title";
1945          }
1946       }
1947       part { name: "right_pad";
1948          type: RECT;
1949          scale: 1;
1950          description { state: "default" 0.0;
1951             min: POPUP_BASE_DEFAULT_PADDING_MIN_MAX_INC;
1952             max: POPUP_BASE_DEFAULT_PADDING_MIN_MAX_INC;
1953             fixed: 1 1;
1954             align: 1.0 1.0;
1955             visible: 0;
1956             rel2.to: "elm.bg.title";
1957          }
1958       }
1959       part { name: "elm.swallow.title.icon";
1960          type: SWALLOW;
1961          scale: 1;
1962          description { state: "default" 0.0;
1963             min: POPUP_BASE_DEFAULT_TITLE_ICON_DEFAULT_MIN_MAX_INC;
1964             max: POPUP_BASE_DEFAULT_TITLE_ICON_DEFAULT_MIN_MAX_INC;
1965             fixed: 1 1;
1966             align: 0.0 0.5;
1967             rel1 {
1968                to: "left_pad";
1969                relative: 1.0 0.0;
1970             }
1971             rel2 {
1972                to: "right_pad";
1973                relative: 0.0 1.0;
1974             }
1975             visible: 0;
1976          }
1977          description { state: "visible" 0.0;
1978             inherit: "default" 0.0;
1979             visible: 1;
1980          }
1981       }
1982       part { name: "elm.text.title";
1983          type: TEXTBLOCK;
1984          scale:1;
1985          description { state: "default" 0.0;
1986             text {
1987               style: "popup_title_style";
1988               min: 0 0;
1989               max: 0 1;
1990               align: 0.5 0.0;
1991             }
1992             color: POPUP_DEFAULT_TITLE_TEXT_COLOR_INC;
1993             visible:0;
1994             rel1 {
1995                relative: 1.0 0.0;
1996                to: "left_pad";
1997             }
1998             rel2 {
1999                relative: 0.0 1.0;
2000                to: "right_pad";
2001             }
2002          }
2003          description { state: "visible" 0.0;
2004             inherit: "default" 0.0;
2005             visible: 1;
2006          }
2007       }
2008       part { name: "elm.swallow.content";
2009          type: SWALLOW;
2010          scale : 1;
2011          description { state: "default" 0.0;
2012             min: POPUP_BASE_VOLUMEBAR_STYLE_CONTENT_DEFAULT_MIN_INC;
2013             fixed: 1 0;
2014             rel1 {
2015                relative: 0.5 0.0;
2016                to: "base";
2017             }
2018             rel2 {
2019                relative: 0.5 1.0;
2020                to: "base";
2021             }
2022          }
2023          description { state: "show_title_area" 0.0;
2024             inherit: "default" 0.0;
2025             rel1 {
2026                relative: 0.5 1.0;
2027                to: "elm.bg.title";
2028             }
2029          }
2030          description { state: "show_action_area" 0.0;
2031             inherit: "default" 0.0;
2032             rel2 {
2033                relative: 0.5 0.0;
2034                to: "elm.bg.action_area";
2035             }
2036          }
2037          description { state: "show_action_title_area" 0.0;
2038             inherit: "default" 0.0;
2039             rel1 {
2040                relative: 0.5 1.0;
2041                to: "elm.bg.title";
2042             }
2043             rel2 {
2044                relative: 0.5 0.0;
2045                to: "elm.bg.action_area";
2046             }
2047          }
2048       }
2049       part { name: "elm.bg.action_area";
2050          type: IMAGE;
2051          scale : 1;
2052          description { state: "default" 0.0;
2053             min: POPUP_BASE_VOLUMEBAR_STYLE_BUTTONAREA_BG_DEFAULT_MIN_INC;
2054             fixed : 1 1;
2055             align: 0.5 1.0;
2056             visible: 0;
2057             image.normal: "00_popup_bottom_bg.png";
2058             image.border: POPUP_BASE_DEFAULT_BUTTON_BG_IMAGE_BORDER_INC;
2059             image.border_scale: 1;
2060             rel1 {
2061                relative: 0.0 1.0;
2062                to: "base";
2063             }
2064             rel2.to: "base";
2065          }
2066          description { state: "visible" 0.0;
2067             inherit: "default" 0.0;
2068             visible: 1;
2069          }
2070       }
2071       part { name: "elm.swallow.action_area";
2072          type: SWALLOW;
2073          scale : 1;
2074          description { state: "default" 0.0;
2075             align: 0.0 0.0;
2076             rel1.to: "elm.bg.action_area";
2077             rel2.to: "elm.bg.action_area";
2078          }
2079       }
2080    }
2081    programs {
2082       program { name: show_title_icon;
2083          signal: "elm,state,title,icon,visible";
2084          source: "elm";
2085          action: STATE_SET "visible" 0.0;
2086          target: "elm.swallow.title.icon";
2087       }
2088       program { name: hide_title_icon;
2089          signal: "elm,state,title,icon,hidden";
2090          source: "elm";
2091          action: STATE_SET "default" 0.0;
2092          target: "elm.swallow.title.icon";
2093       }
2094       program { name: show_title_text;
2095          signal: "elm,state,title,text,visible";
2096          source: "elm";
2097          action: STATE_SET "visible" 0.0;
2098          target: "elm.text.title";
2099       }
2100       program { name: hide_title_text;
2101          signal: "elm,state,title,text,hidden";
2102          source: "elm";
2103          action: STATE_SET "default" 0.0;
2104          target: "elm.text.title";
2105       }
2106       program { name: show_title_area;
2107          signal: "elm,state,title_area,visible";
2108          source: "elm";
2109          script {
2110             new st[31];
2111             new Float:vl;
2112             get_state(PART:"elm.swallow.action_area", st, 30, vl);
2113             if (!strcmp(st, "visible"))
2114               set_state(PART:"elm.swallow.content", "show_action_title_area", 0.0);
2115             else
2116               set_state(PART:"elm.swallow.content", "show_title_area", 0.0);
2117             set_state(PART:"elm.bg.title", "visible", 0.0);
2118          }
2119       }
2120       program { name: hide_title_area;
2121          signal: "elm,state,title_area,hidden";
2122          source: "elm";
2123          action: STATE_SET "default" 0.0;
2124          script {
2125             new st[31];
2126             new Float:vl;
2127             get_state(PART:"elm.swallow.action_area", st, 30, vl);
2128             if (!strcmp(st, "visible"))
2129               set_state(PART:"elm.swallow.content", "show_action_area", 0.0);
2130             else
2131               set_state(PART:"elm.swallow.content", "default", 0.0);
2132             set_state(PART:"elm.bg.title", "default", 0.0);
2133          }
2134       }
2135       program { name: show_action_area;
2136          signal: "elm,state,action_area,visible";
2137          source: "elm";
2138          script {
2139             new st[31];
2140             new Float:vl;
2141             get_state(PART:"elm.bg.title", st, 30, vl);
2142             if (!strcmp(st, "visible"))
2143               set_state(PART:"elm.swallow.content", "show_action_title_area", 0.0);
2144             else
2145               set_state(PART:"elm.swallow.content", "show_action_area", 0.0);
2146             set_state(PART:"elm.bg.action_area", "visible", 0.0);
2147          }
2148       }
2149       program { name: hide_action_area;
2150          signal: "elm,state,action_area,hidden";
2151          source: "elm";
2152          action: STATE_SET "default" 0.0;
2153          script {
2154             new st[31];
2155             new Float:vl;
2156             get_state(PART:"elm.bg.title", st, 30, vl);
2157             if (!strcmp(st, "visible"))
2158               set_state(PART:"elm.swallow.content", "show_title_area", 0.0);
2159             else
2160               set_state(PART:"elm.swallow.content", "default", 0.0);
2161             set_state(PART:"elm.bg.action_area", "default", 0.0);
2162          }
2163       }
2164    } /* end of programs */
2165 }
2166
2167 group { name: "elm/popup/content/volumebarstyle";
2168    parts{
2169       part { name: "pad_t";
2170          type: RECT;
2171          scale : 1;
2172          mouse_events: 0;
2173          repeat_events: 1;
2174          description { state: "default" 0.0;
2175             align: 0.5 0.0;
2176             min: POPUP_CONTENT_VOLUMEBAR_STYLE_PADDING_TOP_MIN_INC;
2177             fixed: 0 1;
2178             color: 0 0 0 0;
2179             rel1 {
2180                relative: 1.0 0.0;to_x: "pad_l";
2181             }
2182             rel2 {
2183                relative: 0.0 0.0;to_x: "pad_r";
2184             }
2185          }
2186       }
2187       part { name: "pad_l";
2188          type: RECT;
2189          scale: 1;
2190          description { state: "default" 0.0;
2191             min : POPUP_CONTENT_VOLUMEBAR_STYLE_PADDING_LEFT_MIN_INC;
2192             fixed: 1 0;
2193             rel1 {
2194                relative: 0.0 0.0; 
2195             }
2196             rel2 {
2197                relative: 0.0 1.0;
2198             }
2199             color: 0 0 0 0;
2200             align: 0.0 0.0;
2201          }
2202       }
2203       part { name: "pad_r";
2204          type: RECT;
2205          scale: 1;
2206          description { state: "default" 0.0;
2207             min : POPUP_CONTENT_VOLUMEBAR_STYLE_PADDING_RIGHT_MIN_INC;
2208             fixed: 1 0;
2209             rel1 {
2210                relative: 1.0 0.0;
2211             }
2212             rel2 {
2213                relative: 1.0 1.0;
2214             }
2215             color: 0 0 0 0;
2216             align: 1.0 0.0;
2217          }
2218       } 
2219       part{ name:"elm.swallow.content";
2220          type: SWALLOW;
2221          scale : 1;
2222          description { state: "default" 0.0;
2223             min: POPUP_CONTENT_VOLUMEBAR_STYLE_CONTENT_DEFAULT_MIN_INC;
2224             max: POPUP_CONTENT_VOLUMEBAR_STYLE_CONTENT_DEFAULT_MIN_INC;
2225             align: 0.5 0.5;
2226             fixed: 1 0;
2227             rel1 {
2228                relative: 0.5 1.0;
2229                to: "pad_t";
2230             }
2231             rel2 {
2232                relative: 0.5 0.0;
2233                to: "pad_b";
2234             }
2235          }
2236       }
2237       part { name: "pad_b";
2238          type: RECT;
2239          scale : 1;
2240          mouse_events: 0;
2241          repeat_events: 1;
2242          description { state: "default" 0.0;
2243             align: 0.5 1.0;
2244             min: POPUP_CONTENT_VOLUMEBAR_STYLE_PADDING_BOTTOM_MIN_INC;
2245             fixed: 0 1;
2246             color: 0 0 0 0;
2247             rel1 {
2248                relative: 0.0 1.0;to_x: "pad_l";
2249             }
2250             rel2 {
2251                relative: 1.0 1.0;to_x: "pad_r";
2252             }
2253          }
2254       }
2255    }
2256 }
2257
2258 group { name: "elm/layout/popup/entrypasswordview";
2259    images {
2260       image : "00_search_input_field_bg.png" COMP;
2261    }
2262    parts{
2263       part { name: "base";
2264          scale: 1;
2265          description { state: "default" 0.0;
2266             min: POPUP_BASE_CUSTOMSTYLE_CONTENT_WIDTH_INC POPUP_BASE_CUSTOMSTYLE_CONTENT_HEIGHT_INC;
2267             fixed: 1 0;
2268             align: 0.5 0.5;
2269             rel1 { relative: 0.0 0.0; }
2270             rel2 { relative: 1.0 1.0; }
2271          }
2272       }
2273       part { name: "pad_l";
2274          scale: 1;
2275          description { state: "default" 0.0;
2276             min : POPUP_BASE_CUSTOMSTYLE_CONTENT_SIDE_PADDING_INC 0;
2277             fixed: 1 0;
2278             rel1 {
2279                relative: 0.0 0.0; to: "base";
2280             }
2281             rel2 {
2282                relative: 0.0 1.0; to: "base";
2283             }
2284             align: 0.0 0.0;
2285          }
2286       }
2287       part { name: "elm.image1";
2288          type: IMAGE;
2289          scale: 1;
2290          description { state: "default" 0.0;
2291             min: POPUP_BASE_CUSTOMSTYLE_CONTENT_ENTRY_MIN_INC;
2292             max: POPUP_BASE_CUSTOMSTYLE_CONTENT_ENTRY_MIN_INC;
2293             fixed: 1 1;
2294             align: 0.0 0.5;
2295             rel1 { relative: 1.0 0.0; to_x: "pad_l"; to_y: "base"; }
2296             rel2 { relative: 1.0 1.0; to: "base"; }
2297             image { normal: "00_search_input_field_bg.png";
2298                border: 3 3 3 3;
2299                border_scale: 1;
2300             }
2301          }
2302       }
2303       part { name: "elm.entry1";
2304          type: SWALLOW;
2305          scale: 1;
2306          description { state: "default" 0.0;
2307              rel1.to: "elm.image1";
2308              rel2.to: "elm.image1";
2309          }
2310       }
2311       part { name: "pad_n";
2312          scale: 1;
2313          description { state: "default" 0.0;
2314             min : POPUP_BASE_CUSTOMSTYLE_CONTENT_CENTER_PADDING_MIN_INC 0;
2315             max: POPUP_BASE_CUSTOMSTYLE_CONTENT_CENTER_PADDING_MIN_INC 9999;
2316             fixed: 1 0;
2317             rel1 {
2318                relative: 1.0 0.0; to_x: "elm.image1"; to_y: "base";
2319             }
2320             rel2 {
2321                relative: 1.0 1.0; to: "base";
2322             }
2323             align: 0.0 0.0;
2324          }
2325       }
2326       part { name: "elm.image2";
2327          type: IMAGE;
2328          scale: 1;
2329          description { state: "default" 0.0;
2330             min: POPUP_BASE_CUSTOMSTYLE_CONTENT_ENTRY_MIN_INC;
2331             max: POPUP_BASE_CUSTOMSTYLE_CONTENT_ENTRY_MIN_INC;
2332             fixed: 1 1;
2333             align: 0.0 0.5;
2334             rel1 { relative: 1.0 0.0; to_x: "pad_n"; to_y: "base"; }
2335             rel2 { relative: 1.0 1.0; to: "base"; }
2336             image { normal: "00_search_input_field_bg.png";
2337                border: 3 3 3 3;
2338                border_scale: 1;
2339             }
2340          }
2341       }
2342       part { name: "elm.entry2";
2343          type: SWALLOW;
2344          scale: 1;
2345          description { state: "default" 0.0;
2346              rel1.to: "elm.image2";
2347              rel2.to: "elm.image2";
2348          }
2349       }
2350       part { name: "pad_n2";
2351          scale: 1;
2352          description { state: "default" 0.0;
2353             min : POPUP_BASE_CUSTOMSTYLE_CONTENT_CENTER_PADDING_MIN_INC 0;
2354             max: POPUP_BASE_CUSTOMSTYLE_CONTENT_CENTER_PADDING_MIN_INC 9999;
2355             fixed: 1 0;
2356             rel1 {
2357                relative: 1.0 0.0; to_x: "elm.image2"; to_y: "base";
2358             }
2359             rel2 {
2360                relative: 1.0 1.0; to: "base";
2361             }
2362             align: 0.0 0.0;
2363          }
2364       }
2365       part { name: "elm.image3";
2366          type: IMAGE;
2367          scale: 1;
2368          description { state: "default" 0.0;
2369             min: POPUP_BASE_CUSTOMSTYLE_CONTENT_ENTRY_MIN_INC;
2370             max: POPUP_BASE_CUSTOMSTYLE_CONTENT_ENTRY_MIN_INC;
2371             fixed: 1 1;
2372             align: 0.0 0.5;
2373             rel1 { relative: 1.0 0.0; to_x: "pad_n2"; to_y: "base"; }
2374             rel2 { relative: 1.0 1.0; to: "base"; }
2375             image { normal: "00_search_input_field_bg.png";
2376                border: 3 3 3 3;
2377                border_scale: 1;
2378             }
2379          }
2380       }
2381       part { name: "elm.entry3";
2382          type: SWALLOW;
2383          scale: 1;
2384          description { state: "default" 0.0;
2385              rel1.to: "elm.image3";
2386              rel2.to: "elm.image3";
2387          }
2388       }
2389       part { name: "pad_n3";
2390          scale: 1;
2391          description { state: "default" 0.0;
2392             min : POPUP_BASE_CUSTOMSTYLE_CONTENT_CENTER_PADDING_MIN_INC 0;
2393             max: POPUP_BASE_CUSTOMSTYLE_CONTENT_CENTER_PADDING_MIN_INC 9999;
2394             fixed: 1 0;
2395             rel1 {
2396                relative: 1.0 0.0; to_x: "elm.image3"; to_y: "base";
2397             }
2398             rel2 {
2399                relative: 1.0 1.0; to: "base";
2400             }
2401             align: 0.0 0.0;
2402          }
2403       }
2404       part { name: "elm.image4";
2405          type: IMAGE;
2406          scale: 1;
2407          description { state: "default" 0.0;
2408             min: POPUP_BASE_CUSTOMSTYLE_CONTENT_ENTRY_MIN_INC;
2409             max: POPUP_BASE_CUSTOMSTYLE_CONTENT_ENTRY_MIN_INC;
2410             fixed: 1 1;
2411             align: 0.0 0.5;
2412             rel1 { relative: 1.0 0.0; to_x: "pad_n3"; to_y: "base"; }
2413             rel2 { relative: 1.0 1.0; to: "base"; }
2414             image { normal: "00_search_input_field_bg.png";
2415                border: 3 3 3 3;
2416                border_scale: 1;
2417             }
2418          }
2419       }
2420       part { name: "elm.entry4";
2421          type: SWALLOW;
2422          scale: 1;
2423          description { state: "default" 0.0;
2424              rel1.to: "elm.image4";
2425              rel2.to: "elm.image4";
2426          }
2427       }
2428    }
2429 }
2430
2431 group { name: "elm/popup/base/content_expand";
2432    images {
2433       image: "00_popup_title_bg.png" COMP;
2434       image: "00_popup_bottom_bg.png" COMP;
2435       image: "00_popup_bg.png" COMP;
2436    }
2437    parts {
2438       part { name: "base";
2439          type: IMAGE;
2440          scale : 1;
2441          description { state: "default" 0.0;
2442             rel1.to_x: "elm.swallow.content";
2443             rel2.to_x: "elm.swallow.content";
2444             image {
2445                normal: "00_popup_bg.png";
2446                border: POPUP_BASE_DEFAULT_BG_DEFAULT_IMAGE_BORDER_INC;
2447                border_scale: 1;
2448             }
2449             align: 0.0 0.0;
2450          }
2451       }
2452       part { name: "elm.bg.title";
2453          type: IMAGE;
2454          scale : 1;
2455          description { state: "default" 0.0;
2456             min: 0 64;
2457             fixed : 0 1;
2458             align: 0.5 0.0;
2459             visible: 0;
2460             image.normal: "00_popup_title_bg.png";
2461             image.border: POPUP_BASE_DEFAULT_TITLE_DEFAULT_IMAGE_BORDER_INC;
2462             image.border_scale: 1;
2463             rel1.to_x: "base";
2464             rel2 {
2465                relative: 1.0 0.0;
2466                to_x: "base";
2467             }
2468          }
2469          description { state: "visible" 0.0;
2470             inherit: "default" 0.0;
2471             visible: 1;
2472          }
2473       }
2474       part { name: "left_pad";
2475          type: RECT;
2476          scale: 1;
2477          description { state: "default" 0.0;
2478             min: POPUP_BASE_DEFAULT_PADDING_MIN_MAX_INC;
2479             max: POPUP_BASE_DEFAULT_PADDING_MIN_MAX_INC;
2480             fixed: 1 1;
2481             align: 0.0 0.0;
2482             visible: 0;
2483             rel1.to: "elm.bg.title";
2484          }
2485       }
2486       part { name: "right_pad";
2487          type: RECT;
2488          scale: 1;
2489          description { state: "default" 0.0;
2490             min: POPUP_BASE_DEFAULT_PADDING_MIN_MAX_INC;
2491             max: POPUP_BASE_DEFAULT_PADDING_MIN_MAX_INC;
2492             fixed: 1 1;
2493             align: 1.0 1.0;
2494             visible: 0;
2495             rel2.to: "elm.bg.title";
2496          }
2497       }
2498       part { name: "elm.swallow.title.icon";
2499          type: SWALLOW;
2500          scale: 1;
2501          description { state: "default" 0.0;
2502             min: POPUP_BASE_DEFAULT_TITLE_ICON_DEFAULT_MIN_MAX_INC;
2503             max: POPUP_BASE_DEFAULT_TITLE_ICON_DEFAULT_MIN_MAX_INC;
2504             fixed: 1 1;
2505             align: 0.0 0.5;
2506             rel1 {
2507                to: "left_pad";
2508                relative: 1.0 0.0;
2509             }
2510             rel2 {
2511                to: "right_pad";
2512                relative: 0.0 1.0;
2513             }
2514             visible: 0;
2515          }
2516          description { state: "visible" 0.0;
2517             inherit: "default" 0.0;
2518             visible: 1;
2519          }
2520       }
2521       part { name: "elm.text.title";
2522          type: TEXTBLOCK;
2523          scale:1;
2524          description { state: "default" 0.0;
2525             text {
2526               style: "popup_title_style";
2527               min: 0 0;
2528               max: 0 1;
2529               align: 0.5 0.0;
2530             }
2531             color: POPUP_DEFAULT_TITLE_TEXT_COLOR_INC;
2532             visible:0;
2533             rel1 {
2534                relative: 1.0 0.0;
2535                to: "left_pad";
2536             }
2537             rel2 {
2538                relative: 0.0 1.0;
2539                to: "right_pad";
2540             }
2541          }
2542          description { state: "visible" 0.0;
2543             inherit: "default" 0.0;
2544             visible: 1;
2545          }
2546       }
2547       part { name: "elm.swallow.content";
2548          type: SWALLOW;
2549          scale : 1;
2550          description { state: "default" 0.0;
2551             min: POPUP_BASE_DEFAULT_CONTENT_DEFAULT_MIN_MAX_INC;
2552             max: POPUP_BASE_DEFAULT_CONTENT_DEFAULT_MIN_MAX_INC;
2553             rel1.relative: 0.5 0.0;
2554             rel2.relative: 0.5 1.0;
2555          }
2556          description { state: "show_title_area" 0.0;
2557             inherit: "default" 0.0;
2558             rel1 {
2559                relative: 0.5 1.0;
2560                to_y: "elm.bg.title";
2561             }
2562          }
2563          description { state: "show_action_area" 0.0;
2564             inherit: "default" 0.0;
2565             rel2 {
2566                relative: 0.5 0.0;
2567                to_y: "elm.bg.action_area";
2568             }
2569          }
2570          description { state: "show_action_title_area" 0.0;
2571             inherit: "default" 0.0;
2572             rel1 {
2573                relative: 0.5 1.0;
2574                to_y: "elm.bg.title";
2575             }
2576             rel2 {
2577                relative: 0.5 0.0;
2578                to_y: "elm.bg.action_area";
2579             }
2580          }
2581       }
2582       part { name: "elm.bg.action_area";
2583          type: IMAGE;
2584          scale : 1;
2585          description { state: "default" 0.0;
2586             min: 0 96;
2587             fixed : 0 1;
2588             align: 0.5 1.0;
2589             visible: 0;
2590             image.normal: "00_popup_bottom_bg.png";
2591             image.border: POPUP_BASE_DEFAULT_BUTTON_BG_IMAGE_BORDER_INC;
2592             image.border_scale: 1;
2593             rel1 {
2594                relative: 0.0 1.0;
2595                to_x: "base";
2596             }
2597             rel2.to_x: "base";
2598          }
2599          description { state: "visible" 0.0;
2600             inherit: "default" 0.0;
2601             visible: 1;
2602          }
2603       }
2604       part { name: "elm.swallow.action_area";
2605          type: SWALLOW;
2606          scale : 1;
2607          description { state: "default" 0.0;
2608             rel1.to: "elm.bg.action_area";
2609             rel2.to: "elm.bg.action_area";
2610          }
2611       }
2612    }
2613    programs {
2614       program { name: show_title_icon;
2615          signal: "elm,state,title,icon,visible";
2616          source: "elm";
2617          action: STATE_SET "visible" 0.0;
2618          target: "elm.swallow.title.icon";
2619       }
2620       program { name: hide_title_icon;
2621          signal: "elm,state,title,icon,hidden";
2622          source: "elm";
2623          action: STATE_SET "default" 0.0;
2624          target: "elm.swallow.title.icon";
2625       }
2626       program { name: show_title_text;
2627          signal: "elm,state,title,text,visible";
2628          source: "elm";
2629          action: STATE_SET "visible" 0.0;
2630          target: "elm.text.title";
2631       }
2632       program { name: hide_title_text;
2633          signal: "elm,state,title,text,hidden";
2634          source: "elm";
2635          action: STATE_SET "default" 0.0;
2636          target: "elm.text.title";
2637       }
2638       program { name: show_title_area;
2639          signal: "elm,state,title_area,visible";
2640          source: "elm";
2641          script {
2642             new st[31];
2643             new Float:vl;
2644             get_state(PART:"elm.swallow.action_area", st, 30, vl);
2645             if (!strcmp(st, "visible"))
2646               set_state(PART:"elm.swallow.content", "show_action_title_area", 0.0);
2647             else
2648               set_state(PART:"elm.swallow.content", "show_title_area", 0.0);
2649             set_state(PART:"elm.bg.title", "visible", 0.0);
2650          }
2651       }
2652       program { name: hide_title_area;
2653          signal: "elm,state,title_area,hidden";
2654          source: "elm";
2655          action: STATE_SET "default" 0.0;
2656          script {
2657             new st[31];
2658             new Float:vl;
2659             get_state(PART:"elm.swallow.action_area", st, 30, vl);
2660             if (!strcmp(st, "visible"))
2661               set_state(PART:"elm.swallow.content", "show_action_area", 0.0);
2662             else
2663               set_state(PART:"elm.swallow.content", "default", 0.0);
2664             set_state(PART:"elm.bg.title", "default", 0.0);
2665          }
2666       }
2667       program { name: show_action_area;
2668          signal: "elm,state,action_area,visible";
2669          source: "elm";
2670          script {
2671             new st[31];
2672             new Float:vl;
2673             get_state(PART:"elm.bg.title", st, 30, vl);
2674             if (!strcmp(st, "visible"))
2675               set_state(PART:"elm.swallow.content", "show_action_title_area", 0.0);
2676             else
2677               set_state(PART:"elm.swallow.content", "show_action_area", 0.0);
2678             set_state(PART:"elm.bg.action_area", "visible", 0.0);
2679          }
2680       }
2681       program { name: hide_action_area;
2682          signal: "elm,state,action_area,hidden";
2683          source: "elm";
2684          action: STATE_SET "default" 0.0;
2685          script {
2686             new st[31];
2687             new Float:vl;
2688             get_state(PART:"elm.bg.title", st, 30, vl);
2689             if (!strcmp(st, "visible"))
2690               set_state(PART:"elm.swallow.content", "show_title_area", 0.0);
2691             else
2692               set_state(PART:"elm.swallow.content", "default", 0.0);
2693             set_state(PART:"elm.bg.action_area", "default", 0.0);
2694          }
2695       }
2696    }
2697 }
2698
2699 group { name: "elm/popup/buttons1/content_expand";
2700    data.item: "action_area_height" POPUP_BUTTON_DEFAULT_ACTION_AREA_HEIGHT;
2701    parts{
2702       part{ name:"actionbtn1";
2703          type: SWALLOW;
2704          scale : 1;
2705          description { state: "default" 0.0;
2706             rel1.relative: 0.2 0.1;
2707             rel2.relative: 0.8 0.9;
2708          }
2709       }
2710    }
2711 }
2712
2713 group { name: "elm/popup/buttons2/content_expand";
2714    data.item: "action_area_height" POPUP_BUTTON_DEFAULT_ACTION_AREA_HEIGHT;
2715    parts{
2716       part{ name:"actionbtn1";
2717          type: SWALLOW;
2718          scale : 1;
2719          description { state: "default" 0.0;
2720             align: 0.0 0.5;
2721             rel1.relative: 0.1 0.1;
2722             rel2.relative: 0.45 0.9;
2723          }
2724       }
2725       part{ name:"actionbtn2";
2726          type: SWALLOW;
2727          scale : 1;
2728          description { state: "default" 0.0;
2729             align: 0.0 0.5;
2730             rel1.relative: 0.55 0.1;
2731             rel2.relative: 0.9 0.9;
2732          }
2733       }
2734    }
2735 }
2736
2737 group { name: "elm/popup/buttons3/content_expand";
2738    data.item: "action_area_height" POPUP_BUTTON_DEFAULT_ACTION_AREA_HEIGHT;
2739    parts{
2740       part{ name:"actionbtn1";
2741          type: SWALLOW;
2742          scale : 1;
2743          description { state: "default" 0.0;
2744             align: 0.0 0.5;
2745             rel1.relative: 0.05 0.1;
2746             rel2.relative: 0.3 0.9;
2747          }
2748       }
2749       part{ name:"actionbtn2";
2750          type: SWALLOW;
2751          scale : 1;
2752          description { state: "default" 0.0;
2753             align: 0.0 0.5;
2754             rel1.relative: 0.375 0.1;
2755             rel2.relative: 0.625 0.9;
2756          }
2757       }
2758       part{ name:"actionbtn3";
2759          type: SWALLOW;
2760          scale : 1;
2761          description { state: "default" 0.0;
2762             align: 0.0 0.5;
2763             rel1.relative: 0.7 0.1;
2764             rel2.relative: 0.95 0.9;
2765          }
2766       }
2767    }
2768 }
2769
2770 group { name: "elm/popup/item/content_expand";
2771    inherit: "elm/popup/item/default";
2772    parts {
2773       part { name: "bg";
2774          mouse_events: 0;
2775          type: RECT;
2776          description { state: "default" 0.0;
2777             color: 240 240 240 255;
2778             min: 620 71;
2779             align: 0.5 0.0;
2780          }
2781          description { state: "clicked" 0.0;
2782             color: 190 170 150 255;
2783          }
2784       }
2785    }
2786 }
2787
2788 group { name: "elm/popup/content/content_expand";
2789    parts{
2790       part{ name:"elm.swallow.content";
2791          type: SWALLOW;
2792          scale : 1;
2793          description { state: "default" 0.0;
2794          }
2795       }
2796    }
2797 }
2798
2799 #undef POPUP_ITEM_STATE_ENABLED
2800 #undef POPUP_ITEM_STATE_DISABLED