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