[Button] Apply shadow effect for button.
[platform/core/uifw/efl-theme-tizen.git] / themes / widgets / button.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 BUTTON_STATE_ENABLED 0
21 #define BUTTON_STATE_DISABLED 1
22 #define BUTTON_LANDSCAPE_DISABLED 0
23 #define BUTTON_LANDSCAPE_ENABLED 1
24
25 ///////////////////////////////////////////////////////////////////////////////////////
26    group { name: "elm/button/base/style1";
27       alias: "elm/button/base/text_only/style1";
28       alias: "elm/button/base/center";
29       alias: "elm/button/base/icon_and_text/center";
30       alias: "elm/button/base/nocontents/search_button";
31       alias: "elm/button/base/style1/multiline";
32       alias: "elm/button/base/sweep";
33       alias: "elm/button/base/text_only/sweep";
34       alias: "elm/button/base/hidden";
35       alias: "elm/button/base/sweep/multiline";
36       alias: "elm/button/base/style2";
37       alias: "elm/button/base/text_only/style2";
38       alias: "elm/button/base/style2/multiline";
39       data {
40          item: "focus_highlight" "on";
41       }
42       images {
43          image: "00_button_01.png" COMP;
44          image: "00_button_01_press.png" COMP;
45          image: "00_button_01_dim.png" COMP;
46          image: "00_button_01_focus.png" COMP;
47       }
48       styles{
49          style { name: "btn_base_style1";
50             base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_STYLE1_FONT_SIZE_INC" align=center color="BUTTON_TEXT_STYLE1_TEXTBLOCK_NORMAL_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_TEXT_SHADOW_TEXTBLOCK_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
51             tag: "br" "\n";
52             tag: "ps" "ps";
53             tag: "tab" "\t";
54          }
55          style { name: "btn_base_style1_pressed";
56             base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_STYLE1_FONT_SIZE_INC" align=center color="BUTTON_TEXT_STYLE1_TEXTBLOCK_PRESSED_COLOR_INC" style=far_shadow,top shadow_color="BUTTON_TEXT_SHADOW_TEXTBLOCK_PRESSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
57             tag: "br" "\n";
58             tag: "ps" "ps";
59             tag: "tab" "\t";
60          }
61          style { name: "btn_base_style1_dim";
62             base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_STYLE1_FONT_SIZE_INC" align=center color="BUTTON_TEXT_STYLE1_TEXTBLOCK_DISABLED_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_TEXT_SHADOW_TEXTBLOCK_DIM_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
63             tag: "br" "\n";
64             tag: "ps" "ps";
65             tag: "tab" "\t";
66          }
67          style { name: "btn_base_style1_focus";
68             base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_STYLE1_FONT_SIZE_INC" align=center color="BUTTON_TEXT_STYLE1_TEXTBLOCK_FOCUSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
69             tag: "br" "\n";
70             tag: "ps" "ps";
71             tag: "tab" "\t";
72          }
73       }
74       script {
75          public button_state = BUTTON_STATE_ENABLED;
76       }
77       parts {
78          part { name: "button_image";
79             scale: 1;
80             description { state: "default" 0.0;
81                image {
82                   normal: "00_button_01.png";
83                   border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
84                   border_scale: 1;
85                }
86             }
87             description { state: "clicked" 0.0;
88                inherit: "default" 0.0;
89                image.normal: "00_button_01_press.png";
90             }
91             description { state: "disabled" 0.0;
92                inherit: "default" 0.0;
93                image.normal: "00_button_01_dim.png";
94             }
95             description { state: "focused" 0.0;
96                inherit: "default" 0.0;
97                image.normal: "00_button_01_press.png";
98             }
99          }
100          part { name: "focus_image";
101             scale: 1;
102             mouse_events: 0;
103             repeat_events: 1;
104             description { state: "default" 0.0;
105                visible: 0;
106                rel1.to : "button_image";
107                rel2.to : "button_image";
108                image {
109                   normal: "00_button_01_focus.png";
110                   border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
111                   border_scale: 1;
112                }
113             }
114             description { state: "focused" 0.0;
115                inherit: "default" 0.0;
116                visible: 1;
117             }
118          }
119          part { name: "padding_left_top";
120             type: RECT;
121             scale: 1;
122             mouse_events: 0;
123             description { state: "default" 0.0;
124                align: 0.0 0.0;
125                rel2.relative: 0.0 0.0;
126                min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
127                fixed: 1 1;
128                visible: 0;
129             }
130          }
131          part { name: "bg";
132             type: RECT;
133             scale: 1;
134             mouse_events: 0;
135             description { state: "default" 0.0;
136                min: BUTTON_TEXT_STYLE1_BG_MIN_INC;
137                visible: 0;
138             }
139             description { state: "visible" 0.0;
140                inherit: "default" 0.0;
141                min: BUTTON_TEXT_STYLE1_VISIBLE_BG_MIN_INC;
142             }
143             description { state: "icononly" 0.0;
144                inherit: "default" 0.0;
145                min: BUTTON_TEXT_STYLE1_ICONONLY_BG_MIN_INC;
146             }
147          }
148          part { name: "padding_right_bottom";
149             type: RECT;
150             scale: 1;
151             mouse_events: 0;
152             description { state: "default" 0.0;
153                align: 1.0 1.0;
154                rel1.relative: 1.0 1.0;
155                min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
156                fixed: 1 1;
157                visible: 0;
158             }
159          }
160          part { name: "icon_rect";
161             type: RECT;
162             scale: 1;
163             mouse_events: 0;
164             description { state: "default" 0.0;
165                visible: 0;
166                min: 0 0;
167                fixed: 1 0;
168                rel1 {
169                   relative: 1.0 1.0;
170                   to: "padding_left_top";
171                }
172                rel2 {
173                   relative: 1.0 0.0;
174                   to_x: "padding_left_top";
175                   to_y: "padding_right_bottom";
176                }
177                align: 0.0 0.5;
178             }
179             description { state: "visible" 0.0;
180                inherit: "default" 0.0;
181                min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
182                max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
183             }
184             description { state: "icononly" 0.0;
185                inherit: "default" 0.0;
186             }
187          }
188          part { name: "padding_after_icon";
189             type: RECT;
190             scale: 1;
191             mouse_events: 0;
192             description { state: "default" 0.0; //when only icon or no icon is there
193                align: 0.0 0.0;
194                rel1 {
195                   relative: 1.0 0.0;
196                   to: "icon_rect";
197                }
198                rel2.to: "icon_rect";
199                fixed: 1 0;
200                min: 0 0;
201                visible: 0;
202             }
203             description { state: "visible" 0.0;
204                inherit: "default" 0.0;
205                min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
206             }
207             description { state: "icononly" 0.0;
208                inherit: "default" 0.0;
209             }
210          }
211          part { name: "padding_before_text";
212             type: RECT;
213             scale: 1;
214             mouse_events: 0;
215             description { state: "default" 0.0; //when only icon or no icon is there
216                align: 1.0 0.5;
217                rel1 {
218                   relative: 0.0 1.0;
219                   to_x: "elm.text";
220                   to_y: "padding_left_top";
221                }
222                rel2 {
223                   relative: 0.0 0.0;
224                   to_x: "elm.text";
225                   to_y: "padding_right_bottom";
226                }
227                fixed: 1 0;
228                min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
229                visible: 0;
230             }
231          }
232          part { name: "elm.swallow.content";
233             type: SWALLOW;
234             scale: 1;
235             description { state: "default" 0.0;
236                visible: 0;
237                align: 0.0 0.5;
238                rel1 {
239                   relative: 1.0 1.0;
240                   to: "padding_left_top";
241                }
242                rel2 {
243                   relative: 1.0 0.0;
244                   to_x: "padding_left_top";
245                   to_y: "padding_right_bottom";
246                }
247                fixed: 1 0;
248             }
249             description { state: "visible" 0.0;
250                fixed: 1 0;
251                min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
252                max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
253                align: 1.0 0.5;
254                rel1 {
255                   relative: 0.0 1.0;
256                   to_x: "padding_before_text";
257                   to_y: "padding_left_top";
258                }
259                rel2 {
260                   relative: 0.0 0.0;
261                   to_x: "padding_before_text";
262                   to_y: "padding_right_bottom";
263                }
264             }
265             description { state: "icononly" 0.0;
266                min: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
267                max: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
268             }
269          }
270          part { name: "elm.swallow.content.shadow.proxy";
271             type: PROXY;
272             scale: 1;
273             clip_to: "elm.swallow.content.shadow.clipper";
274             description { state: "default" 0.0;
275                source: "elm.swallow.content";
276                proxy.source_clip: 0;
277                rel1 {
278                   to: "elm.swallow.content";
279                   offset: BUTTON_STYLE1_NORMAL_TOP_OFFSET_INC;
280                }
281                rel2 {
282                   to: "elm.swallow.content";
283                   offset: BUTTON_STYLE1_NORMAL_BOTTOM_OFFSET_INC;
284                }
285             }
286             description { state: "clicked" 0.0;
287                inherit: "default" 0.0;
288                rel1 {
289                   to: "elm.swallow.content";
290                   offset: BUTTON_STYLE1_PRESSED_TOP_OFFSET_INC;
291                }
292                rel2 {
293                   to: "elm.swallow.content";
294                   offset: BUTTON_STYLE1_PRESSED_BOTTOM_OFFSET_INC;
295                }
296             }
297             description { state: "disabled" 0.0;
298                inherit: "default" 0.0;
299             }
300          }
301          part { name: "elm.swallow.content.proxy";
302             type: PROXY;
303             scale: 1;
304             clip_to: "icon_clipper";
305             description { state: "default" 0.0;
306                source: "elm.swallow.content";
307                proxy.source_clip: 0;
308                rel1.to: "elm.swallow.content";
309                rel2.to: "elm.swallow.content";
310             }
311          }
312          part { name: "elm.swallow.content.shadow.clipper";
313             scale: 1;
314             type: RECT;
315             description { state: "default" 0.0;
316                color: BUTTON_STYLE1_SHADOW_NORMAL_COLOR_INC;
317             }
318             description { state: "clicked" 0.0;
319                color: BUTTON_STYLE1_SHADOW_PRESSED_COLOR_INC;
320             }
321             description { state: "disabled" 0.0;
322                color: BUTTON_STYLE1_SHADOW_DISABLED_COLOR_INC;
323             }
324          }
325          part { name: "icon_clipper";
326             scale: 1;
327             type: RECT;
328             description { state: "default" 0.0;
329                color: BUTTON_STYLE1_ICON_NORMAL_COLOR_INC;
330             }
331             description { state: "clicked" 0.0;
332                color: BUTTON_STYLE1_ICON_PRESSED_COLOR_INC;
333             }
334             description { state: "disabled" 0.0;
335                color: BUTTON_STYLE1_ICON_DISABLED_COLOR_INC;
336             }
337          }
338          part { name: "elm.text";
339             type: TEXTBLOCK;
340             mouse_events: 0;
341             scale: 1;
342             description { state: "default" 0.0;
343                visible: 0;
344                rel1 {
345                   relative: 1.0 1.0;
346                   to_x: "padding_after_icon";
347                   to_y: "padding_left_top";
348                }
349                rel2 {
350                   relative: 0.0 0.0;
351                   to: "padding_right_bottom";
352                } 
353                text {
354                   style: "btn_base_style1";
355                }
356             }
357             description { state: "visible" 0.0;
358                inherit: "default" 0.0;
359                visible: 1;
360             }
361             description { state: "clicked" 0.0;
362                inherit: "default" 0.0;
363                visible: 1;
364                text {
365                   style: "btn_base_style1_pressed";
366                }
367             }
368             description { state: "disabled" 0.0;
369                inherit: "default" 0.0;
370             }
371             description { state: "disabled_visible" 0.0;
372                inherit: "default" 0.0;
373                visible: 1;
374                text {
375                   style: "btn_base_style1_dim";
376                }
377             }
378             description { state: "focused" 0.0;
379                inherit: "default" 0.0;
380                visible: 1;
381                text {
382                   style: "btn_base_style1_focus";
383                }
384             }
385          }
386          part { name: "over2";
387             type: RECT;
388             repeat_events: 1;
389             ignore_flags: ON_HOLD;
390             description { state: "default" 0.0;
391                color: 0 0 0 0;
392             }
393          }
394          part { name: "over3";
395             type: RECT;
396             repeat_events: 1;
397             description { state: "default" 0.0;
398                color: 0 0 0 0;
399             }
400          }
401          part { name: "disabler";
402             type: RECT;
403             description { state: "default" 0.0;
404                color: 0 0 0 0;
405                visible: 0;
406             }
407             description { state: "disabled" 0.0;
408                inherit: "default" 0.0;
409                visible: 1;
410             }
411          }
412       }
413       programs {
414          program { name: "button_click";
415             signal: "mouse,down,1";
416             source: "over2";
417             action: SIGNAL_EMIT "elm,action,press" "";
418             after: "button_click_anim";
419          }
420          program { name: "button_click_anim";
421             action: STATE_SET "clicked" 0.0;
422             target: "button_image";
423             target: "elm.swallow.content.shadow.proxy";
424             target: "elm.swallow.content.shadow.clipper";
425             target: "icon_clipper";
426             after: "text_clicked";
427          }
428          program { name: "text_clicked";
429             script {
430                new st[31];
431                new Float:vl;
432                get_state(PART:"elm.text", st, 30, vl);
433                if (!strcmp(st, "visible"))
434                  set_state(PART:"elm.text", "clicked", 0.0);
435             }
436          }
437          program { name: "button_double_click";
438             signal: "mouse,down,1,double";
439             source: "over2";
440             after: "button_click_anim";
441          }
442          program { name: "button_unpress";
443             action: SIGNAL_EMIT "elm,action,unpress" "";
444          }
445          program { name: "button_mouseout_clicked";
446             signal: "mouse,up,1";
447             source: "over3";
448             script {
449                new st[31];
450                new Float:vl;
451                get_state(PART:"elm.swallow.content", st, 30, vl);
452                if (strcmp(st, "icononly"))
453                  {
454                     emit("elm,action,default,text,set", "");
455                     set_state(PART:"elm.text", "visible", 0.0);
456                  }
457                if (get_int(button_state) != BUTTON_STATE_DISABLED)
458                  set_state(PART:"button_image", "default", 0.0);
459                set_state(PART:"elm.swallow.content.shadow.proxy", "default", 0.0);
460                set_state(PART:"elm.swallow.content.shadow.clipper", "default", 0.0);
461                set_state(PART:"icon_clipper", "default", 0.0);
462             }
463             after: button_unpress;
464          }
465          program { name: "touch_snd";
466             signal: "mouse,clicked,1";
467             source: "over2";
468             action: PLAY_SAMPLE "touch_sound" 1.0;
469             after: button_unclick3;
470          }
471          program { name: "button_unclick3";
472             action: SIGNAL_EMIT "elm,action,click" "";
473          }
474          program { name: "text_show";
475             signal: "elm,state,text,visible";
476             source: "elm";
477             script {
478                new st[31];
479                new Float:vl;
480                get_state(PART:"elm.swallow.content", st, 30, vl);
481                if (!strcmp(st, "icononly"))
482                  {
483                     set_state(PART:"elm.swallow.content", "visible", 0.0);
484                     set_state(PART:"icon_rect", "visible", 0.0);
485                     set_state(PART:"padding_after_icon", "visible", 0.0);
486                     set_state(PART:"bg", "visible", 0.0);
487                  }
488                if (get_int(button_state) != BUTTON_STATE_DISABLED)
489                  set_state(PART:"elm.text", "visible", 0.0);
490                else
491                  set_state(PART:"elm.text", "disabled_visible", 0.0);
492             }
493          }
494          program { name: "text_hide";
495             signal: "elm,state,text,hidden";
496             source: "elm";
497             script {
498                new st[31];
499                new Float:vl;
500                get_state(PART:"elm.swallow.content", st, 30, vl);
501                if (!strcmp(st, "visible"))
502                  {
503                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
504                     set_state(PART:"icon_rect", "icononly", 0.0);
505                     set_state(PART:"padding_after_icon", "icononly", 0.0);
506                     set_state(PART:"bg", "icononly", 0.0);
507                  }
508                set_state(PART:"elm.text", "default", 0.0);
509             }
510          }
511          program { name: "icon_show";
512             signal: "elm,state,icon,visible";
513             source: "elm";
514             script {
515                new st[31];
516                new Float:vl;
517                get_state(PART:"elm.text", st, 30, vl);
518                if (!strcmp(st, "visible"))
519                  {
520                     set_state(PART:"elm.swallow.content", "visible", 0.0);
521                     set_state(PART:"icon_rect", "visible", 0.0);
522                     set_state(PART:"padding_after_icon", "visible", 0.0);
523                     set_state(PART:"bg", "visible", 0.0);
524                  }
525                else
526                  {
527                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
528                     set_state(PART:"icon_rect", "icononly", 0.0);
529                     set_state(PART:"padding_after_icon", "icononly", 0.0);
530                     set_state(PART:"bg", "icononly", 0.0);
531                  }
532             }
533          }
534          program { name: "icon_hide";
535             signal: "elm,state,icon,hidden";
536             source: "elm";
537             action: STATE_SET "default" 0.0;
538             target: "elm.swallow.content";
539             target: "padding_after_icon";
540             target: "icon_rect";
541             target: "bg";
542          }
543          program { name: "disable";
544             signal: "elm,state,disabled";
545             source: "elm";
546             action: STATE_SET "disabled" 0.0;
547             target: "button_image";
548             target: "disabler";
549             target: "elm.swallow.content.shadow.proxy";
550             target: "elm.swallow.content.shadow.clipper";
551             target: "icon_clipper";
552             after: "disable_text";
553          }
554          program { name: "disable_text";
555             script {
556                new st[31];
557                new Float:vl;
558                get_state(PART:"elm.text", st, 30, vl);
559                if (!strcmp(st, "visible"))
560                  set_state(PART:"elm.text", "disabled_visible", 0.0);
561                else
562                  set_state(PART:"elm.text", "disabled", 0.0);
563                set_int(button_state, BUTTON_STATE_DISABLED);
564             }
565          }
566          program { name: "enable";
567             signal: "elm,state,enabled";
568             source: "elm";
569             action: STATE_SET "default" 0.0;
570             target: "button_image";
571             target: "elm.swallow.content.shadow.proxy";
572             target: "elm.swallow.content.shadow.clipper";
573             target: "icon_clipper";
574             target: "disabler";
575             after: "enable_text";
576          }
577          program { name: "enable_text";
578             script {
579                new st[31];
580                new Float:vl;
581                get_state(PART:"elm.text", st, 30, vl);
582                if (!strcmp(st, "disabled_visible"))
583                  set_state(PART:"elm.text", "visible", 0.0);
584                else
585                  set_state(PART:"elm.text", "default", 0.0);
586                set_int(button_state, BUTTON_STATE_ENABLED);
587             }
588          }
589          program { name: "action_focus";
590             signal: "elm,action,focus_highlight,show";
591             source: "elm";
592             action: STATE_SET "focused" 0.0;
593             target: "focus_image";
594          }
595          program { name: "action_unfocus";
596             signal: "elm,action,focus_highlight,hide";
597             source: "elm";
598             action: STATE_SET "default" 0.0;
599             target: "focus_image";
600          }
601       }
602    }
603
604 //////////////////////////////////////////////////////////////
605    group { name: "elm/button/base/style1/auto_expand";
606       inherit: "elm/button/base/style1";
607       parts {
608          part { name: "elm.text";
609             type: TEXTBLOCK;
610             mouse_events: 0;
611             scale: 1;
612             description { state: "default" 0.0;
613                visible: 0;
614                rel1 {
615                   relative: 1.0 1.0;
616                   to_x: "padding_after_icon";
617                   to_y: "padding_left_top";
618                }
619                rel2 {
620                   relative: 0.0 0.0;
621                   to: "padding_right_bottom";
622                }
623                text {
624                   style: "btn_base_style1";
625                   min: 1 0;
626                   max: 1 0;
627                }
628             }
629             description { state: "visible" 0.0;
630                inherit: "default" 0.0;
631                visible: 1;
632             }
633             description { state: "clicked" 0.0;
634                inherit: "default" 0.0;
635                visible: 1;
636                text {
637                   style: "btn_base_style1_pressed";
638                }
639             }
640             description { state: "disabled" 0.0;
641                inherit: "default" 0.0;
642             }
643             description { state: "disabled_visible" 0.0;
644                inherit: "default" 0.0;
645                visible: 1;
646                text {
647                   style: "btn_base_style1_dim";
648                }
649             }
650             description { state: "focused" 0.0;
651                inherit: "default" 0.0;
652                visible: 1;
653                text {
654                   style: "btn_base_style1_focus";
655                }
656             }
657          }
658       }
659    }
660
661 //////////////////////////////////////////////////////////////////////////////////////
662    group { name: "elm/button/base/datetime/ampm/default";
663       alias: "elm/button/base/datetime_ampm/default";
664       inherit: "elm/button/base/style1/auto_expand";
665       parts {
666          part { name: "button_image";
667             scale: 1;
668             description { state: "default" 0.0;
669                image {
670                   normal: "00_button_01.png";
671                   border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
672                   border_scale: 1;
673                }
674                min: BUTTON_DATETIME_AMPM_BG_MIN_INC;
675                max: BUTTON_DATETIME_AMPM_BG_MIN_INC;
676             }
677             description { state: "clicked" 0.0;
678                inherit: "default" 0.0;
679                image.normal: "00_button_01_press.png";
680             }
681             description { state: "disabled" 0.0;
682                inherit: "default" 0.0;
683                image.normal: "00_button_01_dim.png";
684             }
685             description { state: "focused" 0.0;
686                inherit: "default" 0.0;
687                image.normal: "00_button_01_press.png";
688             }
689          }
690          part { name: "bg";
691             type: RECT;
692             scale: 1;
693             mouse_events: 0;
694             description { state: "default" 0.0;
695                min: 0 0;
696                visible: 0;
697             }
698             description { state: "visible" 0.0;
699                inherit: "default" 0.0;
700                min: BUTTON_DATETIME_AMPM_BG_MIN_INC;
701             }
702             description { state: "icononly" 0.0;
703                inherit: "default" 0.0;
704             }
705          }
706          part { name: "elm.text";
707             type: TEXTBLOCK;
708             mouse_events: 0;
709             scale: 1;
710             description { state: "default" 0.0;
711                visible: 0;
712                fixed: 1 1;
713                text {
714                   style: "btn_base_style1";
715                   size: BUTTON_DATETIME_AMPM_TEXT_FONT_SIZE_INC;
716                   min: 1 1;
717                }
718             }
719             description { state: "visible" 0.0;
720                inherit: "default" 0.0;
721                visible: 1;
722             }
723             description { state: "clicked" 0.0;
724                inherit: "default" 0.0;
725                visible: 1;
726                text {
727                   style: "btn_base_style1_pressed";
728                }
729             }
730             description { state: "disabled" 0.0;
731                inherit: "default" 0.0;
732             }
733             description { state: "disabled_visible" 0.0;
734                inherit: "default" 0.0;
735                visible: 1;
736                text {
737                   style: "btn_base_style1_dim";
738                }
739             }
740             description { state: "focused" 0.0;
741                inherit: "default" 0.0;
742                visible: 1;
743                text {
744                   style: "btn_base_style1_focus";
745                }
746             }
747          }
748       }
749    }
750
751 ///////////////////////////////////////////////////////////////////////////////////////
752    group { name: "elm/button/base/style1/delete";
753       alias: "elm/button/base/sweep/delete";
754       alias: "elm/button/base/sweep/delete/multiline";
755       inherit: "elm/button/base/style1";
756       images {
757          image: "00_button_01_delete.png" COMP;
758          image: "00_button_01_delete_dim.png" COMP;
759          image: "00_button_01_delete_press.png" COMP;
760       }
761       styles{
762          style { name: "btn_base_style1_delete";
763             base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_STYLE1_FONT_SIZE_INC" align=center color="BUTTON_TEXT_STYLE1_DELETE_TEXTBLOCK_NORMAL_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_TEXT_SHADOW_TEXTBLOCK_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
764             tag: "br" "\n";
765             tag: "ps" "ps";
766             tag: "tab" "\t";
767          }
768          style { name: "btn_base_style1_delete_pressed";
769             base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_STYLE1_FONT_SIZE_INC" align=center color="BUTTON_TEXT_STYLE1_DELETE_TEXTBLOCK_PRESSED_COLOR_INC" style=far_shadow,top shadow_color="BUTTON_TEXT_SHADOW_TEXTBLOCK_PRESSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
770             tag: "br" "\n";
771             tag: "ps" "ps";
772             tag: "tab" "\t";
773          }
774          style { name: "btn_base_style1_delete_dim";
775             base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_STYLE1_FONT_SIZE_INC" align=center color="BUTTON_TEXT_STYLE1_DELETE_TEXTBLOCK_DISABLED_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_TEXT_SHADOW_TEXTBLOCK_DIM_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
776             tag: "br" "\n";
777             tag: "ps" "ps";
778             tag: "tab" "\t";
779          }
780          style { name: "btn_base_style1_delete_focus";
781             base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_STYLE1_FONT_SIZE_INC" align=center color="BUTTON_TEXT_STYLE1_DELETE_TEXTBLOCK_FOCUSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
782             tag: "br" "\n";
783             tag: "ps" "ps";
784             tag: "tab" "\t";
785          }
786       }
787       parts {
788          part { name: "button_image";
789             scale: 1;
790             description { state: "default" 0.0;
791                image {
792                   normal: "00_button_01_delete.png";
793                   border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
794                   border_scale: 1;
795                }
796             }
797             description { state: "clicked" 0.0;
798                inherit: "default" 0.0;
799                image.normal: "00_button_01_delete_press.png";
800             }
801             description { state: "disabled" 0.0;
802                inherit: "default" 0.0;
803                image.normal: "00_button_01_delete_dim.png";
804             }
805             description { state: "focused" 0.0;
806                inherit: "default" 0.0;
807                image.normal: "00_button_01_delete_press.png";
808             }
809          }
810          part { name: "elm.text";
811             type: TEXTBLOCK;
812             mouse_events: 0;
813             scale: 1;
814             description { state: "default" 0.0;
815                visible: 0;
816                rel1 {
817                   relative: 1.0 1.0;
818                   to_x: "padding_after_icon";
819                   to_y: "padding_left_top";
820                }
821                rel2 {
822                   relative: 0.0 0.0;
823                   to: "padding_right_bottom";
824                }
825                text {
826                   style: "btn_base_style1_delete";
827                }
828             }
829             description { state: "visible" 0.0;
830                inherit: "default" 0.0;
831                visible: 1;
832             }
833             description { state: "clicked" 0.0;
834                inherit: "default" 0.0;
835                visible: 1;
836                text {
837                   style: "btn_base_style1_delete_pressed";
838                }
839             }
840             description { state: "disabled" 0.0;
841                inherit: "default" 0.0;
842             }
843             description { state: "disabled_visible" 0.0;
844                inherit: "default" 0.0;
845                visible: 1;
846                text {
847                   style: "btn_base_style1_delete_dim";
848                }
849             }
850             description { state: "focused" 0.0;
851                inherit: "default" 0.0;
852                visible: 1;
853                text {
854                   style: "btn_base_style1_delete_focus";
855                }
856             }
857          }
858       }
859    }
860
861 ///////////////////////////////////////////////////////////////////////////////////////
862    group { name: "elm/button/base/search_button/text";
863       alias: "elm/button/base/searchbar/default";
864       inherit: "elm/button/base/style1";
865       styles{
866          style { name: "btn_base_search";
867             base: "font=Tizen:style=Regular font_size="BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC" align=center color="BUTTON_SEARCH_BUTTON_TEXTBLOCK_NORMAL_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_SEARCH_BUTTON_TEXTBLOCK_SHADOW_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
868             tag: "br" "\n";
869             tag: "ps" "ps";
870             tag: "tab" "\t";
871          }
872          style { name: "btn_base_search_pressed";
873             base: "font=Tizen:style=Regular font_size="BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC" align=center color="BUTTON_SEARCH_BUTTON_TEXTBLOCK_PRESSED_COLOR_INC" style=far_shadow,top shadow_color="BUTTON_SEARCH_BUTTON_TEXTBLOCK_SHADOW_PRESSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
874             tag: "br" "\n";
875             tag: "ps" "ps";
876             tag: "tab" "\t";
877          }
878          style { name: "btn_base_search_dim";
879             base: "font=Tizen:style=Regular font_size="BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC" align=center color="BUTTON_SEARCH_BUTTON_TEXTBLOCK_DISABLED_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_SEARCH_BUTTON_TEXTBLOCK_SHADOW_DIM_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
880             tag: "br" "\n";
881             tag: "ps" "ps";
882             tag: "tab" "\t";
883          }
884          style { name: "btn_base_search_focus";
885             base: "font=Tizen:style=Regular font_size="BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC" align=center color="BUTTON_SEARCH_BUTTON_TEXTBLOCK_FOCUSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
886             tag: "br" "\n";
887             tag: "ps" "ps";
888             tag: "tab" "\t";
889          }
890       }
891       parts {
892          part { name: "bg";
893             type: RECT;
894             scale: 1;
895             mouse_events: 0;
896             description { state: "default" 0.0;
897                min: BUTTON_SEARCH_BUTTON_BG_MIN_INC;
898                visible: 0;
899             }
900             description { state: "visible" 0.0;
901                inherit: "default" 0.0;
902                min: BUTTON_SEARCH_BUTTON_VISIBLE_BG_MIN_INC;
903             }
904             description { state: "icononly" 0.0;
905                inherit: "default" 0.0;
906                min: BUTTON_SEARCH_BUTTON_ICONONLY_BG_MIN_INC;
907             }
908          }
909          part { name: "elm.text";
910             type: TEXTBLOCK;
911             mouse_events: 0;
912             scale: 1;
913             description { state: "default" 0.0;
914                visible: 0;
915                rel1 {
916                   relative: 1.0 1.0;
917                   to_x: "padding_after_icon";
918                   to_y: "padding_left_top";
919                }
920                rel2 {
921                   relative: 0.0 0.0;
922                   to: "padding_right_bottom";
923                } 
924                text {
925                   style: "btn_base_search";
926                   min: 0 0;
927                   max: 1 0;
928                }
929             }
930             description { state: "visible" 0.0;
931                inherit: "default" 0.0;
932                visible: 1;
933             }
934             description { state: "clicked" 0.0;
935                inherit: "default" 0.0;
936                visible: 1;
937                text {
938                   style: "btn_base_search_pressed";
939                }
940             }
941             description { state: "disabled" 0.0;
942                inherit: "default" 0.0;
943             }
944             description { state: "disabled_visible" 0.0;
945                inherit: "default" 0.0;
946                visible: 1;
947                text {
948                   style: "btn_base_search_dim";
949                }
950             }
951             description { state: "focused" 0.0;
952                inherit: "default" 0.0;
953                visible: 1;
954                text {
955                   style: "btn_base_search_focus";
956                }
957             }
958          }
959       }
960    }
961
962 ///////////////////////////////////////////////////////////////////////////////////////
963    group { name: "elm/button/base/search_button/send";
964       inherit: "elm/button/base/style1";
965       images {
966          image: "00_button_01_send.png" COMP;
967          image: "00_button_01_send_dim.png" COMP;
968          image: "00_button_01_send_press.png" COMP;
969       }
970       styles{
971          style { name: "btn_base_search_send";
972             base: "font=Tizen:style=Regular font_size="BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC" align=center color="BUTTON_SEARCH_BUTTON_SEND_TEXTBLOCK_NORMAL_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_SEARCH_BUTTON_TEXTBLOCK_SHADOW_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
973             tag: "br" "\n";
974             tag: "ps" "ps";
975             tag: "tab" "\t";
976          }
977          style { name: "btn_base_search_send_pressed";
978             base: "font=Tizen:style=Regular font_size="BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC" align=center color="BUTTON_SEARCH_BUTTON_SEND_TEXTBLOCK_PRESSED_COLOR_INC" style=far_shadow,top shadow_color="BUTTON_SEARCH_BUTTON_TEXTBLOCK_SHADOW_PRESSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
979             tag: "br" "\n";
980             tag: "ps" "ps";
981             tag: "tab" "\t";
982          }
983          style { name: "btn_base_search_send_dim";
984             base: "font=Tizen:style=Regular font_size="BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC" align=center color="BUTTON_SEARCH_BUTTON_SEND_TEXTBLOCK_DISABLED_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_SEARCH_BUTTON_TEXTBLOCK_SHADOW_DIM_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
985             tag: "br" "\n";
986             tag: "ps" "ps";
987             tag: "tab" "\t";
988          }
989          style { name: "btn_base_search_send_focus";
990             base: "font=Tizen:style=Regular font_size="BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC" align=center color="BUTTON_SEARCH_BUTTON_SEND_TEXTBLOCK_FOCUSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
991             tag: "br" "\n";
992             tag: "ps" "ps";
993             tag: "tab" "\t";
994          }
995       }
996       parts {
997          part { name: "button_image";
998             scale: 1;
999             description { state: "default" 0.0;
1000                image {
1001                   normal: "00_button_01_send.png";
1002                   border: BUTTON_SEARCH_BUTTON_BG_BORDER_INC;
1003                   border_scale: 1;
1004                }
1005             }
1006             description { state: "clicked" 0.0;
1007                inherit: "default" 0.0;
1008                image.normal: "00_button_01_send_press.png";
1009             }
1010             description { state: "disabled" 0.0;
1011                inherit: "default" 0.0;
1012                image.normal: "00_button_01_send_dim.png";
1013             }
1014             description { state: "focused" 0.0;
1015                inherit: "default" 0.0;
1016                image.normal: "00_button_01_send_press.png";
1017             }
1018          }
1019          part { name: "bg";
1020             type: RECT;
1021             scale: 1;
1022             mouse_events: 0;
1023             description { state: "default" 0.0;
1024                min: BUTTON_SEARCH_BUTTON_BG_MIN_INC;
1025                visible: 0;
1026             }
1027             description { state: "visible" 0.0;
1028                inherit: "default" 0.0;
1029                min: BUTTON_SEARCH_BUTTON_VISIBLE_BG_MIN_INC;
1030             }
1031             description { state: "icononly" 0.0;
1032                inherit: "default" 0.0;
1033                min: BUTTON_SEARCH_BUTTON_ICONONLY_BG_MIN_INC;
1034             }
1035          }
1036          part { name: "elm.text";
1037             type: TEXTBLOCK;
1038             mouse_events: 0;
1039             scale: 1;
1040             description { state: "default" 0.0;
1041                visible: 0;
1042                rel1 {
1043                   relative: 1.0 1.0;
1044                   to_x: "padding_after_icon";
1045                   to_y: "padding_left_top";
1046                }
1047                rel2 {
1048                   relative: 0.0 0.0;
1049                   to: "padding_right_bottom";
1050                }
1051                text {
1052                   style: "btn_base_search_send";
1053                   min: 0 0;
1054                   max: 1 0;
1055                }
1056             }
1057             description { state: "visible" 0.0;
1058                inherit: "default" 0.0;
1059                visible: 1;
1060             }
1061             description { state: "clicked" 0.0;
1062                inherit: "default" 0.0;
1063                visible: 1;
1064                text {
1065                   style: "btn_base_search_send_pressed";
1066                }
1067             }
1068             description { state: "disabled" 0.0;
1069                inherit: "default" 0.0;
1070             }
1071             description { state: "disabled_visible" 0.0;
1072                inherit: "default" 0.0;
1073                visible: 1;
1074                text {
1075                   style: "btn_base_search_send_dim";
1076                }
1077             }
1078             description { state: "focused" 0.0;
1079                inherit: "default" 0.0;
1080                visible: 1;
1081                text {
1082                   style: "btn_base_search_send_focus";
1083                }
1084             }
1085          }
1086       }
1087    }
1088
1089 ///////////////////////////////////////////////////////////////////////////////////////
1090    group { name: "elm/button/base/search_button/cancel";
1091       inherit: "elm/button/base/style1";
1092       images {
1093          image: "00_button_01_delete.png" COMP;
1094          image: "00_button_01_delete_dim.png" COMP;
1095          image: "00_button_01_delete_press.png" COMP;
1096       }
1097       styles{
1098          style { name: "btn_base_search_cancel";
1099             base: "font=Tizen:style=Regular font_size="BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC" align=center color="BUTTON_SEARCH_BUTTON_CANCEL_TEXTBLOCK_NORMAL_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_SEARCH_BUTTON_TEXTBLOCK_SHADOW_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
1100             tag: "br" "\n";
1101             tag: "ps" "ps";
1102             tag: "tab" "\t";
1103          }
1104          style { name: "btn_base_search_cancel_pressed";
1105             base: "font=Tizen:style=Regular font_size="BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC" align=center color="BUTTON_SEARCH_BUTTON_CANCEL_TEXTBLOCK_PRESSED_COLOR_INC" style=far_shadow,top shadow_color="BUTTON_SEARCH_BUTTON_TEXTBLOCK_SHADOW_PRESSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
1106             tag: "br" "\n";
1107             tag: "ps" "ps";
1108             tag: "tab" "\t";
1109          }
1110          style { name: "btn_base_search_cancel_dim";
1111             base: "font=Tizen:style=Regular font_size="BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC" align=center color="BUTTON_SEARCH_BUTTON_CANCEL_TEXTBLOCK_DISABLED_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_SEARCH_BUTTON_TEXTBLOCK_SHADOW_DIM_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
1112             tag: "br" "\n";
1113             tag: "ps" "ps";
1114             tag: "tab" "\t";
1115          }
1116          style { name: "btn_base_search_cancel_focus";
1117             base: "font=Tizen:style=Regular font_size="BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC" align=center color="BUTTON_SEARCH_BUTTON_CANCEL_TEXTBLOCK_FOCUSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
1118             tag: "br" "\n";
1119             tag: "ps" "ps";
1120             tag: "tab" "\t";
1121          }
1122       }
1123       parts {
1124          part { name: "button_image";
1125             scale: 1;
1126             description { state: "default" 0.0;
1127                image {
1128                   normal: "00_button_01_delete.png";
1129                   border: BUTTON_SEARCH_BUTTON_BG_BORDER_INC;
1130                   border_scale: 1;
1131                }
1132             }
1133             description { state: "clicked" 0.0;
1134                inherit: "default" 0.0;
1135                image.normal: "00_button_01_delete_press.png";
1136             }
1137             description { state: "disabled" 0.0;
1138                inherit: "default" 0.0;
1139                image.normal: "00_button_01_delete_dim.png";
1140             }
1141             description { state: "focused" 0.0;
1142                inherit: "default" 0.0;
1143                image.normal: "00_button_01_delete_press.png";
1144             }
1145          }
1146          part { name: "bg";
1147             type: RECT;
1148             scale: 1;
1149             mouse_events: 0;
1150             description { state: "default" 0.0;
1151                min: BUTTON_SEARCH_BUTTON_BG_MIN_INC;
1152                visible: 0;
1153             }
1154             description { state: "visible" 0.0;
1155                inherit: "default" 0.0;
1156                min: BUTTON_SEARCH_BUTTON_VISIBLE_BG_MIN_INC;
1157             }
1158             description { state: "icononly" 0.0;
1159                inherit: "default" 0.0;
1160                min: BUTTON_SEARCH_BUTTON_ICONONLY_BG_MIN_INC;
1161             }
1162          }
1163          part { name: "elm.text";
1164             type: TEXTBLOCK;
1165             mouse_events: 0;
1166             scale: 1;
1167             description { state: "default" 0.0;
1168                visible: 0;
1169                rel1 {
1170                   relative: 1.0 1.0;
1171                   to_x: "padding_after_icon";
1172                   to_y: "padding_left_top";
1173                }
1174                rel2 {
1175                   relative: 0.0 0.0;
1176                   to: "padding_right_bottom";
1177                }
1178                text {
1179                   style: "btn_base_search_cancel";
1180                   min: 0 0;
1181                   max: 1 0;
1182                }
1183             }
1184             description { state: "visible" 0.0;
1185                inherit: "default" 0.0;
1186                visible: 1;
1187             }
1188             description { state: "clicked" 0.0;
1189                inherit: "default" 0.0;
1190                visible: 1;
1191                text {
1192                   style: "btn_base_search_cancel_pressed";
1193                }
1194             }
1195             description { state: "disabled" 0.0;
1196                inherit: "default" 0.0;
1197             }
1198             description { state: "disabled_visible" 0.0;
1199                inherit: "default" 0.0;
1200                visible: 1;
1201                text {
1202                   style: "btn_base_search_cancel_dim";
1203                }
1204             }
1205             description { state: "focused" 0.0;
1206                inherit: "default" 0.0;
1207                visible: 1;
1208                text {
1209                   style: "btn_base_search_cancel_focus";
1210                }
1211             }
1212          }
1213       }
1214    }
1215
1216 ///////////////////////////////////////////////////////////////////////////////////////
1217    group { name: "elm/button/base/popup_button/default";
1218       alias: "elm/button/base/popup_button/menustyle";
1219       alias: "elm/button/base/popup_button/liststyle";
1220       alias: "elm/button/base/popup_button/volumebarstyle";
1221       alias: "elm/button/base/popup_button/customstyle";
1222       alias: "elm/button/base/popup_button/verticalbuttonstyle";
1223       alias: "elm/button/base/popup_button/default/multiline";
1224       data {
1225          item: "focus_highlight" "on";
1226       }
1227       images {
1228          image: "00_popup_button.png" COMP;
1229          image: "00_popup_button_dim.png" COMP;
1230          image: "00_popup_button_press.png" COMP;
1231          image: "00_popup_button_focus.png" COMP;
1232       }
1233       styles{
1234          style { name: "btn_base_popup_button";
1235             base: "font=Tizen:style=Bold font_size="BUTTON_POPUP_TEXT_FONT_SIZE_INC" align=center color="BUTTON_POPUP_BUTTON_TEXTBLOCK_NORMAL_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_POPUP_BUTTON_SHADOW_TEXTBLOCK_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
1236             tag: "br" "\n";
1237             tag: "ps" "ps";
1238             tag: "tab" "\t";
1239          }
1240          style { name: "btn_base_popup_button_pressed";
1241             base: "font=Tizen:style=Bold font_size="BUTTON_POPUP_TEXT_FONT_SIZE_INC" align=center color="BUTTON_POPUP_BUTTON_TEXTBLOCK_PRESSED_COLOR_INC" style=far_shadow,top shadow_color="BUTTON_POPUP_BUTTON_SHADOW_TEXTBLOCK_PRESSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
1242             tag: "br" "\n";
1243             tag: "ps" "ps";
1244             tag: "tab" "\t";
1245          }
1246          style { name: "btn_base_popup_button_dim";
1247             base: "font=Tizen:style=Bold font_size="BUTTON_POPUP_TEXT_FONT_SIZE_INC" align=center color="BUTTON_POPUP_BUTTON_TEXTBLOCK_DISABLED_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_POPUP_BUTTON_SHADOW_TEXTBLOCK_DIM_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
1248             tag: "br" "\n";
1249             tag: "ps" "ps";
1250             tag: "tab" "\t";
1251          }
1252          style { name: "btn_base_popup_button_focus";
1253             base: "font=Tizen:style=Bold font_size="BUTTON_POPUP_TEXT_FONT_SIZE_INC" align=center color="BUTTON_POPUP_BUTTON_TEXTBLOCK_FOCUSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
1254             tag: "br" "\n";
1255             tag: "ps" "ps";
1256             tag: "tab" "\t";
1257          }
1258       }
1259       script {
1260          public button_state = BUTTON_STATE_ENABLED;
1261       }
1262       parts {
1263          part { name: "button_image";
1264             scale: 1;
1265             description { state: "default" 0.0;
1266                min: BUTTON_POPUP_BG_NORMAL_MIN_INC;
1267                image {
1268                   normal: "00_popup_button.png";
1269                   border: BUTTON_POPUP_BG_BORDER_INC;
1270                   border_scale: 1;
1271                }
1272             }
1273             description { state: "clicked" 0.0;
1274                inherit: "default" 0.0;
1275                image.normal: "00_popup_button_press.png";
1276             }
1277             description { state: "disabled" 0.0;
1278                inherit: "default" 0.0;
1279                image.normal: "00_popup_button_dim.png";
1280             }
1281             description { state: "focused" 0.0;
1282                inherit: "default" 0.0;
1283                image.normal: "00_popup_button_focus.png";
1284             }
1285          }
1286          part { name: "focus_image";
1287             scale: 1;
1288             mouse_events: 0;
1289             repeat_events: 1;
1290             description { state: "default" 0.0;
1291                visible: 0;
1292                rel1.to : "button_image";
1293                rel2.to : "button_image";
1294                image {
1295                   normal: "00_popup_button_focus.png";
1296                   border: BUTTON_POPUP_BG_BORDER_INC;
1297                   border_scale: 1;
1298                }
1299             }
1300             description { state: "focused" 0.0;
1301                inherit: "default" 0.0;
1302                visible: 1;
1303             }
1304          }
1305          part { name: "padding_left_top";
1306             type: RECT;
1307             scale: 1;
1308             mouse_events: 0;
1309             description { state: "default" 0.0;
1310                align: 0.0 0.0;
1311                rel2.relative: 0.0 0.0;
1312                min: BUTTON_POPUP_PADDING_MIN_INC;
1313                fixed: 1 1;
1314                visible: 0;
1315             }
1316          }
1317          part { name: "padding_right_bottom";
1318             type: RECT;
1319             scale: 1;
1320             description { state: "default" 0.0;
1321                align: 1.0 0.0;
1322                rel1.relative: 1.0 1.0;
1323                min: BUTTON_POPUP_PADDING_MIN_INC;
1324                fixed: 1 1;
1325                visible: 0;
1326             }
1327          }
1328          part { name: "padding_icon_text";
1329             type: RECT;
1330             scale: 1;
1331             description { state: "default" 0.0; //when only icon or no icon is there
1332                align: 0.0 0.0;
1333                rel1 {
1334                   relative: 1.0 0.0;
1335                   to: "elm.swallow.content";
1336                }
1337                rel2.to: "elm.swallow.content";
1338                fixed: 1 0;
1339                min: 0 0;
1340                visible: 0;
1341             }
1342             description { state: "icononly" 0.0;
1343                inherit: "default" 0.0;
1344             }
1345             description { state: "visible" 0.0; //when icon is visible
1346                inherit: "default" 0.0;
1347                min: BUTTON_POPUP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
1348             }
1349          }
1350          part { name: "elm.swallow.content";
1351             type: SWALLOW;
1352             scale: 1;
1353             description { state: "default" 0.0;
1354                visible: 0;
1355                align: 0.0 0.5;
1356                rel1 {
1357                   relative: 1.0 1.0;
1358                   to: "padding_left_top";
1359                }
1360                rel2 {
1361                   relative: 1.0 0.0;
1362                   to_x: "padding_left_top";
1363                   to_y: "padding_right_bottom";
1364                }
1365                fixed: 1 0;
1366             }
1367             description { state: "visible" 0.0;
1368                inherit: "default" 0.0;
1369                fixed: 1 0;
1370                visible: 1;
1371                aspect: 1.0 1.0;
1372                aspect_preference: VERTICAL;
1373             }
1374             description { state: "icononly" 0.0;
1375                inherit: "default" 0.0;
1376                min: BUTTON_POPUP_ICON_ICONONLY_MIN_INC;
1377                visible: 1;
1378                align: 0.5 0.5;
1379             }
1380          }
1381          part { name: "elm.swallow.content.shadow.proxy";
1382             type: PROXY;
1383             scale: 1;
1384             clip_to: "elm.swallow.content.shadow.clipper";
1385             description { state: "default" 0.0;
1386                source: "elm.swallow.content";
1387                proxy.source_clip: 0;
1388                rel1 {
1389                   to: "elm.swallow.content";
1390                   offset: BUTTON_POPUP_NORMAL_TOP_OFFSET_INC;
1391                }
1392                rel2 {
1393                   to: "elm.swallow.content";
1394                   offset: BUTTON_POPUP_NORMAL_BOTTOM_OFFSET_INC;
1395                }
1396             }
1397             description { state: "clicked" 0.0;
1398                inherit: "default" 0.0;
1399                rel1 {
1400                   to: "elm.swallow.content";
1401                   offset: BUTTON_POPUP_PRESSED_TOP_OFFSET_INC;
1402                }
1403                rel2 {
1404                   to: "elm.swallow.content";
1405                   offset: BUTTON_POPUP_PRESSED_BOTTOM_OFFSET_INC;
1406                }
1407             }
1408             description { state: "disabled" 0.0;
1409                inherit: "default" 0.0;
1410             }
1411          }
1412          part { name: "elm.swallow.content.proxy";
1413             type: PROXY;
1414             scale: 1;
1415             clip_to: "icon_clipper";
1416             description { state: "default" 0.0;
1417                source: "elm.swallow.content";
1418                proxy.source_clip: 0;
1419                rel1.to: "elm.swallow.content";
1420                rel2.to: "elm.swallow.content";
1421             }
1422          }
1423          part { name: "elm.swallow.content.shadow.clipper";
1424             scale: 1;
1425             type: RECT;
1426             description { state: "default" 0.0;
1427                color: BUTTON_POPUP_SHADOW_NORMAL_COLOR_INC;
1428             }
1429             description { state: "clicked" 0.0;
1430                color: BUTTON_POPUP_SHADOW_PRESSED_COLOR_INC;
1431             }
1432             description { state: "disabled" 0.0;
1433                color: BUTTON_POPUP_SHADOW_DISABLED_COLOR_INC;
1434             }
1435          }
1436          part { name: "icon_clipper";
1437             scale: 1;
1438             type: RECT;
1439             description { state: "default" 0.0;
1440                color: BUTTON_POPUP_ICON_NORMAL_COLOR_INC;
1441             }
1442             description { state: "clicked" 0.0;
1443                color: BUTTON_POPUP_ICON_PRESSED_COLOR_INC;
1444             }
1445             description { state: "disabled" 0.0;
1446                color: BUTTON_POPUP_ICON_DISABLED_COLOR_INC;
1447             }
1448          }
1449          part { name: "elm.text";
1450             type: TEXTBLOCK;
1451             mouse_events: 0;
1452             scale: 1;
1453             description { state: "default" 0.0;
1454                visible: 0;
1455                rel1 {
1456                   relative: 1.0 1.0;
1457                   to_x: "padding_icon_text";
1458                   to_y: "padding_left_top";
1459                }
1460                rel2 {
1461                   relative: 0.0 0.0;
1462                   to: "padding_right_bottom";
1463                }
1464                text {
1465                   style: "btn_base_popup_button";
1466                   min: 0 0;
1467                }
1468             }
1469             description { state: "visible" 0.0;
1470                inherit: "default" 0.0;
1471                visible: 1;
1472                min: BUTTON_POPUP_TEXT_MIN_INC;
1473             }
1474             description { state: "clicked" 0.0;
1475                inherit: "default" 0.0;
1476                visible: 1;
1477                text {
1478                   style: "btn_base_popup_button_pressed";
1479                   min: 0 0;
1480                }
1481             }
1482             description { state: "disabled" 0.0;
1483                inherit: "default" 0.0;
1484             }
1485             description { state: "disabled_visible" 0.0;
1486                inherit: "default" 0.0;
1487                visible: 1;
1488                text {
1489                   style: "btn_base_popup_button_dim";
1490                }
1491                min: BUTTON_POPUP_TEXT_MIN_INC;
1492             }
1493             description { state: "focused" 0.0;
1494                inherit: "default" 0.0;
1495                visible: 1;
1496                text {
1497                   style: "btn_base_popup_button_dim";
1498                   min: 0 0;
1499                }
1500             }
1501          }
1502          part { name: "over2";
1503             type: RECT;
1504             repeat_events: 1;
1505             ignore_flags: ON_HOLD;
1506             description { state: "default" 0.0;
1507                color: 0 0 0 0;
1508             }
1509          }
1510          part { name: "over3";
1511             type: RECT;
1512             repeat_events: 1;
1513             description { state: "default" 0.0;
1514                color: 0 0 0 0;
1515             }
1516          }
1517          part { name: "disabler";
1518             type: RECT;
1519             description { state: "default" 0.0;
1520                color: 0 0 0 0;
1521                visible: 0;
1522             }
1523             description { state: "disabled" 0.0;
1524                inherit: "default" 0.0;
1525                visible: 1;
1526             }
1527          }
1528       }
1529       programs {
1530          program { name: "button_click";
1531             signal: "mouse,down,1";
1532             source: "over2";
1533             action: SIGNAL_EMIT "elm,action,press" "";
1534             after: "button_click_anim";
1535          }
1536          program { name: "button_click_anim";
1537             action: STATE_SET "clicked" 0.0;
1538             target: "button_image";
1539             target: "elm.swallow.content.shadow.proxy";
1540             target: "elm.swallow.content.shadow.clipper";
1541             target: "icon_clipper";
1542             after: "text_clicked";
1543          }
1544          program { name: "text_clicked";
1545             script {
1546                new st[31];
1547                new Float:vl;
1548                get_state(PART:"elm.text", st, 30, vl);
1549                if (!strcmp(st, "visible"))
1550                  set_state(PART:"elm.text", "clicked", 0.0);
1551             }
1552          }
1553          program { name: "button_double_click";
1554             signal: "mouse,down,1,double";
1555             source: "over2";
1556             after: "button_click_anim";
1557          }
1558          program { name: "button_unpress";
1559             action: SIGNAL_EMIT "elm,action,unpress" "";
1560          }
1561          program { name: "button_mouseout_clicked";
1562             signal: "mouse,up,1";
1563             source: "over3";
1564             script {
1565                new st[31];
1566                new Float:vl;
1567                get_state(PART:"elm.swallow.content", st, 30, vl);
1568                if (strcmp(st, "icononly"))
1569                  {
1570                     emit("elm,action,default,text,set", "");
1571                     set_state(PART:"elm.text", "visible", 0.0);
1572                  }
1573                if (get_int(button_state) != BUTTON_STATE_DISABLED)
1574                  set_state(PART:"button_image", "default", 0.0);
1575                set_state(PART:"elm.swallow.content.shadow.proxy", "default", 0.0);
1576                set_state(PART:"elm.swallow.content.shadow.clipper", "default", 0.0);
1577                set_state(PART:"icon_clipper", "default", 0.0);
1578             }
1579             after: button_unpress;
1580          }
1581          program { name: "touch_snd";
1582             signal: "mouse,clicked,1";
1583             source: "over2";
1584             action: PLAY_SAMPLE "touch_sound" 1.0;
1585             after: button_unclick3;
1586          }
1587          program { name: "button_unclick3";
1588             action: SIGNAL_EMIT "elm,action,click" "";
1589          }
1590          program { name: "text_show";
1591             signal: "elm,state,text,visible";
1592             source: "elm";
1593             script {
1594                new st[31];
1595                new Float:vl;
1596                get_state(PART:"elm.swallow.content", st, 30, vl);
1597                if (!strcmp(st, "icononly"))
1598                  {
1599                     set_state(PART:"elm.swallow.content", "visible", 0.0);
1600                     set_state(PART:"padding_icon_text", "visible", 0.0);
1601                  }
1602                if (get_int(button_state) != BUTTON_STATE_DISABLED)
1603                  set_state(PART:"elm.text", "visible", 0.0);
1604                else
1605                  set_state(PART:"elm.text", "disabled_visible", 0.0);
1606             }
1607          }
1608          program { name: "text_hide";
1609             signal: "elm,state,text,hidden";
1610             source: "elm";
1611             script {
1612                new st[31];
1613                new Float:vl;
1614                get_state(PART:"elm.swallow.content", st, 30, vl);
1615                if (!strcmp(st, "visible"))
1616                  {
1617                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
1618                     set_state(PART:"padding_icon_text", "icononly", 0.0);
1619                  }
1620                set_state(PART:"elm.text", "default", 0.0);
1621             }
1622          }
1623          program { name: "icon_show";
1624             signal: "elm,state,icon,visible";
1625             source: "elm";
1626             script {
1627                new st[31];
1628                new Float:vl;
1629                get_state(PART:"elm.text", st, 30, vl);
1630                if (!strcmp(st, "visible"))
1631                  {
1632                     set_state(PART:"elm.swallow.content", "visible", 0.0);
1633                     set_state(PART:"padding_icon_text", "visible", 0.0);
1634                  }
1635                else
1636                  {
1637                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
1638                     set_state(PART:"padding_icon_text", "icononly", 0.0);
1639                  }
1640             }
1641          }
1642          program { name: "icon_hide";
1643             signal: "elm,state,icon,hidden";
1644             source: "elm";
1645             action: STATE_SET "default" 0.0;
1646             target: "elm.swallow.content";
1647             target: "padding_icon_text";
1648          }
1649          program { name: "disable";
1650             signal: "elm,state,disabled";
1651             source: "elm";
1652             action: STATE_SET "disabled" 0.0;
1653             target: "button_image";
1654             target: "elm.swallow.content.shadow.proxy";
1655             target: "elm.swallow.content.shadow.clipper";
1656             target: "icon_clipper";
1657             target: "disabler";
1658             after: "disable_text";
1659          }
1660          program { name: "disable_text";
1661             script {
1662                new st[31];
1663                new Float:vl;
1664                get_state(PART:"elm.text", st, 30, vl);
1665                if (!strcmp(st, "visible"))
1666                  set_state(PART:"elm.text", "disabled_visible", 0.0);
1667                else
1668                  set_state(PART:"elm.text", "disabled", 0.0);
1669                set_int(button_state, BUTTON_STATE_DISABLED);
1670             }
1671          }
1672          program { name: "enable";
1673             signal: "elm,state,enabled";
1674             source: "elm";
1675             action: STATE_SET "default" 0.0;
1676             target: "button_image";
1677             target: "elm.swallow.content.shadow.proxy";
1678             target: "elm.swallow.content.shadow.clipper";
1679             target: "icon_clipper";
1680             target: "disabler";
1681             after: "enable_text";
1682          }
1683          program { name: "enable_text";
1684             script {
1685                new st[31];
1686                new Float:vl;
1687                get_state(PART:"elm.text", st, 30, vl);
1688                if (!strcmp(st, "disabled_visible"))
1689                  set_state(PART:"elm.text", "visible", 0.0);
1690                else
1691                  set_state(PART:"elm.text", "default", 0.0);
1692                set_int(button_state, BUTTON_STATE_ENABLED);
1693             }
1694          }
1695          program { name: "action_focus";
1696             signal: "elm,action,focus_highlight,show";
1697             source: "elm";
1698             action: STATE_SET "focused" 0.0;
1699             target: "focus_image";
1700          }
1701          program { name: "action_unfocus";
1702             signal: "elm,action,focus_highlight,hide";
1703             source: "elm";
1704             action: STATE_SET "default" 0.0;
1705             target: "focus_image";
1706          }
1707       }
1708    }
1709
1710 ///////////////////////////////////////////////////////////////////////////////////////
1711 #define BUTTON_CIRCLE_STYLES(style_name, image_normal, min_width, min_height) \
1712    group { name: "elm/button/base/"style_name; \
1713       data { \
1714          item: "focus_highlight" "on"; \
1715       } \
1716       images { \
1717          image: "00_circle_button.png" COMP; \
1718          image: "00_circle_button_press.png" COMP; \
1719          image: "00_circle_button_dim.png" COMP; \
1720          image: image_normal COMP; \
1721          image: 00_circle_button_focus.png COMP; \
1722       } \
1723       parts { \
1724          part { name: "button_image"; \
1725             scale: 1; \
1726             description { state: "default" 0.0; \
1727                min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
1728                max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
1729                image.normal: "00_circle_button.png"; \
1730             } \
1731             description { \
1732                state: "clicked" 0.0; \
1733                inherit: "default" 0.0; \
1734                image.normal: "00_circle_button_press.png"; \
1735             } \
1736             description { \
1737                state: "disabled" 0.0; \
1738                inherit: "default" 0.0; \
1739                image.normal: "00_circle_button_dim.png"; \
1740             } \
1741          } \
1742          part { name: "left_top_padding"; \
1743             scale: 1; \
1744             type: SPACER; \
1745             description { state: "default" 0.0; \
1746                min: BUTTON_CIRCLE_STYLE_LEFT_PADDING_MIN_MAX_INC; \
1747                max: BUTTON_CIRCLE_STYLE_LEFT_PADDING_MIN_MAX_INC; \
1748                fixed: 1 1; \
1749                align: 0.0 0.0; \
1750                rel1.to: "button_image"; \
1751                rel2.to: "button_image"; \
1752             } \
1753          } \
1754          part { name: "right_bottom_padding"; \
1755             scale: 1; \
1756             type: SPACER; \
1757             description { state: "default" 0.0; \
1758                min: BUTTON_CIRCLE_STYLE_RIGHT_PADDING_MIN_MAX_INC; \
1759                max: BUTTON_CIRCLE_STYLE_RIGHT_PADDING_MIN_MAX_INC; \
1760                fixed: 1 1; \
1761                align: 1.0 1.0; \
1762                rel1 { \
1763                   relative: 1.0 1.0; \
1764                   to: "button_image"; \
1765                } \
1766                rel2.to: "button_image"; \
1767             } \
1768          } \
1769          part { name: "button_center_part"; \
1770             scale: 1; \
1771             description { state: "default" 0.0; \
1772                min: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
1773                max: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
1774                image.normal: image_normal; \
1775                rel1 { \
1776                   relative: 1.0 1.0; \
1777                   to: "left_top_padding"; \
1778                } \
1779                rel2 { \
1780                   relative: 0.0 0.0; \
1781                   to: "right_bottom_padding"; \
1782                } \
1783             } \
1784          } \
1785          part { name: "elm.swallow.icon.shadow.proxy"; \
1786             type: PROXY; \
1787             clip_to: "elm.icon.proxy.clipper"; \
1788             scale: 1; \
1789             description { state: "default" 0.0; \
1790                 source: "button_center_part"; \
1791                 proxy.source_clip: 0; \
1792                 rel1 { \
1793                    to: "button_center_part"; \
1794                    offset: BUTTON_CIRCLE_STYLE_NORMAL_TOP_OFFSET_INC; \
1795                 } \
1796                 rel2 { \
1797                    to: "button_center_part"; \
1798                    offset: BUTTON_CIRCLE_STYLE_NORMAL_BOTTOM_OFFSET_INC; \
1799                 } \
1800             } \
1801             description { state: "clicked" 0.0; \
1802                 inherit: "default" 0.0; \
1803                 rel1 { \
1804                    to: "button_center_part"; \
1805                    offset: BUTTON_CIRCLE_STYLE_PRESSED_TOP_OFFSET_INC; \
1806                 } \
1807                 rel2 { \
1808                    to: "button_center_part"; \
1809                    offset: BUTTON_CIRCLE_STYLE_PRESSED_BOTTOM_OFFSET_INC; \
1810                 } \
1811             } \
1812             description { state: "disabled" 0.0; \
1813                 inherit: "default" 0.0; \
1814             } \
1815          } \
1816          part { name: "elm.swallow.icon.proxy"; \
1817             type: PROXY; \
1818             scale: 1; \
1819             clip_to: "icon_clipper"; \
1820             description { state: "default" 0.0; \
1821                 source: "button_center_part"; \
1822                 proxy.source_clip: 0; \
1823                 rel1.to: "button_center_part"; \
1824                 rel2.to: "button_center_part"; \
1825             } \
1826          }\
1827          part { name: "elm.icon.proxy.clipper"; \
1828             type: RECT; \
1829             description { state: "default" 0.0; \
1830                color: BUTTON_CIRCLE_STYLE_CLIPPER_DEFAULT_COLOR_INC; \
1831             } \
1832             description { state: "clicked" 0.0; \
1833                color: BUTTON_CIRCLE_STYLE_ICON_CLIPPER_PRESSED_COLOR_INC; \
1834             } \
1835             description { state: "disabled" 0.0; \
1836                color: BUTTON_CIRCLE_STYLE_ICON_CLIPPER_DISABLED_COLOR_INC; \
1837             } \
1838          } \
1839          part { name: "icon_clipper"; \
1840             type: RECT; \
1841             scale: 1; \
1842             description { state: "default" 0.0; \
1843                color: BUTTON_CIRCLE_STYLE_NORMAL_COLOR_INC; \
1844             } \
1845             description { state: "clicked" 0.0; \
1846                color: BUTTON_CIRCLE_STYLE_PRESSED_COLOR_INC; \
1847             } \
1848             description { state: "disabled" 0.0; \
1849                color: BUTTON_CIRCLE_STYLE_DISABLED_COLOR_INC; \
1850             } \
1851          } \
1852          part { name: "focus_image"; \
1853             scale: 1; \
1854             mouse_events: 0; \
1855             repeat_events: 1; \
1856               description { state: "default" 0.0; \
1857                  min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
1858                  max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
1859                  visible: 0; \
1860                  rel1.to : "button_image"; \
1861                  rel2.to : "button_image"; \
1862                  image { \
1863                   normal: "00_circle_button_focus.png"; \
1864                   border_scale: 1; \
1865                } \
1866             } \
1867             description { state: "focused" 0.0; \
1868                inherit: "default" 0.0; \
1869                visible: 1; \
1870             } \
1871          } \
1872          part { name: "over1"; \
1873             type: RECT; \
1874             ignore_flags: ON_HOLD; \
1875             description { state: "default" 0.0; \
1876                color: 0 0 0 0; \
1877                min: min_width min_height; \
1878             } \
1879          } \
1880          part { name: "over2"; \
1881             type: RECT; \
1882             repeat_events: 1; \
1883             description { state: "default" 0.0; \
1884                color: 0 0 0 0; \
1885             } \
1886          } \
1887          part { name: "disabler"; \
1888             type: RECT; \
1889             description { state: "default" 0.0; \
1890                color: 0 0 0 0; \
1891                visible: 0; \
1892             } \
1893             description { state: "disabled" 0.0; \
1894                inherit: "default" 0.0; \
1895                visible: 1; \
1896             } \
1897          } \
1898       } \
1899       programs { \
1900          program { name: "button_click"; \
1901             signal: "mouse,down,1"; \
1902             source: "over1"; \
1903             action: SIGNAL_EMIT "elm,action,press" ""; \
1904             after: "button_click_anim"; \
1905          } \
1906          program { name: "button_click_anim"; \
1907             action: STATE_SET "clicked" 0.0; \
1908             target: "button_image"; \
1909             target: "elm.swallow.icon.shadow.proxy"; \
1910             target: "elm.icon.proxy.clipper"; \
1911             target: "icon_clipper"; \
1912          } \
1913          program { name: "button_double_click"; \
1914             signal: "mouse,down,1,double"; \
1915             source: "over1"; \
1916             after: "button_click_anim"; \
1917          } \
1918          program { name: "button_unclick"; \
1919             signal: "mouse,up,1"; \
1920             source: "over2"; \
1921             action: SIGNAL_EMIT "elm,action,unpress" ""; \
1922             after: "button_unclick_anim"; \
1923          } \
1924          program { name: "button_unclick_anim"; \
1925             action: STATE_SET "default" 0.0; \
1926             target: "button_image"; \
1927             target: "elm.swallow.icon.shadow.proxy"; \
1928             target: "elm.icon.proxy.clipper"; \
1929             target: "icon_clipper"; \
1930          } \
1931          program { name: "touch_snd"; \
1932             signal: "mouse,clicked,1"; \
1933             source: "over1"; \
1934             action: PLAY_SAMPLE "touch_sound" 1.0; \
1935             after: button_unclick3; \
1936          } \
1937          program { name: "button_unclick3"; \
1938             action: SIGNAL_EMIT "elm,action,click" ""; \
1939          } \
1940          program { name: "disable"; \
1941             signal: "elm,state,disabled"; \
1942             source: "elm"; \
1943             action: STATE_SET "disabled" 0.0; \
1944             target: "disabler"; \
1945             target: "button_image"; \
1946             target: "elm.swallow.icon.shadow.proxy"; \
1947             target: "elm.icon.proxy.clipper"; \
1948             target: "icon_clipper"; \
1949          } \
1950          program { name: "enable"; \
1951             signal: "elm,state,enabled"; \
1952             source: "elm"; \
1953             action: STATE_SET "default" 0.0; \
1954             target: "disabler"; \
1955             target: "button_image"; \
1956             target: "elm.swallow.icon.shadow.proxy"; \
1957             target: "elm.icon.proxy.clipper"; \
1958             target: "icon_clipper"; \
1959          } \
1960          program { name: "action_focus"; \
1961             signal: "elm,action,focus_highlight,show"; \
1962             source: "elm"; \
1963             action: STATE_SET "focused" 0.0; \
1964             target: "focus_image"; \
1965          } \
1966          program { name: "action_unfocus"; \
1967             signal: "elm,action,focus_highlight,hide"; \
1968             source: "elm"; \
1969             action: STATE_SET "default" 0.0; \
1970             target: "focus_image"; \
1971          } \
1972       } \
1973    }
1974
1975 ///////////////////////////////////////////////////////////////////////////////////////
1976    BUTTON_CIRCLE_STYLES("reveal","00_button_right.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
1977
1978 ///////////////////////////////////////////////////////////////////////////////////////
1979    BUTTON_CIRCLE_STYLES("reveal/extended", "00_button_right.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
1980
1981 ///////////////////////////////////////////////////////////////////////////////////////
1982    BUTTON_CIRCLE_STYLES("expand/closed", "00_button_expand_closed.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
1983
1984 ///////////////////////////////////////////////////////////////////////////////////////
1985    BUTTON_CIRCLE_STYLES("expand/closed/extended", "00_button_expand_closed.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
1986
1987 ///////////////////////////////////////////////////////////////////////////////////////
1988    BUTTON_CIRCLE_STYLES("expand/opened", "00_button_expand_opened.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
1989
1990 ///////////////////////////////////////////////////////////////////////////////////////
1991    BUTTON_CIRCLE_STYLES("expand/opened/extended", "00_button_expand_opened.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
1992
1993 ///////////////////////////////////////////////////////////////////////////////////////
1994    BUTTON_CIRCLE_STYLES("info", "00_button_info.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
1995
1996 ///////////////////////////////////////////////////////////////////////////////////////
1997    BUTTON_CIRCLE_STYLES("info/extended", "00_button_info.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
1998
1999 ///////////////////////////////////////////////////////////////////////////////////////
2000    BUTTON_CIRCLE_STYLES("rename", "00_button_rename.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2001
2002 ///////////////////////////////////////////////////////////////////////////////////////
2003    BUTTON_CIRCLE_STYLES("rename/extended", "00_button_rename.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2004
2005 ///////////////////////////////////////////////////////////////////////////////////////
2006    BUTTON_CIRCLE_STYLES("call", "00_button_call.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2007
2008 ///////////////////////////////////////////////////////////////////////////////////////
2009    BUTTON_CIRCLE_STYLES("call/extended", "00_button_call.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2010
2011 ///////////////////////////////////////////////////////////////////////////////////////
2012    BUTTON_CIRCLE_STYLES("plus", "00_button_add.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2013
2014 ///////////////////////////////////////////////////////////////////////////////////////
2015    BUTTON_CIRCLE_STYLES("plus/extended", "00_button_add.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2016
2017 ///////////////////////////////////////////////////////////////////////////////////////
2018    BUTTON_CIRCLE_STYLES("minus", "00_button_delete.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2019
2020 ///////////////////////////////////////////////////////////////////////////////////////
2021    BUTTON_CIRCLE_STYLES("minus/extended", "00_button_delete.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2022
2023 ///////////////////////////////////////////////////////////////////////////////////////
2024    BUTTON_CIRCLE_STYLES("cancel", "00_button_expand_cancel.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2025
2026 ///////////////////////////////////////////////////////////////////////////////////////
2027    BUTTON_CIRCLE_STYLES("cancel/extended", "00_button_expand_cancel.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2028
2029 ///////////////////////////////////////////////////////////////////////////////////////
2030    BUTTON_CIRCLE_STYLES("send", "00_button_expand_send.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2031
2032 ///////////////////////////////////////////////////////////////////////////////////////
2033    BUTTON_CIRCLE_STYLES("send/extended", "00_button_expand_send.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2034 ///////////////////////////////////////////////////////////////////////////////////////
2035
2036 ///////////////////////////////////////////////////////////////////////////////////////
2037    BUTTON_CIRCLE_STYLES("contact", "00_button_contact.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2038 ///////////////////////////////////////////////////////////////////////////////////////
2039
2040 #define BUTTON_CIRCLE_WARNING_STYLES(style_name, min_width, min_height) \
2041    group { name: "elm/button/base/"style_name; \
2042       inherit: "elm/button/base/info"; \
2043       images { \
2044          image: "00_circle_button_delete.png" COMP; \
2045          image: "00_circle_button_delete_press.png" COMP; \
2046          image: "00_circle_button_delete_dim.png" COMP; \
2047          image: "00_button_warning.png" COMP; \
2048       } \
2049       parts { \
2050          part { name: "button_image"; \
2051             scale: 1; \
2052             description { state: "default" 0.0; \
2053                image.normal: "00_circle_button_delete.png"; \
2054             } \
2055             description { \
2056                state: "clicked" 0.0; \
2057                inherit: "default" 0.0; \
2058                image.normal: "00_circle_button_delete_press.png"; \
2059             } \
2060             description { \
2061                state: "disabled" 0.0; \
2062                inherit: "default" 0.0; \
2063                image.normal: "00_circle_button_delete_dim.png"; \
2064             } \
2065          } \
2066          part { name: "button_center_part"; \
2067             scale: 1; \
2068             description { state: "default" 0.0; \
2069                min: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
2070                max: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
2071                image.normal: "00_button_warning.png"; \
2072                rel1 { \
2073                   relative: 1.0 1.0; \
2074                   to: "left_top_padding"; \
2075                } \
2076                rel2 { \
2077                   relative: 0.0 0.0; \
2078                   to: "right_bottom_padding"; \
2079                } \
2080             } \
2081          } \
2082          part { name: "elm.swallow.icon.shadow.proxy"; \
2083             type: PROXY; \
2084             clip_to: "elm.icon.proxy.clipper"; \
2085             scale: 1; \
2086             description { state: "default" 0.0; \
2087                 source: "button_center_part"; \
2088                 proxy.source_clip: 0; \
2089                 rel1 { \
2090                    to: "button_center_part"; \
2091                    offset: BUTTON_WARNING_STYLE_NORMAL_TOP_OFFSET_INC; \
2092                 } \
2093                 rel2 { \
2094                    to: "button_center_part"; \
2095                    offset: BUTTON_WARNING_STYLE_NORMAL_BOTTOM_OFFSET_INC; \
2096                 } \
2097             } \
2098             description { state: "clicked" 0.0; \
2099                 inherit: "default" 0.0; \
2100                 rel1 { \
2101                    to: "button_center_part"; \
2102                    offset: BUTTON_WARNING_STYLE_PRESSED_TOP_OFFSET_INC; \
2103                 } \
2104                 rel2 { \
2105                    to: "button_center_part"; \
2106                    offset: BUTTON_WARNING_STYLE_PRESSED_BOTTOM_OFFSET_INC; \
2107                 } \
2108             } \
2109             description { state: "disabled" 0.0; \
2110                 inherit: "default" 0.0; \
2111             } \
2112          } \
2113          part { name: "elm.icon.proxy.clipper"; \
2114             type: RECT; \
2115             description { state: "default" 0.0; \
2116                color: BUTTON_WARNING_STYLE_CLIPPER_NORMAL_COLOR_INC; \
2117             } \
2118             description { state: "clicked" 0.0; \
2119                color: BUTTON_WARNING_STYLE_CLIPPER_PRESSED_COLOR_INC; \
2120             } \
2121             description { state: "disabled" 0.0; \
2122                color: BUTTON_WARNING_STYLE_CLIPPER_DISABLED_COLOR_INC; \
2123             } \
2124          } \
2125          part { name: "icon_clipper"; \
2126             type: RECT; \
2127             scale: 1; \
2128             description { state: "default" 0.0; \
2129                color: BUTTON_WARNING_STYLE_NORMAL_COLOR_INC; \
2130             } \
2131             description { state: "clicked" 0.0; \
2132                color: BUTTON_WARNING_STYLE_PRESSED_COLOR_INC; \
2133             } \
2134             description { state: "disabled" 0.0; \
2135                color: BUTTON_WARNING_STYLE_DISABLED_COLOR_INC; \
2136             } \
2137          } \
2138          part { name: "over1"; \
2139             type: RECT; \
2140             ignore_flags: ON_HOLD; \
2141             description { state: "default" 0.0; \
2142                color: 0 0 0 0; \
2143                min: min_width min_height; \
2144             } \
2145          } \
2146       } \
2147    }
2148
2149 ///////////////////////////////////////////////////////////////////////////////////////
2150    BUTTON_CIRCLE_WARNING_STYLES("warning", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2151
2152 ///////////////////////////////////////////////////////////////////////////////////////
2153    BUTTON_CIRCLE_WARNING_STYLES("warning/extended", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2154
2155 ///////////////////////////////////////////////////////////////////////////////////////
2156    group { name: "elm/button/base/circle/empty";
2157       data {
2158          item: "focus_highlight" "on";
2159       }
2160       images {
2161          image: "00_circle_button.png" COMP;
2162          image: "00_circle_button_press.png" COMP;
2163          image: "00_circle_button_dim.png" COMP;
2164          image: 00_circle_button_focus.png COMP;
2165       }
2166       parts {
2167          part { name: "button_image";
2168             scale: 1;
2169             description { state: "default" 0.0;
2170                min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
2171                max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
2172                fixed: 1 1;
2173                image.normal: "00_circle_button.png";
2174             }
2175             description { state: "clicked" 0.0;
2176                inherit: "default" 0.0;
2177                image.normal: "00_circle_button_press.png";
2178             }
2179             description { state: "disabled" 0.0;
2180                inherit: "default" 0.0;
2181                image.normal: "00_circle_button_dim.png";
2182             }
2183          }
2184          part { name: "left_top_padding";
2185             scale: 1;
2186             type: SPACER;
2187             description { state: "default" 0.0;
2188                min: BUTTON_CIRCLE_STYLE_LEFT_PADDING_MIN_MAX_INC;
2189                max: BUTTON_CIRCLE_STYLE_LEFT_PADDING_MIN_MAX_INC;
2190                fixed: 1 1;
2191                align: 0.0 0.0;
2192                rel1.to: "button_image";
2193                rel2.to: "button_image";
2194             }
2195          }
2196          part { name: "right_bottom_padding";
2197             scale: 1;
2198             type: SPACER;
2199             description { state: "default" 0.0;
2200                min: BUTTON_CIRCLE_STYLE_RIGHT_PADDING_MIN_MAX_INC;
2201                max: BUTTON_CIRCLE_STYLE_RIGHT_PADDING_MIN_MAX_INC;
2202                fixed: 1 1;
2203                align: 1.0 1.0;
2204                rel1 {
2205                   relative: 1.0 1.0;
2206                   to: "button_image";
2207                }
2208                rel2.to: "button_image";
2209             }
2210          }
2211          part { name: "elm.swallow.content";
2212             type: SWALLOW;
2213             scale: 1;
2214             description { state: "default" 0.0;
2215                min: BUTTON_CIRCLE_STYLE_CONTENT_MIN_MAX_INC;
2216                max: BUTTON_CIRCLE_STYLE_CONTENT_MIN_MAX_INC;
2217                fixed: 1 1;
2218                rel1 {
2219                   relative: 1.0 1.0;
2220                   to: "left_top_padding";
2221                }
2222                rel2 {
2223                   relative: 0.0 0.0;
2224                   to: "right_bottom_padding";
2225                }
2226             }
2227          }
2228          part { name: "elm.swallow.icon.shadow.proxy";
2229             type: PROXY;
2230             clip_to: "elm.icon.proxy.clipper";
2231             scale: 1;
2232             description { state: "default" 0.0;
2233                 source: "elm.swallow.content";
2234                 proxy.source_clip: 0;
2235                 rel1 {
2236                    to: "elm.swallow.content";
2237                    offset: BUTTON_CIRCLE_STYLE_NORMAL_TOP_OFFSET_INC;
2238                 }
2239                 rel2 {
2240                    to: "elm.swallow.content";
2241                    offset: BUTTON_CIRCLE_STYLE_NORMAL_BOTTOM_OFFSET_INC;
2242                 }
2243             }
2244             description { state: "clicked" 0.0;
2245                 inherit: "default" 0.0;
2246                 rel1 {
2247                    to: "elm.swallow.content";
2248                    offset: BUTTON_CIRCLE_STYLE_PRESSED_TOP_OFFSET_INC;
2249                 }
2250                 rel2 {
2251                    to: "elm.swallow.content";
2252                    offset: BUTTON_CIRCLE_STYLE_PRESSED_BOTTOM_OFFSET_INC;
2253                 }
2254             }
2255             description { state: "disabled" 0.0;
2256                 inherit: "default" 0.0;
2257             }
2258          }
2259          part { name: "elm.swallow.icon.proxy";
2260             type: PROXY;
2261             scale: 1;
2262             clip_to: "icon_clipper";
2263             description { state: "default" 0.0;
2264                 source: "elm.swallow.content";
2265                 proxy.source_clip: 0;
2266                 rel1.to: "elm.swallow.content";
2267                 rel2.to: "elm.swallow.content";
2268             }
2269          }
2270          part { name: "elm.icon.proxy.clipper";
2271             type: RECT;
2272             description { state: "default" 0.0;
2273                color: BUTTON_CIRCLE_STYLE_CLIPPER_DEFAULT_COLOR_INC;
2274             }
2275             description { state: "clicked" 0.0;
2276                color: BUTTON_CIRCLE_STYLE_ICON_CLIPPER_PRESSED_COLOR_INC;
2277             }
2278             description { state: "disabled" 0.0;
2279                color: BUTTON_CIRCLE_STYLE_ICON_CLIPPER_DISABLED_COLOR_INC;
2280             }
2281          }
2282          part { name: "icon_clipper";
2283             type: RECT;
2284             scale: 1;
2285             description { state: "default" 0.0;
2286                color: BUTTON_CIRCLE_STYLE_NORMAL_COLOR_INC;
2287             }
2288             description { state: "clicked" 0.0;
2289                color: BUTTON_CIRCLE_STYLE_PRESSED_COLOR_INC;
2290             }
2291             description { state: "disabled" 0.0;
2292                color: BUTTON_CIRCLE_STYLE_DISABLED_COLOR_INC;
2293             }
2294          }
2295          part { name: "focus_image";
2296             scale: 1;
2297             mouse_events: 0;
2298             repeat_events: 1;
2299               description { state: "default" 0.0;
2300                  min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
2301                  max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
2302                  visible: 0;
2303                  rel1.to : "button_image";
2304                  rel2.to : "button_image";
2305                  image {
2306                   normal: "00_circle_button_focus.png";
2307                   border_scale: 1;
2308                }
2309             }
2310             description { state: "focused" 0.0;
2311                inherit: "default" 0.0;
2312                visible: 1;
2313             }
2314          }
2315          part { name: "over1";
2316             type: RECT;
2317             ignore_flags: ON_HOLD;
2318             description { state: "default" 0.0;
2319                color: 0 0 0 0;
2320             }
2321          }
2322          part { name: "over2";
2323             type: RECT;
2324             repeat_events: 1;
2325             description { state: "default" 0.0;
2326                color: 0 0 0 0;
2327             }
2328          }
2329          part { name: "disabler";
2330             type: RECT;
2331             description { state: "default" 0.0;
2332                color: 0 0 0 0;
2333                visible: 0;
2334             }
2335             description { state: "disabled" 0.0;
2336                inherit: "default" 0.0;
2337                visible: 1;
2338             }
2339          }
2340       }
2341       programs {
2342          program { name: "button_click";
2343             signal: "mouse,down,1";
2344             source: "over1";
2345             action: SIGNAL_EMIT "elm,action,press" "";
2346             after: "button_click_anim";
2347          }
2348          program { name: "button_click_anim";
2349             action: STATE_SET "clicked" 0.0;
2350             target: "button_image";
2351             target: "elm.swallow.icon.shadow.proxy";
2352             target: "elm.icon.proxy.clipper";
2353             target: "icon_clipper";
2354          }
2355          program { name: "button_double_click";
2356             signal: "mouse,down,1,double";
2357             source: "over1";
2358             after: "button_click_anim";
2359          }
2360          program { name: "touch_snd";
2361             signal: "mouse,clicked,1";
2362             source: "over1";
2363             action: PLAY_SAMPLE "touch_sound" 1.0;
2364             after: button_unclick2;
2365          }
2366          program { name: "button_unclick2";
2367             action: SIGNAL_EMIT "elm,action,click" "";
2368          }
2369          program { name: "button_unclick";
2370             signal: "mouse,up,1";
2371             source: "over2";
2372             action: SIGNAL_EMIT "elm,action,unpress" "";
2373             after: "button_unclick_anim";
2374          }
2375          program { name: "button_unclick_anim";
2376             action: STATE_SET "default" 0.0;
2377             target: "button_image";
2378             target: "elm.swallow.icon.shadow.proxy";
2379             target: "elm.icon.proxy.clipper";
2380             target: "icon_clipper";
2381          }
2382          program { name: "disable";
2383             signal: "elm,state,disabled";
2384             source: "elm";
2385             action: STATE_SET "disabled" 0.0;
2386             target: "disabler";
2387             target: "button_image";
2388             target: "elm.swallow.icon.shadow.proxy";
2389             target: "elm.icon.proxy.clipper";
2390             target: "icon_clipper";
2391          }
2392          program { name: "enable";
2393             signal: "elm,state,enabled";
2394             source: "elm";
2395             action: STATE_SET "default" 0.0;
2396             target: "disabler";
2397             target: "button_image";
2398             target: "elm.swallow.icon.shadow.proxy";
2399             target: "elm.icon.proxy.clipper";
2400             target: "icon_clipper";
2401          }
2402          program { name: "action_focus";
2403             signal: "elm,action,focus_highlight,show";
2404             source: "elm";
2405             action: STATE_SET "focused" 0.0;
2406             target: "focus_image";
2407          }
2408          program { name: "action_unfocus";
2409             signal: "elm,action,focus_highlight,hide";
2410             source: "elm";
2411             action: STATE_SET "default" 0.0;
2412             target: "focus_image";
2413          }
2414       }
2415    }
2416
2417 ///////////////////////////////////////////////////////////////////////////////////////
2418 #define BUTTON_EDIT_STYLES(style_name, image_normal, min_width, min_height) \
2419    group { name: "elm/button/base/contacts/"style_name; \
2420    alias: "elm/button/base/"style_name; \
2421       data { \
2422          item: "focus_highlight" "on"; \
2423       } \
2424       images { \
2425          image: "00_circle_button.png" COMP; \
2426          image: "00_circle_button_press.png" COMP; \
2427          image: "00_circle_button_dim.png" COMP; \
2428          image: image_normal COMP; \
2429          image: 00_circle_button_focus.png COMP;\
2430       } \
2431       parts { \
2432          part { name: "button_image"; \
2433             scale: 1; \
2434             description { state: "default" 0.0; \
2435                min: BUTTON_EDIT_STYLE_BG_NORMAL_MIN_MAX_INC; \
2436                max: BUTTON_EDIT_STYLE_BG_NORMAL_MIN_MAX_INC; \
2437                image.normal: "00_circle_button.png"; \
2438             } \
2439             description { state: "clicked" 0.0; \
2440                inherit: "default" 0.0; \
2441                image.normal: "00_circle_button_press.png"; \
2442             } \
2443             description { state: "disabled" 0.0; \
2444                inherit: "default" 0.0; \
2445                image.normal: "00_circle_button_dim.png"; \
2446             } \
2447          } \
2448          part { name: "button_center_part"; \
2449             mouse_events: 0; \
2450             scale: 1; \
2451             description { state: "default" 0.0; \
2452                min: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
2453                max: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
2454                image.normal: image_normal; \
2455             } \
2456          } \
2457          part { name: "elm.swallow.icon.shadow.proxy"; \
2458             type: PROXY; \
2459             clip_to: "elm.icon.proxy.clipper"; \
2460             scale: 1; \
2461             description { state: "default" 0.0; \
2462                 source: "button_center_part"; \
2463                 proxy.source_clip: 0; \
2464                 rel1 { \
2465                    to: "button_center_part"; \
2466                    offset: BUTTON_EDIT_STYLE_NORMAL_TOP_OFFSET_INC; \
2467                 } \
2468                 rel2 { \
2469                    to: "button_center_part"; \
2470                    offset: BUTTON_EDIT_STYLE_NORMAL_BOTTOM_OFFSET_INC; \
2471                 } \
2472             } \
2473             description { state: "clicked" 0.0; \
2474                 inherit: "default" 0.0; \
2475                 rel1 { \
2476                    to: "button_center_part"; \
2477                    offset: BUTTON_EDIT_STYLE_PRESSED_TOP_OFFSET_INC; \
2478                 } \
2479                 rel2 { \
2480                    to: "button_center_part"; \
2481                    offset: BUTTON_EDIT_STYLE_PRESSED_BOTTOM_OFFSET_INC; \
2482                 } \
2483             } \
2484             description { state: "disabled" 0.0; \
2485                 inherit: "default" 0.0; \
2486             } \
2487          } \
2488          part { name: "elm.swallow.icon.proxy"; \
2489             type: PROXY; \
2490             scale: 1; \
2491             clip_to: "icon_clipper"; \
2492             description { state: "default" 0.0; \
2493                 source: "button_center_part"; \
2494                 proxy.source_clip: 0; \
2495                 rel1.to: "button_center_part"; \
2496                 rel2.to: "button_center_part"; \
2497             } \
2498          }\
2499          part { name: "elm.icon.proxy.clipper"; \
2500             type: RECT; \
2501             description { state: "default" 0.0; \
2502                color: BUTTON_EDIT_STYLE_CLIPPER_DEFAULT_COLOR_INC; \
2503             } \
2504             description { state: "clicked" 0.0; \
2505                color: BUTTON_EDIT_STYLE_ICON_CLIPPER_PRESSED_COLOR_INC; \
2506             } \
2507             description { state: "disabled" 0.0; \
2508                color: BUTTON_EDIT_STYLE_ICON_CLIPPER_DISABLED_COLOR_INC; \
2509             } \
2510          } \
2511          part { name: "icon_clipper"; \
2512             type: RECT; \
2513             scale: 1; \
2514             description { state: "default" 0.0; \
2515                color: BUTTON_EDIT_STYLE_NORMAL_COLOR_INC; \
2516             } \
2517             description { state: "clicked" 0.0; \
2518                color: BUTTON_EDIT_STYLE_PRESSED_COLOR_INC; \
2519             } \
2520             description { state: "disabled" 0.0; \
2521                color: BUTTON_EDIT_STYLE_DISABLED_COLOR_INC; \
2522             } \
2523          } \
2524          part { name: "focus_image"; \
2525             scale: 1; \
2526             mouse_events: 0; \
2527             repeat_events: 1; \
2528               description { state: "default" 0.0; \
2529                  min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
2530                  max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
2531                  visible: 0; \
2532                  rel1.to : "button_image"; \
2533                  rel2.to : "button_image"; \
2534                  image { \
2535                   normal: "00_circle_button_focus.png"; \
2536                   border_scale: 1; \
2537                } \
2538             } \
2539             description { state: "focused" 0.0; \
2540                inherit: "default" 0.0; \
2541                visible: 1; \
2542             } \
2543          } \
2544          part { name: "over1"; \
2545             type: RECT; \
2546             repeat_events: 1; \
2547             ignore_flags: ON_HOLD; \
2548             description { state: "default" 0.0; \
2549                color: 0 0 0 0; \
2550                min: min_width min_height; \
2551             } \
2552          } \
2553          part { name: "over2"; \
2554             type: RECT; \
2555             repeat_events: 1; \
2556             description { state: "default" 0.0; \
2557                color: 0 0 0 0; \
2558             } \
2559          } \
2560          part { name: "disabler"; \
2561             type: RECT; \
2562             description { state: "default" 0.0; \
2563                color: 0 0 0 0; \
2564                visible: 0; \
2565             } \
2566             description { state: "disabled" 0.0; \
2567                inherit: "default" 0.0; \
2568                visible: 1; \
2569             } \
2570          } \
2571       } \
2572       programs { \
2573          program { name: "button_click"; \
2574             signal: "mouse,down,1"; \
2575             source: "over1"; \
2576             action: SIGNAL_EMIT "elm,action,press" ""; \
2577             after: "button_click_anim"; \
2578          } \
2579          program { name: "button_click_anim"; \
2580             action: STATE_SET "clicked" 0.0; \
2581             target: "button_image"; \
2582             target: "elm.swallow.icon.shadow.proxy"; \
2583             target: "elm.icon.proxy.clipper"; \
2584             target: "icon_clipper"; \
2585          } \
2586          program { name: "button_double_click"; \
2587             signal: "mouse,down,1,double"; \
2588             source: "over1"; \
2589             after: "button_click_anim"; \
2590          } \
2591          program { name: "button_unclick"; \
2592             signal: "mouse,up,1"; \
2593             source: "over2"; \
2594             action: SIGNAL_EMIT "elm,action,unpress" ""; \
2595             after: "button_unclick_anim"; \
2596          } \
2597          program { name: "button_unclick_anim"; \
2598             action: STATE_SET "default" 0.0; \
2599             target: "button_image"; \
2600             target: "elm.swallow.icon.shadow.proxy"; \
2601             target: "elm.icon.proxy.clipper"; \
2602             target: "icon_clipper"; \
2603          } \
2604          program { name: "touch_snd"; \
2605             signal: "mouse,clicked,1"; \
2606             source: "over1"; \
2607             action: PLAY_SAMPLE "touch_sound" 1.0; \
2608             after: button_unclick3; \
2609          } \
2610          program { name: "button_unclick3"; \
2611             action: SIGNAL_EMIT "elm,action,click" ""; \
2612          } \
2613          program { name: "disable"; \
2614             signal: "elm,state,disabled"; \
2615             source: "elm"; \
2616             action: STATE_SET "disabled" 0.0; \
2617             target: "disabler"; \
2618             target: "button_image"; \
2619             target: "elm.swallow.icon.shadow.proxy"; \
2620             target: "elm.icon.proxy.clipper"; \
2621             target: "icon_clipper"; \
2622          } \
2623          program { name: "enable"; \
2624             signal: "elm,state,enabled"; \
2625             source: "elm"; \
2626             action: STATE_SET "default" 0.0; \
2627             target: "disabler"; \
2628             target: "button_image"; \
2629             target: "elm.swallow.icon.shadow.proxy"; \
2630             target: "elm.icon.proxy.clipper"; \
2631             target: "icon_clipper"; \
2632          } \
2633          program { name: "action_focus"; \
2634             signal: "elm,action,focus_highlight,show"; \
2635             source: "elm"; \
2636             action: STATE_SET "focused" 0.0; \
2637             target: "focus_image"; \
2638          } \
2639          program { name: "action_unfocus"; \
2640             signal: "elm,action,focus_highlight,hide"; \
2641             source: "elm"; \
2642             action: STATE_SET "default" 0.0; \
2643             target: "focus_image"; \
2644          } \
2645       } \
2646    }
2647 ///////////////////////////////////////////////////////////////////////////////////////
2648    BUTTON_EDIT_STYLES("icon_plus", "00_button_add.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
2649
2650 ///////////////////////////////////////////////////////////////////////////////////////
2651    BUTTON_EDIT_STYLES("icon_plus/extended", "00_button_add.png", BUTTON_EDIT_EXTENDED_MIN_WIDTH_INC, BUTTON_EDIT_EXTENDED_MIN_HEIGHT_INC)
2652
2653 ///////////////////////////////////////////////////////////////////////////////////////
2654    BUTTON_EDIT_STYLES("icon_expand", "00_button_expand_closed.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
2655
2656 ///////////////////////////////////////////////////////////////////////////////////////
2657    BUTTON_EDIT_STYLES("icon_expand/extended", "00_button_expand_closed.png", BUTTON_EDIT_EXTENDED_MIN_WIDTH_INC, BUTTON_EDIT_EXTENDED_MIN_HEIGHT_INC)
2658
2659 ///////////////////////////////////////////////////////////////////////////////////////
2660    BUTTON_EDIT_STYLES("icon_expand_closed", "00_button_expand_closed.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
2661
2662 ///////////////////////////////////////////////////////////////////////////////////////
2663    BUTTON_EDIT_STYLES("icon_expand_opened", "00_button_expand_opened.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
2664
2665 ///////////////////////////////////////////////////////////////////////////////////////
2666
2667 #define BUTTON_EDIT_MINUS_STYLES(style_name, min_width, min_height) \
2668    group { name: "elm/button/base/contacts/"style_name; \
2669       alias: "elm/button/base/"style_name; \
2670       inherit: "elm/button/base/contacts/icon_plus"; \
2671       images { \
2672          image: "00_circle_button_delete.png" COMP; \
2673          image: "00_circle_button_delete_press.png" COMP; \
2674          image: "00_circle_button_delete_dim.png" COMP; \
2675          image: "00_button_delete.png" COMP; \
2676       } \
2677       parts { \
2678          part { name: "button_image"; \
2679             scale: 1; \
2680             description { state: "default" 0.0; \
2681                image.normal: "00_circle_button_delete.png"; \
2682             } \
2683             description { state: "clicked" 0.0; \
2684                inherit: "default" 0.0; \
2685                image.normal: "00_circle_button_delete_press.png"; \
2686             } \
2687             description { state: "disabled" 0.0; \
2688                inherit: "default" 0.0; \
2689                image.normal: "00_circle_button_delete_dim.png"; \
2690             } \
2691          } \
2692          part { name: "button_center_part"; \
2693             mouse_events: 0; \
2694             scale: 1; \
2695             description { state: "default" 0.0; \
2696                min: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
2697                max: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
2698                image.normal: "00_button_delete.png"; \
2699             } \
2700          } \
2701          part { name: "elm.swallow.icon.shadow.proxy"; \
2702             type: PROXY; \
2703             clip_to: "elm.icon.proxy.clipper"; \
2704             scale: 1; \
2705             description { state: "default" 0.0; \
2706                 source: "button_center_part"; \
2707                 proxy.source_clip: 0; \
2708                 rel1 { \
2709                    to: "button_center_part"; \
2710                    offset: BUTTON_CIRCLE_STYLE_MINUS_NORMAL_TOP_OFFSET_INC; \
2711                 } \
2712                 rel2 { \
2713                    to: "button_center_part"; \
2714                    offset: BUTTON_CIRCLE_STYLE_MINUS_NORMAL_BOTTOM_OFFSET_INC; \
2715                 } \
2716             } \
2717             description { state: "clicked" 0.0; \
2718                 inherit: "default" 0.0; \
2719                 rel1 { \
2720                    to: "button_center_part"; \
2721                    offset: BUTTON_CIRCLE_STYLE_MINUS_PRESSED_TOP_OFFSET_INC; \
2722                 } \
2723                 rel2 { \
2724                    to: "button_center_part"; \
2725                    offset: BUTTON_CIRCLE_STYLE_MINUS_PRESSED_BOTTOM_OFFSET_INC; \
2726                 } \
2727             } \
2728             description { state: "disabled" 0.0; \
2729                 inherit: "default" 0.0; \
2730             } \
2731          } \
2732          part { name: "elm.icon.proxy.clipper"; \
2733             type: RECT; \
2734             description { state: "default" 0.0; \
2735                color: BUTTON_CIRCLE_STYLE_MINUS_SHADOW_NORMAL_COLOR_INC; \
2736             } \
2737             description { state: "clicked" 0.0; \
2738                color: BUTTON_CIRCLE_STYLE_MINUS_SHADOW_PRESSED_COLOR_INC; \
2739             } \
2740             description { state: "disabled" 0.0; \
2741                color: BUTTON_CIRCLE_STYLE_MINUS_SHADOW_DISABLED_COLOR_INC; \
2742             } \
2743          } \
2744          part { name: "icon_clipper"; \
2745             scale: 1; \
2746             type: RECT; \
2747             description { state: "default" 0.0; \
2748                color: BUTTON_CIRCLE_STYLE_MINUS_NORMAL_COLOR_INC; \
2749             } \
2750             description { state: "clicked" 0.0; \
2751                color: BUTTON_CIRCLE_STYLE_MINUS_PRESSED_COLOR_INC; \
2752             } \
2753             description { state: "disabled" 0.0; \
2754                color: BUTTON_CIRCLE_STYLE_MINUS_DISABLED_COLOR_INC; \
2755             } \
2756          } \
2757          part { name: "over1"; \
2758             type: RECT; \
2759             repeat_events: 1; \
2760             ignore_flags: ON_HOLD; \
2761             description { state: "default" 0.0; \
2762                color: 0 0 0 0; \
2763                min: min_width min_height; \
2764             } \
2765          } \
2766       } \
2767    }
2768
2769 ///////////////////////////////////////////////////////////////////////////////////////
2770    BUTTON_EDIT_MINUS_STYLES("icon_minus", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
2771
2772 ///////////////////////////////////////////////////////////////////////////////////////
2773    BUTTON_EDIT_MINUS_STYLES("icon_minus/extended", BUTTON_EDIT_EXTENDED_MIN_WIDTH_INC, BUTTON_EDIT_EXTENDED_MIN_HEIGHT_INC)
2774
2775 ///////////////////////////////////////////////////////////////////////////////////////
2776 #define BUTTON_SCROLL_JUMPTO(style_name, image_normal)\
2777    group { name: "elm/button/base/"style_name; \
2778       data { \
2779          item: "focus_highlight" "on"; \
2780       } \
2781       images { \
2782          image: "00_button_01.png" COMP; \
2783          image: "00_button_01_press.png" COMP; \
2784          image: "00_button_01_dim.png" COMP; \
2785          image: image_normal COMP; \
2786          image: "00_button_01_focus.png" COMP; \
2787       }\
2788       parts { \
2789          part { name: "button_image";\
2790             type: IMAGE; \
2791             scale: 1; \
2792             description { state: "default" 0.0; \
2793                min: BUTTON_JUMP_STYLE_BG_MIN_INC; \
2794                image { \
2795                   normal: "00_button_01.png"; \
2796                   border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC; \
2797                   border_scale: 1; \
2798                } \
2799             } \
2800             description { state: "clicked" 0.0; \
2801              inherit: "default" 0.0; \
2802              image.normal: "00_button_01_press.png"; \
2803             } \
2804             description { state: "disabled" 0.0; \
2805                inherit: "default" 0.0; \
2806                image.normal: "00_button_01_dim.png"; \
2807             } \
2808          } \
2809          part { name: "focus_image"; \
2810             scale: 1; \
2811             mouse_events: 0; \
2812             repeat_events: 1; \
2813             description { state: "default" 0.0; \
2814                visible: 0; \
2815                rel1.to : "button_image"; \
2816                rel2.to : "button_image"; \
2817                image { \
2818                   normal: "00_button_01_focus.png"; \
2819                   border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC; \
2820                   border_scale: 1; \
2821                } \
2822             } \
2823             description { state: "focused" 0.0; \
2824                inherit: "default" 0.0; \
2825                visible: 1; \
2826             } \
2827          } \
2828          part { name: "padding_left_top"; \
2829             type: SPACER; \
2830             scale: 1; \
2831             description { state: "default" 0.0; \
2832                align: 0.0 0.0; \
2833                rel2.relative: 0.0 0.0; \
2834                min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC; \
2835                fixed: 1 1; \
2836             } \
2837          } \
2838          part { name: "padding_right_bottom"; \
2839             type: SPACER; \
2840             scale: 1; \
2841             description { state: "default" 0.0; \
2842                align: 1.0 1.0; \
2843                rel1.relative: 1.0 1.0; \
2844                min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC; \
2845                fixed: 1 1; \
2846             } \
2847          } \
2848          part { name: "jump_image"; \
2849             scale: 1; \
2850             description { state: "default" 0.0; \
2851                min: BUTTON_DEFAULT_STYLE_ICONONLY_ICON_MIN_INC; \
2852                max: BUTTON_DEFAULT_STYLE_ICONONLY_ICON_MIN_INC; \
2853                rel1 { \
2854                   relative: 1.0 0.0; \
2855                   to_x: "padding_left_top"; \
2856                } \
2857                rel2 { \
2858                   relative: 0.0 1.0; \
2859                   to_x: "padding_right_bottom"; \
2860                } \
2861                image.normal: image_normal; \
2862                aspect: 1.0 1.0; \
2863                aspect_preference: VERTICAL; \
2864             } \
2865          } \
2866          part { name: "jump_image.shadow.proxy"; \
2867             type: PROXY; \
2868             scale: 1; \
2869             clip_to: "elm.swallow.icon.shadow.proxy"; \
2870             description { state: "default" 0.0; \
2871                source: "jump_image"; \
2872                proxy.source_clip: 0; \
2873                rel1 { \
2874                   to: "jump_image"; \
2875                   offset: BUTTON_JUMP_TO_NORMAL_TOP_OFFSET_INC; \
2876                } \
2877                rel2 { \
2878                   to: "jump_image"; \
2879                   offset: BUTTON_JUMP_TO_NORMAL_BOTTOM_OFFSET_INC; \
2880                } \
2881             } \
2882             description { state: "clicked" 0.0; \
2883                inherit: "default" 0.0; \
2884                rel1 { \
2885                   to: "jump_image"; \
2886                   offset: BUTTON_JUMP_TO_PRESSED_TOP_OFFSET_INC; \
2887                } \
2888                rel2 { \
2889                   to: "jump_image"; \
2890                   offset: BUTTON_JUMP_TO_PRESSED_BOTTOM_OFFSET_INC; \
2891                } \
2892             } \
2893             description { state: "disabled" 0.0; \
2894                inherit: "default" 0.0; \
2895             } \
2896          } \
2897          part { name: "jump_image.proxy"; \
2898             type: PROXY; \
2899             scale: 1; \
2900             clip_to: "elm.swallow.icon.proxy"; \
2901             description { state: "default" 0.0; \
2902                source: "jump_image"; \
2903                proxy.source_clip: 0; \
2904                rel1.to: "jump_image"; \
2905                rel2.to: "jump_image"; \
2906             } \
2907          } \
2908          part { name: "elm.swallow.icon.shadow.proxy"; \
2909             type: RECT; \
2910             scale: 1; \
2911             description { state: "default" 0.0; \
2912                color: BUTTON_JUMP_SHADOW_NORMAL_COLOR_INC; \
2913             } \
2914             description { state: "clicked" 0.0; \
2915                color: BUTTON_JUMP_SHADOW_PRESSED_COLOR_INC; \
2916             } \
2917             description { state: "disabled" 0.0; \
2918                color: BUTTON_JUMP_SHADOW_DISABLED_COLOR_INC; \
2919             } \
2920          } \
2921          part { name: "elm.swallow.icon.proxy"; \
2922             type: RECT; \
2923             scale: 1; \
2924             description { state: "default" 0.0; \
2925                color: BUTTON_JUMP_NORMAL_COLOR_INC; \
2926             } \
2927             description { state: "clicked" 0.0; \
2928                color: BUTTON_JUMP_PRESSED_COLOR_INC; \
2929             } \
2930             description { state: "disabled" 0.0; \
2931                color: BUTTON_JUMP_DISABLED_COLOR_INC; \
2932             } \
2933          } \
2934          part { name: "over1"; \
2935             type: RECT; \
2936             repeat_events: 1; \
2937             ignore_flags: ON_HOLD; \
2938             description { state: "default" 0.0; \
2939                color: 0 0 0 0; \
2940                rel1.relative: 0.0 0.0; \
2941                rel2.relative: 1.0 1.0; \
2942             } \
2943          } \
2944          part { name: "over2"; \
2945             type: RECT; \
2946             repeat_events: 1; \
2947             description { state: "default" 0.0; \
2948                color: 0 0 0 0; \
2949             } \
2950          } \
2951       } \
2952       programs { \
2953          program { name: "button_click"; \
2954             signal: "mouse,down,1"; \
2955             source: "over1"; \
2956             action: SIGNAL_EMIT "elm,action,press" ""; \
2957             after: "button_click_anim"; \
2958          } \
2959          program { name: "button_click_anim"; \
2960             action: STATE_SET "clicked" 0.0; \
2961             target: "button_image"; \
2962             target: "jump_image.shadow.proxy"; \
2963             target: "elm.swallow.icon.shadow.proxy"; \
2964             target: "elm.swallow.icon.proxy"; \
2965          } \
2966          program { name: "button_double_click"; \
2967             signal: "mouse,down,1,double"; \
2968             source: "over1"; \
2969             after: "button_click_anim"; \
2970          } \
2971          program { name: "button_unclick"; \
2972             signal: "mouse,up,1"; \
2973             source: "over2"; \
2974             action: SIGNAL_EMIT "elm,action,unpress" ""; \
2975             after: "button_unclick_anim"; \
2976          } \
2977          program { name: "button_unclick_anim"; \
2978             action: STATE_SET "default" 0.0; \
2979             target: "button_image"; \
2980             target: "jump_image.shadow.proxy"; \
2981             target: "elm.swallow.icon.shadow.proxy"; \
2982             target: "elm.swallow.icon.proxy"; \
2983          } \
2984          program { name: "touch_snd"; \
2985             signal: "mouse,clicked,1"; \
2986             source: "over1"; \
2987             action: PLAY_SAMPLE "touch_sound" 1.0; \
2988             after: button_unclick3; \
2989          } \
2990          program { name: "button_unclick3"; \
2991             action: SIGNAL_EMIT "elm,action,click" ""; \
2992          } \
2993          program { name: "disable"; \
2994             signal: "elm,state,disabled"; \
2995             source: "elm"; \
2996             action: STATE_SET "disabled" 0.0; \
2997             target: "button_image"; \
2998             target: "jump_image.shadow.proxy"; \
2999             target: "elm.swallow.icon.shadow.proxy"; \
3000             target: "elm.swallow.icon.proxy"; \
3001          } \
3002          program { name: "enable"; \
3003             signal: "elm,state,enabled"; \
3004             source: "elm"; \
3005             action: STATE_SET "default" 0.0; \
3006             target: "button_image"; \
3007             target: "jump_image.shadow.proxy"; \
3008             target: "elm.swallow.icon.shadow.proxy"; \
3009             target: "elm.swallow.icon.proxy"; \
3010          } \
3011          program { name: "action_focus"; \
3012             signal: "elm,action,focus_highlight,show"; \
3013             source: "elm"; \
3014             action: STATE_SET "focused" 0.0; \
3015             target: "focus_image"; \
3016          } \
3017          program { name: "action_unfocus"; \
3018             signal: "elm,action,focus_highlight,hide"; \
3019             source: "elm"; \
3020             action: STATE_SET "default" 0.0; \
3021             target: "focus_image"; \
3022          } \
3023       } \
3024    }
3025
3026 ////////////////////////////////////////////////////////////////////////
3027 BUTTON_SCROLL_JUMPTO("jumpto_top", "00_icon_jump.png")
3028 ////////////////////////////////////////////////////////////////////////
3029 BUTTON_SCROLL_JUMPTO("jumpto_left", "00_icon_jump_left.png")
3030
3031 ////////////////////////////////////////////////////////////////////////
3032    group { name: "elm/button/base/default";
3033       data {
3034          item: "focus_highlight" "on";
3035       }
3036       images {
3037          image: "00_button_01.png" COMP;
3038          image: "00_button_01_press.png" COMP;
3039          image: "00_button_01_dim.png" COMP;
3040          image: "00_button_01_focus.png" COMP;
3041       }
3042       styles{
3043          style { name: "btn_base_default";
3044             base: "font=Tizen:style=Regular font_size="BUTTON_DEFAULT_STYLE_FONT_SIZE_INC" align=center color="BUTTON_DEFAULT_STYLE_BUTTON_TEXTBLOCK_NORMAL_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_TEXT_SHADOW_TEXTBLOCK_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
3045             tag: "br" "\n";
3046             tag: "ps" "ps";
3047             tag: "tab" "\t";
3048          }
3049          style { name: "btn_base_default_pressed";
3050             base: "font=Tizen:style=Regular font_size="BUTTON_DEFAULT_STYLE_FONT_SIZE_INC" align=center color="BUTTON_DEFAULT_STYLE_BUTTON_TEXTBLOCK_PRESSED_COLOR_INC" style=far_shadow,top shadow_color="BUTTON_TEXT_SHADOW_TEXTBLOCK_PRESSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
3051             tag: "br" "\n";
3052             tag: "ps" "ps";
3053             tag: "tab" "\t";
3054          }
3055          style { name: "btn_base_default_dim";
3056             base: "font=Tizen:style=Regular font_size="BUTTON_DEFAULT_STYLE_FONT_SIZE_INC" align=center color="BUTTON_DEFAULT_STYLE_BUTTON_TEXTBLOCK_DISABLED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
3057             tag: "br" "\n";
3058             tag: "ps" "ps";
3059             tag: "tab" "\t";
3060          }
3061          style { name: "btn_base_default_focus";
3062             base: "font=Tizen:style=Regular font_size="BUTTON_DEFAULT_STYLE_FONT_SIZE_INC" align=center color="BUTTON_DEFAULT_STYLE_BUTTON_TEXTBLOCK_FOCUSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
3063             tag: "br" "\n";
3064             tag: "ps" "ps";
3065             tag: "tab" "\t";
3066          }
3067       }
3068       script {
3069          public button_state = BUTTON_STATE_ENABLED;
3070       }
3071       parts {
3072          part { name: "button_image";
3073             scale: 1;
3074             description { state: "default" 0.0;
3075                min: BUTTON_DEFAULT_STYLE_BG_MIN_INC;
3076                image {
3077                   normal: "00_button_01.png";
3078                   border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC;
3079                   border_scale: 1;
3080                }
3081             }
3082             description { state: "clicked" 0.0;
3083                inherit: "default" 0.0;
3084                image.normal: "00_button_01_press.png";
3085             }
3086             description { state: "disabled" 0.0;
3087                inherit: "default" 0.0;
3088                image.normal: "00_button_01_dim.png";
3089             }
3090             description { state: "focused" 0.0;
3091                inherit: "default" 0.0;
3092                image.normal: "00_button_01_press.png";
3093             }
3094          }
3095          part { name: "focus_image";
3096             scale: 1;
3097             mouse_events: 0;
3098             repeat_events: 1;
3099             description { state: "default" 0.0;
3100                visible: 0;
3101                rel1.to : "button_image";
3102                rel2.to : "button_image";
3103                image {
3104                   normal: "00_button_01_focus.png";
3105                   border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC;
3106                   border_scale: 1;
3107                }
3108             }
3109             description { state: "focused" 0.0;
3110                inherit: "default" 0.0;
3111                visible: 1;
3112             }
3113          }
3114          part { name: "padding_left_top";
3115             type: RECT;
3116             scale: 1;
3117             mouse_events: 0;
3118             description { state: "default" 0.0;
3119                align: 0.0 0.0;
3120                rel2.relative: 0.0 0.0;
3121                min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC;
3122                fixed: 1 1;
3123                visible: 0;
3124             }
3125          }
3126          part { name: "padding_right_bottom";
3127             type: RECT;
3128             scale: 1;
3129             mouse_events: 0;
3130             description { state: "default" 0.0;
3131                align: 1.0 1.0;
3132                rel1.relative: 1.0 1.0;
3133                min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC;
3134                fixed: 1 1;
3135                visible: 0;
3136             }
3137          }
3138          part { name: "padding_icon_text";
3139             type: RECT;
3140             scale: 1;
3141             mouse_events: 0;
3142             description { state: "default" 0.0; //when only icon or no icon is there
3143                visible: 0;
3144                fixed: 1 0;
3145                min: 0 0;
3146                rel1 {
3147                   relative: 1.0 0.0;
3148                   to: "elm.swallow.content";
3149                }
3150                rel2.to: "elm.swallow.content";
3151                align: 0.0 0.0;
3152             }
3153             description { state: "icononly" 0.0;
3154                inherit: "default" 0.0;
3155             }
3156             description { state: "visible" 0.0; //when icon is visible
3157                inherit: "default" 0.0;
3158                min: BUTTON_DEFAULT_STYLE_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
3159             }
3160          }
3161          part { name: "elm.swallow.content";
3162             type: SWALLOW;
3163             scale: 1;
3164             clip_to: "disclip";
3165             description { state: "default" 0.0;
3166                visible: 0;
3167                fixed: 1 0;
3168                align: 0.0 0.5;
3169                rel1 {
3170                   relative: 1.0 1.0;
3171                   to: "padding_left_top";
3172                }
3173                rel2 {
3174                   relative: 1.0 0.0;
3175                   to_x: "padding_left_top";
3176                   to_y: "padding_right_bottom";
3177                }
3178             }
3179             description { state: "visible" 0.0;
3180                inherit: "default" 0.0;
3181                visible: 1;
3182                aspect: 1.0 1.0;
3183                aspect_preference: VERTICAL;
3184             }
3185             description { state: "icononly" 0.0;
3186                min: BUTTON_DEFAULT_STYLE_ICONONLY_ICON_MIN_INC;
3187                rel1 {
3188                   relative: 1.0 0.0;
3189                   to_x: "padding_left_top";
3190                }
3191                rel2 {
3192                   relative: 0.0 1.0;
3193                   to_x: "padding_right_bottom";
3194                }
3195                aspect: 1.0 1.0;
3196                aspect_preference: VERTICAL;
3197             }
3198          }
3199          part { name: "elm.text";
3200             type: TEXTBLOCK;
3201             mouse_events: 0;
3202             scale: 1;
3203             clip_to: "disclip";
3204             description { state: "default" 0.0;
3205                visible: 0;
3206                align: 0.0 0.5;
3207                rel1 {
3208                   relative: 1.0 1.0;
3209                   to_x: "padding_icon_text";
3210                   to_y: "padding_left_top";
3211                }
3212                rel2 {
3213                   relative: 0.0 0.0;
3214                   to: "padding_right_bottom";
3215                }
3216                text {
3217                   style: "btn_base_default";
3218                }
3219             }
3220             description { state: "visible" 0.0;
3221                inherit: "default" 0.0;
3222                visible: 1;
3223                min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3224             }
3225             description { state: "clicked" 0.0;
3226                inherit: "default" 0.0;
3227                visible: 1;
3228                min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3229                text {
3230                   style: "btn_base_default_pressed";
3231                }
3232             }
3233             description { state: "disabled" 0.0;
3234                inherit: "default" 0.0;
3235             }
3236             description { state: "disabled_visible" 0.0;
3237                inherit: "default" 0.0;
3238                visible: 1;
3239                text {
3240                   style: "btn_base_default_dim";
3241                }
3242                min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3243             }
3244             description { state: "focused" 0.0;
3245                inherit: "default" 0.0;
3246                visible: 1;
3247                text {
3248                   style: "btn_base_default_focus";
3249                   min: 0 0;
3250                }
3251             }
3252          }
3253          part { name: "over2";
3254             type: RECT;
3255             repeat_events: 1;
3256             ignore_flags: ON_HOLD;
3257             description { state: "default" 0.0;
3258                color: 0 0 0 0;
3259             }
3260          }
3261          part { name: "over3";
3262             type: RECT;
3263             repeat_events: 1;
3264             description { state: "default" 0.0;
3265                color: 0 0 0 0;
3266             }
3267          }
3268          part { name: "disclip";
3269             type: RECT;
3270             description { state: "default" 0.0;
3271                color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
3272             }
3273             description { state: "disabled" 0.0;
3274                inherit: "default" 0.0;
3275                color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
3276             }
3277          }
3278          part { name: "disabler";
3279             type: RECT;
3280             description { state: "default" 0.0;
3281                color: 0 0 0 0;
3282                visible: 0;
3283             }
3284             description { state: "disabled" 0.0;
3285                inherit: "default" 0.0;
3286                visible: 1;
3287             }
3288          }
3289       }
3290       programs {
3291          program { name: "button_click";
3292             signal: "mouse,down,1";
3293             source: "over3";
3294             action: SIGNAL_EMIT "elm,action,press" "";
3295             after: "button_click_anim";
3296          }
3297          program { name: "button_click_anim";
3298             action: STATE_SET "clicked" 0.0;
3299             target: "button_image";
3300             after: "text_clicked";
3301          }
3302          program { name: "text_clicked";
3303             script {
3304                new st[31];
3305                new Float:vl;
3306                get_state(PART:"elm.text", st, 30, vl);
3307                if (!strcmp(st, "visible"))
3308                  set_state(PART:"elm.text", "clicked", 0.0);
3309             }
3310          }
3311          program { name: "button_double_click";
3312             signal: "mouse,down,1,double";
3313             source: "over3";
3314             after: "button_click_anim";
3315          }
3316          program { name: "button_unpress";
3317             action: SIGNAL_EMIT "elm,action,unpress" "";
3318          }
3319          program { name: "button_mouseout_clicked";
3320             signal: "mouse,up,1";
3321             source: "over3";
3322             script {
3323                new st[31];
3324                new Float:vl;
3325                get_state(PART:"elm.swallow.content", st, 30, vl);
3326                if (strcmp(st, "icononly"))
3327                  {
3328                     emit("elm,action,default,text,set", "");
3329                     set_state(PART:"elm.text", "visible", 0.0);
3330                  }
3331                if (get_int(button_state) != BUTTON_STATE_DISABLED)
3332                  set_state(PART:"button_image", "default", 0.0);
3333             }
3334             after: button_unpress;
3335          }
3336          program { name: "touch_snd";
3337             signal: "mouse,clicked,1";
3338             source: "over2";
3339             action: PLAY_SAMPLE "touch_sound" 1.0;
3340             after: button_unclick3;
3341          }
3342          program { name: "button_unclick3";
3343             action: SIGNAL_EMIT "elm,action,click" "";
3344          }
3345          program { name: "text_show";
3346             signal: "elm,state,text,visible";
3347             source: "elm";
3348             script {
3349                new st[31];
3350                new Float:vl;
3351                get_state(PART:"elm.swallow.content", st, 30, vl);
3352                if (!strcmp(st, "icononly"))
3353                  {
3354                     set_state(PART:"elm.swallow.content", "visible", 0.0);
3355                     set_state(PART:"padding_icon_text", "visible", 0.0);
3356                  }
3357                if (get_int(button_state) != BUTTON_STATE_DISABLED)
3358                  set_state(PART:"elm.text", "visible", 0.0);
3359                else
3360                  set_state(PART:"elm.text", "disabled_visible", 0.0);
3361             }
3362          }
3363          program { name: "text_hide";
3364             signal: "elm,state,text,hidden";
3365             source: "elm";
3366             script {
3367                new st[31];
3368                new Float:vl;
3369                get_state(PART:"elm.swallow.content", st, 30, vl);
3370                if (!strcmp(st, "visible"))
3371                  {
3372                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
3373                     set_state(PART:"padding_icon_text", "icononly", 0.0);
3374                  }
3375                set_state(PART:"elm.text", "default", 0.0);
3376             }
3377          }
3378          program { name: "icon_show";
3379             signal: "elm,state,icon,visible";
3380             source: "elm";
3381             script {
3382                new st[31];
3383                new Float:vl;
3384                get_state(PART:"elm.text", st, 30, vl);
3385                if (!strcmp(st, "visible"))
3386                  {
3387                     set_state(PART:"elm.swallow.content", "visible", 0.0);
3388                     set_state(PART:"padding_icon_text", "visible", 0.0);
3389                  }
3390                else
3391                  {
3392                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
3393                     set_state(PART:"padding_icon_text", "icononly", 0.0);
3394                  }
3395             }
3396          }
3397          program { name: "icon_hide";
3398             signal: "elm,state,icon,hidden";
3399             source: "elm";
3400             action: STATE_SET "default" 0.0;
3401             target: "elm.swallow.content";
3402             target: "padding_icon_text";
3403          }
3404          program { name: "disable";
3405             signal: "elm,state,disabled";
3406             source: "elm";
3407             action: STATE_SET "disabled" 0.0;
3408             target: "button_image";
3409             target: "disabler";
3410             target: "disclip";
3411             after: "disable_text";
3412          }
3413          program { name: "disable_text";
3414             script {
3415                new st[31];
3416                new Float:vl;
3417                get_state(PART:"elm.text", st, 30, vl);
3418                if (!strcmp(st, "visible"))
3419                  set_state(PART:"elm.text", "disabled_visible", 0.0);
3420                else
3421                  set_state(PART:"elm.text", "disabled", 0.0);
3422                set_int(button_state, BUTTON_STATE_DISABLED);
3423             }
3424          }
3425          program { name: "enable";
3426             signal: "elm,state,enabled";
3427             source: "elm";
3428             action: STATE_SET "default" 0.0;
3429             target: "button_image";
3430             target: "disabler";
3431             target: "disclip";
3432             after: "enable_text";
3433          }
3434          program { name: "enable_text";
3435             script {
3436                new st[31];
3437                new Float:vl;
3438                get_state(PART:"elm.text", st, 30, vl);
3439                if (!strcmp(st, "disabled_visible"))
3440                  set_state(PART:"elm.text", "visible", 0.0);
3441                else
3442                  set_state(PART:"elm.text", "default", 0.0);
3443                set_int(button_state, BUTTON_STATE_ENABLED);
3444             }
3445          }
3446          program { name: "action_focus";
3447             signal: "elm,action,focus_highlight,show";
3448             source: "elm";
3449             action: STATE_SET "focused" 0.0;
3450             target: "focus_image";
3451          }
3452          program { name: "action_unfocus";
3453             signal: "elm,action,focus_highlight,hide";
3454             source: "elm";
3455             action: STATE_SET "default" 0.0;
3456             target: "focus_image";
3457          }
3458       }
3459    }
3460
3461 ///////////////////////////////////////////////////////////////////////////////////////
3462 #define BUTTON_COLORSELECTOR_STYLES(style_name, image_normal) \
3463    group { name: "elm/button/base/"style_name; \
3464       data { \
3465          item: "focus_highlight" "on"; \
3466       } \
3467       images { \
3468          image: image_normal COMP; \
3469          image: image_dim COMP; \
3470          image: "00_button_01.png" COMP; \
3471          image: "00_button_01_press.png" COMP; \
3472          image: "00_button_01_focus.png" COMP; \
3473       } \
3474       parts { \
3475          part { name: "button_image"; \
3476             scale: 1; \
3477             description { state: "default" 0.0; \
3478                min: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
3479                max: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
3480                image { \
3481                   normal: "00_button_01.png"; \
3482                   border: BUTTON_COLORSELECTOR_BG_BORDER_INC; \
3483                   border_scale: 1; \
3484                } \
3485             } \
3486             description { \
3487                state: "clicked" 0.0; \
3488                inherit: "default" 0.0; \
3489                image.normal: "00_button_01_press.png"; \
3490             } \
3491             description { \
3492                state: "disabled" 0.0; \
3493                inherit: "default" 0.0; \
3494                image.normal: "00_button_01_dim.png"; \
3495             } \
3496             description { \
3497                state: "focused" 0.0; \
3498                inherit: "default" 0.0; \
3499                image.normal: "00_button_01_press.png"; \
3500             } \
3501          } \
3502          part { name: "focus_image"; \
3503             scale: 1; \
3504             mouse_events: 0; \
3505             repeat_events: 1; \
3506             description { state: "default" 0.0; \
3507                min: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
3508                max: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
3509                visible: 0; \
3510                rel1.to : "button_image"; \
3511                rel2.to : "button_image"; \
3512                image { \
3513                   normal: "00_button_01_focus.png"; \
3514                   border: BUTTON_COLORSELECTOR_BG_BORDER_INC; \
3515                   border_scale: 1; \
3516                } \
3517             } \
3518             description { state: "focused" 0.0; \
3519                inherit: "default" 0.0; \
3520                visible: 1; \
3521             } \
3522          } \
3523          part { name: "button_center_part"; \
3524             scale: 1; \
3525             description { state: "default" 0.0; \
3526                min: BUTTON_COLORSELECTOR_IMAGE_MIN_MAX_INC; \
3527                max: BUTTON_COLORSELECTOR_IMAGE_MIN_MAX_INC; \
3528                image.normal: image_normal; \
3529             } \
3530          } \
3531          part { name: "elm.swallow.icon.shadow.proxy"; \
3532             type: PROXY; \
3533             clip_to: "elm.icon.proxy.clipper"; \
3534             scale: 1; \
3535             description { state: "default" 0.0; \
3536                 source: "button_center_part"; \
3537                 proxy.source_clip: 0; \
3538                 rel1 { \
3539                    to: "button_center_part"; \
3540                    offset: BUTTON_COLORSELECTOR_NORMAL_TOP_OFFSET_INC; \
3541                 } \
3542                 rel2 { \
3543                    to: "button_center_part"; \
3544                    offset: BUTTON_COLORSELECTOR_NORMAL_BOTTOM_OFFSET_INC; \
3545                 } \
3546             } \
3547             description { state: "clicked" 0.0; \
3548                 inherit: "default" 0.0; \
3549                 rel1 { \
3550                    to: "button_center_part"; \
3551                    offset: BUTTON_COLORSELECTOR_PRESSED_TOP_OFFSET_INC; \
3552                 } \
3553                 rel2 { \
3554                    to: "button_center_part"; \
3555                    offset: BUTTON_COLORSELECTOR_PRESSED_BOTTOM_OFFSET_INC; \
3556                 } \
3557             } \
3558             description { state: "disabled" 0.0; \
3559                 inherit: "default" 0.0; \
3560             } \
3561          } \
3562          part { name: "elm.swallow.icon.proxy"; \
3563             type: PROXY; \
3564             scale: 1; \
3565             clip_to: "icon_clipper"; \
3566             description { state: "default" 0.0; \
3567                 source: "button_center_part"; \
3568                 proxy.source_clip: 0; \
3569                 rel1.to: "button_center_part"; \
3570                 rel2.to: "button_center_part"; \
3571             } \
3572          }\
3573          part { name: "elm.icon.proxy.clipper"; \
3574             type: RECT; \
3575             description { state: "default" 0.0; \
3576                color: BUTTON_COLORSELECTOR_SHADOW_NORMAL_COLOR_INC; \
3577             } \
3578             description { state: "clicked" 0.0; \
3579                color: BUTTON_COLORSELECTOR_SHADOW_PRESSED_COLOR_INC; \
3580             } \
3581             description { state: "disabled" 0.0; \
3582                color: BUTTON_COLORSELECTOR_SHADOW_DISABLED_COLOR_INC; \
3583             } \
3584          } \
3585          part { name: "icon_clipper"; \
3586             type: RECT; \
3587             scale: 1; \
3588             description { state: "default" 0.0; \
3589                color: BUTTON_COLORSELECTOR_NORMAL_COLOR_INC; \
3590             } \
3591             description { state: "clicked" 0.0; \
3592                color: BUTTON_COLORSELECTOR_PRESSED_COLOR_INC; \
3593             } \
3594             description { state: "disabled" 0.0; \
3595                color: BUTTON_COLORSELECTOR_DISABLED_COLOR_INC; \
3596             } \
3597          } \
3598          part { name: "over1"; \
3599             type: RECT; \
3600             ignore_flags: ON_HOLD; \
3601             description { state: "default" 0.0; \
3602                color: 0 0 0 0; \
3603             } \
3604          } \
3605          part { name: "over2"; \
3606             type: RECT; \
3607             repeat_events: 1; \
3608             description { state: "default" 0.0; \
3609                color: 0 0 0 0; \
3610             } \
3611          } \
3612          part { name: "disabler"; \
3613             type: RECT; \
3614             description { state: "default" 0.0; \
3615                color: 0 0 0 0; \
3616                visible: 0; \
3617             } \
3618             description { state: "disabled" 0.0; \
3619                inherit: "default" 0.0; \
3620                visible: 1; \
3621             } \
3622          } \
3623       } \
3624       programs { \
3625          program { name: "button_click"; \
3626             signal: "mouse,down,1"; \
3627             source: "over1"; \
3628             action: SIGNAL_EMIT "elm,action,press" ""; \
3629             after: "button_click_anim"; \
3630          } \
3631          program { name: "button_click_anim"; \
3632             action: STATE_SET "clicked" 0.0; \
3633             target: "button_image"; \
3634             target: "elm.swallow.icon.proxy"; \
3635             target: "elm.icon.proxy.clipper"; \
3636             target: ""icon_clipper""; \
3637          } \
3638          program { name: "button_double_click"; \
3639             signal: "mouse,down,1,double"; \
3640             source: "over1"; \
3641             after: "button_click_anim"; \
3642          } \
3643          program { name: "button_unclick"; \
3644             signal: "mouse,up,1"; \
3645             source: "over2"; \
3646             action: SIGNAL_EMIT "elm,action,unpress" ""; \
3647             after: "button_unclick_anim"; \
3648          } \
3649          program { name: "button_unclick_anim"; \
3650             action: STATE_SET "default" 0.0; \
3651             target: "button_image"; \
3652             target: "elm.swallow.icon.proxy"; \
3653             target: "elm.icon.proxy.clipper"; \
3654             target: ""icon_clipper""; \
3655          } \
3656          program { name: "touch_snd"; \
3657             signal: "mouse,clicked,1"; \
3658             source: "over1"; \
3659             action: PLAY_SAMPLE "touch_sound" 1.0; \
3660             after: button_unclick3; \
3661          } \
3662          program { name: "button_unclick3"; \
3663             action: SIGNAL_EMIT "elm,action,click" ""; \
3664          } \
3665          program { name: "disable"; \
3666             signal: "elm,state,disabled"; \
3667             source: "elm"; \
3668             action: STATE_SET "disabled" 0.0; \
3669             target: "disabler"; \
3670             target: "button_image"; \
3671             target: "elm.swallow.icon.proxy"; \
3672             target: "elm.icon.proxy.clipper"; \
3673             target: ""icon_clipper""; \
3674          } \
3675          program { name: "enable"; \
3676             signal: "elm,state,enabled"; \
3677             source: "elm"; \
3678             action: STATE_SET "default" 0.0; \
3679             target: "disabler"; \
3680             target: "button_image"; \
3681             target: "elm.swallow.icon.proxy"; \
3682             target: "elm.icon.proxy.clipper"; \
3683             target: ""icon_clipper""; \
3684          } \
3685          program { name: "action_focus"; \
3686             signal: "elm,action,focus_highlight,show"; \
3687             source: "elm"; \
3688             action: STATE_SET "focused" 0.0; \
3689             target: "focus_image"; \
3690          } \
3691          program { name: "action_unfocus"; \
3692             signal: "elm,action,focus_highlight,hide"; \
3693             source: "elm"; \
3694             action: STATE_SET "default" 0.0; \
3695             target: "focus_image"; \
3696          } \
3697       } \
3698    }
3699 ///////////////////////////////////////////////////////////////////////////////////////
3700    BUTTON_COLORSELECTOR_STYLES("colorselector/left/default", "00_button_left.png")
3701 ///////////////////////////////////////////////////////////////////////////////////////
3702    BUTTON_COLORSELECTOR_STYLES("colorselector/right/default", "00_button_right.png")
3703 ///////////////////////////////////////////////////////////////////////////////////////
3704
3705    group { name: "elm/button/base/multibuttonentry";
3706       alias: "elm/button/base/text_only/multibuttonentry";
3707       data {
3708          item: "focus_highlight" "on";
3709       }
3710       images {
3711          image: "00_contacts_button.png" COMP;
3712          image: "00_contacts_button_press.png" COMP;
3713          image: "00_contacts_button_focus.png" COMP;
3714          image: "00_contacts_button_dim.png" COMP;
3715       }
3716       styles{
3717          style { name: "btn_base_multibuttonentry";
3718             base: "font=Tizen:style=Regular font_size="BUTTON_CONTACT_FONT_SIZE_INC" align=center color="BUTTON_CONTACT_BUTTON_TEXTBLOCK_NORMAL_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_CONTACT_BUTTON_TEXTBLOCK_SHADOW_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
3719             tag: "br" "\n";
3720             tag: "ps" "ps";
3721             tag: "tab" "\t";
3722          }
3723          style { name: "btn_base_multibuttonentry_pressed";
3724             base: "font=Tizen:style=Regular font_size="BUTTON_CONTACT_FONT_SIZE_INC" align=center color="BUTTON_CONTACT_BUTTON_TEXTBLOCK_PRESSED_COLOR_INC" style=far_shadow,top shadow_color="BUTTON_CONTACT_BUTTON_TEXTBLOCK_SHADOW_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
3725             tag: "br" "\n";
3726             tag: "ps" "ps";
3727             tag: "tab" "\t";
3728          }
3729          style { name: "btn_base_multibuttonentry_dim";
3730             base: "font=Tizen:style=Regular font_size="BUTTON_CONTACT_FONT_SIZE_INC" align=center color="BUTTON_CONTACT_BUTTON_TEXTBLOCK_DISABLED_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_CONTACT_BUTTON_TEXTBLOCK_DIM_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
3731             tag: "br" "\n";
3732             tag: "ps" "ps";
3733             tag: "tab" "\t";
3734          }
3735          style { name: "btn_base_multibuttonentry_focus";
3736             base: "font=Tizen:style=Regular font_size="BUTTON_CONTACT_FONT_SIZE_INC" align=center color="BUTTON_CONTACT_BUTTON_TEXTBLOCK_FOCUSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
3737             tag: "br" "\n";
3738             tag: "ps" "ps";
3739             tag: "tab" "\t";
3740          }
3741       }
3742       script {
3743          public button_state = BUTTON_STATE_ENABLED;
3744       }
3745       parts {
3746          part { name: "button_image";
3747             scale: 1;
3748             description { state: "default" 0.0;
3749                rel1 {
3750                   to_x: "padding.left";
3751                   to_y: "elm.text";
3752                }
3753                rel2 {
3754                   to_x: "padding.right";
3755                   to_y: "elm.text";
3756                }
3757                min: BUTTON_CONTACT_BG_MIN_INC;
3758                image {
3759                   normal: "00_contacts_button.png";
3760                   border: BUTTON_CONTACT_BG_BORDER_INC;
3761                   border_scale: 1;
3762                }
3763             }
3764             description { state: "clicked" 0.0;
3765                inherit: "default" 0.0;
3766                image.normal: "00_contacts_button_press.png";
3767             }
3768             description { state: "disabled" 0.0;
3769                inherit: "default" 0.0;
3770                image.normal: "00_contacts_button_dim.png";
3771             }
3772             description { state: "focused" 0.0;
3773                inherit: "default" 0.0;
3774                image.normal: "00_contacts_button_press.png";
3775             }
3776          }
3777          part { name: "focus_image";
3778             scale: 1;
3779             mouse_events: 0;
3780             repeat_events: 1;
3781             description { state: "default" 0.0;
3782                visible: 0;
3783                rel1.to : "button_image";
3784                rel2.to : "button_image";
3785                image {
3786                   normal: "00_contacts_button_focus.png";
3787                   border: BUTTON_CONTACT_BG_BORDER_INC;
3788                   border_scale: 1;
3789                }
3790             }
3791             description { state: "focused" 0.0;
3792                inherit: "default" 0.0;
3793                visible: 1;
3794             }
3795          }
3796          part { name: "padding.left";
3797             type: RECT;
3798             scale: 1;
3799             description { state: "default" 0.0;
3800                visible: 0;
3801                min: BUTTON_CONTACT_LEFT_PADDING_MIN_INC;
3802                fixed: 1 0;
3803                color: 0 0 0 0;
3804                rel2 {
3805                   relative: 0.0 1.0;
3806                   to_x: "elm.text";
3807                }
3808                align: 1.0 0.0;
3809             }
3810          }
3811          part { name: "padding.right";
3812             type: RECT;
3813             scale: 1;
3814             description { state: "default" 0.0;
3815                visible: 0;
3816                min: BUTTON_CONTACT_RIGHT_PADDING_MIN_INC;
3817                fixed: 1 0;
3818                color: 0 0 0 0;
3819                rel1 {
3820                   relative: 1.0 0.0;
3821                   to_x: "elm.text";
3822                }
3823                align: 0.0 0.0;
3824             }
3825          }
3826          part { name: "elm.text";
3827             type: TEXTBLOCK;
3828             mouse_events: 0;
3829             scale: 1;
3830             description { state: "default" 0.0;
3831                visible: 0;
3832                fixed: 1 1;
3833                text {
3834                   style: "btn_base_multibuttonentry";
3835                   min: 1 1;
3836                }
3837             }
3838             description { state: "visible" 0.0;
3839                inherit: "default" 0.0;
3840                visible: 1;
3841                min: 1 1;
3842             }
3843             description { state: "clicked" 0.0;
3844                inherit: "default" 0.0;
3845                visible: 1;
3846                min: 1 1;
3847                text {
3848                   style: "btn_base_multibuttonentry_pressed";
3849                }
3850             }
3851             description { state: "disabled" 0.0;
3852                inherit: "default" 0.0;
3853             }
3854             description { state: "disabled_visible" 0.0;
3855                inherit: "default" 0.0;
3856                visible: 1;
3857                text {
3858                   style: "btn_base_multibuttonentry_dim";
3859                   min: 1 1;
3860                }
3861             }
3862             description { state: "focused" 0.0;
3863                inherit: "default" 0.0;
3864                visible: 1;
3865                text {
3866                   style: "btn_base_multibuttonentry_focus";
3867                   min: 1 1;
3868                }
3869             }
3870          }
3871          part { name: "over1";
3872             type: RECT;
3873             mouse_events: 0;
3874             description { state: "default" 0.0;
3875                rel2.relative: 1.0 0.5;
3876                color: 0 0 0 0;
3877             }
3878          }
3879          part { name: "over2";
3880             type: RECT;
3881             repeat_events: 1;
3882             ignore_flags: ON_HOLD;
3883             description { state: "default" 0.0;
3884                rel1.to: "button_image";
3885                rel2.to: "button_image";
3886                color: 0 0 0 0;
3887             }
3888          }
3889          part { name: "over3";
3890             type: RECT;
3891             repeat_events: 1;
3892             description { state: "default" 0.0;
3893                rel1.to: "button_image";
3894                rel2.to: "button_image";
3895                color: 0 0 0 0;
3896             }
3897          }
3898          part { name: "disabler";
3899             type: RECT;
3900             description { state: "default" 0.0;
3901                rel1.to: "button_image";
3902                rel2.to: "button_image";
3903                color: 0 0 0 0;
3904                visible: 0;
3905             }
3906             description { state: "disabled" 0.0;
3907                inherit: "default" 0.0;
3908                visible: 1;
3909             }
3910          }
3911       }
3912       programs {
3913          program { name: "button_click";
3914             signal: "mouse,down,1";
3915             source: "over2";
3916             action: SIGNAL_EMIT "elm,action,press" "";
3917             after: "button_click_anim";
3918          }
3919          program { name: "button_click_anim";
3920             action: STATE_SET "clicked" 0.0;
3921             target: "button_image";
3922             target: "elm.text";
3923          }
3924          program { name: "button_double_click";
3925             signal: "mouse,down,1,double";
3926             source: "over2";
3927             after: "button_click_anim";
3928          }
3929          program { name: "button_unpress";
3930             action: SIGNAL_EMIT "elm,action,unpress" "";
3931          }
3932          program { name: "button_mouseout_clicked";
3933             signal: "mouse,up,1";
3934             source: "over3";
3935             script {
3936                new st[31];
3937                new Float:vl;
3938                get_state(PART:"elm.text", st, 30, vl);
3939                if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
3940                  {
3941                     emit("elm,action,default,text,set", "");
3942                     set_state(PART:"elm.text", "visible", 0.0);
3943                  }
3944                if (get_int(button_state) != BUTTON_STATE_DISABLED)
3945                  set_state(PART:"button_image", "default", 0.0);
3946             }
3947             after: button_unpress;
3948          }
3949          program { name: "touch_snd";
3950             signal: "mouse,clicked,1";
3951             source: "over2";
3952             action: PLAY_SAMPLE "touch_sound" 1.0;
3953             after: button_unclick3;
3954          }
3955          program { name: "button_unclick3";
3956             action: SIGNAL_EMIT "elm,action,click" "";
3957          }
3958          program { name: "text_show";
3959             signal: "elm,state,text,visible";
3960             source: "elm";
3961             script {
3962                if (get_int(button_state) != BUTTON_STATE_DISABLED)
3963                  set_state(PART:"elm.text", "visible", 0.0);
3964                else
3965                  set_state(PART:"elm.text", "disabled_visible", 0.0);
3966             }
3967          }
3968          program { name: "text_hide";
3969             signal: "elm,state,text,hidden";
3970             source: "elm";
3971             action: STATE_SET "default" 0.0;
3972             target: "elm.text";
3973          }
3974          program { name: "disable";
3975             signal: "elm,state,disabled";
3976             source: "elm";
3977             action: STATE_SET "disabled" 0.0;
3978             target: "button_image";
3979             target: "disabler";
3980             after: "disable_text";
3981          }
3982          program { name: "disable_text";
3983             script {
3984                new st[31];
3985                new Float:vl;
3986                get_state(PART:"elm.text", st, 30, vl);
3987                if (!strcmp(st, "visible"))
3988                  set_state(PART:"elm.text", "disabled_visible", 0.0);
3989                else
3990                  set_state(PART:"elm.text", "disabled", 0.0);
3991                set_int(button_state, BUTTON_STATE_DISABLED);
3992             }
3993          }
3994          program { name: "enable";
3995             signal: "elm,state,enabled";
3996             source: "elm";
3997             action: STATE_SET "default" 0.0;
3998             target: "button_image";
3999             target: "disabler";
4000             after: "enable_text";
4001          }
4002          program { name: "enable_text";
4003             script {
4004                new st[31];
4005                new Float:vl;
4006                get_state(PART:"elm.text", st, 30, vl);
4007                if (!strcmp(st, "disabled_visible"))
4008                  set_state(PART:"elm.text", "visible", 0.0);
4009                else
4010                  set_state(PART:"elm.text", "default", 0.0);
4011                set_int(button_state, BUTTON_STATE_ENABLED);
4012             }
4013          }
4014          program { name: "action_focus";
4015             signal: "elm,action,focus_highlight,show";
4016             source: "elm";
4017             action: STATE_SET "focused" 0.0;
4018             target: "focus_image";
4019          }
4020          program { name: "action_unfocus";
4021             signal: "elm,action,focus_highlight,hide";
4022             source: "elm";
4023             action: STATE_SET "default" 0.0;
4024             target: "focus_image";
4025          }
4026       }
4027    }
4028
4029 ///////////////////////////////////////////////////////////////////////////////////////
4030    group { name: "elm/button/base/naviframe/back_btn/default";
4031       alias: "elm/button/base/naviframe/prev_btn/default";
4032       alias: "elm/button/base/naviframe/end_btn/default";
4033       data {
4034          item: "focus_highlight" "on";
4035       }
4036       images {
4037          image: "00_icon_back.png" COMP;
4038          image: "00_icon_SIP_close.png" COMP;
4039          image: "00_icon_focus.png" COMP;
4040       }
4041       parts {
4042          part { name: "button_image";
4043             type: RECT;
4044             scale: 1;
4045             description { state: "default" 0.0;
4046                min: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
4047                max: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
4048                visible: 0;
4049             }
4050             description { state: "landscape" 0.0;
4051                min: BUTTON_NAVIFRAME_LANDSCAPE_BACK_BUTTON_BG_MIN_MAX_INC;
4052                max: BUTTON_NAVIFRAME_LANDSCAPE_BACK_BUTTON_BG_MIN_MAX_INC;
4053                visible: 0;
4054             }
4055          }
4056          part { name: "focus_image";
4057             scale: 1;
4058             mouse_events: 0;
4059             repeat_events: 1;
4060             description { state: "default" 0.0;
4061                visible: 0;
4062                rel1.to : "button_image";
4063                rel2.to : "button_image";
4064                image {
4065                   normal: "00_icon_focus.png";
4066                   border_scale: 1;
4067                }
4068             }
4069             description { state: "focused" 0.0;
4070                inherit: "default" 0.0;
4071                visible: 1;
4072             }
4073          }
4074          part { name: "back_button";
4075             scale: 1;
4076             mouse_events: 0;
4077             clip_to: "back_button.clipper";
4078             description { state: "default" 0.0;
4079                min: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
4080                max: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
4081                fixed: 1 1;
4082                rel1.to: "button_image";
4083                rel2.to: "button_image";
4084                image.normal: "00_icon_back.png";
4085             }
4086             description { state: "compress" 0.0;
4087                inherit: "default" 0.0;
4088                image.normal: "00_icon_SIP_close.png";
4089             }
4090          }
4091          part { name: "back_button.clipper";
4092             type: RECT;
4093             description { state: "default" 0.0;
4094                color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_COLOR_INC;
4095             }
4096             description { state: "clicked" 0.0;
4097                color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_COLOR_INC;
4098             }
4099             description { state: "disabled" 0.0;
4100                color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
4101             }
4102          }
4103          part { name: "over2";
4104             type: RECT;
4105             ignore_flags: ON_HOLD;
4106             description { state: "default" 0.0;
4107                color: 0 0 0 0;
4108             }
4109          }
4110          part { name: "over3";
4111             type: RECT;
4112             repeat_events: 1;
4113             description { state: "default" 0.0;
4114                color: 0 0 0 0;
4115             }
4116          }
4117          part { name: "disabler";
4118             type: RECT;
4119             description { state: "default" 0.0;
4120                color: 0 0 0 0;
4121                visible: 0;
4122             }
4123             description { state: "disabled" 0.0;
4124                inherit: "default" 0.0;
4125                visible: 1;
4126             }
4127          }
4128       }
4129       programs {
4130          program { name: "button_click";
4131             signal: "mouse,down,1";
4132             source: "over2";
4133             action: SIGNAL_EMIT "elm,action,press" "";
4134             after: "button_click_anim";
4135          }
4136          program { name: "button_click_anim";
4137             script {
4138                set_state(PART:"back_button.clipper", "clicked", 0.0);
4139             }
4140          }
4141          program { name: "button_double_click";
4142             signal: "mouse,down,1,double";
4143             source: "over2";
4144             after: "button_click_anim";
4145          }
4146          program { name: "button_unclick";
4147             signal: "mouse,up,1";
4148             source: "over3";
4149             action: SIGNAL_EMIT "elm,action,unpress" "";
4150             after: "button_unclick_anim";
4151          }
4152          program { name: "button_unclick_anim";
4153             script {
4154                set_state(PART:"back_button.clipper", "default", 0.0);
4155             }
4156          }
4157          program { name: "touch_snd";
4158             signal: "mouse,clicked,1";
4159             source: "over2";
4160             action: PLAY_SAMPLE "touch_sound" 1.0;
4161             after: button_unclick3;
4162          }
4163          program { name: "button_unclick3";
4164             action: SIGNAL_EMIT "elm,action,click" "";
4165          }
4166          program { name: "disable";
4167             signal: "elm,state,disabled";
4168             source: "elm";
4169             script {
4170                set_state(PART:"back_button.clipper", "disabled", 0.0);
4171             }
4172          }
4173          program { name: "enable";
4174             signal: "elm,state,enabled";
4175             source: "elm";
4176             script {
4177                set_state(PART:"back_button.clipper", "default", 0.0);
4178             }
4179          }
4180          program { name: "change_to_landscape";
4181             signal: "elm,state,landscape";
4182             source: "elm";
4183             action: STATE_SET "landscape" 0.0;
4184             target: "button_image";
4185          }
4186          program { name: "change_to_portrait";
4187             signal: "elm,state,portrait";
4188             source: "elm";
4189             action: STATE_SET "default" 0.0;
4190             target: "button_image";
4191          }
4192          program { name: "landscape_mode";
4193             source: "elm";
4194             signal: "elm,state,orient,90";
4195             action: SIGNAL_EMIT "elm,state,landscape" "elm";
4196          }
4197          program { name: "landscape_mode2";
4198             source: "elm";
4199             signal: "elm,state,orient,270";
4200             action: SIGNAL_EMIT "elm,state,landscape" "elm";
4201          }
4202          program { name: "portrait_mode";
4203             source: "elm";
4204             signal: "elm,state,orient,0";
4205             action: SIGNAL_EMIT "elm,state,portrait" "elm";
4206          }
4207          program { name: "portrait_mode2";
4208             source: "elm";
4209             signal: "elm,state,orient,180";
4210             action: SIGNAL_EMIT "elm,state,portrait" "elm";
4211          }
4212          program { name: "display_compress_mode";
4213             signal: "elm,state,display,compress";
4214             source: "elm";
4215             action: STATE_SET "compress" 0.0;
4216             target: "back_button";
4217          }
4218          program { name: "display_default_mode";
4219             signal: "elm,state,display,default";
4220             source: "elm";
4221             action: STATE_SET "default" 0.0;
4222             target: "back_button";
4223          }
4224          program { name: "action_focus";
4225             signal: "elm,action,focus_highlight,show";
4226             source: "elm";
4227             action: STATE_SET "focused" 0.0;
4228             target: "focus_image";
4229          }
4230          program { name: "action_unfocus";
4231             signal: "elm,action,focus_highlight,hide";
4232             source: "elm";
4233             action: STATE_SET "default" 0.0;
4234             target: "focus_image";
4235          }
4236       }
4237    }
4238
4239 ////////////////////////////////////////////////////////////////////
4240    group { name: "elm/button/base/naviframe/title_icon";
4241       data {
4242          item: "focus_highlight" "on";
4243       }
4244       images {
4245          image: "00_icon_focus.png" COMP;
4246       }
4247       parts {
4248          part { name: "button_image";
4249             type: RECT;
4250             scale: 1;
4251             description { state: "default" 0.0;
4252                visible: 0;
4253                min: BUTTON_NAVIFRAME_TITLE_ICON_BG_MIN_MAX_INC;
4254                max: BUTTON_NAVIFRAME_TITLE_ICON_BG_MIN_MAX_INC;
4255             }
4256             description { state: "landscape" 0.0;
4257                visible: 0;
4258                min: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_ICON_BG_MIN_MAX_INC;
4259                max: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_ICON_BG_MIN_MAX_INC;
4260             }
4261          }
4262          part { name: "focus_image";
4263             scale: 1;
4264             mouse_events: 0;
4265             repeat_events: 1;
4266             description { state: "default" 0.0;
4267                visible: 0;
4268                rel1.to : "button_image";
4269                rel2.to : "button_image";
4270                image {
4271                   normal: "00_icon_focus.png";
4272                   border_scale: 1;
4273                }
4274             }
4275             description { state: "focused" 0.0;
4276                inherit: "default" 0.0;
4277                visible: 1;
4278             }
4279          }
4280          part { name: "elm.swallow.content";
4281             type: SWALLOW;
4282             scale: 1;
4283             clip_to: "elm.icon.clipper";
4284             description { state: "default" 0.0;
4285                visible: 0;
4286                max: BUTTON_NAVIFRAME_TITLE_ICON_IMAGE_MIN_MAX_INC;
4287                align: 0.5 0.5;
4288                rel1 { to: "button_image"; }
4289                rel2 { to: "button_image"; }
4290             }
4291             description { state: "visible" 0.0;
4292                inherit: "default" 0.0;
4293                visible: 1;
4294             }
4295          }
4296          part { name: "elm.icon.clipper";
4297             type: RECT;
4298             description { state: "default" 0.0;
4299             }
4300             description { state: "clicked" 0.0;
4301             }
4302             description { state: "disabled" 0.0;
4303                color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
4304             }
4305          }
4306          part { name: "elm.swallow.content.proxy_shadow";
4307             type: PROXY;
4308             scale: 1;
4309             clip_to: "elm.icon.proxy_shadow.clipper";
4310             description { state: "default" 0.0;
4311                source: "elm.swallow.content";
4312                rel1 { to: "elm.swallow.content"; offset: 0 2; }
4313                rel2 { to: "elm.swallow.content"; offset: -1 1; }
4314             }
4315             description { state: "clicked" 0.0;
4316                inherit: "default" 0.0;
4317                rel1.offset: 0 -2;
4318                rel2.offset: -1 -3;
4319             }
4320             description { state: "disabled" 0.0;
4321                visible: 0;
4322             }
4323          }
4324          part { name: "elm.icon.proxy_shadow.clipper";
4325             type: RECT;
4326             description { state: "default" 0.0;
4327                color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_SHADOW_COLOR_INC;
4328             }
4329             description { state: "clicked" 0.0;
4330                color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_SHADOW_COLOR_INC;
4331             }
4332             description { state: "disabled" 0.0;
4333                visible: 0;
4334             }
4335          }
4336          part { name: "elm.swallow.content.proxy";
4337             type: PROXY;
4338             scale: 1;
4339             clip_to: "elm.icon.proxy.clipper";
4340             description { state: "default" 0.0;
4341                source: "elm.swallow.content";
4342                rel1 { to: "elm.swallow.content"; }
4343                rel2 { to: "elm.swallow.content"; }
4344             }
4345          }
4346          part { name: "elm.icon.proxy.clipper";
4347             type: RECT;
4348             description { state: "default" 0.0;
4349                color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_COLOR_INC;
4350             }
4351             description { state: "clicked" 0.0;
4352                color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_COLOR_INC;
4353             }
4354             description { state: "disabled" 0.0;
4355                visible: 0;
4356             }
4357          }
4358          part { name: "over2";
4359             type: RECT;
4360             ignore_flags: ON_HOLD;
4361             description { state: "default" 0.0;
4362                color: 0 0 0 0;
4363             }
4364          }
4365          part { name: "over3";
4366             type: RECT;
4367             repeat_events: 1;
4368             description { state: "default" 0.0;
4369                color: 0 0 0 0;
4370             }
4371          }
4372          part { name: "disabler";
4373             type: RECT;
4374             description { state: "default" 0.0;
4375                color: 0 0 0 0;
4376                visible: 0;
4377             }
4378             description { state: "disabled" 0.0;
4379                inherit: "default" 0.0;
4380                visible: 1;
4381             }
4382          }
4383       }
4384       programs {
4385          program { name: "button_click";
4386             signal: "mouse,down,1";
4387             source: "over2";
4388             action: SIGNAL_EMIT "elm,action,press" "";
4389             after: "button_click_anim";
4390          }
4391          program { name: "button_click_anim";
4392             script {
4393                set_state(PART:"elm.icon.proxy_shadow.clipper", "clicked", 0.0);
4394                set_state(PART:"elm.icon.proxy.clipper", "clicked", 0.0);
4395                set_state(PART:"elm.icon.clipper", "clicked", 0.0);
4396                set_state(PART:"elm.swallow.content.proxy_shadow", "clicked", 0.0);
4397             }
4398          }
4399          program { name: "button_double_click";
4400             signal: "mouse,down,1,double";
4401             source: "over2";
4402             after: "button_click_anim";
4403          }
4404          program { name: "button_unpress";
4405             action: SIGNAL_EMIT "elm,action,unpress" "";
4406          }
4407          program { name: "button_mouseout_clicked";
4408             signal: "mouse,up,1";
4409             source: "over3";
4410             script {
4411                set_state(PART:"elm.icon.proxy_shadow.clipper", "default", 0.0);
4412                set_state(PART:"elm.icon.proxy.clipper", "default", 0.0);
4413                set_state(PART:"elm.icon.clipper", "default", 0.0);
4414                set_state(PART:"elm.swallow.content.proxy_shadow", "default", 0.0);
4415             }
4416             after: button_unpress;
4417          }
4418          program { name: "touch_snd";
4419             signal: "mouse,clicked,1";
4420             source: "over2";
4421             action: PLAY_SAMPLE "touch_sound" 1.0;
4422             after: button_unclick3;
4423          }
4424          program { name: "button_unclick3";
4425             action: SIGNAL_EMIT "elm,action,click" "";
4426          }
4427          program { name: "icon_show";
4428             signal: "elm,state,icon,visible";
4429             source: "elm";
4430             action: STATE_SET "visible" 0.0;
4431             target: "elm.swallow.content";
4432          }
4433          program { name: "icon_hide";
4434             signal: "elm,state,icon,hidden";
4435             source: "elm";
4436             action: STATE_SET "default" 0.0;
4437             target: "elm.swallow.content";
4438          }
4439          program { name: "disable";
4440             signal: "elm,state,disabled";
4441             source: "elm";
4442             script {
4443                set_state(PART:"disabler", "disabled", 0.0);
4444                set_state(PART:"elm.icon.proxy_shadow.clipper", "disabled", 0.0);
4445                set_state(PART:"elm.icon.proxy.clipper", "disabled", 0.0);
4446                set_state(PART:"elm.icon.clipper", "disabled", 0.0);
4447                set_state(PART:"elm.swallow.content.proxy_shadow", "disabled", 0.0);
4448             }
4449          }
4450          program { name: "enable";
4451             signal: "elm,state,enabled";
4452             source: "elm";
4453             script {
4454                set_state(PART:"disabler", "default", 0.0);
4455                set_state(PART:"elm.icon.proxy_shadow.clipper", "default", 0.0);
4456                set_state(PART:"elm.icon.proxy.clipper", "default", 0.0);
4457                set_state(PART:"elm.icon.clipper", "default", 0.0);
4458                set_state(PART:"elm.swallow.content.proxy_shadow", "default", 0.0);
4459             }
4460          }
4461          program { name: "change_to_landscape";
4462             signal: "elm,state,landscape";
4463             source: "elm";
4464             action: STATE_SET "landscape" 0.0;
4465             target: "button_image";
4466          }
4467          program { name: "change_to_portrait";
4468             signal: "elm,state,portrait";
4469             source: "elm";
4470             action: STATE_SET "default" 0.0;
4471             target: "button_image";
4472          }
4473          program { name: "landscape_mode";
4474             source: "elm";
4475             signal: "elm,state,orient,90";
4476             action: SIGNAL_EMIT "elm,state,landscape" "elm";
4477          }
4478          program { name: "landscape_mode2";
4479             source: "elm";
4480             signal: "elm,state,orient,270";
4481             action: SIGNAL_EMIT "elm,state,landscape" "elm";
4482          }
4483          program { name: "portrait_mode";
4484             source: "elm";
4485             signal: "elm,state,orient,0";
4486             action: SIGNAL_EMIT "elm,state,portrait" "elm";
4487          }
4488          program { name: "portrait_mode2";
4489             source: "elm";
4490             signal: "elm,state,orient,180";
4491             action: SIGNAL_EMIT "elm,state,portrait" "elm";
4492          }
4493          program { name: "action_focus";
4494             signal: "elm,action,focus_highlight,show";
4495             source: "elm";
4496             action: STATE_SET "focused" 0.0;
4497             target: "focus_image";
4498          }
4499          program { name: "action_unfocus";
4500             signal: "elm,action,focus_highlight,hide";
4501             source: "elm";
4502             action: STATE_SET "default" 0.0;
4503             target: "focus_image";
4504          }
4505       }
4506    }
4507
4508 ////////////////////////////////////////////////////////////////////
4509    group { name: "elm/button/base/naviframe/title_text";
4510       images {
4511          image: "00_title_press.png" COMP;
4512       }
4513       script {
4514          public landscape = 0;
4515          public disabled = 0;
4516       }
4517       styles{
4518          style { name: "btn_naviframe_title_text";
4519             base: "font=Tizen:style=Bold font_size="BUTTON_NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC" align=center color="BUTTON_NAVIFRAME_TITLE_TEXT_NORMAL_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_NAVIFRAME_TITLE_TEXT_SHADOW_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
4520             tag: "br" "\n";
4521             tag: "ps" "ps";
4522             tag: "tab" "\t";
4523          }
4524          style { name: "btn_naviframe_title_text_disabled";
4525             base: "font=Tizen:style=Bold font_size="BUTTON_NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC" align=center color="BUTTON_NAVIFRAME_TITLE_TEXT_DISABLED_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_NAVIFRAME_TITLE_TEXT_SHADOW_DISABLED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
4526             tag: "br" "\n";
4527             tag: "ps" "ps";
4528             tag: "tab" "\t";
4529          }
4530          style { name: "btn_naviframe_title_text_pressed";
4531             base: "font=Tizen:style=Bold font_size="BUTTON_NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC" align=center color="BUTTON_NAVIFRAME_TITLE_TEXT_PRESSED_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_NAVIFRAME_TITLE_TEXT_SHADOW_PRESSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
4532             tag: "br" "\n";
4533             tag: "ps" "ps";
4534             tag: "tab" "\t";
4535          }
4536       }
4537       parts {
4538          part { name: "button_bg";
4539             type: RECT;
4540             scale: 1;
4541             description { state: "default" 0.0;
4542                visible: 0;
4543                min: BUTTON_NAVIFRAME_TITLE_TEXT_BG_MIN_INC;
4544                max: BUTTON_NAVIFRAME_TITLE_TEXT_BG_MAX_INC;
4545             }
4546             description { state: "landscape" 0.0;
4547                visible: 0;
4548                min: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_TEXT_BG_MIN_INC;
4549                max: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_TEXT_BG_MAX_INC;
4550             }
4551          }
4552          part { name: "button_image";
4553             type: IMAGE;
4554             scale: 1;
4555             description { state: "default" 0.0;
4556                visible: 0;
4557                rel1 { to: "button_bg"; }
4558                rel2 { to: "button_bg"; }
4559             }
4560             description { state: "clicked" 0.0;
4561                inherit: "default" 0.0;
4562                visible: 1;
4563                image {
4564                   normal: "00_title_press.png";
4565                   border: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_BORDER_INC;
4566                   border_scale: 1;
4567                }
4568             }
4569             description { state: "disabled" 0.0;
4570                inherit: "default" 0.0;
4571             }
4572          }
4573          part { name: "left_padding";
4574             type: RECT;
4575             scale: 1;
4576             description { state: "default" 0.0;
4577                visible: 0;
4578                min: BUTTON_NAVIFRAME_TITLE_TEXT_LEFT_PADDING_INC 0;
4579                max: BUTTON_NAVIFRAME_TITLE_TEXT_LEFT_PADDING_INC -1;
4580                align: 0.0 0.5;
4581                fixed: 1 0;
4582                rel1 { relative: 0.0 0.0; to: "button_bg"; }
4583                rel2 { relative: 0.0 1.0; to: "button_bg"; }
4584             }
4585          }
4586          part { name: "right_padding";
4587             type: RECT;
4588             scale: 1;
4589             description { state: "default" 0.0;
4590                visible: 0;
4591                min: BUTTON_NAVIFRAME_TITLE_TEXT_LEFT_PADDING_INC 0;
4592                max: BUTTON_NAVIFRAME_TITLE_TEXT_LEFT_PADDING_INC -1;
4593                align: 1.0 0.5;
4594                fixed: 1 0;
4595                rel1 { relative: 1.0 0.0; to: "button_bg"; }
4596                rel2 { relative: 1.0 1.0; to: "button_bg"; }
4597             }
4598          }
4599          part { name: "elm.text";
4600             type: TEXTBLOCK;
4601             mouse_events: 0;
4602             scale: 1;
4603             description { state: "default" 0.0;
4604                min: BUTTON_NAVIFRAME_TITLE_TEXT_TEXTBLOCK_MIN_INC;
4605                max: BUTTON_NAVIFRAME_TITLE_TEXT_TEXTBLOCK_MAX_INC;
4606                rel1 { relative: 1.0 0.0; to: "left_padding"; }
4607                rel2 { relative: 0.0 1.0; to: "right_padding"; }
4608                text {
4609                   style: "btn_naviframe_title_text";
4610                   size: BUTTON_NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC;
4611                   min: 1 0;
4612                }
4613             }
4614             description { state: "disabled" 0.0;
4615                inherit: "default" 0.0;
4616                text {
4617                   style: "btn_naviframe_title_text_disabled";
4618                   size: BUTTON_NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC;
4619                   min: 1 0;
4620                }
4621             }
4622             description { state: "pressed" 0.0;
4623                inherit: "default" 0.0;
4624                text {
4625                   style: "btn_naviframe_title_text_pressed";
4626                   size: BUTTON_NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC;
4627                   min: 1 0;
4628                }
4629             }
4630             description { state: "landscape" 0.0;
4631                inherit: "default" 0.0;
4632                min: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_TEXT_TEXTBLOCK_MIN_INC;
4633                max: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_TEXT_TEXTBLOCK_MAX_INC;
4634             }
4635             description { state: "landscape_disabled" 0.0;
4636                inherit: "landscape" 0.0;
4637                text {
4638                   style: "btn_naviframe_title_text_disabled";
4639                   size: BUTTON_NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC;
4640                   min: 1 0;
4641                }
4642             }
4643             description { state: "landscape_pressed" 0.0;
4644                inherit: "landscape" 0.0;
4645                text {
4646                   style: "btn_naviframe_title_text_pressed";
4647                   size: BUTTON_NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC;
4648                   min: 1 0;
4649                }
4650             }
4651          }
4652          part { name: "over2";
4653             type: RECT;
4654             ignore_flags: ON_HOLD;
4655             description { state: "default" 0.0;
4656                color: 0 0 0 0;
4657             }
4658          }
4659          part { name: "over3";
4660             type: RECT;
4661             repeat_events: 1;
4662             description { state: "default" 0.0;
4663                color: 0 0 0 0;
4664             }
4665          }
4666          part { name: "disabler";
4667             type: RECT;
4668             description { state: "default" 0.0;
4669                color: 0 0 0 0;
4670                visible: 0;
4671             }
4672             description { state: "disabled" 0.0;
4673                inherit: "default" 0.0;
4674                visible: 1;
4675             }
4676          }
4677       }
4678       programs {
4679          program { name: "button_click";
4680             signal: "mouse,down,1";
4681             source: "over2";
4682             action: SIGNAL_EMIT "elm,action,press" "";
4683             after: "button_click_anim";
4684          }
4685          program { name: "button_click_anim";
4686             script {
4687                set_state(PART:"button_image", "clicked", 0.0);
4688
4689                if (get_int(landscape))
4690                  set_state(PART:"elm.text", "landscape_pressed", 0.0);
4691                else
4692                  set_state(PART:"elm.text", "pressed", 0.0);
4693             }
4694          }
4695          program { name: "button_double_click";
4696             signal: "mouse,down,1,double";
4697             source: "over2";
4698             after: "button_click_anim";
4699          }
4700          program { name: "button_unclick";
4701             signal: "mouse,up,1";
4702             source: "over3";
4703             action: SIGNAL_EMIT "elm,action,unpress" "";
4704             after: "button_unclick_anim";
4705          }
4706          program { name: "button_unclick_anim";
4707             script {
4708                set_state(PART:"button_image", "default", 0.0);
4709
4710                if (get_int(landscape))
4711                  set_state(PART:"elm.text", "landscape", 0.0);
4712                else
4713                  set_state(PART:"elm.text", "default", 0.0);
4714             }
4715          }
4716          program { name: "touch_snd";
4717             signal: "mouse,clicked,1";
4718             source: "over2";
4719             action: PLAY_SAMPLE "touch_sound" 1.0;
4720             after: "button_unclick3";
4721          }
4722          program { name: "button_unclick3";
4723             action: SIGNAL_EMIT "elm,action,click" "";
4724          }
4725          program { name: "disable";
4726             signal: "elm,state,disabled";
4727             source: "elm";
4728             script {
4729                set_int(disabled, 1);
4730                set_state(PART:"disabler", "disabled", 0.0);
4731                set_state(PART:"button_image", "disabled", 0.0);
4732
4733                if (get_int(landscape))
4734                  set_state(PART:"elm.text", "landscape_disabled", 0.0);
4735                else
4736                  set_state(PART:"elm.text", "disabled", 0.0);
4737             }
4738          }
4739          program { name: "enable";
4740             signal: "elm,state,enabled";
4741             source: "elm";
4742             script {
4743                set_int(disabled, 0);
4744                set_state(PART:"disabler", "default", 0.0);
4745                set_state(PART:"button_image", "default", 0.0);
4746
4747                if (get_int(landscape))
4748                  set_state(PART:"elm.text", "landscape", 0.0);
4749                else
4750                  set_state(PART:"elm.text", "default", 0.0);
4751             }
4752          }
4753          program { name: "change_to_landscape";
4754             signal: "elm,state,landscape";
4755             source: "elm";
4756             script {
4757                set_int(landscape, 1);
4758                set_state(PART:"button_bg", "landscape", 0.0);
4759
4760                if (get_int(disabled))
4761                  set_state(PART:"elm.text", "landscape", 0.0);
4762                else
4763                  set_state(PART:"elm.text", "landscape_disabled", 0.0);
4764             }
4765          }
4766          program { name: "change_to_portrait";
4767             signal: "elm,state,portrait";
4768             source: "elm";
4769             script {
4770                set_int(landscape, 0);
4771                set_state(PART:"button_bg", "default", 0.0);
4772
4773                if (get_int(disabled))
4774                  set_state(PART:"elm.text", "disabled", 0.0);
4775                else
4776                  set_state(PART:"elm.text", "default", 0.0);
4777             }
4778          }
4779          program { name: "landscape_mode";
4780             source: "elm";
4781             signal: "elm,state,orient,90";
4782             action: SIGNAL_EMIT "elm,state,landscape" "elm";
4783          }
4784          program { name: "landscape_mode2";
4785             source: "elm";
4786             signal: "elm,state,orient,270";
4787             action: SIGNAL_EMIT "elm,state,landscape" "elm";
4788          }
4789          program { name: "portrait_mode";
4790             source: "elm";
4791             signal: "elm,state,orient,0";
4792             action: SIGNAL_EMIT "elm,state,portrait" "elm";
4793          }
4794          program { name: "portrait_mode2";
4795             source: "elm";
4796             signal: "elm,state,orient,180";
4797             action: SIGNAL_EMIT "elm,state,portrait" "elm";
4798          }
4799       }
4800    }
4801
4802 /////////////////////////////////////////////////////////////////////////////////////////
4803    group { name: "elm/button/base/naviframe/more/default";
4804       data {
4805          item: "focus_highlight" "on";
4806       }
4807       images {
4808          image: "00_icon_more.png" COMP;
4809          image: "00_icon_focus.png" COMP;
4810       }
4811       parts {
4812          part { name: "button_image";
4813             type: RECT;
4814             scale: 1;
4815             description { state: "default" 0.0;
4816                min: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
4817                max: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
4818                visible: 0;
4819             }
4820             description { state: "landscape" 0.0;
4821                min: BUTTON_NAVIFRAME_LANDSCAPE_MORE_BG_MIN_MAX_INC;
4822                max: BUTTON_NAVIFRAME_LANDSCAPE_MORE_BG_MIN_MAX_INC;
4823                visible: 0;
4824             }
4825          }
4826          part { name: "focus_image";
4827             scale: 1;
4828             mouse_events: 0;
4829             repeat_events: 1;
4830             description { state: "default" 0.0;
4831                visible: 0;
4832                rel1.to : "button_image";
4833                rel2.to : "button_image";
4834                image {
4835                   normal: "00_icon_focus.png";
4836                   border_scale: 1;
4837                }
4838             }
4839             description { state: "focused" 0.0;
4840                inherit: "default" 0.0;
4841                visible: 1;
4842             }
4843          }
4844          part { name: "more_image";
4845             scale: 1;
4846             mouse_events: 0;
4847             clip_to: "more_image.clipper";
4848             description { state: "default" 0.0;
4849                min: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
4850                max: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
4851                fixed: 1 1;
4852                rel1.to: "button_image";
4853                rel2.to: "button_image";
4854                image.normal: "00_icon_more.png";
4855             }
4856          }
4857          part { name: "more_image.clipper";
4858             type: RECT;
4859             description { state: "default" 0.0;
4860                color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_COLOR_INC;
4861             }
4862             description { state: "clicked" 0.0;
4863                color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_COLOR_INC;
4864             }
4865             description { state: "disabled" 0.0;
4866                color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
4867             }
4868          }
4869          part { name: "over2";
4870             type: RECT;
4871             ignore_flags: ON_HOLD;
4872             description { state: "default" 0.0;
4873                color: 0 0 0 0;
4874             }
4875          }
4876          part { name: "over3";
4877             type: RECT;
4878             repeat_events: 1;
4879             description { state: "default" 0.0;
4880                color: 0 0 0 0;
4881             }
4882          }
4883          part { name: "disabler";
4884             type: RECT;
4885             description { state: "default" 0.0;
4886                color: 0 0 0 0;
4887                visible: 0;
4888             }
4889             description { state: "disabled" 0.0;
4890                inherit: "default" 0.0;
4891                visible: 1;
4892             }
4893          }
4894       }
4895       programs {
4896          program { name: "button_click";
4897             signal: "mouse,down,1";
4898             source: "over2";
4899             action: SIGNAL_EMIT "elm,action,press" "";
4900             after: "button_click_anim";
4901          }
4902          program { name: "button_click_anim";
4903             script {
4904                set_state(PART:"more_image.clipper", "clicked", 0.0);
4905             }
4906          }
4907          program { name: "button_double_click";
4908             signal: "mouse,down,1,double";
4909             source: "over2";
4910             after: "button_click_anim";
4911          }
4912          program { name: "button_unclick";
4913             signal: "mouse,up,1";
4914             source: "over3";
4915             action: SIGNAL_EMIT "elm,action,unpress" "";
4916             after: "button_unclick_anim";
4917          }
4918          program { name: "button_unclick_anim";
4919             script {
4920                set_state(PART:"more_image.clipper", "default", 0.0);
4921             }
4922          }
4923          program { name: "touch_snd";
4924             signal: "mouse,clicked,1";
4925             source: "over2";
4926             action: PLAY_SAMPLE "touch_sound" 1.0;
4927             after: button_unclick3;
4928          }
4929          program { name: "button_unclick3";
4930             action: SIGNAL_EMIT "elm,action,click" "";
4931          }
4932          program { name: "disable";
4933             signal: "elm,state,disabled";
4934             source: "elm";
4935             script {
4936                set_state(PART:"disabler", "disabled", 0.0);
4937                set_state(PART:"more_image.clipper", "disabled", 0.0);
4938             }
4939          }
4940          program { name: "enable";
4941             signal: "elm,state,enabled";
4942             source: "elm";
4943             script {
4944                set_state(PART:"disabler", "default", 0.0);
4945                set_state(PART:"more_image.clipper", "default", 0.0);
4946             }
4947          }
4948          program { name: "change_to_landscape";
4949             signal: "elm,state,landscape";
4950             source: "elm";
4951             action: STATE_SET "landscape" 0.0;
4952             target: "button_image";
4953          }
4954          program { name: "change_to_portrait";
4955             signal: "elm,state,portrait";
4956             source: "elm";
4957             action: STATE_SET "default" 0.0;
4958             target: "button_image";
4959          }
4960          program { name: "landscape_mode";
4961             source: "elm";
4962             signal: "elm,state,orient,90";
4963             action: SIGNAL_EMIT "elm,state,landscape" "elm";
4964          }
4965          program { name: "landscape_mode2";
4966             source: "elm";
4967             signal: "elm,state,orient,270";
4968             action: SIGNAL_EMIT "elm,state,landscape" "elm";
4969          }
4970          program { name: "portrait_mode";
4971             source: "elm";
4972             signal: "elm,state,orient,0";
4973             action: SIGNAL_EMIT "elm,state,portrait" "elm";
4974          }
4975          program { name: "portrait_mode2";
4976             source: "elm";
4977             signal: "elm,state,orient,180";
4978             action: SIGNAL_EMIT "elm,state,portrait" "elm";
4979          }
4980          program { name: "action_focus";
4981             signal: "elm,action,focus_highlight,show";
4982             source: "elm";
4983             action: STATE_SET "focused" 0.0;
4984             target: "focus_image";
4985          }
4986          program { name: "action_unfocus";
4987             signal: "elm,action,focus_highlight,hide";
4988             source: "elm";
4989             action: STATE_SET "default" 0.0;
4990             target: "focus_image";
4991          }
4992       }
4993    }
4994
4995 ///////////////////////////////////////////////////////////////////////////////////////
4996    group { name: "elm/button/base/expandable_number";
4997       alias: "elm/button/base/text_only/expandable_number";
4998       data {
4999          item: "focus_highlight" "on";
5000       }
5001       images {
5002          image: "00_button_01.png" COMP;
5003          image: "00_button_01_press.png" COMP;
5004          image: "00_button_01_dim.png" COMP;
5005          image: "00_arrow_expand.png" COMP;
5006          image: "00_button_01_focus.png" COMP;
5007       }
5008       styles{
5009          style { name: "btn_base_exapandable_number";
5010             base: "font=Tizen:style=Regular font_size="BUTTON_EXPANDABLE_NUMBER_FONT_SIZE_INC" align=center color="BUTTON_NUMBER_TEXTBLOCK_NORMAL_COLOR_INC" style=far_shadow,bottom shadow_color="BUTTON_TEXT_SHADOW_TEXTBLOCK_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
5011             tag: "br" "\n";
5012             tag: "ps" "ps";
5013             tag: "tab" "\t";
5014          }
5015          style { name: "btn_base_exapandable_number_pressed";
5016             base: "font=Tizen:style=Regular font_size="BUTTON_EXPANDABLE_NUMBER_FONT_SIZE_INC" align=center color="BUTTON_NUMBER_TEXTBLOCK_PRESSED_COLOR_INC" style=far_shadow,top shadow_color="BUTTON_TEXT_SHADOW_TEXTBLOCK_PRESSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
5017             tag: "br" "\n";
5018             tag: "ps" "ps";
5019             tag: "tab" "\t";
5020          }
5021          style { name: "btn_base_exapandable_number_dim";
5022             base: "font=Tizen:style=Regular font_size="BUTTON_EXPANDABLE_NUMBER_FONT_SIZE_INC" align=center color="BUTTON_NUMBER_TEXTBLOCK_DISABLE_VISIBLE_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
5023             tag: "br" "\n";
5024             tag: "ps" "ps";
5025             tag: "tab" "\t";
5026          }
5027          style { name: "btn_base_exapandable_number_focus";
5028             base: "font=Tizen:style=Regular font_size="BUTTON_EXPANDABLE_NUMBER_FONT_SIZE_INC" align=center color="BUTTON_NUMBER_TEXTBLOCK_FOCUSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
5029             tag: "br" "\n";
5030             tag: "ps" "ps";
5031             tag: "tab" "\t";
5032          }
5033       }
5034       script {
5035          public button_state = BUTTON_STATE_ENABLED;
5036       }
5037       parts {
5038          part { name: "button_image";
5039             scale: 1;
5040             description { state: "default" 0.0;
5041                min: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
5042                max: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
5043                image {
5044                   normal: "00_button_01.png";
5045                   border: BUTTON_EXPANDABLE_NUMBER_BG_BORDER_INC;
5046                   border_scale: 1;
5047                }
5048             }
5049             description { state: "clicked" 0.0;
5050                inherit: "default" 0.0;
5051                image.normal: "00_button_01_press.png";
5052             }
5053             description { state: "disabled" 0.0;
5054                inherit: "default" 0.0;
5055                image.normal: "00_button_01_dim.png";
5056             }
5057             description { state: "focused" 0.0;
5058                inherit: "default" 0.0;
5059                image.normal: "00_button_01_press.png";
5060             }
5061          }
5062          part { name: "focus_image";
5063             scale: 1;
5064             mouse_events: 0;
5065             repeat_events: 1;
5066             description { state: "default" 0.0;
5067                min: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
5068                max: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
5069                visible: 0;
5070                rel1.to : "button_image";
5071                rel2.to : "button_image";
5072                image {
5073                   normal: "00_button_01_focus.png";
5074                   border: BUTTON_EXPANDABLE_NUMBER_BG_BORDER_INC;
5075                   border_scale: 1;
5076                }
5077             }
5078             description { state: "focused" 0.0;
5079                inherit: "default" 0.0;
5080                visible: 1;
5081             }
5082          }
5083          part { name: "padding_left_top";
5084             type: RECT;
5085             scale: 1;
5086             mouse_events: 0;
5087             description { state: "default" 0.0;
5088                visible: 0;
5089                align: 0.0 0.0;
5090                rel2.relative: 0.0 0.0;
5091                min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
5092                fixed: 1 1;
5093             }
5094          }
5095          part { name: "padding_right_bottom";
5096             type: RECT;
5097             scale: 1;
5098             mouse_events: 0;
5099             description { state: "default" 0.0;
5100                visible: 0;
5101                align: 1.0 1.0;
5102                rel1.relative: 1.0 1.0;
5103                min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
5104                fixed: 1 1;
5105             }
5106          }
5107          part { name: "icon_rect";
5108             type: RECT;
5109             scale: 1;
5110             mouse_events: 0;
5111             description { state: "default" 0.0;
5112                visible: 0;
5113                min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
5114                max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
5115                fixed: 1 0;
5116                rel1 {
5117                   relative: 0.0 1.0;
5118                   to_x: "padding_right_bottom";
5119                   to_y: "padding_left_top";
5120                }
5121                rel2 {
5122                   relative: 0.0 0.0;
5123                   to: "padding_right_bottom";
5124                }
5125                align: 1.0 0.5;
5126             }
5127          }
5128          part { name: "arrow_expand";
5129             scale: 1;
5130             mouse_events: 0;
5131             description { state: "default" 0.0;
5132                align: 0.0 0.5;
5133                min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
5134                max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
5135                fixed: 0 0;
5136                rel1.to: "icon_rect";
5137                rel2.to: "icon_rect";
5138                image.normal:"00_arrow_expand.png";
5139             }
5140          }
5141          part { name: "arrow_expand.shadow.proxy";
5142             type: PROXY;
5143             scale: 1;
5144             clip_to: "arrow_expand.shadow.clipper";
5145             description { state: "default" 0.0;
5146                source: "arrow_expand";
5147                proxy.source_clip: 0;
5148                rel1 {
5149                   to: "arrow_expand";
5150                   offset: BUTTON_EXPANDABLE_NORMAL_TOP_OFFSET_INC;
5151                }
5152                rel2 {
5153                   to: "arrow_expand";
5154                   offset: BUTTON_EXPANDABLE_NORMAL_BOTTOM_OFFSET_INC;
5155                }
5156             }
5157             description { state: "clicked" 0.0;
5158                inherit: "default" 0.0;
5159                rel1 {
5160                   to: "icon_rect";
5161                   offset: BUTTON_EXPANDABLE_PRESSED_TOP_OFFSET_INC;
5162                }
5163                rel2 {
5164                   to: "arrow_expand";
5165                   offset: BUTTON_EXPANDABLE_PRESSED_BOTTOM_OFFSET_INC;
5166                }
5167             }
5168             description { state: "disabled" 0.0;
5169                inherit: "default" 0.0;
5170             }
5171          }
5172          part { name: "arrow_expand.proxy";
5173             type: PROXY;
5174             scale: 1;
5175             clip_to: "icon_clipper";
5176             description { state: "default" 0.0;
5177                source: "arrow_expand";
5178                proxy.source_clip: 0;
5179                rel1.to: "arrow_expand";
5180                rel2.to: "arrow_expand";
5181             }
5182          }
5183          part { name: "arrow_expand.shadow.clipper";
5184             scale: 1;
5185             type: RECT;
5186             description { state: "default" 0.0;
5187                color: BUTTON_EXPANDABLE_SHADOW_NORMAL_COLOR_INC;
5188             }
5189             description { state: "clicked" 0.0;
5190                color: BUTTON_EXPANDABLE_SHADOW_PRESSED_COLOR_INC;
5191             }
5192             description { state: "disabled" 0.0;
5193                color: BUTTON_EXPANDABLE_SHADOW_DISABLED_COLOR_INC;
5194             }
5195          }
5196          part { name: "icon_clipper";
5197             scale: 1;
5198             type: RECT;
5199             description { state: "default" 0.0;
5200                color: BUTTON_NUMBER_ICON_NORMAL_COLOR_INC;
5201             }
5202             description { state: "clicked" 0.0;
5203                color: BUTTON_NUMBER_ICON_PRESSED_COLOR_INC;
5204             }
5205             description { state: "disabled" 0.0;
5206                color: BUTTON_NUMBER_ICON_DISABLED_COLOR_INC;
5207             }
5208          }
5209          part { name: "elm.text";
5210             type: TEXTBLOCK;
5211             mouse_events: 0;
5212             scale: 1;
5213             description { state: "default" 0.0;
5214                min: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
5215                max: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
5216                fixed:1 0;
5217                rel1 {
5218                   relative: 1.0 1.0;
5219                   to: "padding_left_top";
5220                }
5221                rel2 {
5222                   relative: 1.0 1.0;
5223                   to_x:"padding_left_top";
5224                   to_y:"padding_right_bottom";
5225                }
5226                align: 0.0 0.5;
5227                text {
5228                   style: "btn_base_exapandable_number";
5229                   min: 0 0;
5230                   fit: 1 1;
5231                   size_range: 28 32;
5232                }
5233             }
5234             description { state: "visible" 0.0;
5235                inherit: "default" 0.0;
5236             }
5237             description { state: "clicked" 0.0;
5238                inherit: "default" 0.0;
5239                text {
5240                   style: "btn_base_exapandable_number_pressed";
5241                   min: 0 0;
5242                   fit: 1 1;
5243                   size_range: 28 32;
5244                }
5245             }
5246             description { state: "disabled" 0.0;
5247                inherit: "default" 0.0;
5248             }
5249             description { state: "disabled_visible" 0.0;
5250                inherit: "default" 0.0;
5251                text {
5252                   style: "btn_base_exapandable_number_dim";
5253                }
5254             }
5255             description { state: "focused" 0.0;
5256                inherit: "default" 0.0;
5257                text {
5258                   style: "btn_base_exapandable_number_focus";
5259                }
5260             }
5261          }
5262          part { name: "over2";
5263             type: RECT;
5264             repeat_events: 1;
5265             ignore_flags: ON_HOLD;
5266             description { state: "default" 0.0;
5267                color: 0 0 0 0;
5268             }
5269          }
5270          part { name: "over3";
5271             type: RECT;
5272             repeat_events: 1;
5273             description { state: "default" 0.0;
5274                color: 0 0 0 0;
5275             }
5276          }
5277          part { name: "disabler";
5278             type: RECT;
5279             description { state: "default" 0.0;
5280                color: 0 0 0 0;
5281                visible: 0;
5282             }
5283             description { state: "disabled" 0.0;
5284                inherit: "default" 0.0;
5285                visible: 1;
5286             }
5287          }
5288       }
5289       programs {
5290          program { name: "button_click";
5291             signal: "mouse,down,1";
5292             source: "over2";
5293             action: SIGNAL_EMIT "elm,action,press" "";
5294             after: "button_click_anim";
5295          }
5296          program { name: "button_click_anim";
5297             action: STATE_SET "clicked" 0.0;
5298             target: "button_image";
5299             target: "arrow_expand.shadow.proxy";
5300             target: "arrow_expand.shadow.clipper";
5301             target: "icon_clipper";
5302             after: "text_clicked";
5303          }
5304          program { name: "text_clicked";
5305             script {
5306                new st[31];
5307                new Float:vl;
5308                get_state(PART:"elm.text", st, 30, vl);
5309                if (!strcmp(st, "visible"))
5310                  set_state(PART:"elm.text", "clicked", 0.0);
5311             }
5312          }
5313          program { name: "button_double_click";
5314             signal: "mouse,down,1,double";
5315             source: "over2";
5316             after: "button_click_anim";
5317          }
5318          program { name: "button_unpress";
5319             action: SIGNAL_EMIT "elm,action,unpress" "";
5320          }
5321          program { name: "button_mouseout_clicked";
5322             signal: "mouse,up,1";
5323             source: "over3";
5324             script {
5325                if (get_int(button_state) != BUTTON_STATE_DISABLED)
5326                  {
5327                     set_state(PART:"button_image", "default", 0.0);
5328                     set_state(PART:"elm.text", "visible", 0.0);
5329                     set_state(PART:"arrow_expand.shadow.proxy", "visible", 0.0);
5330                     set_state(PART:"arrow_expand.shadow.clipper", "visible", 0.0);
5331                     set_state(PART:"icon_clipper", "default", 0.0);
5332                  }
5333             }
5334             after: button_unpress;
5335          }
5336          program { name: "touch_snd";
5337             signal: "mouse,clicked,1";
5338             source: "over2";
5339             action: PLAY_SAMPLE "touch_sound" 1.0;
5340             after: button_unclick3;
5341          }
5342          program { name: "button_unclick3";
5343             action: SIGNAL_EMIT "elm,action,click" "";
5344          }
5345          program { name: "text_show";
5346             signal: "elm,state,text,visible";
5347             source: "elm";
5348             script {
5349                if (get_int(button_state) != BUTTON_STATE_DISABLED)
5350                  set_state(PART:"elm.text", "visible", 0.0);
5351                else
5352                  set_state(PART:"elm.text", "disabled_visible", 0.0);
5353             }
5354          }
5355          program { name: "text_hide";
5356             signal: "elm,state,text,hidden";
5357             source: "elm";
5358             script {
5359                set_state(PART:"elm.text", "default", 0.0);
5360             }
5361          }
5362          program { name: "disable";
5363             signal: "elm,state,disabled";
5364             source: "elm";
5365             action: STATE_SET "disabled" 0.0;
5366             target: "button_image";
5367             target: "disabler";
5368             target: "arrow_expand.shadow.proxy";
5369             target: "arrow_expand.shadow.clipper";
5370             target: "icon_clipper";
5371             after: "disable_text";
5372          }
5373          program { name: "disable_text";
5374             script {
5375                new st[31];
5376                new Float:vl;
5377                get_state(PART:"elm.text", st, 30, vl);
5378                if (!strcmp(st, "visible"))
5379                  set_state(PART:"elm.text", "disabled_visible", 0.0);
5380                else
5381                  set_state(PART:"elm.text", "disabled", 0.0);
5382                set_int(button_state, BUTTON_STATE_DISABLED);
5383             }
5384          }
5385          program { name: "enable";
5386             signal: "elm,state,enabled";
5387             source: "elm";
5388             action: STATE_SET "default" 0.0;
5389             target: "button_image";
5390             target: "disabler";
5391             target: "arrow_expand.shadow.proxy";
5392             target: "arrow_expand.shadow.clipper";
5393             target: "icon_clipper";
5394             after: "enable_text";
5395          }
5396          program { name: "enable_text";
5397             script {
5398                new st[31];
5399                new Float:vl;
5400                get_state(PART:"elm.text", st, 30, vl);
5401                if (!strcmp(st, "disabled_visible"))
5402                  set_state(PART:"elm.text", "visible", 0.0);
5403                else
5404                  set_state(PART:"elm.text", "default", 0.0);
5405                set_int(button_state, BUTTON_STATE_ENABLED);
5406             }
5407          }
5408          program { name: "action_focus";
5409             signal: "elm,action,focus_highlight,show";
5410             source: "elm";
5411             action: STATE_SET "focused" 0.0;
5412             target: "focus_image";
5413          }
5414          program { name: "action_unfocus";
5415             signal: "elm,action,focus_highlight,hide";
5416             source: "elm";
5417             action: STATE_SET "default" 0.0;
5418             target: "focus_image";
5419          }
5420       }
5421    }
5422
5423 //////////////////////////////////////////////////////////////////////////////////////
5424    group { name: "elm/button/base/editfield_clear";
5425       images {
5426          image: "00_edit_field_clear.png" COMP;
5427       }
5428       parts {
5429          part { name: "bg";
5430             type: SPACER;
5431             scale: 1;
5432             mouse_events: 0;
5433             description { state: "default" 0.0;
5434                min: BUTTON_EDITFIELD_CLEAR_BUTTON_MIN_MAX_INC;
5435                max: BUTTON_EDITFIELD_CLEAR_BUTTON_MIN_MAX_INC;
5436             }
5437          }
5438          part { name: "button_image";
5439             type: RECT;
5440             scale: 1;
5441             description { state: "default" 0.0;
5442                visible: 0;
5443             }
5444             description { state: "clicked" 0.0;
5445                inherit: "default" 0.0;
5446             }
5447             description { state: "disabled" 0.0;
5448                inherit: "default" 0.0;
5449             }
5450             description { state: "focused" 0.0;
5451                inherit: "default" 0.0;
5452             }
5453          }
5454          part { name: "clear_button";
5455             scale: 1;
5456             mouse_events: 0;
5457             clip_to: "clear_button.clipper";
5458             description { state: "default" 0.0;
5459                min: BUTTON_EDITFIELD_CLEAR_BUTTON_IMAGE_MIN_MAX_INC;
5460                max: BUTTON_EDITFIELD_CLEAR_BUTTON_IMAGE_MIN_MAX_INC;
5461                align: 0.5 0.5;
5462                image.normal: "00_edit_field_clear.png";
5463             }
5464          }
5465          part { name: "clear_button.clipper";
5466             type: RECT;
5467             description { state: "default" 0.0;
5468                color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_DEFAULT_COLOR_INC;
5469             }
5470             description { state: "clicked" 0.0;
5471                color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_PRESSED_COLOR_INC;
5472             }
5473             description { state: "disabled" 0.0;
5474                color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_DISABLED_COLOR_INC;
5475             }
5476          }
5477          part { name: "over2";
5478             type: RECT;
5479             ignore_flags: ON_HOLD;
5480             description { state: "default" 0.0;
5481                color: 0 0 0 0;
5482             }
5483          }
5484          part { name: "over3";
5485             type: RECT;
5486             repeat_events: 1;
5487             description { state: "default" 0.0;
5488                color: 0 0 0 0;
5489             }
5490          }
5491          part { name: "disabler";
5492             type: RECT;
5493             description { state: "default" 0.0;
5494                color: 0 0 0 0;
5495                visible: 0;
5496             }
5497             description { state: "disabled" 0.0;
5498                inherit: "default" 0.0;
5499                visible: 1;
5500             }
5501          }
5502       }
5503       programs {
5504          program { name: "button_click";
5505             signal: "mouse,down,1";
5506             source: "over2";
5507             action: SIGNAL_EMIT "elm,action,press" "";
5508             after: "button_click_anim";
5509          }
5510          program { name: "button_click_anim";
5511             action: STATE_SET "clicked" 0.0;
5512             target: "button_image";
5513             target: "clear_button.clipper";
5514          }
5515          program { name: "button_double_click";
5516             signal: "mouse,down,1,double";
5517             source: "over1";
5518             after: "button_click_anim";
5519          }
5520          program { name: "button_unclick";
5521             signal: "mouse,up,1";
5522             source: "over3";
5523             action: SIGNAL_EMIT "elm,action,unpress" "";
5524             after: "button_unclick_anim";
5525          }
5526          program { name: "button_unclick_anim";
5527             action: STATE_SET "default" 0.0;
5528             target: "button_image";
5529             target: "clear_button.clipper";
5530          }
5531          program { name: "touch_snd";
5532             signal: "mouse,clicked,1";
5533             source: "over2";
5534             action: PLAY_SAMPLE "touch_sound" 1.0;
5535             after: button_unclick3;
5536          }
5537          program { name: "button_unclick3";
5538             action: SIGNAL_EMIT "elm,action,click" "";
5539          }
5540          program { name: "disable";
5541             signal: "elm,state,disabled";
5542             source: "elm";
5543             action: STATE_SET "disabled" 0.0;
5544             target: "button_image";
5545             target: "disabler";
5546             target: "clear_button.clipper";
5547          }
5548          program { name: "enable";
5549             signal: "elm,state,enabled";
5550             source: "elm";
5551             action: STATE_SET "default" 0.0;
5552             target: "button_image";
5553             target: "disabler";
5554             target: "clear_button.clipper";
5555          }
5556       }
5557    }
5558
5559 #define BUTTON_DEFAULT_FOCUS_STYLES(style_name, image_normal) \
5560    group { name: "elm/button/base/"style_name; \
5561       data { \
5562          item: "focus_highlight" "on"; \
5563       } \
5564       images { \
5565          image: image_normal COMP; \
5566       } \
5567       parts { \
5568          part { name: "elm.swallow.content"; \
5569             type: SWALLOW; \
5570             scale: 1; \
5571             description { state: "default" 0.0; \
5572             } \
5573          } \
5574          part { name: "focus_image"; \
5575             scale: 1; \
5576             mouse_events: 0; \
5577             repeat_events: 1; \
5578             description { state: "default" 0.0; \
5579                visible: 0; \
5580                image { \
5581                   normal: image_normal; \
5582                   border: 6 6 6 6; \
5583                   border_scale: 1; \
5584                } \
5585             } \
5586             description { state: "focused" 0.0; \
5587                inherit: "default" 0.0; \
5588                visible: 1; \
5589             } \
5590          } \
5591          part { name: "over2"; \
5592             type: RECT; \
5593             repeat_events: 1; \
5594             ignore_flags: ON_HOLD; \
5595             description { state: "default" 0.0; \
5596                color: 0 0 0 0; \
5597             } \
5598          } \
5599          part { name: "over3"; \
5600             type: RECT; \
5601             repeat_events: 1; \
5602             description { state: "default" 0.0; \
5603                color: 0 0 0 0; \
5604             } \
5605          } \
5606       } \
5607       programs { \
5608          program { name: "button_click"; \
5609             signal: "mouse,down,1"; \
5610             source: "over2"; \
5611             action: SIGNAL_EMIT "elm,action,press" ""; \
5612          } \
5613          program { name: "button_unclick"; \
5614             signal: "mouse,up,1"; \
5615             source: "over3"; \
5616             action: SIGNAL_EMIT "elm,action,unpress" ""; \
5617          } \
5618          program { name: "button_click3"; \
5619             signal: "mouse,clicked,1"; \
5620             source: "over2"; \
5621             action: SIGNAL_EMIT "elm,action,click" ""; \
5622          } \
5623          program { name: "action_focus"; \
5624             signal: "elm,action,focus_highlight,show"; \
5625             source: "elm"; \
5626             action: STATE_SET "focused" 0.0; \
5627             target: "focus_image"; \
5628          } \
5629          program { name: "action_unfocus"; \
5630             signal: "elm,action,focus_highlight,hide"; \
5631             source: "elm"; \
5632             action: STATE_SET "default" 0.0; \
5633             target: "focus_image"; \
5634          } \
5635       } \
5636    } \
5637
5638 BUTTON_DEFAULT_FOCUS_STYLES("focus", "00_focus.png")
5639 BUTTON_DEFAULT_FOCUS_STYLES("focus_top", "00_list_group_bg_top_focus.png")
5640 BUTTON_DEFAULT_FOCUS_STYLES("focus_center", "00_list_group_bg_center_focus.png")
5641 BUTTON_DEFAULT_FOCUS_STYLES("focus_bottom", "00_list_group_bg_bottom_focus.png")
5642
5643    group { name: "elm/button/base/search_clear";
5644       inherit: "elm/button/base/editfield_clear";
5645       images {
5646          image: "00_field_btn_clear.png" COMP;
5647       }
5648       parts {
5649          part { name: "bg";
5650             type: SPACER;
5651             scale: 1;
5652             mouse_events: 0;
5653             description { state: "default" 0.0;
5654                min: BUTTON_SEARCH_CLEAR_BUTTON_MIN_MAX_INC;
5655                max: BUTTON_SEARCH_CLEAR_BUTTON_MIN_MAX_INC;
5656             }
5657          }
5658          part { name: "clear_button";
5659             scale: 1;
5660             mouse_events: 0;
5661             clip_to: "clear_button.clipper";
5662             description { state: "default" 0.0;
5663                min: BUTTON_SEARCH_CLEAR_BUTTON_IMAGE_MIN_MAX_INC;
5664                max: BUTTON_SEARCH_CLEAR_BUTTON_IMAGE_MIN_MAX_INC;
5665                align: 0.5 0.5;
5666                image.normal: "00_field_btn_clear.png";
5667             }
5668          }
5669          part { name: "clear_button.clipper";
5670             type: RECT;
5671             description { state: "default" 0.0;
5672                color: BUTTON_SEARCH_CLEAR_BUTTON_CLIPPER_DEFAULT_COLOR_INC;
5673             }
5674             description { state: "clicked" 0.0;
5675                color: BUTTON_SEARCH_CLEAR_BUTTON_CLIPPER_PRESSED_COLOR_INC;
5676             }
5677             description { state: "disabled" 0.0;
5678                color: BUTTON_SEARCH_CLEAR_BUTTON_CLIPPER_DISABLED_COLOR_INC;
5679             }
5680          }
5681       }
5682    }
5683
5684 #undef BUTTON_STATE_ENABLED
5685 #undef BUTTON_STATE_DISABLED
5686 #undef BUTTON_LANDSCAPE_DISABLED
5687 #undef BUTTON_LANDSCAPE_ENABLED