[searchbar] Search bar theme is changed according to GUI ver 0.9
[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             max: POPUP_CONTENT_MINSTYLE_CONTENT_DEFAULT_MIN_INC;
1781             align: 0.5 0.5;
1782             fixed: 1 0;
1783             rel1 {
1784                relative: 1.0 0.0;
1785                to:"left_padding";
1786             }
1787             rel2 {
1788                relative: 0.0 1.0;
1789                to:"right_padding";
1790             }
1791          }
1792       }
1793       part { name: "right_padding";
1794          type: SPACER;
1795          scale: 1;
1796          description { state: "default" 0.0;
1797             fixed: 1 0;
1798             align: 1.0 0.5;
1799             min: POPUP_CONTENT_LISTSTYLE_PADDING_RIGHT_MIN_INC;
1800             rel1 {
1801                relative: 1.0 0.0;
1802             }
1803             rel2 {
1804                relative: 1.0 1.0;
1805             }
1806          }
1807       }
1808    }
1809 }
1810
1811 group { name: "elm/popup/content/liststyle";
1812    alias: "elm/popup/content/liststyle_transparent";
1813    parts{
1814       part { name: "left_top_padding";
1815          type: SPACER;
1816          scale: 1;
1817          description { state: "default" 0.0;
1818             fixed: 1 1;
1819             align: 0.0 0.0;
1820             min: POPUP_CONTENT_LISTSTYLE_PADDING_TOP_MIN_MAX_INC;
1821             max: POPUP_CONTENT_LISTSTYLE_PADDING_TOP_MIN_MAX_INC;
1822          }
1823       }
1824       part{ name:"elm.swallow.content";
1825          type: SWALLOW;
1826          scale: 1;
1827          description { state: "default" 0.0;
1828             min: POPUP_CONTENT_LISTSTYLE_CONTENT_DEFAULT_MIN_INC;
1829             max: POPUP_CONTENT_LISTSTYLE_CONTENT_DEFAULT_MIN_INC;
1830             align: 0.5 0.5;
1831             fixed: 1 0;
1832             rel1 {
1833                relative: 1.0 1.0;
1834                to:"left_top_padding";
1835             }
1836             rel2 {
1837                relative: 0.0 1.0;
1838                to:"right_padding";
1839             }
1840          }
1841       }
1842       part { name: "right_padding";
1843          type: SPACER;
1844          scale: 1;
1845          description { state: "default" 0.0;
1846             fixed: 1 0;
1847             align: 1.0 0.5;
1848             min: POPUP_CONTENT_LISTSTYLE_PADDING_RIGHT_MIN_INC;
1849             rel1 {
1850                relative: 1.0 0.0;
1851             }
1852             rel2 {
1853                relative: 1.0 1.0;
1854             }
1855          }
1856       }
1857    }
1858 }
1859
1860 group { name: "elm/popup/content/min_liststyle";
1861    alias: "elm/popup/content/min_liststyle_transparent";
1862    parts{
1863       part { name: "left_top_padding";
1864          type: SPACER;
1865          scale: 1;
1866          description { state: "default" 0.0;
1867             fixed: 1 1;
1868             align: 0.0 0.0;
1869             min: POPUP_CONTENT_LISTSTYLE_PADDING_TOP_MIN_MAX_INC;
1870             max: POPUP_CONTENT_LISTSTYLE_PADDING_TOP_MIN_MAX_INC;
1871          }
1872       }
1873       part{ name:"elm.swallow.content";
1874          type: SWALLOW;
1875          scale: 1;
1876          description { state: "default" 0.0;
1877             min: POPUP_CONTENT_MINSTYLE_CONTENT_DEFAULT_MIN_INC;
1878             max: POPUP_CONTENT_MINSTYLE_CONTENT_DEFAULT_MIN_INC;
1879             align: 0.5 0.5;
1880             fixed: 1 0;
1881             rel1 {
1882                relative: 1.0 1.0;
1883                to:"left_top_padding";
1884             }
1885             rel2 {
1886                relative: 0.0 1.0;
1887                to:"right_padding";
1888             }
1889          }
1890       }
1891       part { name: "right_padding";
1892          type: SPACER;
1893          scale: 1;
1894          description { state: "default" 0.0;
1895             fixed: 1 0;
1896             align: 1.0 0.5;
1897             min: POPUP_CONTENT_LISTSTYLE_PADDING_RIGHT_MIN_INC;
1898             rel1 {
1899                relative: 1.0 0.0;
1900             }
1901             rel2 {
1902                relative: 1.0 1.0;
1903             }
1904          }
1905       }
1906    }
1907 }
1908
1909 group { name: "elm/popup/buttons1/default";
1910    alias: "elm/popup/buttons1/transparent";
1911    data.item: "action_area_height" POPUP_BUTTON_DEFAULT_ACTION_AREA_HEIGHT;
1912    parts{
1913       part{ name:"actionbtn1";
1914          type: SWALLOW;
1915          scale: 1;
1916          description { state: "default" 0.0;
1917             min: POPUP_BUTTON1_DEFAULT_BUTTON1_DEFAULT_MIN_INC;
1918             max: POPUP_BUTTON1_DEFAULT_BUTTON1_DEFAULT_MAX_INC;
1919             fixed: 1 1;
1920             rel1.relative: 0.5 0.0;
1921             rel2.relative: 0.5 1.0;
1922          }
1923       }
1924    }
1925 }
1926
1927 group { name: "elm/popup/buttons2/default";
1928    alias: "elm/popup/buttons2/transparent";
1929    data.item: "action_area_height" POPUP_BUTTON_DEFAULT_ACTION_AREA_HEIGHT;
1930    parts{
1931       part { name: "left_pad_btn";
1932          type: SPACER;
1933          scale: 1;
1934          description { state: "default" 0.0;
1935             min: POPUP_BUTTON2_DEFAULT_PADDING_LEFT_RIGHT_WIDTH_INC POPUP_BUTTON2_DEFAULT_HEIGHT_INC;
1936             max: POPUP_BUTTON2_DEFAULT_PADDING_LEFT_RIGHT_WIDTH_INC POPUP_BUTTON2_DEFAULT_HEIGHT_INC;
1937             fixed: 1 1;
1938             align: 0 0.5;
1939             rel1.relative: 0.0 0.0;
1940          }
1941       }
1942       part { name: "right_pad_btn";
1943          type: SPACER;
1944          scale: 1;
1945          description { state: "default" 0.0;
1946             min: POPUP_BUTTON2_DEFAULT_PADDING_LEFT_RIGHT_WIDTH_INC POPUP_BUTTON2_DEFAULT_HEIGHT_INC;
1947             max: POPUP_BUTTON2_DEFAULT_PADDING_LEFT_RIGHT_WIDTH_INC POPUP_BUTTON2_DEFAULT_HEIGHT_INC;
1948             fixed: 1 1;
1949             align: 1 0.5;
1950             rel2.relative: 1.0 1.0;
1951          }
1952       }
1953       part { name:"actionbtn1";
1954          type: SWALLOW;
1955          scale: 1;
1956          description { state: "default" 0.0;
1957             fixed: 1 1;
1958             align: 1.0 0.5;
1959             rel1 {
1960                relative: 1.0 0.0;
1961                to: "left_pad_btn";
1962             }
1963             rel2 {
1964                relative: 0.0 1.0;
1965                to: "elm.rect.pad_btn";
1966             }
1967          }
1968       }
1969       part { name: "elm.rect.pad_btn";
1970          type: SPACER;
1971          scale: 1;
1972          description { state: "default" 0.0;
1973             min: POPUP_BUTTON2_DEFAULT_PADDING_BUTTON_MIN_MAX_INC;
1974             max: POPUP_BUTTON2_DEFAULT_PADDING_BUTTON_MIN_MAX_INC;
1975             fixed: 1 1;
1976             rel1.relative: 0.5 0.0;
1977             rel2.relative: 0.5 1.0;
1978          }
1979       }
1980       part { name:"actionbtn2";
1981          type: SWALLOW;
1982          scale: 1;
1983          description { state: "default" 0.0;
1984             fixed: 1 1;
1985             align: 0.0 0.5;
1986             rel1 {
1987                relative: 1.0 0.0;
1988                to: "elm.rect.pad_btn";
1989             }
1990             rel2 {
1991                relative: 0.0 1.0;
1992                to: "right_pad_btn";
1993             }
1994          }
1995       }
1996    }
1997 }
1998
1999 group { name: "elm/popup/buttons3/default";
2000    alias: "elm/popup/buttons3/menustyle";
2001    alias: "elm/popup/buttons3/transparent";
2002    data.item: "action_area_height" POPUP_BUTTON_DEFAULT_ACTION_AREA_HEIGHT;
2003    parts{
2004       part { name: "left_pad_btn";
2005          type: SPACER;
2006          scale: 1;
2007          description { state: "default" 0.0;
2008             min: POPUP_BUTTON3_DEFAULT_PADDING_LEFT_RIGHT_WIDTH_INC POPUP_BUTTON3_DEFAULT_HEIGHT_INC;
2009             max: POPUP_BUTTON3_DEFAULT_PADDING_LEFT_RIGHT_WIDTH_INC POPUP_BUTTON3_DEFAULT_HEIGHT_INC;
2010             fixed: 1 1;
2011             align: 0 0.5;
2012             rel1.relative: 0.0 0.0;
2013          }
2014       }
2015       part { name: "right_pad_btn";
2016          type: SPACER;
2017          scale: 1;
2018          description { state: "default" 0.0;
2019             min: POPUP_BUTTON3_DEFAULT_PADDING_LEFT_RIGHT_WIDTH_INC POPUP_BUTTON3_DEFAULT_HEIGHT_INC;
2020             max: POPUP_BUTTON3_DEFAULT_PADDING_LEFT_RIGHT_WIDTH_INC POPUP_BUTTON3_DEFAULT_HEIGHT_INC;
2021             fixed: 1 1;
2022             align: 1 0.5;
2023             rel2.relative: 1.0 1.0;
2024          }
2025       }
2026       part { name: "btn_area";
2027          type: SPACER;
2028          scale: 1;
2029          description { state: "default" 0.0;
2030             fixed: 1 1;
2031             rel1 {
2032                relative: 1.0 0.0;
2033                to: "left_pad_btn";
2034             }
2035             rel2 {
2036                relative: 0.0 1.0;
2037                to: "right_pad_btn";
2038             }
2039          }
2040       }
2041       part{ name:"actionbtn1";
2042          type: SWALLOW;
2043          scale: 1;
2044          description { state: "default" 0.0;
2045             fixed: 1 1;
2046             align: 1.0 0.5;
2047             rel1 {
2048                relative: 1.0 0.0;
2049                to: "left_pad_btn";
2050             }
2051             rel2 {
2052                relative: 0.0 1.0;
2053                to: "elm.rect.pad_btn";
2054             }
2055          }
2056       }
2057       part { name: "elm.rect.pad_btn";
2058          type: SPACER;
2059          scale: 1;
2060          description { state: "default" 0.0;
2061             min: POPUP_BUTTON3_DEFAULT_PADDING_BUTTON_MIN_MAX_INC;
2062             max: POPUP_BUTTON3_DEFAULT_PADDING_BUTTON_MIN_MAX_INC;
2063             fixed: 1 1;
2064             rel1.relative: 0.33 0.0;
2065             rel1.to: "btn_area";
2066             rel2.relative: 0.33 1.0;
2067             rel2.to: "btn_area";
2068          }
2069       }
2070       part{ name:"actionbtn2";
2071          type: SWALLOW;
2072          scale: 1;
2073          description { state: "default" 0.0;
2074             fixed: 1 1;
2075             rel1 {
2076                relative: 1.0 0.0;
2077                to: "elm.rect.pad_btn";
2078             }
2079             rel2 {
2080                relative: 0.0 1.0;
2081                to: "elm.rect.pad_btn2";
2082             }
2083          }
2084       }
2085       part { name: "elm.rect.pad_btn2";
2086          type: SPACER;
2087          scale: 1;
2088          description { state: "default" 0.0;
2089             min: POPUP_BUTTON3_DEFAULT_PADDING_BUTTON_MIN_MAX_INC;
2090             max: POPUP_BUTTON3_DEFAULT_PADDING_BUTTON_MIN_MAX_INC;
2091             fixed: 1 1;
2092             rel1.relative: 0.67 0.0;
2093             rel1.to: "btn_area";
2094             rel2.relative: 0.67 1.0;
2095             rel2.to: "btn_area";
2096          }
2097       }
2098       part{ name:"actionbtn3";
2099          type: SWALLOW;
2100          scale: 1;
2101          description { state: "default" 0.0;
2102             fixed: 1 1;
2103             align: 0.0 0.5;
2104             rel1 {
2105                relative: 1.0 0.0;
2106                to: "elm.rect.pad_btn2";
2107             }
2108             rel2 {
2109                relative: 0.0 1.0;
2110                to: "right_pad_btn";
2111             }
2112          }
2113       }
2114    }
2115 }
2116
2117 group { name: "elm/popup/base/volumebarstyle";
2118    inherit: "elm/popup/base/default";
2119    alias: "elm/popup/base/volumebarstyle_transparent";
2120    images {
2121       image: "00_popup_bg.png" COMP;
2122    }
2123    parts {
2124       part { name: "elm.swallow.content";
2125          type: SWALLOW;
2126          scale: 1;
2127          description { state: "default" 0.0;
2128             min: POPUP_CONTENT_VOLUMEBAR_STYLE_CONTENT_DEFAULT_MIN_INC;
2129             fixed: 1 0;
2130             rel1 {
2131                relative: 0.0 1.0;
2132                to_x: "base";
2133                to_y: "shadow_left_top_padding";
2134             }
2135             rel2 {
2136                relative: 1.0 0.0;
2137                to_x: "base";
2138                to_y: "shadow_right_bottom_padding";
2139             }
2140          }
2141          description { state: "show_title_area" 0.0;
2142             inherit: "default" 0.0;
2143             rel1 {
2144                relative: 0.0 1.0;
2145                to_x: "base";
2146                to_y: "elm.bg.title";
2147             }
2148             rel2 {
2149                relative: 1.0 0.0;
2150                to_x: "base";
2151                to_y: "shadow_right_bottom_padding";
2152             }
2153          }
2154          description { state: "show_action_area" 0.0;
2155             inherit: "default" 0.0;
2156             rel1 {
2157                relative: 0.0 1.0;
2158                to_x: "base";
2159                to_y: "shadow_left_top_padding";
2160             }
2161             rel2 {
2162                relative: 1.0 0.0;
2163                to_x: "base";
2164                to_y: "elm.swallow.action_area";
2165             }
2166          }
2167          description { state: "show_action_title_area" 0.0;
2168             inherit: "default" 0.0;
2169             rel1 {
2170                relative: 0.0 1.0;
2171                to_x: "base";
2172                to_y: "elm.bg.title";
2173             }
2174             rel2 {
2175                relative: 1.0 0.0;
2176                to_x: "base";
2177                to_y: "elm.swallow.action_area";
2178             }
2179          }
2180       }
2181    }
2182 }
2183
2184 group { name: "elm/popup/base/volumebarstyle_text";
2185    alias: "elm/popup/base/volumebarstyle_text_transparent";
2186    inherit: "elm/popup/base/volumebarstyle";
2187    parts {
2188       part { name: "elm.swallow.content";
2189          type: SWALLOW;
2190          scale: 1;
2191          description { state: "default" 0.0;
2192             min: POPUP_CONTENT_VOLUMEBAR_TEXT_STYLE_CONTENT_DEFAULT_MIN_INC;
2193             fixed: 1 0;
2194             rel1 {
2195                relative: 0.0 1.0;
2196                to_x: "base";
2197                to_y: "shadow_left_top_padding";
2198             }
2199             rel2 {
2200                relative: 1.0 0.0;
2201                to_x: "base";
2202                to_y: "shadow_right_bottom_padding";
2203             }
2204          }
2205          description { state: "show_title_area" 0.0;
2206             inherit: "default" 0.0;
2207             rel1 {
2208                relative: 0.0 1.0;
2209                to_x: "base";
2210                to_y: "elm.bg.title";
2211             }
2212             rel2 {
2213                relative: 1.0 0.0;
2214                to_x: "base";
2215                to_y: "shadow_right_bottom_padding";
2216             }
2217          }
2218          description { state: "show_action_area" 0.0;
2219             inherit: "default" 0.0;
2220             rel1 {
2221                relative: 0.0 1.0;
2222                to_x: "base";
2223                to_y: "shadow_left_top_padding";
2224             }
2225             rel2 {
2226                relative: 1.0 0.0;
2227                to_x: "base";
2228                to_y: "elm.swallow.action_area";
2229             }
2230          }
2231          description { state: "show_action_title_area" 0.0;
2232             inherit: "default" 0.0;
2233             rel1 {
2234                relative: 0.0 1.0;
2235                to_x: "base";
2236                to_y: "elm.bg.title";
2237             }
2238             rel2 {
2239                relative: 1.0 0.0;
2240                to_x: "base";
2241                to_y: "elm.swallow.action_area";
2242             }
2243          }
2244       }
2245    }
2246 }
2247
2248 group { name: "elm/popup/base/content_expand";
2249    alias: "elm/popup/base/content_expand_transparent";
2250    images {
2251       image: "00_popup_bg.png" COMP;
2252       image: "00_popup_button_bg.png" COMP;
2253       image: "00_popup_title_bg.png" COMP;
2254    }
2255    parts {
2256       part { name: "base";
2257          scale : 1;
2258          description { state: "default" 0.0;
2259             rel1.to_x: "elm.swallow.content";
2260             rel2.to_x: "elm.swallow.content";
2261             image {
2262                normal: "00_popup_bg.png";
2263                border: POPUP_BASE_DEFAULT_BG_DEFAULT_IMAGE_BORDER_INC;
2264                border_scale: 1;
2265             }
2266             align: 0.0 0.0;
2267          }
2268       }
2269       part {
2270          name:"shadow_left_top_padding";
2271          type: SPACER;
2272          scale: 1;
2273          description { state: "default" 0.0;
2274             min: POPUP_DESC_LEFT_PADDING POPUP_DESC_TOP_PADDING;
2275             max: POPUP_DESC_LEFT_PADDING POPUP_DESC_TOP_PADDING;
2276             align: 0 0;
2277             fixed: 1 1;
2278          }
2279       }
2280       part {
2281          name:"shadow_right_bottom_padding";
2282          type: SPACER;
2283          scale: 1;
2284          description { state: "default" 0.0;
2285             min: POPUP_DESC_RIGHT_PADDING POPUP_DESC_BOTTOM_PADDING;
2286             max: POPUP_DESC_RIGHT_PADDING POPUP_DESC_BOTTOM_PADDING;
2287             align: 1 1;
2288             fixed: 1 1;
2289          }
2290       }
2291       part { name: "elm.bg.title";
2292          scale : 1;
2293          description { state: "default" 0.0;
2294             min: POPUP_BASE_CONTENT_EXPAND_TITLE_DEFAULT_MIN_INC;
2295             fixed : 0 1;
2296             align: 0.5 0.0;
2297             visible: 0;
2298             image {
2299                normal: "00_popup_title_bg.png";
2300                border: POPUP_BASE_DEFAULT_TITLE_DEFAULT_IMAGE_BORDER_INC;
2301                border_scale: 1;
2302             }
2303             rel1 {
2304                relative: 1.0 0.0;
2305                to_x: "shadow_left_top_padding";
2306                to_y: "base";
2307             }
2308             rel2 {
2309                relative: 0.0 0.0;
2310                to_x: "shadow_right_bottom_padding";
2311                to_y: "base";
2312             }
2313          }
2314          description { state: "visible" 0.0;
2315             inherit: "default" 0.0;
2316             visible: 1;
2317          }
2318       }
2319       part { name: "left_pad";
2320          type: SPACER;
2321          scale: 1;
2322          description { state: "default" 0.0;
2323             min: POPUP_BASE_DEFAULT_PADDING_MIN_MAX_INC;
2324             max: POPUP_BASE_DEFAULT_PADDING_MIN_MAX_INC;
2325             fixed: 1 1;
2326             align: 0.0 0.0;
2327             rel1.to: "elm.bg.title";
2328          }
2329       }
2330       part { name: "right_pad";
2331          type: SPACER;
2332          scale: 1;
2333          description { state: "default" 0.0;
2334             min: POPUP_BASE_DEFAULT_PADDING_MIN_MAX_INC;
2335             max: POPUP_BASE_DEFAULT_PADDING_MIN_MAX_INC;
2336             fixed: 1 1;
2337             align: 1.0 1.0;
2338             rel2.to: "elm.bg.title";
2339          }
2340       }
2341       part { name: "elm.swallow.title.icon";
2342          type: SWALLOW;
2343          scale: 1;
2344          description { state: "default" 0.0;
2345             min: POPUP_BASE_DEFAULT_TITLE_ICON_DEFAULT_MIN_MAX_INC;
2346             max: POPUP_BASE_DEFAULT_TITLE_ICON_DEFAULT_MIN_MAX_INC;
2347             fixed: 1 1;
2348             align: 0.0 0.5;
2349             rel1 {
2350                to: "left_pad";
2351                relative: 1.0 1.0;
2352             }
2353             rel2 {
2354                to: "right_pad";
2355                relative: 0.0 1.0;
2356             }
2357             visible: 0;
2358          }
2359          description { state: "visible" 0.0;
2360             inherit: "default" 0.0;
2361             visible: 1;
2362          }
2363       }
2364       part { name: "elm.text.title";
2365          type: TEXTBLOCK;
2366          scale:1;
2367          description { state: "default" 0.0;
2368             text {
2369               style: "popup_title_style";
2370               size: POPUP_BASE_DEFAULT_TEXT_FONT_SIZE_INC;
2371               size_range: POPUP_BASE_DEFAULT_TEXT_MIN_FONT_SIZE_INC POPUP_BASE_DEFAULT_TEXT_FONT_SIZE_INC;
2372               fit: 1 0;
2373               min: 0 1;
2374               align: 0.0 0.5;
2375             }
2376             visible: 0;
2377             rel1 {
2378                to: "left_pad";
2379                relative: 1.0 1.0;
2380             }
2381             rel2 {
2382                to: "right_pad";
2383                relative: 0.0 1.0;
2384             }
2385             align: 0.0 0.5;
2386          }
2387          description { state: "visible" 0.0;
2388             inherit: "default" 0.0;
2389             visible: 1;
2390          }
2391       }
2392       part { name: "elm.swallow.content";
2393          type: SWALLOW;
2394          scale: 1;
2395          description { state: "default" 0.0;
2396             min: POPUP_BASE_DEFAULT_CONTENT_DEFAULT_MIN_MAX_INC;
2397             max: POPUP_BASE_DEFAULT_CONTENT_DEFAULT_MIN_MAX_INC;
2398             rel1.relative: 0.5 0.0;
2399             rel2.relative: 0.5 1.0;
2400          }
2401          description { state: "show_title_area" 0.0;
2402             inherit: "default" 0.0;
2403             rel1 {
2404                relative: 0.5 1.0;
2405                to_y: "elm.bg.title";
2406             }
2407          }
2408          description { state: "show_action_area" 0.0;
2409             inherit: "default" 0.0;
2410             rel2 {
2411                relative: 0.5 0.0;
2412                to_y: "elm.bg.action_area";
2413             }
2414          }
2415          description { state: "show_action_title_area" 0.0;
2416             inherit: "default" 0.0;
2417             rel1 {
2418                relative: 0.5 1.0;
2419                to_y: "elm.bg.title";
2420             }
2421             rel2 {
2422                relative: 0.5 0.0;
2423                to_y: "elm.bg.action_area";
2424             }
2425          }
2426       }
2427       part { name: "elm.bg.action_area";
2428          scale: 1;
2429          description { state: "default" 0.0;
2430             min: POPUP_BASE_CONTENT_EXPAND_BG_DEFAULT_MIN_INC;
2431             fixed : 0 1;
2432             align: 0.5 1.0;
2433             visible: 0;
2434             image {
2435                normal: "00_popup_button_bg.png";
2436                border: POPUP_BASE_DEFAULT_BUTTON_BG_IMAGE_BORDER_INC;
2437                border_scale: 1;
2438             }
2439             rel1 {
2440                relative: 1.0 1.0;
2441                to_x: "shadow_left_top_padding";
2442                to_y: "base";
2443             }
2444             rel2 {
2445                relative: 0.0 1.0;
2446                to_x: "shadow_right_bottom_padding";
2447                to_y: "base";
2448             }
2449          }
2450          description { state: "visible" 0.0;
2451             inherit: "default" 0.0;
2452             visible: 1;
2453          }
2454       }
2455       part { name: "elm.swallow.action_area";
2456          type: SWALLOW;
2457          scale : 1;
2458          description { state: "default" 0.0;
2459             rel1.to: "elm.bg.action_area";
2460             rel2.to: "elm.bg.action_area";
2461          }
2462       }
2463    }
2464    programs {
2465       program { name: show_title_icon;
2466          signal: "elm,state,title,icon,visible";
2467          source: "elm";
2468          action: STATE_SET "visible" 0.0;
2469          target: "elm.swallow.title.icon";
2470       }
2471       program { name: hide_title_icon;
2472          signal: "elm,state,title,icon,hidden";
2473          source: "elm";
2474          action: STATE_SET "default" 0.0;
2475          target: "elm.swallow.title.icon";
2476       }
2477       program { name: show_title_text;
2478          signal: "elm,state,title,text,visible";
2479          source: "elm";
2480          action: STATE_SET "visible" 0.0;
2481          target: "elm.text.title";
2482       }
2483       program { name: hide_title_text;
2484          signal: "elm,state,title,text,hidden";
2485          source: "elm";
2486          action: STATE_SET "default" 0.0;
2487          target: "elm.text.title";
2488       }
2489       program { name: show_title_area;
2490          signal: "elm,state,title_area,visible";
2491          source: "elm";
2492          script {
2493             new st[31];
2494             new Float:vl;
2495             get_state(PART:"elm.swallow.action_area", st, 30, vl);
2496             if (!strcmp(st, "visible"))
2497               set_state(PART:"elm.swallow.content", "show_action_title_area", 0.0);
2498             else
2499               set_state(PART:"elm.swallow.content", "show_title_area", 0.0);
2500             set_state(PART:"elm.bg.title", "visible", 0.0);
2501          }
2502       }
2503       program { name: hide_title_area;
2504          signal: "elm,state,title_area,hidden";
2505          source: "elm";
2506          action: STATE_SET "default" 0.0;
2507          script {
2508             new st[31];
2509             new Float:vl;
2510             get_state(PART:"elm.swallow.action_area", st, 30, vl);
2511             if (!strcmp(st, "visible"))
2512               set_state(PART:"elm.swallow.content", "show_action_area", 0.0);
2513             else
2514               set_state(PART:"elm.swallow.content", "default", 0.0);
2515             set_state(PART:"elm.bg.title", "default", 0.0);
2516          }
2517       }
2518       program { name: show_action_area;
2519          signal: "elm,state,action_area,visible";
2520          source: "elm";
2521          script {
2522             new st[31];
2523             new Float:vl;
2524             get_state(PART:"elm.bg.title", st, 30, vl);
2525             if (!strcmp(st, "visible"))
2526               set_state(PART:"elm.swallow.content", "show_action_title_area", 0.0);
2527             else
2528               set_state(PART:"elm.swallow.content", "show_action_area", 0.0);
2529             set_state(PART:"elm.bg.action_area", "visible", 0.0);
2530          }
2531       }
2532       program { name: hide_action_area;
2533          signal: "elm,state,action_area,hidden";
2534          source: "elm";
2535          action: STATE_SET "default" 0.0;
2536          script {
2537             new st[31];
2538             new Float:vl;
2539             get_state(PART:"elm.bg.title", st, 30, vl);
2540             if (!strcmp(st, "visible"))
2541               set_state(PART:"elm.swallow.content", "show_title_area", 0.0);
2542             else
2543               set_state(PART:"elm.swallow.content", "default", 0.0);
2544             set_state(PART:"elm.bg.action_area", "default", 0.0);
2545          }
2546       }
2547    }
2548 }
2549
2550 group { name: "elm/popup/buttons1/content_expand";
2551    alias: "elm/popup/buttons1/content_expand_transparent";
2552    data.item: "action_area_height" POPUP_BUTTON_DEFAULT_ACTION_AREA_HEIGHT;
2553    parts{
2554       part{ name:"actionbtn1";
2555          type: SWALLOW;
2556          scale: 1;
2557          description { state: "default" 0.0;
2558             rel1.relative: 0.2 0.1;
2559             rel2.relative: 0.8 0.9;
2560          }
2561       }
2562    }
2563 }
2564
2565 group { name: "elm/popup/buttons2/content_expand";
2566    alias: "elm/popup/buttons2/content_expand_transparent";
2567    data.item: "action_area_height" POPUP_BUTTON_DEFAULT_ACTION_AREA_HEIGHT;
2568    parts{
2569       part{ name:"actionbtn1";
2570          type: SWALLOW;
2571          scale: 1;
2572          description { state: "default" 0.0;
2573             align: 0.0 0.5;
2574             rel1.relative: 0.1 0.1;
2575             rel2.relative: 0.45 0.9;
2576          }
2577       }
2578       part{ name:"actionbtn2";
2579          type: SWALLOW;
2580          scale: 1;
2581          description { state: "default" 0.0;
2582             align: 0.0 0.5;
2583             rel1.relative: 0.55 0.1;
2584             rel2.relative: 0.9 0.9;
2585          }
2586       }
2587    }
2588 }
2589
2590 group { name: "elm/popup/buttons3/content_expand";
2591    alias: "elm/popup/buttons3/content_expand_transparent";
2592    data.item: "action_area_height" POPUP_BUTTON_DEFAULT_ACTION_AREA_HEIGHT;
2593    parts{
2594       part{ name:"actionbtn1";
2595          type: SWALLOW;
2596          scale: 1;
2597          description { state: "default" 0.0;
2598             align: 0.0 0.5;
2599             rel1.relative: 0.05 0.1;
2600             rel2.relative: 0.3 0.9;
2601          }
2602       }
2603       part{ name:"actionbtn2";
2604          type: SWALLOW;
2605          scale: 1;
2606          description { state: "default" 0.0;
2607             align: 0.0 0.5;
2608             rel1.relative: 0.375 0.1;
2609             rel2.relative: 0.625 0.9;
2610          }
2611       }
2612       part{ name:"actionbtn3";
2613          type: SWALLOW;
2614          scale: 1;
2615          description { state: "default" 0.0;
2616             align: 0.0 0.5;
2617             rel1.relative: 0.7 0.1;
2618             rel2.relative: 0.95 0.9;
2619          }
2620       }
2621    }
2622 }
2623
2624 group { name: "elm/popup/item/content_expand";
2625    alias: "elm/popup/item/content_expand_transparent";
2626    inherit: "elm/popup/item/default";
2627    parts {
2628       part { name: "bg";
2629          mouse_events: 0;
2630          type: RECT;
2631          description { state: "default" 0.0;
2632             color: 240 240 240 255;
2633             min: 620 112;
2634             align: 0.5 0.0;
2635          }
2636          description { state: "clicked" 0.0;
2637             color: 190 170 150 255;
2638          }
2639       }
2640    }
2641 }
2642
2643 group { name: "elm/popup/content/content_expand";
2644    alias: "elm/popup/content/content_expand_transparent";
2645    parts{
2646       part{ name:"elm.swallow.content";
2647          type: SWALLOW;
2648          scale: 1;
2649          description { state: "default" 0.0;
2650          }
2651       }
2652    }
2653 }
2654
2655 #undef POPUP_ITEM_STATE_ENABLED
2656 #undef POPUP_ITEM_STATE_DISABLED