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