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