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