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