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