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