fix manifest - remove unnecessary labels
[apps/core/preloaded/quickpanel.git] / data / quickpanel_theme_element.edc
1 #define SLIDER_INDICATOR_TEXT_COLOR_INC      255 255 255 255
2 #define SLIDER_UNITS_TEXT_COLOR_INC      0 0 0 255
3 #define SLIDER_UNITS_TEXT_SIZE_INC  30
4 #define SLIDER_INDICATOR_TEXT_SIZE_INC  26
5 #define SLIDER_BASE_HEIGHT_INC  16
6 #define SLIDER_BASE_MIN_WIDTH_INC 375
7 #define SLIDER_BASE_HEIGHT_INC  16
8 #define SLIDER_SWALLOW_BAR_MIN_WIDTH_INC  20
9 #define SLIDER_SWALLOW_BAR_HEIGHT_INC  72
10 #define SLIDER_INDICATOR_MAX_WIDTH_INC 52
11 #define SLIDER_INDICATOR_WIDTH_INC 52
12 #define SLIDER_INDICATOR_HEIGHT_INC 72
13
14    group { name: "elm/slider/horizontal/indicator/default";
15            alias: "elm/slider/horizontal/indicator/disabled";
16            alias: "elm/slider/vertical/indicator/default";
17            alias: "elm/slider/vertical/indicator/disabled";
18            alias: "elm/slider/horizontal/indicator/tap_to_drag";
19       images {
20          image: "00_slider_handle.png" COMP;
21          image: "00_slider_handle_dim.png" COMP;
22          image: "00_slider_handle_press.png" COMP;
23       }
24       parts {
25          part { name: "button_events";
26             type: RECT;
27             mouse_events: 1;
28             scale: 1;
29             description { state: "default" 0.0;
30                fixed: 1 1;
31                min: 2*SLIDER_INDICATOR_WIDTH_INC 1.5*SLIDER_INDICATOR_HEIGHT_INC;
32                aspect: 1.0 1.0;
33                aspect_preference: VERTICAL;
34                color: 0 0 0 0;
35             }
36             description { state: "disabled" 0.0;
37                inherit: "default" 0.0;
38                visible: 0;
39             }
40          }
41          part { name: "button0";
42             mouse_events: 0;
43             scale: 1;
44             description { state: "default" 0.0;
45                fixed: 1 1;
46                min: SLIDER_INDICATOR_WIDTH_INC SLIDER_INDICATOR_HEIGHT_INC;
47                max: SLIDER_INDICATOR_MAX_WIDTH_INC SLIDER_INDICATOR_HEIGHT_INC;
48                rel1 {
49                   to: "elm.indicator";
50                   offset: 0 0;
51                }
52                rel2 {
53                   to: "elm.indicator";
54                   offset: 0 0;
55                }
56                image {
57                   normal: "00_slider_handle.png";
58                   border: 1 1 1 1;
59                   border_scale: 1;
60                }
61             }
62             description { state: "pressed" 0.0;
63                inherit: "default" 0.0;
64                image {
65                   normal: "00_slider_handle_press.png";
66                }
67             }
68             description { state: "disabled" 0.0;
69                inherit: "default" 0.0;
70                image {
71                   normal: "00_slider_handle_dim.png";
72                }
73             }
74          }
75          part { name: "elm.indicator";
76             type: TEXT;
77             mouse_events: 0;
78             scale: 1;
79             description { state: "default" 0.0;
80                visible: 1;
81                color: SLIDER_INDICATOR_TEXT_COLOR_INC;
82                text {
83                   font: "Tizen:style=Medium";
84                   size: SLIDER_INDICATOR_TEXT_SIZE_INC;
85                   min: 1 1;
86                   align: 0.5 0.5;
87                   text_class: "tizen";
88                }
89             }
90             description { state: "hide" 0.0;
91                inherit: "default" 0.0;
92                visible: 0;
93              }
94          }
95       }
96       programs {
97          program { name: "set_val_show";
98             signal: "elm,state,val,show";
99             source: "elm";
100             action:  STATE_SET "default" 0.0;
101             target: "elm.indicator";
102          }
103          program { name: "set_val_hide";
104             signal: "elm,state,val,hide";
105             source: "elm";
106             action:  STATE_SET "hide" 0.0;
107             target: "elm.indicator";
108          }
109          program { name: "slider_disable";
110             signal: "elm,state,disabled";
111             source: "elm";
112             action:  STATE_SET "disabled" 0.0;
113             target: "button0";
114             target: "button_events";
115          }
116          program { name: "slider_enable";
117             signal: "elm,state,enabled";
118             source: "elm";
119             action:  STATE_SET "default" 0.0;
120             target: "button0";
121             target: "button_events";
122          }
123          program { name: "mouse_down";
124             signal: "mouse,down,*";
125             source: "button_events";
126             action:  STATE_SET "pressed" 0.0;
127             target: "button0";
128          }
129          program { name: "mouse_up";
130             signal: "mouse,up,*";
131             source: "button_events";
132             action:  STATE_SET "default" 0.0;
133             target: "button0";
134          }
135       }
136    }
137
138    group { name: "elm/slider/horizontal/quickpanel";
139            alias: "elm/slider/horizontal/disabled";
140       images {
141          image: "00_progress_bg.png" COMP;
142          image: "00_progress_bar.png" COMP;
143       }
144       script {
145          public invert_on = 0;
146          public set_invert_on() {
147             set_state(PART:"level", "inverted", 0.0);
148             set_state(PART:"level2", "inverted", 0.0);
149             set_int(invert_on, 1);
150          }
151          public set_invert_off() {
152             set_state(PART:"level", "default", 0.0);
153             set_state(PART:"level2", "default", 0.0);
154             set_int(invert_on, 0);
155          }
156          public thumb_down() {
157             if(get_int(invert_on) == 0)
158                set_state(PART:"level", "pressed", 0.0);
159             else if(get_int(invert_on) == 1)
160                set_state(PART:"level2", "pressed", 0.0);
161             }
162          public thumb_up() {
163             if(get_int(invert_on) == 0)
164                set_state(PART:"level", "default", 0.0);
165             else if(get_int(invert_on) == 1)
166                set_state(PART:"level2", "inverted", 0.0);
167             }
168          }
169          parts {
170             part { name: "base";
171                mouse_events: 0;
172                scale: 1;
173                description { state: "default" 0.0;
174                   max: 99999 SLIDER_BASE_HEIGHT_INC;
175                   rel1.to: "bg";
176                   rel2.to: "bg";
177                   image.normal: "00_progress_bg.png";
178                   image.border: 10 10 0 0;
179                   image.border_scale: 1;
180                }
181             }
182             part { name: "level";
183                mouse_events: 0;
184                scale: 1;
185                clip_to: "clipper";
186                description { state: "default" 0.0;
187                   fixed: 1 1;
188                   rel1.to: "base";
189                   rel2 {
190                      to_y: "base";
191                      to_x: "elm.dragable.slider";
192                      relative: 0.5 1.0;
193                   }
194                   image.normal: "00_progress_bar.png";
195                   image.border: 10 10 0 0;
196                   image.border_scale: 1;
197                }
198                description { state: "inverted" 0.0;
199                   inherit: "default" 0.0;
200                   visible: 0;
201                }
202                description { state: "pressed" 0.0;
203                   inherit: "default" 0.0;
204                   image.normal: "00_progress_bar.png";
205                }
206             }
207             part { name: "level2";
208                mouse_events: 0;
209                scale: 1;
210                clip_to: "clipper";
211                description { state: "default" 0.0;
212                   fixed: 1 1;
213                   visible: 0;
214                   rel1 {
215                      to_y: "base";
216                      to_x: "elm.dragable.slider";
217                      relative: 0.5 0.0;
218                   }
219                   rel2.to: "base";
220                   image.normal: "00_progress_bar.png";
221                   image.border: 0 0 4 4;
222                   image.border_scale: 1;
223                }
224                description { state: "inverted" 0.0;
225                   inherit: "default" 0.0;
226                   visible: 1;
227                }
228                description { state: "pressed" 0.0;
229                   inherit: "default" 0.0;
230                   visible: 1;
231                   image.normal: "00_progress_bar.png";
232                }
233             }
234             part { name: "bg";
235                type: RECT;
236                mouse_events: 0;
237                scale: 1;
238                description { state: "default" 0.0;
239                   visible: 0;
240                   rel1.to: "elm.swallow.bar";
241                   rel2.to: "elm.swallow.bar";
242                }
243             }
244             part { name: "elm.swallow.bar";
245                type: SWALLOW;
246                mouse_events: 0;
247                scale: 1;
248                description { state: "default" 0.0;
249                   min: SLIDER_SWALLOW_BAR_MIN_WIDTH_INC SLIDER_SWALLOW_BAR_HEIGHT_INC;
250                   max: 99999 SLIDER_SWALLOW_BAR_HEIGHT_INC;
251                   align: 1.0 0.5;
252                   rel1 {
253                      to_x: "bar_left_padding";
254                      relative: 1.0 0.0;
255                   }
256                   rel2 {
257                      to_x: "bar_right_padding";
258                      relative: 0.0 1.0;
259                   }
260                }
261             }
262             part {
263                name: "bar_left_padding";
264                type: RECT;
265                scale: 1;
266                description {
267                   state: "default" 0.0;
268                   visible: 0;
269                   min: 16 0;
270                   fixed: 1 1;
271                   rel1 {
272                      relative: 1.0  0.5;
273                      to_x: "elm.text";
274                   }
275                   rel2 {
276                      relative: 1.0  0.5;
277                      to_x: "elm.text";
278                   }
279                   align: 0.0 0.5;
280                }
281             }
282             part {
283                name: "bar_right_padding";
284                type: RECT;
285                scale: 1;
286                description {
287                   state: "default" 0.0;
288                   visible: 0;
289                   min: 16 0;
290                   fixed: 1 1;
291                   rel1 {
292                      relative: 0.0  0.5;
293                      to_x: "elm.units";
294                   }
295                   rel2 {
296                      relative: 0.0  0.5;
297                      to_x: "elm.units";
298                   }
299                   align: 1.0 0.5;
300                }
301             }
302             part { name: "elm.swallow.icon";
303                type: SWALLOW;
304                scale: 1;
305                description { state: "default" 0.0;
306                   visible: 0;
307                   align: 0.0 0.5;
308                   rel1 {
309                      to_y: "elm.swallow.bar";
310                   }
311                   rel2 {
312                      relative: 0.0 1.0;
313                      to_y: "elm.swallow.bar";
314                   }
315                }
316                description { state: "visible" 0.0;
317                   inherit: "default" 0.0;
318                   visible: 1;
319                   aspect: 1.0 1.0;
320                   aspect_preference: VERTICAL;
321                }
322             }
323             part { name: "elm.text";
324                type: TEXT;
325                mouse_events: 0;
326                scale: 1;
327                description { state: "default" 0.0;
328                   visible: 0;
329                   fixed: 1 1;
330                   align: 0.0 0.5;
331                   rel1.to_x: "elm.swallow.icon";
332                   rel1.relative: 1.0 0.0;
333                   rel2.to_x: "elm.swallow.icon";
334                   color: SLIDER_UNITS_TEXT_COLOR_INC;
335                   text {
336                      font: "Tizen:style=Medium";
337                      size: SLIDER_UNITS_TEXT_SIZE_INC;
338                      min: 0 0;
339                      align: 0.0 0.5;
340                      text_class: "tizen";
341                   }
342                }
343                description { state: "visible" 0.0;
344                   inherit: "default" 0.0;
345                   visible: 1;
346                   text.min: 1 1;
347                }
348             }
349             part { name: "elm.swallow.end";
350                type: SWALLOW;
351                scale: 1;
352                description { state: "default" 0.0;
353                   visible: 0;
354                   align: 1.0 0.5;
355                   rel1 {
356                      relative: 1.0 0.0;
357                      to_y: "elm.swallow.bar";
358                   }
359                   rel2 {
360                      relative: 1.0 1.0;
361                      to_y: "elm.swallow.bar";
362                   }
363                }
364                description { state: "visible" 0.0;
365                   inherit: "default" 0.0;
366                   visible: 1;
367                   aspect: 1.0 1.0;
368                   aspect_preference: VERTICAL;
369                }
370             }
371             part { name: "units";
372                mouse_events: 0;
373                scale: 1;
374                description { state: "default" 0.0;
375                   visible: 0;
376                   rel1 {
377                      to_x: "elm.units";
378                   }
379                }
380                description { state: "visible" 0.0;
381                   inherit: "default" 0.0;
382                   visible: 1;
383                }
384             }
385             part { name: "elm.units";
386                type: TEXT;
387                mouse_events: 0;
388                scale: 1;
389                description { state: "default" 0.0;
390                   visible: 0;
391                   fixed: 1 1;
392                   align: 1.0 0.5;
393                   rel1.to_x: "elm.swallow.end";
394                   rel2.relative: 0.0 1.0;
395                   rel2.to_x: "elm.swallow.end";
396                   color: SLIDER_UNITS_TEXT_COLOR_INC;
397                   text {
398                      font: "Tizen:style=Bold";
399                      size: SLIDER_UNITS_TEXT_SIZE_INC;
400                      min: 0 0;
401                      align: 0.0 0.5;
402                      text_class: "tizen";
403                   }
404                }
405                description { state: "visible" 0.0;
406                   inherit: "default" 0.0;
407                   fixed: 1 1;
408                   visible: 1;
409                   text.min: 1 1;
410                }
411             }
412             part { name: "elm.dragable.slider";
413                type: GROUP;
414                source: "elm/slider/horizontal/indicator/default";
415                mouse_events: 1;
416                scale: 1;
417                dragable {
418                   x: 1 1 0;
419                   y: 0 0 0;
420                   confine: "bg";
421                }
422                description { state: "default" 0.0;
423                   min: SLIDER_INDICATOR_WIDTH_INC SLIDER_INDICATOR_HEIGHT_INC;
424                   fixed: 1 1;
425                   align: 0.5 0.5;
426                   color: 0 0 0 0;
427                }
428             }
429             part { name: "disabler";
430                type: RECT;
431                mouse_events: 1;
432                repeat_events: 0;
433                scale: 1;
434                description { state: "default" 0.0;
435                   visible: 0;
436                   color: 0 0 0 0;
437                }
438                description { state: "disabled" 0.0;
439                   inherit: "default" 0.0;
440                   visible: 1;
441                }
442             }
443             part { name: "clipper";
444                type: RECT;
445                description { state: "default" 0.0;
446                   color: 255 255 255 255;
447                }
448                description { state: "disabled" 0.0;
449                   color: 255 255 255 102;
450                }
451             }
452          }
453          programs {
454             program { name: "text_show";
455             signal: "elm,state,text,visible";
456             source: "elm";
457             action:  STATE_SET "visible" 0.0;
458             target: "elm.text";
459          }
460          program { name: "text_hide";
461             signal: "elm,state,text,hidden";
462             source: "elm";
463             action:  STATE_SET "default" 0.0;
464             target: "elm.text";
465          }
466          program { name: "icon_show";
467             signal: "elm,state,icon,visible";
468             source: "elm";
469             action:  STATE_SET "visible" 0.0;
470             target: "elm.swallow.icon";
471          }
472          program { name: "icon_hide";
473             signal: "elm,state,icon,hidden";
474             source: "elm";
475             action:  STATE_SET "default" 0.0;
476             target: "elm.swallow.icon";
477          }
478          program { name: "end_show";
479             signal: "elm,state,end,visible";
480             source: "elm";
481             action:  STATE_SET "visible" 0.0;
482             target: "elm.swallow.end";
483          }
484          program { name: "end_hide";
485             signal: "elm,state,end,hidden";
486             source: "elm";
487             action:  STATE_SET "default" 0.0;
488             target: "elm.swallow.end";
489          }
490          program { name: "units_show";
491             signal: "elm,state,units,visible";
492             source: "elm";
493             action:  STATE_SET "visible" 0.0;
494             target: "elm.units";
495             target: "units";
496          }
497          program { name: "units_hide";
498             signal: "elm,state,units,hidden";
499             source: "elm";
500             action:  STATE_SET "default" 0.0;
501             target: "elm.units";
502             target: "units";
503          }
504          program { name: "invert_on";
505             signal: "elm,state,inverted,on";
506             source: "elm";
507             script {
508                set_invert_on();
509             }
510          }
511          program { name: "invert_off";
512             signal: "elm,state,inverted,off";
513             source: "elm";
514             script {
515                set_invert_off();
516             }
517          }
518          program { name: "val_show";
519             signal: "mouse,down,*";
520             source: "elm.dragable.slider";
521             script {
522                thumb_down();
523             }
524          }
525          program { name: "val_hide";
526             signal: "mouse,up,*";
527             source: "elm.dragable.slider";
528             script {
529                thumb_up();
530             }
531          }
532          program { name: "slider_disable";
533             signal: "elm,state,disabled";
534             source: "elm";
535             action:  STATE_SET "disabled" 0.0;
536             target: "disabler";
537             target: "clipper";
538          }
539          program { name: "slider_enable";
540             signal: "elm,state,enabled";
541             source: "elm";
542             action:  STATE_SET "default" 0.0;
543             target: "disabler";
544             target: "clipper";
545          }
546       }
547    }
548
549 #define CHECK_STATE_DEFAULT 0
550 #define CHECK_STATE_VISIBLE 1
551 #define CHECK_STATE_DISABLED_VISIBLE 2
552 #define CHECK_STATE_DISABLED 3
553
554 #define CHECK_DEFAULT_TEXT_NORMAL_COLOR_INC        50 50 50 255
555 #define CHECK_DEFAULT_TEXT_PRESSED_COLOR_INC      248 246 239 255
556 #define CHECK_DEFAULT_TEXT_DISABLED_COLOR_INC          50 50 50 76
557 #define CHECK_DISCLIP_NORMAL_COLOR_INC             255 255 255 255
558 #define CHECK_DISCLIP_DISABLED_COLOR_INC           255 255 255 76
559
560 #define CHECK_HIDE 0
561 #define CHECK_SHOW 1
562
563 #define CHECK_STYLE_DEFAULT_BG_NORMAL_MIN_MAX_INC 48 48
564
565 ////////////////////////////////////////////////////////////////////////////////
566 #define CHECK_STYLE_DEFAULT(style_name, min_width, min_height) \
567    group { name: "elm/check/base/"style_name; \
568       images { \
569          image: "00_check_bg.png" COMP; \
570          image: "00_check_bg_press.png" COMP; \
571          image: "00_check_bg_dim.png" COMP; \
572          image: "00_check_checking.png" COMP; \
573          image: "00_check_checking_dim.png" COMP; \
574       } \
575       script { \
576          public check_state = CHECK_STATE_DEFAULT; \
577          public check_visible = CHECK_HIDE; \
578       } \
579       parts { \
580          part { name: "back_bg"; \
581             type: RECT; \
582             scale: 1; \
583             description { state: "default" 0.0; \
584                rel2.relative: 0.0 1.0; \
585                align: 0 0.5; \
586                min: min_width min_height; \
587                fixed: 1 0; \
588                color: 0 0 0 0; \
589             } \
590          } \
591          part { name: "bg"; \
592             mouse_events: 0; \
593             scale: 1; \
594             description { state: "default" 0.0; \
595                min: CHECK_STYLE_DEFAULT_BG_NORMAL_MIN_MAX_INC; \
596                max: CHECK_STYLE_DEFAULT_BG_NORMAL_MIN_MAX_INC; \
597                fixed: 1 1; \
598                rel1.to: "back_bg"; \
599                rel2.to: "back_bg"; \
600                image.normal: "00_check_bg.png"; \
601                fill.smooth : 0; \
602             } \
603             description { state: "visible" 0.0; \
604                inherit: "default" 0.0; \
605             } \
606             description { state: "pressed" 0.0; \
607                inherit: "default" 0.0; \
608                image.normal: "00_check_bg_press.png"; \
609             } \
610             description { state: "disabled" 0.0; \
611                inherit: "default" 0.0; \
612                image.normal: "00_check_bg_dim.png"; \
613             } \
614          } \
615          part { name: "check"; \
616             clip_to: "sequence_clip"; \
617             mouse_events: 0; \
618             scale: 1; \
619             description { state: "default" 0.0; \
620                rel1.to: "bg"; \
621                rel2.to: "bg"; \
622                visible: 0; \
623                image.normal: "00_check_checking.png"; \
624                color: 255 255 255 0; \
625             } \
626             description { state: "visible" 0.0; \
627                inherit: "default" 0.0; \
628                visible: 1; \
629                color: 255 255 255 255; \
630             } \
631             description { state: "disabled_visible" 0.0; \
632                inherit: "default" 0.0; \
633                visible: 1; \
634                image.normal: "00_check_checking_dim.png"; \
635             } \
636          } \
637          part { name: "sequence_clip"; \
638             type: RECT; \
639             mouse_events: 0; \
640             description { state: "default" 0.0; \
641                rel2.relative: 0.0 1.0; \
642                color: 255 255 255 255; \
643             } \
644             description { state: "visible" 0.0; \
645                inherit: "default" 0.0; \
646                rel2.relative: 1.0 1.0; \
647             } \
648          } \
649          part { name: "elm.swallow.content"; \
650             type: SWALLOW; \
651             clip_to: "disclip"; \
652             description { state: "default" 0.0; \
653                fixed: 1 0; \
654                visible: 0; \
655                align: 0.0 0.5; \
656                rel1 { \
657                   to_x: "bg"; \
658                   relative: 1.0 0.0; \
659                   offset: 1 1; \
660                } \
661                rel2 { \
662                   to_x: "bg"; \
663                   relative: 1.0 1.0; \
664                   offset: 2 -2; \
665                } \
666             } \
667             description { state: "visible" 0.0; \
668                inherit: "default" 0.0; \
669                fixed: 1 1; \
670                visible: 1; \
671                aspect: 1.0 1.0; \
672                aspect_preference: VERTICAL; \
673             } \
674             description { state: "disabled" 0.0; \
675                inherit: "default" 0.0; \
676             } \
677             description { state: "disabled_visible" 0.0; \
678                inherit: "default" 0.0; \
679                fixed: 1 1; \
680                visible: 1; \
681                aspect: 1.0 1.0; \
682             } \
683          } \
684          part { name: "elm.text"; \
685             type: TEXTBLOCK; \
686             mouse_events: 0; \
687             clip_to: "disclip"; \
688             scale: 1; \
689             description { state: "default" 0.0; \
690                visible: 0; \
691                fixed: 0 1; \
692                rel1 { \
693                   relative: 1.0 0.5; \
694                   offset: 1 1; \
695                   to_x: "elm.swallow.content"; \
696                } \
697                rel2 { \
698                   relative: 1.0 0.5; \
699                   offset: -2 -2; \
700                } \
701                align: 0.0 0.5; \
702                text { \
703                   style: "check_label_textblock_style"; \
704                   min: 0 0; \
705                } \
706                color: CHECK_DEFAULT_TEXT_NORMAL_COLOR_INC; \
707             } \
708             description { state: "visible" 0.0; \
709                inherit: "default" 0.0; \
710                visible: 1; \
711                text.min: 1 1; \
712             } \
713             description { state: "disabled" 0.0; \
714                inherit: "default" 0.0; \
715             } \
716             description { state: "disabled_visible" 0.0; \
717                inherit: "default" 0.0; \
718                visible: 1; \
719                text.min: 1 1; \
720                color: CHECK_DEFAULT_TEXT_DISABLED_COLOR_INC; \
721             } \
722          } \
723          part { name: "events1"; \
724             type: RECT; \
725             ignore_flags: ON_HOLD; \
726             description { state: "default" 0.0; \
727                color: 0 0 0 0; \
728             } \
729          } \
730          part { name: "events2"; \
731             type: RECT; \
732             repeat_events: 1; \
733             description { state: "default" 0.0; \
734                color: 0 0 0 0; \
735             } \
736          } \
737          part { name: "disclip"; \
738             type: RECT; \
739             mouse_events: 0; \
740             description { state: "default" 0.0; \
741                color: CHECK_DISCLIP_NORMAL_COLOR_INC; \
742             } \
743             description { state: "disabled" 0.0; \
744                inherit: "default" 0.0; \
745                color: CHECK_DISCLIP_DISABLED_COLOR_INC; \
746             } \
747          } \
748          part { name: "disabler"; \
749             type: RECT; \
750             description { state: "default" 0.0; \
751                color: 0 0 0 0; \
752                visible: 0; \
753             } \
754             description { state: "disabled" 0.0; \
755                inherit: "default" 0.0; \
756                visible: 1; \
757             } \
758          } \
759       } \
760       programs { \
761          program { name: "show"; \
762             signal: "show"; \
763             script { \
764                set_int(check_visible, CHECK_SHOW); \
765             } \
766          } \
767          program { name: "hide"; \
768             signal: "hide"; \
769             script { \
770                set_int(check_visible, CHECK_HIDE); \
771             } \
772          } \
773          program { name: "click"; \
774             signal: "mouse,clicked,1"; \
775             source: "events1"; \
776             action: SIGNAL_EMIT "elm,action,check,toggle" ""; \
777          } \
778          program { name: "bg_normal"; \
779             signal: "mouse,up,1"; \
780             source: "events2"; \
781             action: STATE_SET "default" 0.0; \
782             target: "bg"; \
783          } \
784          program { name: "pressed"; \
785             signal: "mouse,down,1"; \
786             source: "events2"; \
787             action: STATE_SET "pressed" 0.0; \
788             target: "bg"; \
789          } \
790          program { name: "mouse,out"; \
791             signal: "mouse,out"; \
792             source: "events2"; \
793             script { \
794                if (get_int(check_state) == CHECK_STATE_VISIBLE) \
795                  { \
796                     set_state(PART:"check", "visible", 0.0); \
797                     set_state(PART:"sequence_clip", "visible", 0.0); \
798                  } \
799                else \
800                  { \
801                     set_state(PART:"check", "default", 0.0); \
802                     set_state(PART:"sequence_clip", "default", 0.0); \
803                  } \
804             } \
805          } \
806          program { name: "check_on"; \
807             signal: "elm,state,check,on"; \
808             source: "elm"; \
809             script { \
810                set_int(check_state, CHECK_STATE_VISIBLE); \
811                if (get_int(check_visible) == CHECK_SHOW) \
812                  { \
813                     run_program(PROGRAM:"check_show_effect"); \
814                     run_program(PROGRAM:"check_draw_effect"); \
815                  } \
816                else \
817                  { \
818                     set_state(PART:"check", "visible", 0.0); \
819                     set_state(PART:"sequence_clip", "visible", 0.0); \
820                  } \
821             } \
822          } \
823          program { name: "check_off"; \
824             signal: "elm,state,check,off"; \
825             source: "elm"; \
826             action: STATE_SET "default" 0.0; \
827             target: "check"; \
828             script { \
829                if (get_int(check_state) == CHECK_STATE_VISIBLE) \
830                  { \
831                     set_int(check_state, CHECK_STATE_DEFAULT); \
832                     set_state(PART:"check", "default", 0.0); \
833                     set_state(PART:"sequence_clip", "default", 0.0); \
834                  } \
835             } \
836          } \
837          program { name: "check_show_effect"; \
838             action: STATE_SET "visible" 0.0; \
839             transition: LINEAR 0.233; \
840             target: "check"; \
841          } \
842          program { name: "check_draw_effect"; \
843             action: STATE_SET "visible" 0.0; \
844             transition: LINEAR 0.267; \
845             target: "sequence_clip"; \
846          } \
847          program { name: "text_show"; \
848             signal: "elm,state,text,visible"; \
849             source: "elm"; \
850             action: STATE_SET "visible" 0.0; \
851             target: "elm.text"; \
852          } \
853          program { name: "text_hide"; \
854             signal: "elm,state,text,hidden"; \
855             source: "elm"; \
856             action: STATE_SET "default" 0.0; \
857             target: "elm.text"; \
858          } \
859          program { name: "icon_show"; \
860             signal: "elm,state,icon,visible"; \
861             source: "elm"; \
862             action: STATE_SET "visible" 0.0; \
863             target: "elm.swallow.content"; \
864          } \
865          program { name: "icon_hide"; \
866             signal: "elm,state,icon,hidden"; \
867             source: "elm"; \
868             action: STATE_SET "default" 0.0; \
869             target: "elm.swallow.content"; \
870          } \
871          program { name: "disable"; \
872             signal: "elm,state,disabled"; \
873             source: "elm"; \
874             action: STATE_SET "disabled" 0.0; \
875             target: "disabler"; \
876             target: "disclip"; \
877             target: "bg"; \
878             after: "disable_text"; \
879          } \
880          program { name: "disable_text"; \
881             script { \
882                new st[31]; \
883                new Float:vl; \
884                get_state(PART:"elm.text", st, 30, vl); \
885                if (!strcmp(st, "visible")) \
886                  set_state(PART:"elm.text", "disabled_visible", 0.0); \
887                else \
888                  set_state(PART:"elm.text", "disabled", 0.0); \
889                get_state(PART:"elm.swallow.content", st, 30, vl); \
890                if (!strcmp(st, "visible")) \
891                  set_state(PART:"elm.swallow.content", "disabled_visible", 0.0); \
892                else \
893                  set_state(PART:"elm.swallow.content", "disabled", 0.0); \
894                get_state(PART:"check", st, 30, vl); \
895                if (!strcmp(st, "visible")) \
896                  { \
897                     set_state(PART:"check", "disabled_visible", 0.0); \
898                     set_int(check_state, CHECK_STATE_DISABLED_VISIBLE); \
899                  } \
900             } \
901          } \
902          program { name: "enable"; \
903             signal: "elm,state,enabled"; \
904             source: "elm"; \
905             action: STATE_SET "default" 0.0; \
906             target: "disabler"; \
907             target: "disclip"; \
908             target: "bg"; \
909             after: "enable_text"; \
910          } \
911          program { name: "enable_text"; \
912             script { \
913                new st[31]; \
914                new Float:vl; \
915                get_state(PART:"elm.text", st, 30, vl); \
916                if (!strcmp(st, "disabled_visible")) \
917                  set_state(PART:"elm.text", "visible", 0.0); \
918                else \
919                  set_state(PART:"elm.text", "default", 0.0); \
920                get_state(PART:"elm.swallow.content", st, 30, vl); \
921                if (!strcmp(st, "visible")) \
922                  set_state(PART:"elm.swallow.content", "visible", 0.0); \
923                else \
924                  set_state(PART:"elm.swallow.content", "default", 0.0); \
925                get_state(PART:"check", st, 30, vl); \
926                if (!strcmp(st, "disabled_visible")) \
927                  { \
928                     set_state(PART:"check", "visible", 0.0); \
929                     set_state(PART:"sequence_clip", "visible", 0.0); \
930                     set_int(check_state, CHECK_STATE_VISIBLE); \
931                  } \
932                else \
933                  set_int(check_state, CHECK_STATE_DEFAULT); \
934             } \
935          } \
936       } \
937    }\
938
939 CHECK_STYLE_DEFAULT("quickpanel", 48, 48)
940
941 #define PROGRESSBAR_STATUS_TEXT_FONT_SIZE_INC 20
942 #define PROGRESSBAR_LIST_PROGRESS_STYLE_TEXT_COLOR_INC          128 128 128 255
943 #define PROGRESSBAR_LIST_PROGRESS_STYLE_STATUS_TEXT_COLOR_INC          128 128 128 255
944 #define PROGRESSBAR_LIST_PROGRESS_HEIGHT_INC 20
945
946    group { name: "elm/progressbar/horizontal/quickpanel/list_progress";
947       images {
948          image: "quick_progress.9.png" COMP;
949          image: "quick_progress_bg.9.png" COMP;
950       }
951       parts {
952          part { name: "elm.padding.left";
953             type: RECT;
954             scale: 1;
955             description {
956                state: "default" 0.0;
957                min: 0 0;
958                fixed: 1 0;
959                rel1 {
960                   relative: 0.0  0.0;
961                   offset: 0 0;
962                }
963                rel2 {
964                   relative: 0.0  1.0;
965                   offset: 0 0;
966                }
967                visible: 0;
968                align: 0.0 0.0;
969             }
970          }
971          part { name: "elm.padding.right";
972             type: RECT;
973             scale: 1;
974             description {
975                state: "default" 0.0;
976                min: 0 0;
977                fixed: 1 0;
978                rel1 {
979                   relative: 1.0  0.0;
980                   offset: 0 0;
981                }
982                rel2 {
983                   relative: 1.0  1.0;
984                   offset:   0   0;
985                }
986                visible: 0;
987                align: 1.0 0.0;
988             }
989          }
990          part { name: "elm.background.progressbar";
991             type: RECT;
992             mouse_events: 0;
993             scale: 1;
994             description {
995                state: "default" 0.0;
996                rel1 {
997                   to_x: "elm.padding.left";
998                   relative: 1.0 0.0;
999                   offset: 0 0;
1000                }
1001                rel2 {
1002                   to_x: "elm.padding.right";
1003                   relative: 0.0 1.0;
1004                   offset: 0 0;
1005                }
1006             }
1007          }
1008          part { name: "elm.swallow.bar";
1009             mouse_events: 0;
1010             scale: 1;
1011             type: SWALLOW;
1012             description {
1013                min: 1 PROGRESSBAR_LIST_PROGRESS_HEIGHT_INC;
1014                max: 99999 PROGRESSBAR_LIST_PROGRESS_HEIGHT_INC;
1015                state: "default" 0.0;
1016                rel1 {
1017                   to: "elm.background.progressbar";
1018                   relative: 0.0 0.0;
1019                }
1020                rel2 {
1021                   to: "elm.background.progressbar";
1022                   relative: 1.0 1.0;
1023                }
1024             }
1025          }
1026          part { name: "elm.swallow.content";
1027             type: SWALLOW;
1028             scale: 1;
1029             description { state: "default" 0.0;
1030                visible: 0;
1031                align: 0.0 0.5;
1032                rel1 {
1033                   offset: 0 0;
1034                   to_y: "elm.background.progressbar";
1035                }
1036                rel2 {
1037                   offset: 0 -1;
1038                   relative: 0.0 1.0;
1039                   to_y: "elm.background.progressbar";
1040                }
1041             }
1042             description { state: "visible" 0.0;
1043                inherit: "default" 0.0;
1044                visible: 1;
1045                aspect: 1.0 1.0;
1046                aspect_preference: VERTICAL;
1047                rel2.offset: 4 -1;
1048             }
1049          }
1050          part { name: "elm.text";
1051             type: TEXT;
1052             mouse_events: 0;
1053             scale: 1;
1054             description { state: "default" 0.0;
1055                visible: 0;
1056                fixed: 1 1;
1057                align: 0.0 0.5;
1058                rel1.to_x: "elm.swallow.content";
1059                rel1.relative: 1.0 0.0;
1060                rel2.to_x: "elm.swallow.content";
1061                rel2.relative: 1.0 1.0;
1062                color: PROGRESSBAR_LIST_PROGRESS_STYLE_TEXT_COLOR_INC;
1063                text {
1064                   font: "Tizen:style=Medium";
1065                   size: PROGRESSBAR_STATUS_TEXT_FONT_SIZE_INC;
1066                   min: 0 0;
1067                   align: 0.0 0.5;
1068                   text_class: "tizen";
1069                }
1070             }
1071             description { state: "visible" 0.0;
1072                inherit: "default" 0.0;
1073                visible: 0;
1074                text.min: 1 1;
1075             }
1076          }
1077          part { name: "background";
1078             mouse_events: 0;
1079             scale: 1;
1080             clip_to: "elm.background.progressbar";
1081             description {
1082                state: "default" 0.0;
1083                rel1 {
1084                   to: "elm.swallow.bar";
1085                   relative: 0.0 0.0;
1086                }
1087                rel2 {
1088                   to: "elm.swallow.bar";
1089                   relative: 1.0 1.0;
1090                }
1091                image {
1092                   normal: "quick_progress_bg.9.png";
1093                   border: 10 10 0 0;
1094                }
1095             }
1096          }
1097          part { name: "elm.text.status";
1098             type: TEXT;
1099             mouse_events: 0;
1100             scale: 1;
1101             description { state: "default" 0.0;
1102                fixed: 1 1;
1103                visible: 0;
1104                rel1 {
1105                   to: "background";
1106                   relative: 0.5 0.5;
1107                }
1108                rel2 {
1109                   to: "background";
1110                   relative: 0.5 0.5;
1111                }
1112                text {
1113                   font: "Tizen:style=Medium";
1114                   size: PROGRESSBAR_STATUS_TEXT_FONT_SIZE_INC;
1115                   min: 0 0;
1116                   align: 0.5 0.0;
1117                   text_class: "tizen";
1118                }
1119                color: PROGRESSBAR_LIST_PROGRESS_STYLE_TEXT_COLOR_INC;
1120             }
1121             description { state: "show" 0.0;
1122                inherit: "default" 0.0;
1123                visible: 0;
1124                text.min: 1 1;
1125             }
1126          }
1127          part { name: "elm.progress.progressbar";
1128             mouse_events: 0;
1129             scale: 1;
1130             clip_to: "elm.background.progressbar";
1131             description {
1132                state: "default" 0.0;
1133                min: 0 0;
1134                fixed: 1 1;
1135                rel1 {
1136                   to: "elm.swallow.bar";
1137                   relative: 0.0 0.0;
1138                }
1139                rel2 {
1140                   to_y: "elm.swallow.bar";
1141                   to_x: "elm.cur.progressbar";
1142                   offset: -1 -1;
1143                }
1144                image {
1145                   normal: "quick_progress.9.png";
1146                   border: 10 10 0 0;
1147                }
1148             }
1149             description {
1150                state: "invert" 0.0;
1151                inherit: "default" 0.0;
1152                rel1 {
1153                   to_y: "elm.swallow.bar";
1154                   to_x: "elm.cur.progressbar";
1155                }
1156                rel2 {
1157                   to: "elm.swallow.bar";
1158                   relative: 1.0 1.0;
1159                }
1160             }
1161             description {
1162                state: "state_begin" 0.0;
1163                inherit: "default" 0.0;
1164                rel1 {
1165                   to: "elm.swallow.bar";
1166                   relative: 0.0 0.0;
1167                }
1168                rel2 {
1169                   to: "elm.swallow.bar";
1170                   relative: 0.1 1.0;
1171                }
1172             }
1173             description {
1174                state: "state_end" 0.0;
1175                inherit: "default" 0.0;
1176                rel1 {
1177                   to: "elm.swallow.bar";
1178                   relative: 0.9 0.0;
1179                }
1180                rel2 {
1181                   to: "elm.swallow.bar";
1182                   relative: 1.0 1.0;
1183                }
1184             }
1185          }
1186          part { name: "text-bar";
1187             type: TEXT;
1188             mouse_events: 0;
1189             scale: 1;
1190             clip_to: "progress-rect";
1191             //effect: SOFT_SHADOW;
1192             scale: 0;
1193             description { state: "default" 0.0;
1194                align: 0.0 0.0;
1195                fixed: 1 1;
1196                visible: 0;
1197                rel1.to: "elm.text.status";
1198                rel1.offset: -1 -1;
1199                rel2.to: "elm.text.status";
1200                text {
1201                   text_source: "elm.text.status";
1202                   font: "Tizen:style=Medium";
1203                   size: PROGRESSBAR_STATUS_TEXT_FONT_SIZE_INC;
1204                   min: 0 0;
1205                   align: 0.0 0.0;
1206                   text_class: "tizen";
1207                }
1208                color: PROGRESSBAR_LIST_PROGRESS_STYLE_STATUS_TEXT_COLOR_INC;
1209             }
1210             description { state: "show" 0.0;
1211                inherit: "default" 0.0;
1212                visible: 0;
1213                text.min: 1 1;
1214             }
1215          }
1216          part { name: "elm.cur.progressbar";
1217             mouse_events: 0;
1218             scale: 1;
1219             dragable {
1220                confine: "background";
1221                x: 1 1 1;
1222                y: 0 0 0;
1223             }
1224             description { state: "default" 0.0;
1225                min: 0 28;
1226                fixed: 1 1;
1227                visible: 0;
1228                rel1 {
1229                   to: "background";
1230                   relative: 0 0;
1231                }
1232                rel2.to: "background";
1233            }
1234          }
1235          part { name: "progress-rect";
1236             type: RECT;
1237             mouse_events: 0;
1238             scale: 1;
1239             description {
1240                state: "default" 0.0;
1241                rel1.to: "elm.progress.progressbar";
1242                rel2.to: "elm.progress.progressbar";
1243             }
1244          }
1245       }
1246       programs {
1247          program { name: "label_show";
1248             signal: "elm,state,text,visible";
1249             source: "elm";
1250             action:  STATE_SET "visible" 0.0;
1251             target: "elm.text";
1252          }
1253          program { name: "label_hide";
1254             signal: "elm,state,text,hidden";
1255             source: "elm";
1256             action:  STATE_SET "default" 0.0;
1257             target: "elm.text";
1258          }
1259          program { name: "icon_show";
1260             signal: "elm,state,icon,visible";
1261             source: "elm";
1262             action:  STATE_SET "visible" 0.0;
1263             target: "elm.swallow.content";
1264          }
1265          program { name: "icon_hide";
1266             signal: "elm,state,icon,hidden";
1267             source: "elm";
1268             action:  STATE_SET "default" 0.0;
1269             target: "elm.swallow.content";
1270          }
1271          program { name: "units_show";
1272             signal: "elm,state,units,visible";
1273             source: "elm";
1274             action:  STATE_SET "show" 0.0;
1275             target: "text-bar";
1276             target: "elm.text.status";
1277          }
1278          program { name: "units_hide";
1279             signal: "elm,state,units,hidden";
1280             source: "elm";
1281             action:  STATE_SET "default" 0.0;
1282             target: "text-bar";
1283             target: "elm.text.status";
1284          }
1285          program { name: "slide_to_end";
1286             action:  STATE_SET "state_end" 0.0;
1287             transition: LINEAR 0.5;
1288             target: "elm.progress.progressbar";
1289             after: "slide_to_begin";
1290          }
1291          program { name: "slide_to_begin";
1292             signal: "elm,state,slide,begin";
1293             action: STATE_SET "state_begin" 0.0;
1294             target: "elm.progress.progressbar";
1295             transition: LINEAR 0.5;
1296             after: "slide_to_end";
1297          }
1298          program { name: "start_pulse";
1299             signal: "elm,state,pulse,start";
1300             source: "elm";
1301            // after: "slide_to_end";
1302          }
1303          program { name: "stop_pulse";
1304             signal: "elm,state,pulse,stop";
1305             source: "elm";
1306             action: ACTION_STOP;
1307             target: "slide_to_begin";
1308             target: "slide_to_end";
1309             target: "start_pulse";
1310             //after: "state_pulse";
1311          }
1312          program { name: "state_pulse";
1313             signal: "elm,state,pulse";
1314             source: "elm";
1315             action: STATE_SET "state_begin" 0.0;
1316             target: "elm.progress.progressbar";
1317             after: "units_hide";
1318          }
1319          program { name: "state_fraction";
1320             signal: "elm,state,fraction";
1321             source: "elm";
1322             action: ACTION_STOP;
1323             target: "slide_to_begin";
1324             target: "slide_to_end";
1325             target: "start_pulse";
1326             action: STATE_SET "default" 0.0;
1327             target: "elm.progress.progressbar";
1328          }
1329          program { name: "set_invert_on";
1330             signal: "elm,state,inverted,on";
1331             source: "elm";
1332             action:  STATE_SET "invert" 0.0;
1333             target: "elm.progress.progressbar";
1334          }
1335          program { name: "set_invert_off";
1336             signal: "elm,state,inverted,off";
1337             source: "elm";
1338             action:  STATE_SET "default" 0.0;
1339             target: "elm.progress.progressbar";
1340          }
1341       }
1342    }
1343
1344 #define PROGRESSBAR_LIST_PENDING_HEIGHT_INC 20
1345
1346    group { name: "elm/progressbar/horizontal/quickpanel/pending_list";
1347       images {
1348          image: "quick_progress_unknown_port_01.png" COMP;
1349          image: "quick_progress_unknown_port_02.png" COMP;
1350       }
1351       parts {
1352          part { name: "elm.background.progressbar";
1353             type: RECT;
1354             mouse_events: 0;
1355             scale: 1;
1356             description {
1357                state: "default" 0.0;
1358                rel1 {
1359                   relative: 0.0 0.0;
1360                   offset: 0 0;
1361                }
1362                rel2 {
1363                   relative: 1.0 1.0;
1364                }
1365             }
1366          }
1367          part { name: "elm.swallow.bar";
1368             mouse_events: 0;
1369             scale: 1;
1370             type: SWALLOW;
1371             description {
1372                min: 1 PROGRESSBAR_LIST_PENDING_HEIGHT_INC;
1373                max: 99999 PROGRESSBAR_LIST_PENDING_HEIGHT_INC;
1374                state: "default" 0.0;
1375                rel1 {
1376                   to: "elm.background.progressbar";
1377                   relative: 0.0 0.0;
1378                }
1379                rel2 {
1380                   to: "elm.background.progressbar";
1381                   relative: 1.0 1.0;
1382                }
1383             }
1384          }
1385          part { name: "elm.progress.progressbar";
1386             mouse_events: 0;
1387             scale: 1;
1388             clip_to: "elm.background.progressbar";
1389             description {
1390                state: "default" 0.0;
1391                min: 0 0;
1392                fixed: 1 1;
1393                rel1 {
1394                   to: "elm.swallow.bar";
1395                   relative: 0.0 0.0;
1396                }
1397                rel2 {
1398                   to: "elm.swallow.bar";
1399                   relative: 1.0 1.0;
1400                   offset: -1 -1;
1401                }
1402                image {
1403                   normal: "quick_progress_unknown_port_01.png";
1404                   border: 7 7 0 0;
1405                }
1406             }
1407             description {
1408                state: "state_begin" 0.0;
1409                inherit: "default" 0.0;
1410             }
1411             description {
1412                state: "state_end" 0.0;
1413                inherit: "default" 0.0;
1414                image {
1415                   normal: "quick_progress_unknown_port_02.png";
1416                   border: 7 7 0 0;
1417                }
1418             }
1419          }
1420       }
1421       programs {
1422          program { name: "slide_to_end";
1423             action:  STATE_SET "state_end" 0.0;
1424             in: 0.3 0.0;
1425             target: "elm.progress.progressbar";
1426             after: "slide_to_begin";
1427          }
1428          program { name: "slide_to_begin";
1429             signal: "elm,state,slide,begin";
1430             action: STATE_SET "state_begin" 0.0;
1431             target: "elm.progress.progressbar";
1432             in: 0.3 0.0;
1433             after: "slide_to_end";
1434          }
1435          program { name: "start_pulse";
1436             signal: "elm,state,pulse,start";
1437             source: "elm";
1438             after: "slide_to_end";
1439          }
1440          program { name: "stop_pulse";
1441             signal: "elm,state,pulse,stop";
1442             source: "elm";
1443             action: ACTION_STOP;
1444             target: "slide_to_begin";
1445             target: "slide_to_end";
1446             target: "start_pulse";
1447             after: "init_pulse";
1448          }
1449          program { name: "init_pulse";
1450             action: STATE_SET "default" 0.0;
1451             target: "elm.progress.progressbar";
1452          }
1453       }
1454    }
1455
1456 #define BUTTON_STATE_ENABLED 0
1457 #define BUTTON_STATE_DISABLED 1
1458
1459 #define BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC 58 58 58 255
1460 #define BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC 248 246 239 255
1461 #define BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC 248 246 239 255
1462 #define BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC 58 58 58 76
1463 #define BUTTON_TEXT_STYLE1_BG_MIN_INC 100 74
1464 #define BUTTON_TEXT_STYLE1_VISIBLE_BG_MIN_INC 148 74
1465 #define BUTTON_TEXT_STYLE1_ICONONLY_BG_MIN_INC 74 74
1466 #define BUTTON_TEXT_STYLE1_BG_BORDER_INC 13 13 13 13
1467 #define BUTTON_TEXT_STYLE1_PADDING_MIN_INC 0 0
1468 #define BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC 45 45
1469 #define BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC 4 0
1470 #define BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC 87 87
1471 #define BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC 87 87
1472 #define BUTTON_TEXT_STYLE1_FONT_SIZE_INC 36
1473 #define BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC 255 255 255 255
1474 #define BUTTON_TEXT_SHADOW_DIM_COLOR_INC 255 255 255 255
1475 #define BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC 0 0 0 255
1476 #define BUTTON_DISCLIP_NORMAL_COLOR_INC           255 255 255 255
1477 #define BUTTON_DISCLIP_DISABLED_COLOR_INC         255 255 255 76
1478
1479 ///////////////////////////////////////////////////////////////////////////////////////
1480    group { name: "elm/button/base/quickpanel/icon_only";
1481
1482       images {
1483          image: "00_button_01.png" COMP;
1484          image: "00_button_01_press.png" COMP;
1485          image: "00_button_01_dim.png" COMP;
1486       }
1487       script {
1488          public button_state = BUTTON_STATE_ENABLED;
1489       }
1490       parts {
1491          part { name: "button_image";
1492             scale: 1;
1493             description { state: "default" 0.0;
1494                image {
1495                   border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
1496                }
1497             }
1498             description { state: "clicked" 0.0;
1499                inherit: "default" 0.0;
1500                //image.normal: "00_button_01_press.png";
1501             }
1502             description { state: "disabled" 0.0;
1503                inherit: "default" 0.0;
1504                //image.normal: "00_button_01_dim.png";
1505             }
1506             description { state: "focused" 0.0;
1507                inherit: "default" 0.0;
1508                //image.normal: "00_button_01_press.png";
1509             }
1510          }
1511          part { name: "padding_left_top";
1512             type: RECT;
1513             scale: 1;
1514             mouse_events: 0;
1515             description { state: "default" 0.0;
1516                align: 0.0 0.0;
1517                rel2.relative: 0.0 0.0;
1518                min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
1519                fixed: 1 1;
1520                visible: 0;
1521             }
1522          }
1523          part { name: "bg";
1524             type: RECT;
1525             scale: 1;
1526             mouse_events: 0;
1527             description { state: "default" 0.0;
1528                min: BUTTON_TEXT_STYLE1_BG_MIN_INC;
1529                visible: 0;
1530             }
1531             description { state: "visible" 0.0;
1532                inherit: "default" 0.0;
1533                min: BUTTON_TEXT_STYLE1_VISIBLE_BG_MIN_INC;
1534             }
1535             description { state: "icononly" 0.0;
1536                inherit: "default" 0.0;
1537                min: BUTTON_TEXT_STYLE1_ICONONLY_BG_MIN_INC;
1538             }
1539          }
1540          part { name: "padding_right_bottom";
1541             type: RECT;
1542             scale: 1;
1543             mouse_events: 0;
1544             description { state: "default" 0.0;
1545                align: 1.0 1.0;
1546                rel1.relative: 1.0 1.0;
1547                min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
1548                fixed: 1 1;
1549                visible: 0;
1550             }
1551          }
1552          part { name: "icon_rect";
1553             type: RECT;
1554             scale: 1;
1555             mouse_events: 0;
1556             description { state: "default" 0.0;
1557                visible: 0;
1558                min: 0 0;
1559                fixed: 1 0;
1560                rel1 {
1561                   relative: 1.0 1.0;
1562                   to: "padding_left_top";
1563                }
1564                rel2 {
1565                   relative: 1.0 0.0;
1566                   to_x: "padding_left_top";
1567                   to_y: "padding_right_bottom";
1568                }
1569                align: 0.0 0.5;
1570             }
1571             description { state: "visible" 0.0;
1572                inherit: "default" 0.0;
1573                min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
1574                max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
1575             }
1576             description { state: "icononly" 0.0;
1577                inherit: "default" 0.0;
1578             }
1579          }
1580          part { name: "padding_after_icon";
1581             type: RECT;
1582             scale: 1;
1583             mouse_events: 0;
1584             description { state: "default" 0.0; //when only icon or no icon is there
1585                align: 0.0 0.0;
1586                rel1 {
1587                   relative: 1.0 0.0;
1588                   to: "icon_rect";
1589                }
1590                rel2.to: "icon_rect";
1591                fixed: 1 0;
1592                min: 0 0;
1593                visible: 0;
1594             }
1595             description { state: "visible" 0.0;
1596                inherit: "default" 0.0;
1597                min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
1598             }
1599             description { state: "icononly" 0.0;
1600                inherit: "default" 0.0;
1601             }
1602          }
1603          part { name: "padding_before_text";
1604             type: RECT;
1605             scale: 1;
1606             mouse_events: 0;
1607             description { state: "default" 0.0; //when only icon or no icon is there
1608                align: 1.0 0.5;
1609                rel1 {
1610                   relative: 0.0 1.0;
1611                   to_x: "elm.text";
1612                   to_y: "padding_left_top";
1613                }
1614                rel2 {
1615                   relative: 0.0 0.0;
1616                   to_x: "elm.text";
1617                   to_y: "padding_right_bottom";
1618                }
1619                fixed: 1 0;
1620                min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
1621                visible: 0;
1622             }
1623          }
1624          part { name: "elm.swallow.content";
1625             type: SWALLOW;
1626             scale: 1;
1627             clip_to: "clipper";
1628             description { state: "default" 0.0;
1629                visible: 0;
1630                align: 0.0 0.5;
1631                rel1 {
1632                   relative: 1.0 1.0;
1633                   to: "padding_left_top";
1634                }
1635                rel2 {
1636                   relative: 1.0 0.0;
1637                   to_x: "padding_left_top";
1638                   to_y: "padding_right_bottom";
1639                }
1640                fixed: 1 0;
1641             }
1642             description { state: "visible" 0.0;
1643                fixed: 1 0;
1644                min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
1645                max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
1646                align: 1.0 0.5;
1647                rel1 {
1648                   relative: 0.0 1.0;
1649                   to_x: "padding_before_text";
1650                   to_y: "padding_left_top";
1651                }
1652                rel2 {
1653                   relative: 0.0 0.0;
1654                   to_x: "padding_before_text";
1655                   to_y: "padding_right_bottom";
1656                }
1657             }
1658             description { state: "icononly" 0.0;
1659                min: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
1660                max: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
1661             }
1662          }
1663          part { name: "elm.text";
1664             type: TEXT;
1665             mouse_events: 0;
1666             effect: SHADOW BOTTOM;
1667             scale: 1;
1668             clip_to: "clipper";
1669             description { state: "default" 0.0;
1670                visible: 0;
1671                rel1 {
1672                   relative: 1.0 1.0;
1673                   to_x: "padding_after_icon";
1674                   to_y: "padding_left_top";
1675                }
1676                rel2 {
1677                   relative: 0.0 0.0;
1678                   to: "padding_right_bottom";
1679                }
1680                color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
1681                color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
1682                text {
1683                   font: "Tizen:style=Regular";
1684                   size: BUTTON_TEXT_STYLE1_FONT_SIZE_INC;
1685                   min: 0 0;
1686                   max: 1 0;
1687                   text_class: "tizen";
1688                }
1689             }
1690             description { state: "visible" 0.0;
1691                inherit: "default" 0.0;
1692                visible: 1;
1693             }
1694             description { state: "clicked" 0.0;
1695                inherit: "default" 0.0;
1696                visible: 1;
1697                color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
1698                color2: BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
1699             }
1700             description { state: "disabled" 0.0;
1701                inherit: "default" 0.0;
1702             }
1703             description { state: "disabled_visible" 0.0;
1704                inherit: "default" 0.0;
1705                color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
1706                color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
1707                visible: 1;
1708             }
1709             description { state: "focused" 0.0;
1710                inherit: "default" 0.0;
1711                visible: 1;
1712                color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
1713             }
1714          }
1715          part { name: "over2";
1716             type: RECT;
1717             repeat_events: 1;
1718             ignore_flags: ON_HOLD;
1719             description { state: "default" 0.0;
1720                color: 0 0 0 0;
1721             }
1722          }
1723          part { name: "over3";
1724             type: RECT;
1725             repeat_events: 1;
1726             description { state: "default" 0.0;
1727                color: 0 0 0 0;
1728             }
1729          }
1730          part { name: "clipper";
1731             type: RECT;
1732             description { state: "default" 0.0;
1733                color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
1734             }
1735             description { state: "disabled" 0.0;
1736                inherit: "default" 0.0;
1737                color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
1738             }
1739          }
1740          part { name: "disabler";
1741             type: RECT;
1742             description { state: "default" 0.0;
1743                color: 0 0 0 0;
1744                visible: 0;
1745             }
1746             description { state: "disabled" 0.0;
1747                inherit: "default" 0.0;
1748                visible: 1;
1749             }
1750          }
1751       }
1752       programs {
1753          program { name: "button_click";
1754             signal: "mouse,down,1";
1755             source: "over2";
1756             action: SIGNAL_EMIT "elm,action,press" "";
1757             after: "button_click_anim";
1758          }
1759          program { name: "button_click_anim";
1760             action: STATE_SET "clicked" 0.0;
1761             target: "button_image";
1762             after: "text_clicked";
1763          }
1764          program { name: "text_clicked";
1765             script {
1766                new st[31];
1767                new Float:vl;
1768                get_state(PART:"elm.text", st, 30, vl);
1769                if (!strcmp(st, "visible"))
1770                  set_state(PART:"elm.text", "clicked", 0.0);
1771             }
1772          }
1773          program { name: "button_unpress";
1774             action: SIGNAL_EMIT "elm,action,unpress" "";
1775          }
1776          program { name: "button_mouseout_clicked";
1777             signal: "mouse,up,1";
1778             source: "over3";
1779             script {
1780                new st[31];
1781                new Float:vl;
1782                get_state(PART:"elm.swallow.content", st, 30, vl);
1783                if (strcmp(st, "icononly"))
1784                  {
1785                     emit("elm,action,default,text,set", "");
1786                     set_state(PART:"elm.text", "visible", 0.0);
1787                  }
1788                if (get_int(button_state) != BUTTON_STATE_DISABLED)
1789                  set_state(PART:"button_image", "default", 0.0);
1790             }
1791             after: button_unpress;
1792          }
1793          program { name: "button_unclick3";
1794             signal: "mouse,clicked,1";
1795             source: "over2";
1796             action: SIGNAL_EMIT "elm,action,click" "";
1797          }
1798          program { name: "text_show";
1799             signal: "elm,state,text,visible";
1800             source: "elm";
1801             script {
1802                new st[31];
1803                new Float:vl;
1804                get_state(PART:"elm.swallow.content", st, 30, vl);
1805                if (!strcmp(st, "icononly"))
1806                  {
1807                     set_state(PART:"elm.swallow.content", "visible", 0.0);
1808                     set_state(PART:"icon_rect", "visible", 0.0);
1809                     set_state(PART:"padding_after_icon", "visible", 0.0);
1810                     set_state(PART:"bg", "visible", 0.0);
1811                  }
1812                if (get_int(button_state) != BUTTON_STATE_DISABLED)
1813                  set_state(PART:"elm.text", "visible", 0.0);
1814                else
1815                  set_state(PART:"elm.text", "disabled_visible", 0.0);
1816             }
1817          }
1818          program { name: "text_hide";
1819             signal: "elm,state,text,hidden";
1820             source: "elm";
1821             script {
1822                new st[31];
1823                new Float:vl;
1824                get_state(PART:"elm.swallow.content", st, 30, vl);
1825                if (!strcmp(st, "visible"))
1826                  {
1827                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
1828                     set_state(PART:"icon_rect", "icononly", 0.0);
1829                     set_state(PART:"padding_after_icon", "icononly", 0.0);
1830                     set_state(PART:"bg", "icononly", 0.0);
1831                  }
1832                set_state(PART:"elm.text", "default", 0.0);
1833             }
1834          }
1835          program { name: "icon_show";
1836             signal: "elm,state,icon,visible";
1837             source: "elm";
1838             script {
1839                new st[31];
1840                new Float:vl;
1841                get_state(PART:"elm.text", st, 30, vl);
1842                if (!strcmp(st, "visible"))
1843                  {
1844                     set_state(PART:"elm.swallow.content", "visible", 0.0);
1845                     set_state(PART:"icon_rect", "visible", 0.0);
1846                     set_state(PART:"padding_after_icon", "visible", 0.0);
1847                     set_state(PART:"bg", "visible", 0.0);
1848                  }
1849                else
1850                  {
1851                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
1852                     set_state(PART:"icon_rect", "icononly", 0.0);
1853                     set_state(PART:"padding_after_icon", "icononly", 0.0);
1854                     set_state(PART:"bg", "icononly", 0.0);
1855                  }
1856             }
1857          }
1858          program { name: "icon_hide";
1859             signal: "elm,state,icon,hidden";
1860             source: "elm";
1861             action: STATE_SET "default" 0.0;
1862             target: "elm.swallow.content";
1863             target: "padding_after_icon";
1864             target: "icon_rect";
1865             target: "bg";
1866          }
1867          program { name: "disable";
1868             signal: "elm,state,disabled";
1869             source: "elm";
1870             action: STATE_SET "disabled" 0.0;
1871             target: "button_image";
1872             target: "disabler";
1873             target: "clipper";
1874             after: "disable_text";
1875          }
1876          program { name: "disable_text";
1877             script {
1878                new st[31];
1879                new Float:vl;
1880                get_state(PART:"elm.text", st, 30, vl);
1881                if (!strcmp(st, "visible"))
1882                  set_state(PART:"elm.text", "disabled_visible", 0.0);
1883                else
1884                  set_state(PART:"elm.text", "disabled", 0.0);
1885                set_int(button_state, BUTTON_STATE_DISABLED);
1886             }
1887          }
1888          program { name: "enable";
1889             signal: "elm,state,enabled";
1890             source: "elm";
1891             action: STATE_SET "default" 0.0;
1892             target: "button_image";
1893             target: "clipper";
1894             target: "disabler";
1895             after: "enable_text";
1896          }
1897          program { name: "enable_text";
1898             script {
1899                new st[31];
1900                new Float:vl;
1901                get_state(PART:"elm.text", st, 30, vl);
1902                if (!strcmp(st, "disabled_visible"))
1903                  set_state(PART:"elm.text", "visible", 0.0);
1904                else
1905                  set_state(PART:"elm.text", "default", 0.0);
1906                set_int(button_state, BUTTON_STATE_ENABLED);
1907             }
1908          }
1909          program { name: "focused";
1910             //signal: "elm,action,focus";
1911             //source: "elm";
1912             action: STATE_SET "focused" 0.0;
1913             target: "button_image";
1914             target: "elm.text";
1915          }
1916          program { name: "unfocused";
1917             //signal: "elm,action,unfocus";
1918             //source: "elm";
1919             action: STATE_SET "default" 0.0;
1920             target: "button_image";
1921             after: "unfocus_text";
1922          }
1923          program { name: "unfocus_text";
1924             action: STATE_SET "visible" 0.0;
1925             target: "elm.text";
1926          }
1927       }
1928    }