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