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