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