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