Image and styles refactoring for Button and Check.
[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
23    sounds {
24       sample {
25          name: "touch_sound" AS_IS;
26          source: "S_Touch_30ms.wav";
27       }
28    }
29
30 ///////////////////////////////////////////////////////////////////////////////////////
31    group { name: "elm/button/base/style1";
32       alias: "elm/button/base/text_only/style1";
33       alias: "elm/button/base/center";
34       alias: "elm/button/base/icon_and_text/center";
35       alias: "elm/button/base/nocontents/search_button";
36       alias: "elm/button/base/style1/multiline";
37       images {
38          image: "00_button_01.png" COMP;
39          image: "00_button_01_press.png" COMP;
40          image: "00_button_01_dim.png" COMP;
41       }
42       script {
43          public button_state = BUTTON_STATE_ENABLED;
44       }
45       parts {
46          part { name: "button_image";
47             scale: 1;
48             description { state: "default" 0.0;
49                image {
50                   normal: "00_button_01.png";
51                   border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
52                   border_scale: 1;
53                }
54             }
55             description { state: "clicked" 0.0;
56                inherit: "default" 0.0;
57                image.normal: "00_button_01_press.png";
58             }
59             description { state: "disabled" 0.0;
60                inherit: "default" 0.0;
61                image.normal: "00_button_01_dim.png";
62             }
63             description { state: "focused" 0.0;
64                inherit: "default" 0.0;
65                image.normal: "00_button_01_press.png";
66             }
67          }
68          part { name: "padding_left_top";
69             type: RECT;
70             scale: 1;
71             mouse_events: 0;
72             description { state: "default" 0.0;
73                align: 0.0 0.0;
74                rel2.relative: 0.0 0.0;
75                min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
76                fixed: 1 1;
77                visible: 0;
78             }
79          }
80          part { name: "bg";
81             type: RECT;
82             scale: 1;
83             mouse_events: 0;
84             description { state: "default" 0.0;
85                min: BUTTON_TEXT_STYLE1_BG_MIN_INC;
86                visible: 0;
87             }
88             description { state: "visible" 0.0;
89                inherit: "default" 0.0;
90                min: BUTTON_TEXT_STYLE1_VISIBLE_BG_MIN_INC;
91             }
92             description { state: "icononly" 0.0;
93                inherit: "default" 0.0;
94                min: BUTTON_TEXT_STYLE1_ICONONLY_BG_MIN_INC;
95             }
96          }
97          part { name: "padding_right_bottom";
98             type: RECT;
99             scale: 1;
100             mouse_events: 0;
101             description { state: "default" 0.0;
102                align: 1.0 1.0;
103                rel1.relative: 1.0 1.0;
104                min: BUTTON_TEXT_STYLE1_PADDING_MIN_INC;
105                fixed: 1 1;
106                visible: 0;
107             }
108          }
109          part { name: "icon_rect";
110             type: RECT;
111             scale: 1;
112             mouse_events: 0;
113             description { state: "default" 0.0;
114                visible: 0;
115                min: 0 0;
116                fixed: 1 0;
117                rel1 {
118                   relative: 1.0 1.0;
119                   to: "padding_left_top";
120                }
121                rel2 {
122                   relative: 1.0 0.0;
123                   to_x: "padding_left_top";
124                   to_y: "padding_right_bottom";
125                }
126                align: 0.0 0.5;
127             }
128             description { state: "visible" 0.0;
129                inherit: "default" 0.0;
130                min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
131                max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_RECT_MIN_MAX_INC;
132             }
133             description { state: "icononly" 0.0;
134                inherit: "default" 0.0;
135             }
136          }
137          part { name: "padding_after_icon";
138             type: RECT;
139             scale: 1;
140             mouse_events: 0;
141             description { state: "default" 0.0; //when only icon or no icon is there
142                align: 0.0 0.0;
143                rel1 {
144                   relative: 1.0 0.0;
145                   to: "icon_rect";
146                }
147                rel2.to: "icon_rect";
148                fixed: 1 0;
149                min: 0 0;
150                visible: 0;
151             }
152             description { state: "visible" 0.0;
153                inherit: "default" 0.0;
154                min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
155             }
156             description { state: "icononly" 0.0;
157                inherit: "default" 0.0;
158             }
159          }
160          part { name: "padding_before_text";
161             type: RECT;
162             scale: 1;
163             mouse_events: 0;
164             description { state: "default" 0.0; //when only icon or no icon is there
165                align: 1.0 0.5;
166                rel1 {
167                   relative: 0.0 1.0;
168                   to_x: "elm.text";
169                   to_y: "padding_left_top";
170                }
171                rel2 {
172                   relative: 0.0 0.0;
173                   to_x: "elm.text";
174                   to_y: "padding_right_bottom";
175                }
176                fixed: 1 0;
177                min: BUTTON_TEXT_STYLE1_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
178                visible: 0;
179             }
180          }
181          part { name: "elm.swallow.content";
182             type: SWALLOW;
183             scale: 1;
184             clip_to: "clipper";
185             description { state: "default" 0.0;
186                visible: 0;
187                align: 0.0 0.5;
188                rel1 {
189                   relative: 1.0 1.0;
190                   to: "padding_left_top";
191                }
192                rel2 {
193                   relative: 1.0 0.0;
194                   to_x: "padding_left_top";
195                   to_y: "padding_right_bottom";
196                }
197                fixed: 1 0;
198             }
199             description { state: "visible" 0.0;
200                fixed: 1 0;
201                min: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
202                max: BUTTON_TEXT_STYLE1_VISIBLE_ICON_MIN_MAX_INC;
203                align: 1.0 0.5;
204                rel1 {
205                   relative: 0.0 1.0;
206                   to_x: "padding_before_text";
207                   to_y: "padding_left_top";
208                }
209                rel2 {
210                   relative: 0.0 0.0;
211                   to_x: "padding_before_text";
212                   to_y: "padding_right_bottom";
213                }
214             }
215             description { state: "icononly" 0.0;
216                min: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
217                max: BUTTON_TEXT_STYLE1_ICONONLY_ICON_MIN_MAX_INC;
218             }
219          }
220          part { name: "elm.text";
221             type: TEXT;
222             mouse_events: 0;
223             effect: SHADOW BOTTOM;
224             scale: 1;
225             clip_to: "clipper";
226             description { state: "default" 0.0;
227                visible: 0;
228                rel1 {
229                   relative: 1.0 1.0;
230                   to_x: "padding_after_icon";
231                   to_y: "padding_left_top";
232                }
233                rel2 {
234                   relative: 0.0 0.0;
235                   to: "padding_right_bottom";
236                }
237                color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
238                color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
239                text {
240                   font: "Tizen:style=Regular";
241                   size: BUTTON_TEXT_STYLE1_FONT_SIZE_INC;
242                   min: 0 0;
243                   max: 1 0;
244                   text_class: "tizen";
245                }
246             }
247             description { state: "visible" 0.0;
248                inherit: "default" 0.0;
249                visible: 1;
250             }
251             description { state: "clicked" 0.0;
252                inherit: "default" 0.0;
253                visible: 1;
254                color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
255                color2: BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
256             }
257             description { state: "disabled" 0.0;
258                inherit: "default" 0.0;
259             }
260             description { state: "disabled_visible" 0.0;
261                inherit: "default" 0.0;
262                color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
263                color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
264                visible: 1;
265             }
266             description { state: "focused" 0.0;
267                inherit: "default" 0.0;
268                visible: 1;
269                color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
270             }
271          }
272          part { name: "over2";
273             type: RECT;
274             repeat_events: 1;
275             ignore_flags: ON_HOLD;
276             description { state: "default" 0.0;
277                color: 0 0 0 0;
278             }
279          }
280          part { name: "over3";
281             type: RECT;
282             repeat_events: 1;
283             description { state: "default" 0.0;
284                color: 0 0 0 0;
285             }
286          }
287          part { name: "clipper";
288             type: RECT;
289             description { state: "default" 0.0;
290                color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
291             }
292             description { state: "disabled" 0.0;
293                inherit: "default" 0.0;
294                color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
295             }
296          }
297          part { name: "disabler";
298             type: RECT;
299             description { state: "default" 0.0;
300                color: 0 0 0 0;
301                visible: 0;
302             }
303             description { state: "disabled" 0.0;
304                inherit: "default" 0.0;
305                visible: 1;
306             }
307          }
308       }
309       programs {
310          program { name: "button_click";
311             signal: "mouse,down,1";
312             source: "over2";
313             action: SIGNAL_EMIT "elm,action,press" "";
314             after: "button_click_anim";
315          }
316          program { name: "button_click_anim";
317             action: STATE_SET "clicked" 0.0;
318             target: "button_image";
319             after: "text_clicked";
320          }
321          program { name: "text_clicked";
322             script {
323                new st[31];
324                new Float:vl;
325                get_state(PART:"elm.text", st, 30, vl);
326                if (!strcmp(st, "visible"))
327                  set_state(PART:"elm.text", "clicked", 0.0);
328             }
329          }
330          program { name: "button_double_click";
331             signal: "mouse,down,1,double";
332             source: "over2";
333             after: "button_click_anim";
334          }
335          program { name: "button_unpress";
336             action: SIGNAL_EMIT "elm,action,unpress" "";
337          }
338          program { name: "button_mouseout_clicked";
339             signal: "mouse,up,1";
340             source: "over3";
341             script {
342                new st[31];
343                new Float:vl;
344                get_state(PART:"elm.swallow.content", st, 30, vl);
345                if (strcmp(st, "icononly"))
346                  {
347                     emit("elm,action,default,text,set", "");
348                     set_state(PART:"elm.text", "visible", 0.0);
349                  }
350                if (get_int(button_state) != BUTTON_STATE_DISABLED)
351                  set_state(PART:"button_image", "default", 0.0);
352             }
353             after: button_unpress;
354          }
355          program { name: "touch_snd";
356             signal: "mouse,clicked,1";
357             source: "over2";
358             action: PLAY_SAMPLE "touch_sound" 1.0;
359             after: button_unclick3;
360          }
361          program { name: "button_unclick3";
362             action: SIGNAL_EMIT "elm,action,click" "";
363          }
364          program { name: "text_show";
365             signal: "elm,state,text,visible";
366             source: "elm";
367             script {
368                new st[31];
369                new Float:vl;
370                get_state(PART:"elm.swallow.content", st, 30, vl);
371                if (!strcmp(st, "icononly"))
372                  {
373                     set_state(PART:"elm.swallow.content", "visible", 0.0);
374                     set_state(PART:"icon_rect", "visible", 0.0);
375                     set_state(PART:"padding_after_icon", "visible", 0.0);
376                     set_state(PART:"bg", "visible", 0.0);
377                  }
378                if (get_int(button_state) != BUTTON_STATE_DISABLED)
379                  set_state(PART:"elm.text", "visible", 0.0);
380                else
381                  set_state(PART:"elm.text", "disabled_visible", 0.0);
382             }
383          }
384          program { name: "text_hide";
385             signal: "elm,state,text,hidden";
386             source: "elm";
387             script {
388                new st[31];
389                new Float:vl;
390                get_state(PART:"elm.swallow.content", st, 30, vl);
391                if (!strcmp(st, "visible"))
392                  {
393                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
394                     set_state(PART:"icon_rect", "icononly", 0.0);
395                     set_state(PART:"padding_after_icon", "icononly", 0.0);
396                     set_state(PART:"bg", "icononly", 0.0);
397                  }
398                set_state(PART:"elm.text", "default", 0.0);
399             }
400          }
401          program { name: "icon_show";
402             signal: "elm,state,icon,visible";
403             source: "elm";
404             script {
405                new st[31];
406                new Float:vl;
407                get_state(PART:"elm.text", st, 30, vl);
408                if (!strcmp(st, "visible"))
409                  {
410                     set_state(PART:"elm.swallow.content", "visible", 0.0);
411                     set_state(PART:"icon_rect", "visible", 0.0);
412                     set_state(PART:"padding_after_icon", "visible", 0.0);
413                     set_state(PART:"bg", "visible", 0.0);
414                  }
415                else
416                  {
417                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
418                     set_state(PART:"icon_rect", "icononly", 0.0);
419                     set_state(PART:"padding_after_icon", "icononly", 0.0);
420                     set_state(PART:"bg", "icononly", 0.0);
421                  }
422             }
423          }
424          program { name: "icon_hide";
425             signal: "elm,state,icon,hidden";
426             source: "elm";
427             action: STATE_SET "default" 0.0;
428             target: "elm.swallow.content";
429             target: "padding_after_icon";
430             target: "icon_rect";
431             target: "bg";
432          }
433          program { name: "disable";
434             signal: "elm,state,disabled";
435             source: "elm";
436             action: STATE_SET "disabled" 0.0;
437             target: "button_image";
438             target: "disabler";
439             target: "clipper";
440             after: "disable_text";
441          }
442          program { name: "disable_text";
443             script {
444                new st[31];
445                new Float:vl;
446                get_state(PART:"elm.text", st, 30, vl);
447                if (!strcmp(st, "visible"))
448                  set_state(PART:"elm.text", "disabled_visible", 0.0);
449                else
450                  set_state(PART:"elm.text", "disabled", 0.0);
451                set_int(button_state, BUTTON_STATE_DISABLED);
452             }
453          }
454          program { name: "enable";
455             signal: "elm,state,enabled";
456             source: "elm";
457             action: STATE_SET "default" 0.0;
458             target: "button_image";
459             target: "clipper";
460             target: "disabler";
461             after: "enable_text";
462          }
463          program { name: "enable_text";
464             script {
465                new st[31];
466                new Float:vl;
467                get_state(PART:"elm.text", st, 30, vl);
468                if (!strcmp(st, "disabled_visible"))
469                  set_state(PART:"elm.text", "visible", 0.0);
470                else
471                  set_state(PART:"elm.text", "default", 0.0);
472                set_int(button_state, BUTTON_STATE_ENABLED);
473             }
474          }
475          program { name: "focused";
476             //signal: "elm,action,focus";
477             //source: "elm";
478             action: STATE_SET "focused" 0.0;
479             target: "button_image";
480             target: "elm.text";
481          }
482          program { name: "unfocused";
483             //signal: "elm,action,unfocus";
484             //source: "elm";
485             action: STATE_SET "default" 0.0;
486             target: "button_image";
487             after: "unfocus_text";
488          }
489          program { name: "unfocus_text";
490             action: STATE_SET "visible" 0.0;
491             target: "elm.text";
492          }
493       }
494    }
495
496 //////////////////////////////////////////////////////////////
497    group { name: "elm/button/base/style1/auto_expand";
498       inherit: "elm/button/base/style1";
499       parts {
500          part { name: "elm.text";
501             type: TEXT;
502             mouse_events: 0;
503             effect: SHADOW BOTTOM;
504             scale: 1;
505             clip_to: "clipper";
506             description { state: "default" 0.0;
507                visible: 0;
508                rel1 {
509                   relative: 1.0 1.0;
510                   to_x: "padding_after_icon";
511                   to_y: "padding_left_top";
512                }
513                rel2 {
514                   relative: 0.0 0.0;
515                   to: "padding_right_bottom";
516                }
517                color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
518                color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
519                text {
520                   font: "Tizen:style=Regular";
521                   size: BUTTON_TEXT_STYLE1_FONT_SIZE_INC;
522                   min: 1 0;
523                   max: 1 0;
524                   text_class: "tizen";
525                }
526             }
527             description { state: "visible" 0.0;
528                inherit: "default" 0.0;
529                visible: 1;
530             }
531             description { state: "clicked" 0.0;
532                inherit: "default" 0.0;
533                visible: 1;
534                color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
535                color2: BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
536             }
537             description { state: "disabled" 0.0;
538                inherit: "default" 0.0;
539             }
540             description { state: "disabled_visible" 0.0;
541                inherit: "default" 0.0;
542                color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
543                color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
544                visible: 1;
545             }
546             description { state: "focused" 0.0;
547                inherit: "default" 0.0;
548                visible: 1;
549                color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
550             }
551          }
552       }
553    }
554
555 //////////////////////////////////////////////////////////////////////////////////////
556    group { name: "elm/button/base/datetime/ampm/default";
557       alias: "elm/button/base/datetime_ampm/default";
558       inherit: "elm/button/base/style1/auto_expand";
559       parts {
560          part { name: "button_image";
561             scale: 1;
562             description { state: "default" 0.0;
563                image {
564                   normal: "00_button_01.png";
565                   border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
566                   border_scale: 1;
567                }
568                min: BUTTON_DATETIME_AMPM_BG_MIN_INC;
569                max: BUTTON_DATETIME_AMPM_BG_MIN_INC;
570             }
571             description { state: "clicked" 0.0;
572                inherit: "default" 0.0;
573                image.normal: "00_button_01_press.png";
574             }
575             description { state: "disabled" 0.0;
576                inherit: "default" 0.0;
577                image.normal: "00_button_01_dim.png";
578             }
579             description { state: "focused" 0.0;
580                inherit: "default" 0.0;
581                image.normal: "00_button_01_press.png";
582             }
583          }
584          part { name: "bg";
585             type: RECT;
586             scale: 1;
587             mouse_events: 0;
588             description { state: "default" 0.0;
589                min: 0 0;
590                visible: 0;
591             }
592             description { state: "visible" 0.0;
593                inherit: "default" 0.0;
594                min: BUTTON_DATETIME_AMPM_BG_MIN_INC;
595             }
596             description { state: "icononly" 0.0;
597                inherit: "default" 0.0;
598             }
599          }
600          part { name: "elm.text";
601             type: TEXT;
602             mouse_events: 0;
603             effect: SHADOW BOTTOM;
604             scale: 1;
605             clip_to: "clipper";
606             description { state: "default" 0.0;
607                visible: 0;
608                fixed: 1 1;
609                color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
610                color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
611                text.size: BUTTON_DATETIME_AMPM_TEXT_FONT_SIZE_INC;
612                text.min: 1 1;
613             }
614             description { state: "visible" 0.0;
615                inherit: "default" 0.0;
616                visible: 1;
617             }
618             description { state: "clicked" 0.0;
619                inherit: "default" 0.0;
620                visible: 1;
621                color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
622                color2: BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
623             }
624             description { state: "disabled" 0.0;
625                inherit: "default" 0.0;
626             }
627             description { state: "disabled_visible" 0.0;
628                inherit: "default" 0.0;
629                color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
630                color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
631                visible: 1;
632             }
633             description { state: "focused" 0.0;
634                inherit: "default" 0.0;
635                visible: 1;
636                color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
637             }
638          }
639       }
640    }
641
642 ///////////////////////////////////////////////////////////////////////////////////////
643    group { name: "elm/button/base/style1/delete";
644       inherit: "elm/button/base/style1";
645       images {
646          image: "00_button_01_Delete.png" COMP;
647          image: "00_button_01_Delete_dim.png" COMP;
648          image: "00_button_01_Delete_press.png" COMP;
649       }
650       parts {
651          part { name: "button_image";
652             scale: 1;
653             description { state: "default" 0.0;
654                image {
655                   normal: "00_button_01_Delete.png";
656                   border: BUTTON_TEXT_STYLE1_BG_BORDER_INC;
657                   border_scale: 1;
658                }
659             }
660             description { state: "clicked" 0.0;
661                inherit: "default" 0.0;
662                image.normal: "00_button_01_Delete_press.png";
663             }
664             description { state: "disabled" 0.0;
665                inherit: "default" 0.0;
666                image.normal: "00_button_01_Delete_dim.png";
667             }
668             description { state: "focused" 0.0;
669                inherit: "default" 0.0;
670                image.normal: "00_button_01_Delete_press.png";
671             }
672          }
673          part { name: "elm.text";
674             type: TEXT;
675             mouse_events: 0;
676             effect: SHADOW BOTTOM;
677             scale: 1;
678             clip_to: "clipper";
679             description { state: "default" 0.0;
680                visible: 0;
681                rel1 {
682                   relative: 1.0 1.0;
683                   to_x: "padding_after_icon";
684                   to_y: "padding_left_top";
685                }
686                rel2 {
687                   relative: 0.0 0.0;
688                   to: "padding_right_bottom";
689                }
690                color: BUTTON_DELETE_BUTTON_TEXT_NORMAL_COLOR_INC;
691                color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
692                text {
693                   font: "Tizen:style=Regular";
694                   size: BUTTON_TEXT_STYLE1_FONT_SIZE_INC;
695                   min: 0 0;
696                   max: 1 0;
697                   text_class: "tizen";
698                }
699             }
700             description { state: "visible" 0.0;
701                inherit: "default" 0.0;
702                visible: 1;
703             }
704             description { state: "clicked" 0.0;
705                inherit: "default" 0.0;
706                visible: 1;
707                color: BUTTON_DELETE_BUTTON_TEXT_PRESSED_COLOR_INC;
708                color2: BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
709             }
710             description { state: "disabled" 0.0;
711                inherit: "default" 0.0;
712             }
713             description { state: "disabled_visible" 0.0;
714                inherit: "default" 0.0;
715                color: BUTTON_DELETE_BUTTON_TEXT_DISABLED_COLOR_INC;
716                color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
717                visible: 1;
718             }
719             description { state: "focused" 0.0;
720                inherit: "default" 0.0;
721                visible: 1;
722                color: BUTTON_DELETE_BUTTON_TEXT_FOCUSED_COLOR_INC;
723             }
724          }
725       }
726    }
727
728 ///////////////////////////////////////////////////////////////////////////////////////
729    group { name: "elm/button/base/search_button/text";
730       alias: "elm/button/base/searchbar/default";
731       inherit: "elm/button/base/style1";
732       images {
733          image: "00_button_01.png" COMP;
734          image: "00_button_01_dim.png" COMP;
735          image: "00_button_01_press.png" COMP;
736       }
737       parts {
738          part { name: "button_image";
739             scale: 1;
740             description { state: "default" 0.0;
741                image {
742                   normal: "00_button_01.png";
743                   border: BUTTON_SEARCH_BUTTON_BG_BORDER_INC;
744                   border_scale: 1;
745                }
746             }
747             description { state: "clicked" 0.0;
748                inherit: "default" 0.0;
749                image.normal: "00_button_01_press.png";
750             }
751             description { state: "disabled" 0.0;
752                inherit: "default" 0.0;
753                image.normal: "00_button_01_dim.png";
754             }
755             description { state: "focused" 0.0;
756                inherit: "default" 0.0;
757                image.normal: "00_button_01_press.png";
758             }
759          }
760          part { name: "bg";
761             type: RECT;
762             scale: 1;
763             mouse_events: 0;
764             description { state: "default" 0.0;
765                min: BUTTON_SEARCH_BUTTON_BG_MIN_INC;
766                visible: 0;
767             }
768             description { state: "visible" 0.0;
769                inherit: "default" 0.0;
770                min: BUTTON_SEARCH_BUTTON_VISIBLE_BG_MIN_INC;
771             }
772             description { state: "icononly" 0.0;
773                inherit: "default" 0.0;
774                min: BUTTON_SEARCH_BUTTON_ICONONLY_BG_MIN_INC;
775             }
776          }
777          part { name: "elm.text";
778             type: TEXT;
779             mouse_events: 0;
780             effect: SHADOW BOTTOM;
781             clip_to: "clipper";
782             scale: 1;
783             description { state: "default" 0.0;
784                visible: 0;
785                rel1 {
786                   relative: 1.0 1.0;
787                   to_x: "padding_after_icon";
788                   to_y: "padding_left_top";
789                }
790                rel2 {
791                   relative: 0.0 0.0;
792                   to: "padding_right_bottom";
793                }
794                color: BUTTON_SEARCH_BUTTON_TEXT_NORMAL_COLOR_INC;
795                text {
796                   font: "Tizen:style=Regular";
797                   size: BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC;
798                   min: 0 0;
799                   max: 1 0;
800                   text_class: "tizen";
801                }
802             }
803             description { state: "visible" 0.0;
804                inherit: "default" 0.0;
805                visible: 1;
806             }
807             description { state: "clicked" 0.0;
808                inherit: "default" 0.0;
809                visible: 1;
810                color: BUTTON_SEARCH_BUTTON_TEXT_PRESSED_COLOR_INC;
811                color2: BUTTON_SEARCH_BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
812             }
813             description { state: "disabled" 0.0;
814                inherit: "default" 0.0;
815             }
816             description { state: "disabled_visible" 0.0;
817                inherit: "default" 0.0;
818                color: BUTTON_SEARCH_BUTTON_TEXT_DISABLED_COLOR_INC;
819                visible: 1;
820             }
821             description { state: "focused" 0.0;
822                inherit: "default" 0.0;
823                visible: 1;
824                color: BUTTON_SEARCH_BUTTON_TEXT_FOCUSED_COLOR_INC;
825             }
826          }
827       }
828    }
829
830 ///////////////////////////////////////////////////////////////////////////////////////
831    group { name: "elm/button/base/search_button/send";
832       inherit: "elm/button/base/style1";
833       images {
834          image: "00_button_01_send.png" COMP;
835          image: "00_button_01_send_dim.png" COMP;
836          image: "00_button_01_send_press.png" COMP;
837       }
838       parts {
839          part { name: "button_image";
840             scale: 1;
841             description { state: "default" 0.0;
842                image {
843                   normal: "00_button_01_send.png";
844                   border: BUTTON_SEARCH_BUTTON_BG_BORDER_INC;
845                   border_scale: 1;
846                }
847             }
848             description { state: "clicked" 0.0;
849                inherit: "default" 0.0;
850                image.normal: "00_button_01_send_press.png";
851             }
852             description { state: "disabled" 0.0;
853                inherit: "default" 0.0;
854                image.normal: "00_button_01_send_dim.png";
855             }
856             description { state: "focused" 0.0;
857                inherit: "default" 0.0;
858                image.normal: "00_button_01_send_press.png";
859             }
860          }
861          part { name: "bg";
862             type: RECT;
863             scale: 1;
864             mouse_events: 0;
865             description { state: "default" 0.0;
866                min: BUTTON_SEARCH_BUTTON_BG_MIN_INC;
867                visible: 0;
868             }
869             description { state: "visible" 0.0;
870                inherit: "default" 0.0;
871                min: BUTTON_SEARCH_BUTTON_VISIBLE_BG_MIN_INC;
872             }
873             description { state: "icononly" 0.0;
874                inherit: "default" 0.0;
875                min: BUTTON_SEARCH_BUTTON_ICONONLY_BG_MIN_INC;
876             }
877          }
878          part { name: "elm.text";
879             type: TEXT;
880             mouse_events: 0;
881             effect: SHADOW BOTTOM;
882             clip_to: "clipper";
883             scale: 1;
884             description { state: "default" 0.0;
885                visible: 0;
886                rel1 {
887                   relative: 1.0 1.0;
888                   to_x: "padding_after_icon";
889                   to_y: "padding_left_top";
890                }
891                rel2 {
892                   relative: 0.0 0.0;
893                   to: "padding_right_bottom";
894                }
895                color: BUTTON_SEARCH_BUTTON_SEND_NORMAL_COLOR_INC;
896                color2: BUTTON_SEARCH_BUTTON_SEND_SHADOW_NORMAL_COLOR_INC;
897                text {
898                   font: "Tizen:style=Regular";
899                   size: BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC;
900                   min: 0 0;
901                   max: 1 0;
902                   text_class: "tizen";
903                }
904             }
905             description { state: "visible" 0.0;
906                inherit: "default" 0.0;
907                visible: 1;
908             }
909             description { state: "clicked" 0.0;
910                inherit: "default" 0.0;
911                visible: 1;
912                color: BUTTON_SEARCH_BUTTON_SEND_PRESSED_COLOR_INC;
913             }
914             description { state: "disabled" 0.0;
915                inherit: "default" 0.0;
916             }
917             description { state: "disabled_visible" 0.0;
918                inherit: "default" 0.0;
919                color: BUTTON_SEARCH_BUTTON_SEND_DISABLED_COLOR_INC;
920                visible: 1;
921             }
922             description { state: "focused" 0.0;
923                inherit: "default" 0.0;
924                visible: 1;
925                color: BUTTON_SEARCH_BUTTON_SEND_FOCUSED_COLOR_INC;
926             }
927          }
928       }
929    }
930
931 ///////////////////////////////////////////////////////////////////////////////////////
932    group { name: "elm/button/base/search_button/cancel";
933       inherit: "elm/button/base/style1";
934       images {
935          image: "00_button_01_Delete.png" COMP;
936          image: "00_button_01_Delete_dim.png" COMP;
937          image: "00_button_01_Delete_press.png" COMP;
938       }
939       parts {
940          part { name: "button_image";
941             scale: 1;
942             description { state: "default" 0.0;
943                image {
944                   normal: "00_button_01_Delete.png";
945                   border: BUTTON_SEARCH_BUTTON_BG_BORDER_INC;
946                   border_scale: 1;
947                }
948             }
949             description { state: "clicked" 0.0;
950                inherit: "default" 0.0;
951                image.normal: "00_button_01_Delete_press.png";
952             }
953             description { state: "disabled" 0.0;
954                inherit: "default" 0.0;
955                image.normal: "00_button_01_Delete_dim.png";
956             }
957             description { state: "focused" 0.0;
958                inherit: "default" 0.0;
959                image.normal: "00_button_01_Delete_press.png";
960             }
961          }
962          part { name: "bg";
963             type: RECT;
964             scale: 1;
965             mouse_events: 0;
966             description { state: "default" 0.0;
967                min: BUTTON_SEARCH_BUTTON_BG_MIN_INC;
968                visible: 0;
969             }
970             description { state: "visible" 0.0;
971                inherit: "default" 0.0;
972                min: BUTTON_SEARCH_BUTTON_VISIBLE_BG_MIN_INC;
973             }
974             description { state: "icononly" 0.0;
975                inherit: "default" 0.0;
976                min: BUTTON_SEARCH_BUTTON_ICONONLY_BG_MIN_INC;
977             }
978          }
979          part { name: "elm.text";
980             type: TEXT;
981             mouse_events: 0;
982             effect: SHADOW BOTTOM;
983             clip_to: "clipper";
984             scale: 1;
985             description { state: "default" 0.0;
986                visible: 0;
987                rel1 {
988                   relative: 1.0 1.0;
989                   to_x: "padding_after_icon";
990                   to_y: "padding_left_top";
991                }
992                rel2 {
993                   relative: 0.0 0.0;
994                   to: "padding_right_bottom";
995                }
996                color: BUTTON_SEARCH_BUTTON_CANCEL_NORMAL_COLOR_INC;
997                color2: BUTTON_SEARCH_BUTTON_CANCEL_SHADOW_NORMAL_COLOR_INC;
998                text {
999                   font: "Tizen:style=Regular";
1000                   size: BUTTON_SEARCH_BUTTON_TEXT_FONT_SIZE_INC;
1001                   min: 0 0;
1002                   max: 1 0;
1003                   text_class: "tizen";
1004                }
1005             }
1006             description { state: "visible" 0.0;
1007                inherit: "default" 0.0;
1008                visible: 1;
1009             }
1010             description { state: "clicked" 0.0;
1011                inherit: "default" 0.0;
1012                visible: 1;
1013                color: BUTTON_SEARCH_BUTTON_CANCEL_PRESSED_COLOR_INC;
1014             }
1015             description { state: "disabled" 0.0;
1016                inherit: "default" 0.0;
1017             }
1018             description { state: "disabled_visible" 0.0;
1019                inherit: "default" 0.0;
1020                color: BUTTON_SEARCH_BUTTON_CANCEL_DISABLED_COLOR_INC;
1021                visible: 1;
1022             }
1023             description { state: "focused" 0.0;
1024                inherit: "default" 0.0;
1025                visible: 1;
1026                color: BUTTON_SEARCH_BUTTON_CANCEL_FOCUSED_COLOR_INC;
1027             }
1028          }
1029       }
1030    }
1031
1032 ///////////////////////////////////////////////////////////////////////////////////////
1033    group { name: "elm/button/base/style2";
1034       alias: "elm/button/base/text_only/style2";
1035       alias: "elm/button/base/style2/multiline";
1036       images {
1037          image: "00_button_01.png" COMP;
1038          image: "00_button_01_press.png" COMP;
1039          image: "00_button_01_dim.png" COMP;
1040       }
1041       script {
1042          public button_state = BUTTON_STATE_ENABLED;
1043       }
1044       parts {
1045          part { name: "button_image";
1046             scale: 1;
1047             description { state: "default" 0.0;
1048                image {
1049                   normal: "00_button_01.png";
1050                   border: BUTTON_TEXT_STYLE2_BG_BORDER_INC;
1051                   border_scale: 1;
1052                }
1053             }
1054             description { state: "clicked" 0.0;
1055                inherit: "default" 0.0;
1056                image.normal: "00_button_01_press.png";
1057             }
1058             description { state: "disabled" 0.0;
1059                inherit: "default" 0.0;
1060                image.normal: "00_button_01_dim.png";
1061             }
1062             description { state: "focused" 0.0;
1063                inherit: "default" 0.0;
1064                image.normal: "00_button_01_press.png";
1065             }
1066          }
1067          part { name: "padding_left_top";
1068             type: RECT;
1069             scale: 1;
1070             mouse_events: 0;
1071             description { state: "default" 0.0;
1072                align: 0.0 0.0;
1073                rel2.relative: 0.0 0.0;
1074                min: BUTTON_TEXT_STYLE2_PADDING_MIN_INC;
1075                fixed: 1 1;
1076                visible: 0;
1077             }
1078          }
1079          part { name: "bg";
1080             type: RECT;
1081             scale: 1;
1082             mouse_events: 0;
1083             description { state: "default" 0.0;
1084                min: BUTTON_TEXT_STYLE2_BG_MIN_INC;
1085                visible: 0;
1086             }
1087             description { state: "visible" 0.0;
1088                inherit: "default" 0.0;
1089                min: BUTTON_TEXT_STYLE2_VISIBLE_BG_MIN_INC;
1090             }
1091             description { state: "icononly" 0.0;
1092                inherit: "default" 0.0;
1093                min: BUTTON_TEXT_STYLE2_ICONONLY_BG_MIN_INC;
1094             }
1095          }
1096          part { name: "padding_right_bottom";
1097             type: RECT;
1098             scale: 1;
1099             mouse_events: 0;
1100             description { state: "default" 0.0;
1101                align: 1.0 1.0;
1102                rel1.relative: 1.0 1.0;
1103                min: BUTTON_TEXT_STYLE2_PADDING_MIN_INC;
1104                fixed: 1 1;
1105                visible: 0;
1106             }
1107          }
1108          part { name: "icon_rect";
1109             type: RECT;
1110             scale: 1;
1111             mouse_events: 0;
1112             description { state: "default" 0.0;
1113                visible: 0;
1114                min: 0 0;
1115                fixed: 1 0;
1116                rel1 {
1117                   relative: 1.0 1.0;
1118                   to: "padding_left_top";
1119                }
1120                rel2 {
1121                   relative: 1.0 0.0;
1122                   to_x: "padding_left_top";
1123                   to_y: "padding_right_bottom";
1124                }
1125                align: 0.0 0.5;
1126             }
1127             description { state: "visible" 0.0;
1128                inherit: "default" 0.0;
1129                min: BUTTON_TEXT_STYLE2_VISIBLE_ICON_RECT_MIN_MAX_INC;
1130                max: BUTTON_TEXT_STYLE2_VISIBLE_ICON_RECT_MIN_MAX_INC;
1131             }
1132             description { state: "icononly" 0.0;
1133                inherit: "default" 0.0;
1134             }
1135          }
1136          part { name: "padding_after_icon";
1137             type: RECT;
1138             scale: 1;
1139             mouse_events: 0;
1140             description { state: "default" 0.0; //when only icon or no icon is there
1141                visible: 0;
1142                min: 0 0;
1143                fixed: 1 0;
1144                rel1 {
1145                   relative: 1.0 0.0;
1146                   to: "icon_rect";
1147                }
1148                rel2.to: "icon_rect";
1149                align: 0.0 0.0;
1150             }
1151             description { state: "visible" 0.0;
1152                inherit: "default" 0.0;
1153                min: BUTTON_TEXT_STYLE2_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
1154             }
1155             description { state: "icononly" 0.0;
1156                inherit: "default" 0.0;
1157             }
1158          }
1159          part { name: "padding_before_text";
1160             type: RECT;
1161             scale: 1;
1162             mouse_events: 0;
1163             description { state: "default" 0.0; //when only icon or no icon is there
1164                align: 1.0 0.5;
1165                rel1 {
1166                   relative: 0.0 1.0;
1167                   to_x: "elm.text";
1168                   to_y: "padding_left_top";
1169                }
1170                rel2 {
1171                   relative: 0.0 0.0;
1172                   to_x: "elm.text";
1173                   to_y: "padding_right_bottom";
1174                }
1175                fixed: 1 0;
1176                min: BUTTON_TEXT_STYLE2_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
1177                visible: 0;
1178             }
1179          }
1180          part { name: "elm.swallow.content";
1181             type: SWALLOW;
1182             scale: 1;
1183             clip_to: "clipper";
1184             description { state: "default" 0.0;
1185                visible: 0;
1186                align: 0.0 0.5;
1187                rel1 {
1188                   relative: 1.0 1.0;
1189                   to: "padding_left_top";
1190                }
1191                rel2 {
1192                   relative: 1.0 0.0;
1193                   to_x: "padding_left_top";
1194                   to_y: "padding_right_bottom";
1195                }
1196                fixed: 1 0;
1197             }
1198             description { state: "visible" 0.0;
1199                fixed: 1 0;
1200                min: BUTTON_TEXT_STYLE2_VISIBLE_ICON_MIN_MAX_INC;
1201                max: BUTTON_TEXT_STYLE2_VISIBLE_ICON_MIN_MAX_INC;
1202                align: 1.0 0.5;
1203                rel1 {
1204                   relative: 0.0 1.0;
1205                   to_x: "padding_before_text";
1206                   to_y: "padding_left_top";
1207                }
1208                rel2 {
1209                   relative: 0.0 0.0;
1210                   to_x: "padding_before_text";
1211                   to_y: "padding_right_bottom";
1212                }
1213             }
1214             description { state: "icononly" 0.0;
1215                min: BUTTON_TEXT_STYLE2_ICONONLY_ICON_MIN_MAX_INC;
1216                max: BUTTON_TEXT_STYLE2_ICONONLY_ICON_MIN_MAX_INC;
1217             }
1218          }
1219          part { name: "elm.text";
1220             type: TEXT;
1221             mouse_events: 0;
1222             scale: 1;
1223             clip_to: "clipper";
1224             effect: SHADOW BOTTOM;
1225             description { state: "default" 0.0;
1226                visible: 0;
1227                rel1 {
1228                   relative: 1.0 1.0;
1229                   to_x: "padding_after_icon";
1230                   to_y: "padding_left_top";
1231                }
1232                rel2 {
1233                   relative: 0.0 0.0;
1234                   to: "padding_right_bottom";
1235                }
1236                color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
1237                color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
1238                text {
1239                   font: "Tizen:style=Regular";
1240                   size: BUTTON_TEXT_STYLE2_FONT_SIZE_INC;
1241                   min: 0 0;
1242                   max: 1 0;
1243                   text_class: "tizen";
1244                }
1245             }
1246             description { state: "visible" 0.0;
1247                inherit: "default" 0.0;
1248                visible: 1;
1249             }
1250             description { state: "clicked" 0.0;
1251                inherit: "default" 0.0;
1252                visible: 1;
1253                color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
1254                color2: BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
1255             }
1256             description { state: "disabled" 0.0;
1257                inherit: "default" 0.0;
1258             }
1259             description { state: "disabled_visible" 0.0;
1260                inherit: "default" 0.0;
1261                color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
1262                color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
1263                visible: 1;
1264             }
1265             description { state: "focused" 0.0;
1266                inherit: "default" 0.0;
1267                visible: 1;
1268                color: BUTTON_TEXT_STYLE1_FOCUSED_COLOR_INC;
1269             }
1270          }
1271          part { name: "over2";
1272             type: RECT;
1273             repeat_events: 1;
1274             ignore_flags: ON_HOLD;
1275             description { state: "default" 0.0;
1276                color: 0 0 0 0;
1277             }
1278          }
1279          part { name: "over3";
1280             type: RECT;
1281             repeat_events: 1;
1282             description { state: "default" 0.0;
1283                color: 0 0 0 0;
1284             }
1285          }
1286          part { name: "clipper";
1287             type: RECT;
1288             description { state: "default" 0.0;
1289                color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
1290             }
1291             description { state: "disabled" 0.0;
1292                inherit: "default" 0.0;
1293                color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
1294             }
1295          }
1296          part { name: "disabler";
1297             type: RECT;
1298             description { state: "default" 0.0;
1299                color: 0 0 0 0;
1300                visible: 0;
1301             }
1302             description { state: "disabled" 0.0;
1303                inherit: "default" 0.0;
1304                visible: 1;
1305             }
1306          }
1307       }
1308       programs {
1309          program { name: "button_click";
1310             signal: "mouse,down,1";
1311             source: "over2";
1312             action: SIGNAL_EMIT "elm,action,press" "";
1313             after: "button_click_anim";
1314          }
1315          program { name: "button_click_anim";
1316             action: STATE_SET "clicked" 0.0;
1317             target: "button_image";
1318             after: "text_clicked";
1319          }
1320          program { name: "text_clicked";
1321             script {
1322                new st[31];
1323                new Float:vl;
1324                get_state(PART:"elm.text", st, 30, vl);
1325                if (!strcmp(st, "visible"))
1326                  set_state(PART:"elm.text", "clicked", 0.0);
1327             }
1328          }
1329          program { name: "button_double_click";
1330             signal: "mouse,down,1,double";
1331             source: "over2";
1332             after: "button_click_anim";
1333          }
1334          program { name: "button_unpress";
1335             action: SIGNAL_EMIT "elm,action,unpress" "";
1336          }
1337          program { name: "button_mouseout_clicked";
1338             signal: "mouse,up,1";
1339             source: "over3";
1340             script {
1341                new st[31];
1342                new Float:vl;
1343                get_state(PART:"elm.swallow.content", st, 30, vl);
1344                if (strcmp(st, "icononly"))
1345                  {
1346                     emit("elm,action,default,text,set", "");
1347                     set_state(PART:"elm.text", "visible", 0.0);
1348                  }
1349                if (get_int(button_state) != BUTTON_STATE_DISABLED)
1350                  set_state(PART:"button_image", "default", 0.0);
1351             }
1352             after: button_unpress;
1353          }
1354          program { name: "touch_snd";
1355             signal: "mouse,clicked,1";
1356             source: "over2";
1357             action: PLAY_SAMPLE "touch_sound" 1.0;
1358             after: button_unclick3;
1359          }
1360          program { name: "button_unclick3";
1361             action: SIGNAL_EMIT "elm,action,click" "";
1362          }
1363          program { name: "text_show";
1364             signal: "elm,state,text,visible";
1365             source: "elm";
1366             script {
1367                new st[31];
1368                new Float:vl;
1369                get_state(PART:"elm.swallow.content", st, 30, vl);
1370                if (!strcmp(st, "icononly"))
1371                  {
1372                     set_state(PART:"elm.swallow.content", "visible", 0.0);
1373                     set_state(PART:"icon_rect", "visible", 0.0);
1374                     set_state(PART:"padding_after_icon", "visible", 0.0);
1375                     set_state(PART:"bg", "visible", 0.0);
1376                  }
1377                if (get_int(button_state) != BUTTON_STATE_DISABLED)
1378                  set_state(PART:"elm.text", "visible", 0.0);
1379                else
1380                  set_state(PART:"elm.text", "disabled_visible", 0.0);
1381             }
1382          }
1383          program { name: "text_hide";
1384             signal: "elm,state,text,hidden";
1385             source: "elm";
1386             script {
1387                new st[31];
1388                new Float:vl;
1389                get_state(PART:"elm.swallow.content", st, 30, vl);
1390                if (!strcmp(st, "visible"))
1391                  {
1392                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
1393                     set_state(PART:"icon_rect", "icononly", 0.0);
1394                     set_state(PART:"padding_after_icon", "icononly", 0.0);
1395                     set_state(PART:"bg", "icononly", 0.0);
1396                  }
1397                set_state(PART:"elm.text", "default", 0.0);
1398             }
1399          }
1400          program { name: "icon_show";
1401             signal: "elm,state,icon,visible";
1402             source: "elm";
1403             script {
1404                new st[31];
1405                new Float:vl;
1406                get_state(PART:"elm.text", st, 30, vl);
1407                if (!strcmp(st, "visible"))
1408                  {
1409                     set_state(PART:"elm.swallow.content", "visible", 0.0);
1410                     set_state(PART:"icon_rect", "visible", 0.0);
1411                     set_state(PART:"padding_after_icon", "visible", 0.0);
1412                     set_state(PART:"bg", "visible", 0.0);
1413                  }
1414                else
1415                  {
1416                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
1417                     set_state(PART:"icon_rect", "icononly", 0.0);
1418                     set_state(PART:"padding_after_icon", "icononly", 0.0);
1419                     set_state(PART:"bg", "icononly", 0.0);
1420                  }
1421             }
1422          }
1423          program { name: "icon_hide";
1424             signal: "elm,state,icon,hidden";
1425             source: "elm";
1426             action: STATE_SET "default" 0.0;
1427             target: "elm.swallow.content";
1428             target: "padding_after_icon";
1429             target: "icon_rect";
1430             target: "bg";
1431          }
1432          program { name: "disable";
1433             signal: "elm,state,disabled";
1434             source: "elm";
1435             action: STATE_SET "disabled" 0.0;
1436             target: "button_image";
1437             target: "clipper";
1438             target: "disabler";
1439             after: "disable_text";
1440          }
1441          program { name: "disable_text";
1442             script {
1443                new st[31];
1444                new Float:vl;
1445                get_state(PART:"elm.text", st, 30, vl);
1446                if (!strcmp(st, "visible"))
1447                  set_state(PART:"elm.text", "disabled_visible", 0.0);
1448                else
1449                  set_state(PART:"elm.text", "disabled", 0.0);
1450                set_int(button_state, BUTTON_STATE_DISABLED);
1451             }
1452          }
1453          program { name: "enable";
1454             signal: "elm,state,enabled";
1455             source: "elm";
1456             action: STATE_SET "default" 0.0;
1457             target: "button_image";
1458             target: "clipper";
1459             target: "disabler";
1460             after: "enable_text";
1461          }
1462          program { name: "enable_text";
1463             script {
1464                new st[31];
1465                new Float:vl;
1466                get_state(PART:"elm.text", st, 30, vl);
1467                if (!strcmp(st, "disabled_visible"))
1468                  set_state(PART:"elm.text", "visible", 0.0);
1469                else
1470                  set_state(PART:"elm.text", "default", 0.0);
1471                set_int(button_state, BUTTON_STATE_ENABLED);
1472             }
1473          }
1474          program { name: "focused";
1475             //signal: "elm,action,focus";
1476             //source: "elm";
1477             action: STATE_SET "focused" 0.0;
1478             target: "button_image";
1479             target: "elm.text";
1480          }
1481          program { name: "unfocused";
1482             //signal: "elm,action,unfocus";
1483             //source: "elm";
1484             action: STATE_SET "default" 0.0;
1485             target: "button_image";
1486             after: "unfocus_text";
1487          }
1488          program { name: "unfocus_text";
1489             action: STATE_SET "visible" 0.0;
1490             target: "elm.text";
1491          }
1492       }
1493    }
1494
1495 ///////////////////////////////////////////////////////////////////////////////////////
1496    group { name: "elm/button/base/sweep";
1497       alias: "elm/button/base/text_only/sweep";
1498       alias: "elm/button/base/hidden";
1499       alias: "elm/button/base/sweep/multiline";
1500       images {
1501          image: "00_button_01.png" COMP;
1502          image: "00_button_01_press.png" COMP;
1503          image: "00_button_01_dim.png" COMP;
1504       }
1505       script {
1506          public button_state = BUTTON_STATE_ENABLED;
1507       }
1508       styles{
1509          style { name: "btn_sweep_multiline";
1510             base: "font=Tizen:style=Regular font_size="BUTTON_SWEEP_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed linegap=-7 ellipsis=1.0 text_class=tizen";
1511             tag: "br" "\n";
1512             tag: "ps" "ps";
1513             tag: "tab" "\t";
1514          }
1515       }
1516       parts {
1517          part { name: "button_image";
1518             scale: 1;
1519             description { state: "default" 0.0;
1520                min: BUTTON_SWEEP_BG_NORMAL_MIN_INC;
1521                image {
1522                   normal: "00_button_01.png";
1523                   border: BUTTON_SWEEP_BG_BORDER_INC;
1524                   border_scale: 1;
1525                }
1526             }
1527             description { state: "clicked" 0.0;
1528                inherit: "default" 0.0;
1529                image.normal: "00_button_01_press.png";
1530             }
1531             description { state: "disabled" 0.0;
1532                inherit: "default" 0.0;
1533                image.normal: "00_button_01_dim.png";
1534             }
1535             description { state: "focused" 0.0;
1536                inherit: "default" 0.0;
1537                image.normal: "00_button_01_press.png";
1538             }
1539          }
1540          part { name: "padding_left_top";
1541             type: RECT;
1542             scale: 1;
1543             mouse_events: 0;
1544             description { state: "default" 0.0;
1545                align: 0.0 0.0;
1546                rel2.relative: 0.0 0.0;
1547                min: BUTTON_SWEEP_PADDING_MIN_INC;
1548                fixed: 1 1;
1549                visible: 0;
1550             }
1551          }
1552          part { name: "padding_right_bottom";
1553             type: RECT;
1554             scale: 1;
1555             mouse_events: 0;
1556             description { state: "default" 0.0;
1557                align: 1.0 1.0;
1558                rel1.relative: 1.0 1.0;
1559                min: BUTTON_SWEEP_PADDING_MIN_INC;
1560                fixed: 1 1;
1561                visible: 0;
1562             }
1563          }
1564          part { name: "icon_rect";
1565             type: RECT;
1566             scale: 1;
1567             mouse_events: 0;
1568             description { state: "default" 0.0;
1569                min: BUTTON_SWEEP_ICON_RECT_MIN_INC;
1570                fixed: 1 0;
1571                rel1 {
1572                   relative: 0.0 1.0;
1573                   to_x: "elm.swallow.content";
1574                   to_y: "padding_left_top";
1575                }
1576                rel2 {
1577                   relative: 1.0 0.0;
1578                   to_x: "elm.swallow.content";
1579                   to_y: "padding_right_bottom";
1580                }
1581                align: 0.0 0.5;
1582                color: 0 0 0 0;
1583             }
1584          }
1585          part { name: "padding_icon_text";
1586             type: RECT;
1587             scale: 1;
1588             mouse_events: 0;
1589             description { state: "default" 0.0; //when only icon or no icon is there
1590                visible: 0;
1591                fixed: 1 0;
1592                min: 0 0;
1593                rel1 {
1594                   relative: 1.0 0.0;
1595                   to: "icon_rect";
1596                }
1597                rel2.to: "icon_rect";
1598                align: 0.0 0.0;
1599             }
1600             description { state: "visible" 0.0; //when icon is visible
1601                inherit: "default" 0.0;
1602                min: BUTTON_SWEEP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
1603             }
1604             description { state: "icononly" 0.0;
1605                inherit: "default" 0.0;
1606             }
1607          }
1608          part { name: "elm.swallow.content";
1609             type: SWALLOW;
1610             scale: 1;
1611             clip_to: "clipper";
1612             description { state: "default" 0.0;
1613                visible: 0;
1614                align: 0.0 0.5;
1615                rel1 {
1616                   relative: 1.0 1.0;
1617                   to: "padding_left_top";
1618                }
1619                rel2 {
1620                   relative: 1.0 0.0;
1621                   to_x: "padding_left_top";
1622                   to_y: "padding_right_bottom";
1623                }
1624                fixed: 1 0;
1625             }
1626             description { state: "visible" 0.0;
1627                inherit: "default" 0.0;
1628                min: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
1629                max: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
1630                visible: 1;
1631                aspect: 1.0 1.0;
1632                aspect_preference: VERTICAL;
1633             }
1634             description { state: "icononly" 0.0;
1635                min: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
1636                max: BUTTON_SWEEP_ICONONLY_ICON_MIN_INC;
1637             }
1638          }
1639          part { name: "elm.text";
1640             type: TEXTBLOCK;
1641             mouse_events: 0;
1642             effect: SHADOW BOTTOM;
1643             scale: 1;
1644             clip_to: "clipper";
1645             description { state: "default" 0.0;
1646                fixed: 1 1;
1647                visible: 0;
1648                rel1 {
1649                   relative: 1.0 1.0;
1650                   to_x: "padding_icon_text";
1651                   to_y: "padding_left_top";
1652                }
1653                rel2 {
1654                   relative: 0.0 0.0;
1655                   to: "padding_right_bottom";
1656                }
1657                color: BUTTON_SWEEP_BUTTON_TEXT_NORMAL_COLOR_INC;
1658                color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
1659                text {
1660                   style: "btn_sweep_multiline";
1661                   align: 0.5 0.45;
1662                }
1663             }
1664             description { state: "visible" 0.0;
1665                inherit: "default" 0.0;
1666                visible: 1;
1667                min: BUTTON_SWEEP_TEXT_MIN_INC;
1668             }
1669             description { state: "clicked" 0.0;
1670                inherit: "default" 0.0;
1671                visible: 1;
1672                min: 0 0;
1673                color: BUTTON_SWEEP_BUTTON_TEXT_PRESSED_COLOR_INC;
1674                color2: BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
1675             }
1676             description { state: "disabled" 0.0;
1677                inherit: "default" 0.0;
1678             }
1679             description { state: "disabled_visible" 0.0;
1680                inherit: "default" 0.0;
1681                color: BUTTON_SWEEP_BUTTON_TEXT_DISABLED_COLOR_INC;
1682                color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
1683                visible: 1;
1684                min: BUTTON_SWEEP_TEXT_MIN_INC;
1685             }
1686             description { state: "focused" 0.0;
1687                inherit: "default" 0.0;
1688                visible: 1;
1689                min: 0 0;
1690                color: BUTTON_SWEEP_BUTTON_TEXT_FOCUSED_COLOR_INC;
1691             }
1692          }
1693          part { name: "over2";
1694             type: RECT;
1695             repeat_events: 1;
1696             ignore_flags: ON_HOLD;
1697             description { state: "default" 0.0;
1698                color: 0 0 0 0;
1699             }
1700          }
1701          part { name: "over3";
1702             type: RECT;
1703             repeat_events: 1;
1704             description { state: "default" 0.0;
1705                color: 0 0 0 0;
1706             }
1707          }
1708          part { name: "clipper";
1709             type: RECT;
1710             description { state: "default" 0.0;
1711                color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
1712             }
1713             description { state: "disabled" 0.0;
1714                inherit: "default" 0.0;
1715                color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
1716             }
1717          }
1718          part { name: "disabler";
1719             type: RECT;
1720             description { state: "default" 0.0;
1721                color: 0 0 0 0;
1722                visible: 0;
1723             }
1724             description { state: "disabled" 0.0;
1725                inherit: "default" 0.0;
1726                visible: 1;
1727             }
1728          }
1729       }
1730       programs {
1731          program { name: "button_click";
1732             signal: "mouse,down,1";
1733             source: "over2";
1734             action: SIGNAL_EMIT "elm,action,press" "";
1735             after: "button_click_anim";
1736          }
1737          program { name: "button_click_anim";
1738             action: STATE_SET "clicked" 0.0;
1739             target: "button_image";
1740             after: "text_clicked";
1741          }
1742          program { name: "text_clicked";
1743             script {
1744                new st[31];
1745                new Float:vl;
1746                get_state(PART:"elm.text", st, 30, vl);
1747                if (!strcmp(st, "visible"))
1748                  set_state(PART:"elm.text", "clicked", 0.0);
1749             }
1750          }
1751          program { name: "button_double_click";
1752             signal: "mouse,down,1,double";
1753             source: "over2";
1754             after: "button_click_anim";
1755          }
1756          program { name: "button_unpress";
1757             action: SIGNAL_EMIT "elm,action,unpress" "";
1758          }
1759          program { name: "button_mouseout_clicked";
1760             signal: "mouse,up,1";
1761             source: "over3";
1762             script {
1763                new st[31];
1764                new Float:vl;
1765                get_state(PART:"elm.swallow.content", st, 30, vl);
1766                if (strcmp(st, "icononly"))
1767                  {
1768                     emit("elm,action,default,text,set", "");
1769                     set_state(PART:"elm.text", "visible", 0.0);
1770                  }
1771                if (get_int(button_state) != BUTTON_STATE_DISABLED)
1772                  set_state(PART:"button_image", "default", 0.0);
1773             }
1774             after: button_unpress;
1775          }
1776          program { name: "touch_snd";
1777             signal: "mouse,clicked,1";
1778             source: "over2";
1779             action: PLAY_SAMPLE "touch_sound" 1.0;
1780             after: button_unclick3;
1781          }
1782          program { name: "button_unclick3";
1783             action: SIGNAL_EMIT "elm,action,click" "";
1784          }
1785          program { name: "text_show";
1786             signal: "elm,state,text,visible";
1787             source: "elm";
1788             script {
1789                new st[31];
1790                new Float:vl;
1791                get_state(PART:"elm.swallow.content", st, 30, vl);
1792                if (!strcmp(st, "icononly"))
1793                  {
1794                     set_state(PART:"elm.swallow.content", "visible", 0.0);
1795                     set_state(PART:"padding_icon_text", "visible", 0.0);
1796                  }
1797                if (get_int(button_state) != BUTTON_STATE_DISABLED)
1798                  set_state(PART:"elm.text", "visible", 0.0);
1799                else
1800                  set_state(PART:"elm.text", "disabled_visible", 0.0);
1801             }
1802          }
1803          program { name: "text_hide";
1804             signal: "elm,state,text,hidden";
1805             source: "elm";
1806             script {
1807                new st[31];
1808                new Float:vl;
1809                get_state(PART:"elm.swallow.content", st, 30, vl);
1810                if (!strcmp(st, "visible"))
1811                  {
1812                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
1813                     set_state(PART:"padding_icon_text", "icononly", 0.0);
1814                  }
1815                set_state(PART:"elm.text", "default", 0.0);
1816             }
1817          }
1818          program { name: "icon_show";
1819             signal: "elm,state,icon,visible";
1820             source: "elm";
1821             script {
1822                new st[31];
1823                new Float:vl;
1824                get_state(PART:"elm.text", st, 30, vl);
1825                if (!strcmp(st, "visible"))
1826                  {
1827                     set_state(PART:"elm.swallow.content", "visible", 0.0);
1828                     set_state(PART:"padding_icon_text", "visible", 0.0);
1829                  }
1830                else
1831                  {
1832                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
1833                     set_state(PART:"padding_icon_text", "icononly", 0.0);
1834                  }
1835             }
1836          }
1837          program { name: "icon_hide";
1838             signal: "elm,state,icon,hidden";
1839             source: "elm";
1840             action: STATE_SET "default" 0.0;
1841             target: "elm.swallow.content";
1842             target: "padding_icon_text";
1843          }
1844          program { name: "disable";
1845             signal: "elm,state,disabled";
1846             source: "elm";
1847             action: STATE_SET "disabled" 0.0;
1848             target: "button_image";
1849             target: "clipper";
1850             target: "disabler";
1851             after: "disable_text";
1852          }
1853          program { name: "disable_text";
1854             script {
1855                new st[31];
1856                new Float:vl;
1857                get_state(PART:"elm.text", st, 30, vl);
1858                if (!strcmp(st, "visible"))
1859                  set_state(PART:"elm.text", "disabled_visible", 0.0);
1860                else
1861                  set_state(PART:"elm.text", "disabled", 0.0);
1862                set_int(button_state, BUTTON_STATE_DISABLED);
1863             }
1864          }
1865          program { name: "enable";
1866             signal: "elm,state,enabled";
1867             source: "elm";
1868             action: STATE_SET "default" 0.0;
1869             target: "button_image";
1870             target: "clipper";
1871             target: "disabler";
1872             after: "enable_text";
1873          }
1874          program { name: "enable_text";
1875             script {
1876                new st[31];
1877                new Float:vl;
1878                get_state(PART:"elm.text", st, 30, vl);
1879                if (!strcmp(st, "disabled_visible"))
1880                  set_state(PART:"elm.text", "visible", 0.0);
1881                else
1882                  set_state(PART:"elm.text", "default", 0.0);
1883                set_int(button_state, BUTTON_STATE_ENABLED);
1884             }
1885          }
1886          program { name: "focused";
1887             //signal: "elm,action,focus";
1888             //source: "elm";
1889             action: STATE_SET "focused" 0.0;
1890             target: "button_image";
1891             target: "elm.text";
1892          }
1893          program { name: "unfocused";
1894             //signal: "elm,action,unfocus";
1895             //source: "elm";
1896             action: STATE_SET "default" 0.0;
1897             target: "button_image";
1898             after: "unfocus_text";
1899          }
1900          program { name: "unfocus_text";
1901             action: STATE_SET "visible" 0.0;
1902             target: "elm.text";
1903          }
1904       }
1905    }
1906
1907 ///////////////////////////////////////////////////////////////////////////////////////
1908    group { name: "elm/button/base/sweep/delete";
1909       inherit: "elm/button/base/sweep";
1910       alias: "elm/button/base/sweep/delete/multiline";
1911       images {
1912          image: "00_button_01_Delete_press.png" COMP;
1913          image: "00_button_01_Delete.png" COMP;
1914          image: "00_button_01_Delete_dim.png" COMP;
1915       }
1916       styles{
1917          style { name: "btn_sweep_delete_multiline";
1918             base: "font=Tizen:style=Regular font_size="BUTTON_SWEEP_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed linegap=-7 ellipsis=1.0 text_class=tizen";
1919             tag: "br" "\n";
1920             tag: "ps" "ps";
1921             tag: "tab" "\t";
1922          }
1923       }
1924       parts {
1925          part { name: "button_image";
1926             scale: 1;
1927             description { state: "default" 0.0;
1928                min: BUTTON_SWEEP_BG_NORMAL_MIN_INC;
1929                image {
1930                   normal: "00_button_01_Delete.png";
1931                   border: BUTTON_SWEEP_BG_BORDER_INC;
1932                   border_scale: 1;
1933                }
1934             }
1935             description { state: "clicked" 0.0;
1936                inherit: "default" 0.0;
1937                image.normal: "00_button_01_Delete_press.png";
1938             }
1939             description { state: "disabled" 0.0;
1940                inherit: "default" 0.0;
1941                image.normal: "00_button_01_Delete_dim.png";
1942             }
1943             description { state: "focused" 0.0;
1944                inherit: "default" 0.0;
1945                image.normal: "00_button_01_Delete_press.png";
1946             }
1947          }
1948          part { name: "elm.text";
1949             type: TEXTBLOCK;
1950             mouse_events: 0;
1951             effect: SHADOW BOTTOM;
1952             scale: 1;
1953             clip_to: "clipper";
1954             description { state: "default" 0.0;
1955                fixed: 1 1;
1956                visible: 0;
1957                rel1 {
1958                   relative: 1.0 1.0;
1959                   to_x: "padding_icon_text";
1960                   to_y: "padding_left_top";
1961                }
1962                rel2 {
1963                   relative: 0.0 0.0;
1964                   to: "padding_right_bottom";
1965                }
1966                color: BUTTON_DELETE_BUTTON_TEXT_NORMAL_COLOR_INC;
1967                color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
1968                text {
1969                   style: "btn_sweep_multiline";
1970                   align: 0.5 0.45;
1971                }
1972             }
1973             description { state: "visible" 0.0;
1974                inherit: "default" 0.0;
1975                visible: 1;
1976                min: BUTTON_SWEEP_TEXT_MIN_INC;
1977             }
1978             description { state: "clicked" 0.0;
1979                inherit: "default" 0.0;
1980                visible: 1;
1981                min: 0 0;
1982                color: BUTTON_DELETE_BUTTON_TEXT_PRESSED_COLOR_INC;
1983                color2: BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
1984             }
1985             description { state: "disabled" 0.0;
1986                inherit: "default" 0.0;
1987             }
1988             description { state: "disabled_visible" 0.0;
1989                inherit: "default" 0.0;
1990                color: BUTTON_DELETE_BUTTON_TEXT_DISABLED_COLOR_INC;
1991                color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
1992                visible: 1;
1993                min: BUTTON_SWEEP_TEXT_MIN_INC;
1994             }
1995             description { state: "focused" 0.0;
1996                inherit: "default" 0.0;
1997                visible: 1;
1998                min: 0 0;
1999                color: BUTTON_DELETE_BUTTON_TEXT_FOCUSED_COLOR_INC;
2000             }
2001          }
2002       }
2003    }
2004
2005 ///////////////////////////////////////////////////////////////////////////////////////
2006    group { name: "elm/button/base/popup_button/default";
2007       alias: "elm/button/base/popup_button/menustyle";
2008       alias: "elm/button/base/popup_button/liststyle";
2009       alias: "elm/button/base/popup_button/volumebarstyle";
2010       alias: "elm/button/base/popup_button/customstyle";
2011       alias: "elm/button/base/popup_button/verticalbuttonstyle";
2012       alias: "elm/button/base/popup_button/default/multiline";
2013       images {
2014          image: "00_button_01.png" COMP;
2015          image: "00_button_01_dim.png" COMP;
2016          image: "00_button_01_press.png" COMP;
2017       }
2018       script {
2019          public button_state = BUTTON_STATE_ENABLED;
2020       }
2021       parts {
2022          part { name: "button_image";
2023             scale: 1;
2024             description { state: "default" 0.0;
2025                min: BUTTON_POPUP_BG_NORMAL_MIN_INC;
2026                image {
2027                   normal: "00_button_01.png";
2028                   border: BUTTON_POPUP_BG_BORDER_INC;
2029                   border_scale: 1;
2030                }
2031             }
2032             description { state: "clicked" 0.0;
2033                inherit: "default" 0.0;
2034                image.normal: "00_button_01_press.png";
2035             }
2036             description { state: "disabled" 0.0;
2037                inherit: "default" 0.0;
2038                image.normal: "00_button_01_dim.png";
2039             }
2040             description { state: "focused" 0.0;
2041                inherit: "default" 0.0;
2042                image.normal: "00_button_01_press.png";
2043             }
2044          }
2045          part { name: "padding_left_top";
2046             type: RECT;
2047             scale: 1;
2048             mouse_events: 0;
2049             description { state: "default" 0.0;
2050                align: 0.0 0.0;
2051                rel2.relative: 0.0 0.0;
2052                min: BUTTON_POPUP_PADDING_MIN_INC;
2053                fixed: 1 1;
2054                visible: 0;
2055             }
2056          }
2057          part { name: "padding_right_bottom";
2058             type: RECT;
2059             scale: 1;
2060             description { state: "default" 0.0;
2061                align: 1.0 0.0;
2062                rel1.relative: 1.0 1.0;
2063                min: BUTTON_POPUP_PADDING_MIN_INC;
2064                fixed: 1 1;
2065                visible: 0;
2066             }
2067          }
2068          part { name: "padding_icon_text";
2069             type: RECT;
2070             scale: 1;
2071             description { state: "default" 0.0; //when only icon or no icon is there
2072                align: 0.0 0.0;
2073                rel1 {
2074                   relative: 1.0 0.0;
2075                   to: "elm.swallow.content";
2076                }
2077                rel2.to: "elm.swallow.content";
2078                fixed: 1 0;
2079                min: 0 0;
2080                visible: 0;
2081             }
2082             description { state: "icononly" 0.0;
2083                inherit: "default" 0.0;
2084             }
2085             description { state: "visible" 0.0; //when icon is visible
2086                inherit: "default" 0.0;
2087                min: BUTTON_POPUP_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
2088             }
2089          }
2090          part { name: "elm.swallow.content";
2091             type: SWALLOW;
2092             scale: 1;
2093             clip_to: "clipper";
2094             description { state: "default" 0.0;
2095                visible: 0;
2096                align: 0.0 0.5;
2097                rel1 {
2098                   relative: 1.0 1.0;
2099                   to: "padding_left_top";
2100                }
2101                rel2 {
2102                   relative: 1.0 0.0;
2103                   to_x: "padding_left_top";
2104                   to_y: "padding_right_bottom";
2105                }
2106                fixed: 1 0;
2107             }
2108             description { state: "visible" 0.0;
2109                inherit: "default" 0.0;
2110                fixed: 1 0;
2111                visible: 1;
2112                aspect: 1.0 1.0;
2113                aspect_preference: VERTICAL;
2114             }
2115             description { state: "icononly" 0.0;
2116                inherit: "default" 0.0;
2117                min: BUTTON_POPUP_ICON_ICONONLY_MIN_INC;
2118                visible: 1;
2119                align: 0.5 0.5;
2120             }
2121          }
2122          part { name: "elm.text";
2123             type: TEXT;
2124             mouse_events: 0;
2125             scale: 1;
2126             clip_to: "clipper";
2127             effect: SHADOW BOTTOM;
2128             description { state: "default" 0.0;
2129                visible: 0;
2130                rel1 {
2131                   relative: 1.0 1.0;
2132                   to_x: "padding_icon_text";
2133                   to_y: "padding_left_top";
2134                }
2135                rel2 {
2136                   relative: 0.0 0.0;
2137                   to: "padding_right_bottom";
2138                }
2139                color: BUTTON_POPUP_BUTTON_TEXT_NORMAL_COLOR_INC;
2140                color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
2141                text {
2142                   font: "Tizen:style=Regular";
2143                   size: BUTTON_POPUP_TEXT_FONT_SIZE_INC;
2144                   min: 0 0;
2145                   text_class: "tizen";
2146                }
2147             }
2148             description { state: "visible" 0.0;
2149                inherit: "default" 0.0;
2150                visible: 1;
2151                min: BUTTON_POPUP_TEXT_MIN_INC;
2152             }
2153             description { state: "clicked" 0.0;
2154                inherit: "default" 0.0;
2155                visible: 1;
2156                min: 0 0;
2157                color: BUTTON_POPUP_BUTTON_TEXT_PRESSED_COLOR_INC;
2158                color2: BUTTON_TEXT_SHADOW_PRESSED_COLOR_INC;
2159             }
2160             description { state: "disabled" 0.0;
2161                inherit: "default" 0.0;
2162             }
2163             description { state: "disabled_visible" 0.0;
2164                inherit: "default" 0.0;
2165                color: BUTTON_POPUP_BUTTON_TEXT_DISABLED_COLOR_INC;
2166                color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
2167                visible: 1;
2168                min: BUTTON_POPUP_TEXT_MIN_INC;
2169             }
2170             description { state: "focused" 0.0;
2171                inherit: "default" 0.0;
2172                visible: 1;
2173                min: 0 0;
2174                color: BUTTON_POPUP_BUTTON_TEXT_FOCUSED_COLOR_INC;
2175             }
2176          }
2177          part { name: "over2";
2178             type: RECT;
2179             repeat_events: 1;
2180             ignore_flags: ON_HOLD;
2181             description { state: "default" 0.0;
2182                color: 0 0 0 0;
2183             }
2184          }
2185          part { name: "over3";
2186             type: RECT;
2187             repeat_events: 1;
2188             description { state: "default" 0.0;
2189                color: 0 0 0 0;
2190             }
2191          }
2192          part { name: "clipper";
2193             type: RECT;
2194             description { state: "default" 0.0;
2195                color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
2196             }
2197             description { state: "disabled" 0.0;
2198                inherit: "default" 0.0;
2199                color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
2200             }
2201          }
2202          part { name: "disabler";
2203             type: RECT;
2204             description { state: "default" 0.0;
2205                color: 0 0 0 0;
2206                visible: 0;
2207             }
2208             description { state: "disabled" 0.0;
2209                inherit: "default" 0.0;
2210                visible: 1;
2211             }
2212          }
2213       }
2214       programs {
2215          program { name: "button_click";
2216             signal: "mouse,down,1";
2217             source: "over2";
2218             action: SIGNAL_EMIT "elm,action,press" "";
2219             after: "button_click_anim";
2220          }
2221          program { name: "button_click_anim";
2222             action: STATE_SET "clicked" 0.0;
2223             target: "button_image";
2224             after: "text_clicked";
2225          }
2226          program { name: "text_clicked";
2227             script {
2228                new st[31];
2229                new Float:vl;
2230                get_state(PART:"elm.text", st, 30, vl);
2231                if (!strcmp(st, "visible"))
2232                  set_state(PART:"elm.text", "clicked", 0.0);
2233             }
2234          }
2235          program { name: "button_double_click";
2236             signal: "mouse,down,1,double";
2237             source: "over2";
2238             after: "button_click_anim";
2239          }
2240          program { name: "button_unpress";
2241             action: SIGNAL_EMIT "elm,action,unpress" "";
2242          }
2243          program { name: "button_mouseout_clicked";
2244             signal: "mouse,up,1";
2245             source: "over3";
2246             script {
2247                new st[31];
2248                new Float:vl;
2249                get_state(PART:"elm.swallow.content", st, 30, vl);
2250                if (strcmp(st, "icononly"))
2251                  {
2252                     emit("elm,action,default,text,set", "");
2253                     set_state(PART:"elm.text", "visible", 0.0);
2254                  }
2255                if (get_int(button_state) != BUTTON_STATE_DISABLED)
2256                  set_state(PART:"button_image", "default", 0.0);
2257             }
2258             after: button_unpress;
2259          }
2260          program { name: "touch_snd";
2261             signal: "mouse,clicked,1";
2262             source: "over2";
2263             action: PLAY_SAMPLE "touch_sound" 1.0;
2264             after: button_unclick3;
2265          }
2266          program { name: "button_unclick3";
2267             action: SIGNAL_EMIT "elm,action,click" "";
2268          }
2269          program { name: "text_show";
2270             signal: "elm,state,text,visible";
2271             source: "elm";
2272             script {
2273                new st[31];
2274                new Float:vl;
2275                get_state(PART:"elm.swallow.content", st, 30, vl);
2276                if (!strcmp(st, "icononly"))
2277                  {
2278                     set_state(PART:"elm.swallow.content", "visible", 0.0);
2279                     set_state(PART:"padding_icon_text", "visible", 0.0);
2280                  }
2281                if (get_int(button_state) != BUTTON_STATE_DISABLED)
2282                  set_state(PART:"elm.text", "visible", 0.0);
2283                else
2284                  set_state(PART:"elm.text", "disabled_visible", 0.0);
2285             }
2286          }
2287          program { name: "text_hide";
2288             signal: "elm,state,text,hidden";
2289             source: "elm";
2290             script {
2291                new st[31];
2292                new Float:vl;
2293                get_state(PART:"elm.swallow.content", st, 30, vl);
2294                if (!strcmp(st, "visible"))
2295                  {
2296                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
2297                     set_state(PART:"padding_icon_text", "icononly", 0.0);
2298                  }
2299                set_state(PART:"elm.text", "default", 0.0);
2300             }
2301          }
2302          program { name: "icon_show";
2303             signal: "elm,state,icon,visible";
2304             source: "elm";
2305             script {
2306                new st[31];
2307                new Float:vl;
2308                get_state(PART:"elm.text", st, 30, vl);
2309                if (!strcmp(st, "visible"))
2310                  {
2311                     set_state(PART:"elm.swallow.content", "visible", 0.0);
2312                     set_state(PART:"padding_icon_text", "visible", 0.0);
2313                  }
2314                else
2315                  {
2316                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
2317                     set_state(PART:"padding_icon_text", "icononly", 0.0);
2318                  }
2319             }
2320          }
2321          program { name: "icon_hide";
2322             signal: "elm,state,icon,hidden";
2323             source: "elm";
2324             action: STATE_SET "default" 0.0;
2325             target: "elm.swallow.content";
2326             target: "padding_icon_text";
2327          }
2328          program { name: "disable";
2329             signal: "elm,state,disabled";
2330             source: "elm";
2331             action: STATE_SET "disabled" 0.0;
2332             target: "button_image";
2333             target: "clipper";
2334             target: "disabler";
2335             after: "disable_text";
2336          }
2337          program { name: "disable_text";
2338             script {
2339                new st[31];
2340                new Float:vl;
2341                get_state(PART:"elm.text", st, 30, vl);
2342                if (!strcmp(st, "visible"))
2343                  set_state(PART:"elm.text", "disabled_visible", 0.0);
2344                else
2345                  set_state(PART:"elm.text", "disabled", 0.0);
2346                set_int(button_state, BUTTON_STATE_DISABLED);
2347             }
2348          }
2349          program { name: "enable";
2350             signal: "elm,state,enabled";
2351             source: "elm";
2352             action: STATE_SET "default" 0.0;
2353             target: "button_image";
2354             target: "clipper";
2355             target: "disabler";
2356             after: "enable_text";
2357          }
2358          program { name: "enable_text";
2359             script {
2360                new st[31];
2361                new Float:vl;
2362                get_state(PART:"elm.text", st, 30, vl);
2363                if (!strcmp(st, "disabled_visible"))
2364                  set_state(PART:"elm.text", "visible", 0.0);
2365                else
2366                  set_state(PART:"elm.text", "default", 0.0);
2367                set_int(button_state, BUTTON_STATE_ENABLED);
2368             }
2369          }
2370          program { name: "focused";
2371             //signal: "elm,action,focus";
2372             //source: "elm";
2373             action: STATE_SET "focused" 0.0;
2374             target: "button_image";
2375             target: "elm.text";
2376          }
2377          program { name: "unfocused";
2378             //signal: "elm,action,unfocus";
2379             //source: "elm";
2380             action: STATE_SET "default" 0.0;
2381             target: "button_image";
2382             after: "unfocus_text";
2383          }
2384          program { name: "unfocus_text";
2385             action: STATE_SET "visible" 0.0;
2386             target: "elm.text";
2387          }
2388       }
2389    }
2390
2391 ///////////////////////////////////////////////////////////////////////////////////////
2392 #define BUTTON_CIRCLE_STYLES(style_name, image_normal, image_press, min_width, min_height) \
2393    group { name: "elm/button/base/"style_name; \
2394       images { \
2395          image: "00_circle_button.png" COMP; \
2396          image: "00_circle_button_press.png" COMP; \
2397          image: "00_circle_button_dim.png" COMP; \
2398          image: image_normal COMP; \
2399          image: image_press COMP; \
2400       } \
2401       parts { \
2402          part { name: "button_image"; \
2403             scale: 1; \
2404             description { state: "default" 0.0; \
2405                min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
2406                max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC; \
2407                image.normal: "00_circle_button.png"; \
2408             } \
2409             description { \
2410                state: "clicked" 0.0; \
2411                inherit: "default" 0.0; \
2412                image.normal: "00_circle_button_press.png"; \
2413             } \
2414             description { \
2415                state: "disabled" 0.0; \
2416                inherit: "default" 0.0; \
2417                image.normal: "00_circle_button_dim.png"; \
2418             } \
2419          } \
2420          part { name: "left_top_padding"; \
2421             scale: 1; \
2422             type: SPACER; \
2423             description { state: "default" 0.0; \
2424                min: BUTTON_CIRCLE_STYLE_LEFT_PADDING_MIN_MAX_INC; \
2425                max: BUTTON_CIRCLE_STYLE_LEFT_PADDING_MIN_MAX_INC; \
2426                fixed: 1 1; \
2427                align: 0.0 0.0; \
2428                rel1.to: "button_image"; \
2429                rel2.to: "button_image"; \
2430             } \
2431          } \
2432          part { name: "right_bottom_padding"; \
2433             scale: 1; \
2434             type: SPACER; \
2435             description { state: "default" 0.0; \
2436                min: BUTTON_CIRCLE_STYLE_RIGHT_PADDING_MIN_MAX_INC; \
2437                max: BUTTON_CIRCLE_STYLE_RIGHT_PADDING_MIN_MAX_INC; \
2438                fixed: 1 1; \
2439                align: 1.0 1.0; \
2440                rel1 { \
2441                   relative: 1.0 1.0; \
2442                   to: "button_image"; \
2443                } \
2444                rel2.to: "button_image"; \
2445             } \
2446          } \
2447          part { name: "button_center_part"; \
2448             scale: 1; \
2449             clip_to: "icon_clipper"; \
2450             description { state: "default" 0.0; \
2451                min: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
2452                max: BUTTON_CIRCLE_STYLE_IMAGE_MIN_MAX_INC; \
2453                image.normal: image_normal; \
2454                rel1 { \
2455                   relative: 1.0 1.0; \
2456                   to: "left_top_padding"; \
2457                } \
2458                rel2 { \
2459                   relative: 0.0 0.0; \
2460                   to: "right_bottom_padding"; \
2461                } \
2462             } \
2463             description { state: "clicked" 0.0; \
2464                inherit: "default"; \
2465                image.normal: image_press; \
2466             } \
2467             description { state: "disabled" 0.0; \
2468                inherit: "default"; \
2469             } \
2470          } \
2471          part { name: "icon_clipper"; \
2472             type: RECT; \
2473             scale: 1; \
2474             description { state: "default" 0.0; \
2475                color: BUTTON_CIRCLE_STYLE_NORMAL_COLOR_INC; \
2476             } \
2477             description { state: "clicked" 0.0; \
2478                color: BUTTON_CIRCLE_STYLE_PRESSED_COLOR_INC; \
2479             } \
2480             description { state: "disabled" 0.0; \
2481                color: BUTTON_CIRCLE_STYLE_DISABLED_COLOR_INC; \
2482             } \
2483          } \
2484          part { name: "over1"; \
2485             type: RECT; \
2486             ignore_flags: ON_HOLD; \
2487             description { state: "default" 0.0; \
2488                color: 0 0 0 0; \
2489                min: min_width min_height; \
2490             } \
2491          } \
2492          part { name: "over2"; \
2493             type: RECT; \
2494             repeat_events: 1; \
2495             description { state: "default" 0.0; \
2496                color: 0 0 0 0; \
2497             } \
2498          } \
2499          part { name: "disabler"; \
2500             type: RECT; \
2501             description { state: "default" 0.0; \
2502                color: 0 0 0 0; \
2503                visible: 0; \
2504             } \
2505             description { state: "disabled" 0.0; \
2506                inherit: "default" 0.0; \
2507                visible: 1; \
2508             } \
2509          } \
2510       } \
2511       programs { \
2512          program { name: "button_click"; \
2513             signal: "mouse,down,1"; \
2514             source: "over1"; \
2515             action: SIGNAL_EMIT "elm,action,press" ""; \
2516             after: "button_click_anim"; \
2517          } \
2518          program { name: "button_click_anim"; \
2519             action: STATE_SET "clicked" 0.0; \
2520             target: "button_image"; \
2521             target: "button_center_part"; \
2522             target: "icon_clipper"; \
2523          } \
2524          program { name: "button_double_click"; \
2525             signal: "mouse,down,1,double"; \
2526             source: "over1"; \
2527             after: "button_click_anim"; \
2528          } \
2529          program { name: "button_unclick"; \
2530             signal: "mouse,up,1"; \
2531             source: "over2"; \
2532             action: SIGNAL_EMIT "elm,action,unpress" ""; \
2533             after: "button_unclick_anim"; \
2534          } \
2535          program { name: "button_unclick_anim"; \
2536             action: STATE_SET "default" 0.0; \
2537             target: "button_image"; \
2538             target: "button_center_part"; \
2539             target: "icon_clipper"; \
2540          } \
2541          program { name: "touch_snd"; \
2542             signal: "mouse,clicked,1"; \
2543             source: "over1"; \
2544             action: PLAY_SAMPLE "touch_sound" 1.0; \
2545             after: button_unclick3; \
2546          } \
2547          program { name: "button_unclick3"; \
2548             action: SIGNAL_EMIT "elm,action,click" ""; \
2549          } \
2550          program { name: "disable"; \
2551             signal: "elm,state,disabled"; \
2552             source: "elm"; \
2553             action: STATE_SET "disabled" 0.0; \
2554             target: "disabler"; \
2555             target: "button_image"; \
2556             target: "button_center_part"; \
2557             target: "icon_clipper"; \
2558          } \
2559          program { name: "enable"; \
2560             signal: "elm,state,enabled"; \
2561             source: "elm"; \
2562             action: STATE_SET "default" 0.0; \
2563             target: "disabler"; \
2564             target: "button_image"; \
2565             target: "button_center_part"; \
2566             target: "icon_clipper"; \
2567          } \
2568       } \
2569    }
2570
2571 ///////////////////////////////////////////////////////////////////////////////////////
2572    BUTTON_CIRCLE_STYLES("reveal","00_button_right.png", "00_button_right_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2573
2574 ///////////////////////////////////////////////////////////////////////////////////////
2575    BUTTON_CIRCLE_STYLES("reveal/extended", "00_button_right.png", "00_button_right_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2576
2577 ///////////////////////////////////////////////////////////////////////////////////////
2578    BUTTON_CIRCLE_STYLES("expand/closed", "00_button_expand_closed.png", "00_button_expand_closed_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2579
2580 ///////////////////////////////////////////////////////////////////////////////////////
2581    BUTTON_CIRCLE_STYLES("expand/closed/extended", "00_button_expand_closed.png", "00_button_expand_closed_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2582
2583 ///////////////////////////////////////////////////////////////////////////////////////
2584    BUTTON_CIRCLE_STYLES("expand/opened", "00_button_expand_opened.png", "00_button_expand_opened_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2585
2586 ///////////////////////////////////////////////////////////////////////////////////////
2587    BUTTON_CIRCLE_STYLES("expand/opened/extended", "00_button_expand_opened.png", "00_button_expand_opened_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2588
2589 ///////////////////////////////////////////////////////////////////////////////////////
2590    BUTTON_CIRCLE_STYLES("info", "00_button_info.png", "00_button_info_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2591
2592 ///////////////////////////////////////////////////////////////////////////////////////
2593    BUTTON_CIRCLE_STYLES("info/extended", "00_button_info.png", "00_button_info_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2594
2595 ///////////////////////////////////////////////////////////////////////////////////////
2596    BUTTON_CIRCLE_STYLES("rename", "00_button_rename.png", "00_button_rename_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2597
2598 ///////////////////////////////////////////////////////////////////////////////////////
2599    BUTTON_CIRCLE_STYLES("rename/extended", "00_button_rename.png", "00_button_rename_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2600
2601 ///////////////////////////////////////////////////////////////////////////////////////
2602    BUTTON_CIRCLE_STYLES("call", "00_button_call.png", "00_button_call_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2603
2604 ///////////////////////////////////////////////////////////////////////////////////////
2605    BUTTON_CIRCLE_STYLES("call/extended", "00_button_call.png", "00_button_call_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2606
2607 ///////////////////////////////////////////////////////////////////////////////////////
2608    BUTTON_CIRCLE_STYLES("plus", "00_button_add.png", "00_button_add_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2609
2610 ///////////////////////////////////////////////////////////////////////////////////////
2611    BUTTON_CIRCLE_STYLES("plus/extended", "00_button_add.png", "00_button_add_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2612
2613 ///////////////////////////////////////////////////////////////////////////////////////
2614    BUTTON_CIRCLE_STYLES("minus", "00_button_delete.png", "00_button_delete_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2615
2616 ///////////////////////////////////////////////////////////////////////////////////////
2617    BUTTON_CIRCLE_STYLES("minus/extended", "00_button_delete.png", "00_button_delete_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2618
2619 ///////////////////////////////////////////////////////////////////////////////////////
2620    BUTTON_CIRCLE_STYLES("cancel", "00_button_expand_cancel.png", "00_button_expand_cancel_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2621
2622 ///////////////////////////////////////////////////////////////////////////////////////
2623    BUTTON_CIRCLE_STYLES("cancel/extended", "00_button_expand_cancel.png", "00_button_expand_cancel_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2624
2625 ///////////////////////////////////////////////////////////////////////////////////////
2626    BUTTON_CIRCLE_STYLES("send", "00_button_expand_send.png", "00_button_expand_send_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2627
2628 ///////////////////////////////////////////////////////////////////////////////////////
2629    BUTTON_CIRCLE_STYLES("send/extended", "00_button_expand_send.png", "00_button_expand_send_press.png", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2630 ///////////////////////////////////////////////////////////////////////////////////////
2631
2632 ///////////////////////////////////////////////////////////////////////////////////////
2633    BUTTON_CIRCLE_STYLES("contact", "00_button_contact.png", "00_button_contact_press.png", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2634 ///////////////////////////////////////////////////////////////////////////////////////
2635
2636 #define BUTTON_CIRCLE_WARNING_STYLES(style_name, min_width, min_height) \
2637    group { name: "elm/button/base/"style_name; \
2638       inherit: "elm/button/base/info"; \
2639       images { \
2640          image: "00_circle_button_delete.png" COMP; \
2641          image: "00_circle_button_delete_press.png" COMP; \
2642          image: "00_circle_button_delete_dim.png" COMP; \
2643          image: "00_button_warning.png" COMP; \
2644          image: "00_button_warning_press.png" COMP; \
2645       } \
2646       parts { \
2647          part { name: "button_image"; \
2648             scale: 1; \
2649             description { state: "default" 0.0; \
2650                image.normal: "00_circle_button_delete.png"; \
2651             } \
2652             description { \
2653                state: "clicked" 0.0; \
2654                inherit: "default" 0.0; \
2655                image.normal: "00_circle_button_delete_press.png"; \
2656             } \
2657             description { \
2658                state: "disabled" 0.0; \
2659                inherit: "default" 0.0; \
2660                image.normal: "00_circle_button_delete_dim.png"; \
2661             } \
2662          } \
2663          part { name: "button_center_part"; \
2664             scale: 1; \
2665             clip_to: "icon_clipper"; \
2666             description { state: "default" 0.0; \
2667                image.normal: "00_button_warning.png"; \
2668             } \
2669             description { state: "clicked" 0.0; \
2670                inherit: "default"; \
2671                image.normal: "00_button_warning_press.png"; \
2672             } \
2673             description { state: "disabled" 0.0; \
2674                inherit: "default"; \
2675             } \
2676          } \
2677          part { name: "icon_clipper"; \
2678             type: RECT; \
2679             scale: 1; \
2680             description { state: "default" 0.0; \
2681                color: BUTTON_CIRCLE_STYLE_WARNING_NORMAL_COLOR_INC; \
2682             } \
2683             description { state: "clicked" 0.0; \
2684                color: BUTTON_CIRCLE_STYLE_WARNING_PRESSED_COLOR_INC; \
2685             } \
2686             description { state: "disabled" 0.0; \
2687                color: BUTTON_CIRCLE_STYLE_WARNING_DISABLED_COLOR_INC; \
2688             } \
2689          } \
2690          part { name: "over1"; \
2691             type: RECT; \
2692             ignore_flags: ON_HOLD; \
2693             description { state: "default" 0.0; \
2694                color: 0 0 0 0; \
2695                min: min_width min_height; \
2696             } \
2697          } \
2698       } \
2699    }
2700
2701 ///////////////////////////////////////////////////////////////////////////////////////
2702    BUTTON_CIRCLE_WARNING_STYLES("warning", BUTTON_CIRCLE_NORMAL_MIN_WIDTH_INC, BUTTON_CIRCLE_NORMAL_MIN_HEIGHT_INC)
2703
2704 ///////////////////////////////////////////////////////////////////////////////////////
2705    BUTTON_CIRCLE_WARNING_STYLES("warning/extended", BUTTON_CIRCLE_EXTENEDED_MIN_WIDTH_INC, BUTTON_CIRCLE_EXTENEDED_MIN_HEIGHT_INC)
2706
2707 ///////////////////////////////////////////////////////////////////////////////////////
2708    group { name: "elm/button/base/circle/empty";
2709       images {
2710          image: "00_circle_button.png" COMP;
2711          image: "00_circle_button_press.png" COMP;
2712          image: "00_circle_button_dim.png" COMP;
2713       }
2714       parts {
2715          part { name: "button_image";
2716             scale: 1;
2717             description { state: "default" 0.0;
2718                min: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
2719                max: BUTTON_CIRCLE_STYLE_BG_MIN_MAX_INC;
2720                fixed: 1 1;
2721                image.normal: "00_circle_button.png";
2722             }
2723             description { state: "clicked" 0.0;
2724                inherit: "default" 0.0;
2725                image.normal: "00_circle_button_press.png";
2726             }
2727             description { state: "disabled" 0.0;
2728                inherit: "default" 0.0;
2729                image.normal: "00_circle_button_dim.png";
2730             }
2731          }
2732          part { name: "left_top_padding";
2733             scale: 1;
2734             type: SPACER;
2735             description { state: "default" 0.0;
2736                min: BUTTON_CIRCLE_STYLE_LEFT_PADDING_MIN_MAX_INC;
2737                max: BUTTON_CIRCLE_STYLE_LEFT_PADDING_MIN_MAX_INC;
2738                fixed: 1 1;
2739                align: 0.0 0.0;
2740                rel1.to: "button_image";
2741                rel2.to: "button_image";
2742             }
2743          }
2744          part { name: "right_bottom_padding";
2745             scale: 1;
2746             type: SPACER;
2747             description { state: "default" 0.0;
2748                min: BUTTON_CIRCLE_STYLE_RIGHT_PADDING_MIN_MAX_INC;
2749                max: BUTTON_CIRCLE_STYLE_RIGHT_PADDING_MIN_MAX_INC;
2750                fixed: 1 1;
2751                align: 1.0 1.0;
2752                rel1 {
2753                   relative: 1.0 1.0;
2754                   to: "button_image";
2755                }
2756                rel2.to: "button_image";
2757             }
2758          }
2759          part { name: "elm.swallow.content";
2760             type: SWALLOW;
2761             clip_to: "icon_clipper";
2762             scale: 1;
2763             description { state: "default" 0.0;
2764                fixed: 1 1;
2765                rel1 {
2766                   relative: 1.0 1.0;
2767                   to: "left_top_padding";
2768                }
2769                rel2 {
2770                   relative: 0.0 0.0;
2771                   to: "right_bottom_padding";
2772                }
2773                visible: 0;
2774             }
2775             description { state: "visible" 0.0;
2776                inherit: "default" 0.0;
2777                visible: 1;
2778                min: BUTTON_CIRCLE_STYLE_CONTENT_MIN_MAX_INC;
2779                max: BUTTON_CIRCLE_STYLE_CONTENT_MIN_MAX_INC;
2780             }
2781          }
2782          part { name: "icon_clipper";
2783             type: RECT;
2784             scale: 1;
2785             description { state: "default" 0.0;
2786                color: BUTTON_CIRCLE_STYLE_NORMAL_COLOR_INC;
2787             }
2788             description { state: "clicked" 0.0;
2789                color: BUTTON_CIRCLE_STYLE_PRESSED_COLOR_INC;
2790             }
2791             description { state: "disabled" 0.0;
2792                color: BUTTON_CIRCLE_STYLE_DISABLED_COLOR_INC;
2793             }
2794          }
2795          part { name: "over1";
2796             type: RECT;
2797             ignore_flags: ON_HOLD;
2798             description { state: "default" 0.0;
2799                color: 0 0 0 0;
2800             }
2801          }
2802          part { name: "over2";
2803             type: RECT;
2804             repeat_events: 1;
2805             description { state: "default" 0.0;
2806                color: 0 0 0 0;
2807             }
2808          }
2809          part { name: "disabler";
2810             type: RECT;
2811             description { state: "default" 0.0;
2812                color: 0 0 0 0;
2813                visible: 0;
2814             }
2815             description { state: "disabled" 0.0;
2816                inherit: "default" 0.0;
2817                visible: 1;
2818             }
2819          }
2820       }
2821       programs {
2822          program { name: "button_click";
2823             signal: "mouse,down,1";
2824             source: "over1";
2825             action: SIGNAL_EMIT "elm,action,press" "";
2826             after: "button_click_anim";
2827          }
2828          program { name: "button_click_anim";
2829             action: STATE_SET "clicked" 0.0;
2830             target: "button_image";
2831             target: "icon_clipper";
2832          }
2833          program { name: "button_double_click";
2834             signal: "mouse,down,1,double";
2835             source: "over1";
2836             after: "button_click_anim";
2837          }
2838          program { name: "touch_snd";
2839             signal: "mouse,clicked,1";
2840             source: "over1";
2841             action: PLAY_SAMPLE "touch_sound" 1.0;
2842             after: button_unclick2;
2843          }
2844          program { name: "button_unclick2";
2845             action: SIGNAL_EMIT "elm,action,click" "";
2846          }
2847          program { name: "button_unclick";
2848             signal: "mouse,up,1";
2849             source: "over2";
2850             action: SIGNAL_EMIT "elm,action,unpress" "";
2851             after: "button_unclick_anim";
2852          }
2853          program { name: "button_unclick_anim";
2854             action: STATE_SET "default" 0.0;
2855             target: "button_image";
2856             target: "icon_clipper";
2857          }
2858          program { name: "disable";
2859             signal: "elm,state,disabled";
2860             source: "elm";
2861             action: STATE_SET "disabled" 0.0;
2862             target: "disabler";
2863             target: "button_image";
2864             target: "icon_clipper";
2865          }
2866          program { name: "enable";
2867             signal: "elm,state,enabled";
2868             source: "elm";
2869             action: STATE_SET "default" 0.0;
2870             target: "disabler";
2871             target: "button_image";
2872             target: "icon_clipper";
2873          }
2874          program { name: "icon_show";
2875             signal: "elm,state,icon,visible";
2876             source: "elm";
2877             action: STATE_SET "visible" 0.0;
2878             target: "elm.swallow.content";
2879          }
2880          program { name: "icon_hide";
2881             signal: "elm,state,icon,hidden";
2882             source: "elm";
2883             action: STATE_SET "default" 0.0;
2884             target: "elm.swallow.content";
2885          }
2886       }
2887    }
2888
2889 ///////////////////////////////////////////////////////////////////////////////////////
2890 #define BUTTON_EDIT_STYLES(style_name, image_normal, image_press, min_width, min_height) \
2891    group { name: "elm/button/base/contacts/"style_name; \
2892    alias: "elm/button/base/"style_name; \
2893       images { \
2894          image: "00_circle_button.png" COMP; \
2895          image: "00_circle_button_press.png" COMP; \
2896          image: "00_circle_button_dim.png" COMP; \
2897          image: edit_normal COMP; \
2898          image: edit_press COMP; \
2899       } \
2900       parts { \
2901          part { name: "button_image"; \
2902             scale: 1; \
2903             description { state: "default" 0.0; \
2904                min: BUTTON_EDIT_STYLE_BG_NORMAL_MIN_MAX_INC; \
2905                max: BUTTON_EDIT_STYLE_BG_NORMAL_MIN_MAX_INC; \
2906                image.normal: "00_circle_button.png"; \
2907             } \
2908             description { state: "clicked" 0.0; \
2909                inherit: "default" 0.0; \
2910                image.normal: "00_circle_button_press.png"; \
2911             } \
2912             description { state: "disabled" 0.0; \
2913                inherit: "default" 0.0; \
2914                image.normal: "00_circle_button_dim.png"; \
2915             } \
2916          } \
2917          part { name: "button_center_part"; \
2918             mouse_events: 0; \
2919             scale: 1; \
2920             clip_to: "icon_clipper"; \
2921             description { state: "default" 0.0; \
2922                min: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
2923                max: BUTTON_EDIT_STYLE_IMAGE_NORMAL_MIN_MAX_INC; \
2924                image.normal: image_normal; \
2925             } \
2926             description { \
2927                state: "clicked" 0.0; \
2928                inherit: "default" 0.0; \
2929                image.normal: image_press; \
2930             } \
2931             description { state: "disabled" 0.0; \
2932                inherit: "default" 0.0; \
2933             } \
2934          } \
2935          part { name: "icon_clipper"; \
2936             scale: 1; \
2937             type: RECT; \
2938             description { state: "default" 0.0; \
2939                color: BUTTON_EDIT_STYLE_NORMAL_COLOR_INC; \
2940             } \
2941             description { state: "clicked" 0.0; \
2942                color: BUTTON_EDIT_STYLE_PRESSED_COLOR_INC; \
2943             } \
2944             description { state: "disabled" 0.0; \
2945                color: BUTTON_EDIT_STYLE_DISABLED_COLOR_INC; \
2946             } \
2947          } \
2948          part { name: "over1"; \
2949             type: RECT; \
2950             repeat_events: 1; \
2951             ignore_flags: ON_HOLD; \
2952             description { state: "default" 0.0; \
2953                color: 0 0 0 0; \
2954                min: min_width min_height; \
2955             } \
2956          } \
2957          part { name: "over2"; \
2958             type: RECT; \
2959             repeat_events: 1; \
2960             description { state: "default" 0.0; \
2961                color: 0 0 0 0; \
2962             } \
2963          } \
2964          part { name: "disabler"; \
2965             type: RECT; \
2966             description { state: "default" 0.0; \
2967                color: 0 0 0 0; \
2968                visible: 0; \
2969             } \
2970             description { state: "disabled" 0.0; \
2971                inherit: "default" 0.0; \
2972                visible: 1; \
2973             } \
2974          } \
2975       } \
2976       programs { \
2977          program { name: "button_click"; \
2978             signal: "mouse,down,1"; \
2979             source: "over1"; \
2980             action: SIGNAL_EMIT "elm,action,press" ""; \
2981             after: "button_click_anim"; \
2982          } \
2983          program { name: "button_click_anim"; \
2984             action: STATE_SET "clicked" 0.0; \
2985             target: "button_image"; \
2986             target: "button_center_part"; \
2987             target: "icon_clipper"; \
2988          } \
2989          program { name: "button_double_click"; \
2990             signal: "mouse,down,1,double"; \
2991             source: "over1"; \
2992             after: "button_click_anim"; \
2993          } \
2994          program { name: "button_unclick"; \
2995             signal: "mouse,up,1"; \
2996             source: "over2"; \
2997             action: SIGNAL_EMIT "elm,action,unpress" ""; \
2998             after: "button_unclick_anim"; \
2999          } \
3000          program { name: "button_unclick_anim"; \
3001             action: STATE_SET "default" 0.0; \
3002             target: "button_image"; \
3003             target: "button_center_part"; \
3004             target: "icon_clipper"; \
3005          } \
3006          program { name: "touch_snd"; \
3007             signal: "mouse,clicked,1"; \
3008             source: "over1"; \
3009             action: PLAY_SAMPLE "touch_sound" 1.0; \
3010             after: button_unclick3; \
3011          } \
3012          program { name: "button_unclick3"; \
3013             action: SIGNAL_EMIT "elm,action,click" ""; \
3014          } \
3015          program { name: "disable"; \
3016             signal: "elm,state,disabled"; \
3017             source: "elm"; \
3018             action: STATE_SET "disabled" 0.0; \
3019             target: "disabler"; \
3020             target: "button_image"; \
3021             target: "button_center_part"; \
3022             target: "icon_clipper"; \
3023          } \
3024          program { name: "enable"; \
3025             signal: "elm,state,enabled"; \
3026             source: "elm"; \
3027             action: STATE_SET "default" 0.0; \
3028             target: "disabler"; \
3029             target: "button_image"; \
3030             target: "button_center_part"; \
3031             target: "icon_clipper"; \
3032          } \
3033       } \
3034    }
3035 ///////////////////////////////////////////////////////////////////////////////////////
3036    BUTTON_EDIT_STYLES("icon_plus", "00_button_add.png", "00_button_add_press.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
3037
3038 ///////////////////////////////////////////////////////////////////////////////////////
3039    BUTTON_EDIT_STYLES("icon_plus/extended", "00_button_add.png", "00_button_add_press.png", BUTTON_EDIT_EXTENDED_MIN_WIDTH_INC, BUTTON_EDIT_EXTENDED_MIN_HEIGHT_INC)
3040
3041 ///////////////////////////////////////////////////////////////////////////////////////
3042    BUTTON_EDIT_STYLES("icon_expand", "00_button_expand_closed.png", "00_button_expand_closed_press.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
3043
3044 ///////////////////////////////////////////////////////////////////////////////////////
3045    BUTTON_EDIT_STYLES("icon_expand/extended", "00_button_expand_closed.png", "00_button_expand_closed_press.png", BUTTON_EDIT_EXTENDED_MIN_WIDTH_INC, BUTTON_EDIT_EXTENDED_MIN_HEIGHT_INC)
3046
3047 ///////////////////////////////////////////////////////////////////////////////////////
3048    BUTTON_EDIT_STYLES("icon_expand_closed", "00_button_expand_closed.png", "00_button_expand_closed_press.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
3049
3050 ///////////////////////////////////////////////////////////////////////////////////////
3051    BUTTON_EDIT_STYLES("icon_expand_opened", "00_button_expand_opened.png", "00_button_expand_opened_press.png", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
3052
3053 ///////////////////////////////////////////////////////////////////////////////////////
3054
3055 #define BUTTON_EDIT_MINUS_STYLES(style_name, min_width, min_height) \
3056    group { name: "elm/button/base/contacts/"style_name; \
3057       alias: "elm/button/base/"style_name; \
3058       inherit: "elm/button/base/contacts/icon_plus"; \
3059       images { \
3060          image: "00_circle_button_delete.png" COMP; \
3061          image: "00_circle_button_delete_press.png" COMP; \
3062          image: "00_circle_button_delete_dim.png" COMP; \
3063          image: "00_button_delete.png" COMP; \
3064          image: "00_button_delete_press.png" COMP; \
3065       } \
3066       parts { \
3067          part { name: "button_image"; \
3068             scale: 1; \
3069             description { state: "default" 0.0; \
3070                image.normal: "00_circle_button_delete.png"; \
3071             } \
3072             description { state: "clicked" 0.0; \
3073                inherit: "default" 0.0; \
3074                image.normal: "00_circle_button_delete_press.png"; \
3075             } \
3076             description { state: "disabled" 0.0; \
3077                inherit: "default" 0.0; \
3078                image.normal: "00_circle_button_delete_dim.png"; \
3079             } \
3080          } \
3081          part { name: "button_center_part"; \
3082             mouse_events: 0; \
3083             scale: 1; \
3084             clip_to: "icon_clipper"; \
3085             description { state: "default" 0.0; \
3086                image.normal: "00_button_delete.png"; \
3087             } \
3088             description { \
3089                state: "clicked" 0.0; \
3090                inherit: "default" 0.0; \
3091                image.normal: "00_button_delete_press.png"; \
3092             } \
3093             description { state: "disabled" 0.0; \
3094                inherit: "default" 0.0; \
3095             } \
3096          } \
3097          part { name: "icon_clipper"; \
3098             scale: 1; \
3099             type: RECT; \
3100             description { state: "default" 0.0; \
3101                color: BUTTON_CIRCLE_STYLE_MINUS_NORMAL_COLOR_INC; \
3102             } \
3103             description { state: "clicked" 0.0; \
3104                color: BUTTON_CIRCLE_STYLE_MINUS_PRESSED_COLOR_INC; \
3105             } \
3106             description { state: "disabled" 0.0; \
3107                color: BUTTON_CIRCLE_STYLE_MINUS_DISABLED_COLOR_INC; \
3108             } \
3109          } \
3110          part { name: "over1"; \
3111             type: RECT; \
3112             repeat_events: 1; \
3113             ignore_flags: ON_HOLD; \
3114             description { state: "default" 0.0; \
3115                color: 0 0 0 0; \
3116                min: min_width min_height; \
3117             } \
3118          } \
3119       } \
3120    }
3121
3122 ///////////////////////////////////////////////////////////////////////////////////////
3123    BUTTON_EDIT_MINUS_STYLES("icon_minus", BUTTON_EDIT_NORMAL_MIN_WIDTH_INC, BUTTON_EDIT_NORMAL_MIN_HEIGHT_INC)
3124
3125 ///////////////////////////////////////////////////////////////////////////////////////
3126    BUTTON_EDIT_MINUS_STYLES("icon_minus/extended", BUTTON_EDIT_EXTENDED_MIN_WIDTH_INC, BUTTON_EDIT_EXTENDED_MIN_HEIGHT_INC)
3127
3128 ///////////////////////////////////////////////////////////////////////////////////////
3129 #define BUTTON_SCROLL_JUMPTO(style_name, image_normal)\
3130    group { name: "elm/button/base/"style_name; \
3131       images { \
3132          image: "00_button_01.png" COMP; \
3133          image: "00_button_01_press.png" COMP; \
3134          image: "00_button_01_dim.png" COMP; \
3135          image: image_normal COMP; \
3136       }\
3137       parts { \
3138          part { name: "button_image";\
3139             type: IMAGE; \
3140             scale: 1; \
3141             description { state: "default" 0.0; \
3142                min: BUTTON_JUMP_STYLE_BG_MIN_INC; \
3143                image { \
3144                   normal: "00_button_01.png"; \
3145                   border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC; \
3146                   border_scale: 1; \
3147                } \
3148             } \
3149             description { state: "clicked" 0.0; \
3150              inherit: "default" 0.0; \
3151              image.normal: "00_button_01_press.png"; \
3152             } \
3153             description { state: "disabled" 0.0; \
3154                inherit: "default" 0.0; \
3155                image.normal: "00_button_01_dim.png"; \
3156             } \
3157          } \
3158          part { name: "padding_left_top"; \
3159             type: SPACER; \
3160             scale: 1; \
3161             description { state: "default" 0.0; \
3162                align: 0.0 0.0; \
3163                rel2.relative: 0.0 0.0; \
3164                min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC; \
3165                fixed: 1 1; \
3166             } \
3167          } \
3168          part { name: "padding_right_bottom"; \
3169             type: SPACER; \
3170             scale: 1; \
3171             description { state: "default" 0.0; \
3172                align: 1.0 1.0; \
3173                rel1.relative: 1.0 1.0; \
3174                min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC; \
3175                fixed: 1 1; \
3176             } \
3177          } \
3178          part { name: "jump_image"; \
3179             type: IMAGE; \
3180             scale: 1; \
3181             description { state: "default" 0.0; \
3182                min: BUTTON_DEFAULT_STYLE_ICONONLY_ICON_MIN_INC; \
3183                max: 45 45; \
3184                rel1 { \
3185                   relative: 1.0 0.0; \
3186                   to_x: "padding_left_top"; \
3187                } \
3188                rel2 { \
3189                   relative: 0.0 1.0; \
3190                   to_x: "padding_right_bottom"; \
3191                } \
3192                image.normal: image_normal; \
3193                aspect: 1.0 1.0; \
3194                aspect_preference: VERTICAL; \
3195                color: BUTTON_JUMP_ICON_NORMAL_COLOR_INC; \
3196             } \
3197             description { state: "clicked" 0.0; \
3198                inherit: "default" 0.0; \
3199                color: BUTTON_JUMP_ICON_PRESSED_COLOR_INC; \
3200             } \
3201             description { state: "disabled" 0.0; \
3202                inherit: "default" 0.0; \
3203                color: BUTTON_JUMP_ICON_DIM_COLOR_INC; \
3204             } \
3205          } \
3206          part { name: "over1"; \
3207             type: RECT; \
3208             repeat_events: 1; \
3209             ignore_flags: ON_HOLD; \
3210             description { state: "default" 0.0; \
3211                color: 0 0 0 0; \
3212                rel1.relative: 0.0 0.0; \
3213                rel2.relative: 1.0 1.0; \
3214             } \
3215          } \
3216          part { name: "over2"; \
3217             type: RECT; \
3218             repeat_events: 1; \
3219             description { state: "default" 0.0; \
3220                color: 0 0 0 0; \
3221             } \
3222          } \
3223       } \
3224       programs { \
3225          program { name: "button_click"; \
3226             signal: "mouse,down,1"; \
3227             source: "over1"; \
3228             action: SIGNAL_EMIT "elm,action,press" ""; \
3229             after: "button_click_anim"; \
3230          } \
3231          program { name: "button_click_anim"; \
3232             action: STATE_SET "clicked" 0.0; \
3233             target: "button_image"; \
3234             target: "jump_image"; \
3235          } \
3236          program { name: "button_double_click"; \
3237             signal: "mouse,down,1,double"; \
3238             source: "over1"; \
3239             after: "button_click_anim"; \
3240          } \
3241          program { name: "button_unclick"; \
3242             signal: "mouse,up,1"; \
3243             source: "over2"; \
3244             action: SIGNAL_EMIT "elm,action,unpress" ""; \
3245             after: "button_unclick_anim"; \
3246          } \
3247          program { name: "button_unclick_anim"; \
3248             action: STATE_SET "default" 0.0; \
3249             target: "button_image"; \
3250             target: "jump_image"; \
3251          } \
3252          program { name: "touch_snd"; \
3253             signal: "mouse,clicked,1"; \
3254             source: "over1"; \
3255             action: PLAY_SAMPLE "touch_sound" 1.0; \
3256             after: button_unclick3; \
3257          } \
3258          program { name: "button_unclick3"; \
3259             action: SIGNAL_EMIT "elm,action,click" ""; \
3260          } \
3261          program { name: "disable"; \
3262             signal: "elm,state,disabled"; \
3263             source: "elm"; \
3264             action: STATE_SET "disabled" 0.0; \
3265             target: "button_image"; \
3266             target: "jump_image"; \
3267          } \
3268          program { name: "enable"; \
3269             signal: "elm,state,enabled"; \
3270             source: "elm"; \
3271             action: STATE_SET "default" 0.0; \
3272             target: "button_image"; \
3273             target: "jump_image"; \
3274          } \
3275       } \
3276    }
3277
3278 ////////////////////////////////////////////////////////////////////////
3279 BUTTON_SCROLL_JUMPTO("jumpto_top", "00_icon_jump.png")
3280 ////////////////////////////////////////////////////////////////////////
3281 BUTTON_SCROLL_JUMPTO("jumpto_left", "00_icon_jump_left.png")
3282
3283 ////////////////////////////////////////////////////////////////////////
3284    group { name: "elm/button/base/default";
3285       images {
3286          image: "00_button_01.png" COMP;
3287          image: "00_button_01_press.png" COMP;
3288          image: "00_button_01_dim.png" COMP;
3289       }
3290       script {
3291          public button_state = BUTTON_STATE_ENABLED;
3292       }
3293       parts {
3294          part { name: "button_image";
3295             scale: 1;
3296             description { state: "default" 0.0;
3297                min: BUTTON_DEFAULT_STYLE_BG_MIN_INC;
3298                image {
3299                   normal: "00_button_01.png";
3300                   border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC;
3301                   border_scale: 1;
3302                }
3303             }
3304             description { state: "clicked" 0.0;
3305                inherit: "default" 0.0;
3306                image.normal: "00_button_01_press.png";
3307             }
3308             description { state: "disabled" 0.0;
3309                inherit: "default" 0.0;
3310                image.normal: "00_button_01_dim.png";
3311             }
3312             description { state: "focused" 0.0;
3313                inherit: "default" 0.0;
3314                image.normal: "00_button_01_press.png";
3315             }
3316          }
3317          part { name: "padding_left_top";
3318             type: RECT;
3319             scale: 1;
3320             mouse_events: 0;
3321             description { state: "default" 0.0;
3322                align: 0.0 0.0;
3323                rel2.relative: 0.0 0.0;
3324                min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC;
3325                fixed: 1 1;
3326                visible: 0;
3327             }
3328          }
3329          part { name: "padding_right_bottom";
3330             type: RECT;
3331             scale: 1;
3332             mouse_events: 0;
3333             description { state: "default" 0.0;
3334                align: 1.0 1.0;
3335                rel1.relative: 1.0 1.0;
3336                min: BUTTON_DEFAULT_STYLE_PADDING_MIN_INC;
3337                fixed: 1 1;
3338                visible: 0;
3339             }
3340          }
3341          part { name: "padding_icon_text";
3342             type: RECT;
3343             scale: 1;
3344             mouse_events: 0;
3345             description { state: "default" 0.0; //when only icon or no icon is there
3346                visible: 0;
3347                fixed: 1 0;
3348                min: 0 0;
3349                rel1 {
3350                   relative: 1.0 0.0;
3351                   to: "elm.swallow.content";
3352                }
3353                rel2.to: "elm.swallow.content";
3354                align: 0.0 0.0;
3355             }
3356             description { state: "icononly" 0.0;
3357                inherit: "default" 0.0;
3358             }
3359             description { state: "visible" 0.0; //when icon is visible
3360                inherit: "default" 0.0;
3361                min: BUTTON_DEFAULT_STYLE_PADDING_ICON_TEXT_VISIBLE_MIN_INC;
3362             }
3363          }
3364          part { name: "elm.swallow.content";
3365             type: SWALLOW;
3366             scale: 1;
3367             clip_to: "disclip";
3368             description { state: "default" 0.0;
3369                visible: 0;
3370                fixed: 1 0;
3371                align: 0.0 0.5;
3372                rel1 {
3373                   relative: 1.0 1.0;
3374                   to: "padding_left_top";
3375                }
3376                rel2 {
3377                   relative: 1.0 0.0;
3378                   to_x: "padding_left_top";
3379                   to_y: "padding_right_bottom";
3380                }
3381             }
3382             description { state: "visible" 0.0;
3383                inherit: "default" 0.0;
3384                visible: 1;
3385                aspect: 1.0 1.0;
3386                aspect_preference: VERTICAL;
3387             }
3388             description { state: "icononly" 0.0;
3389                min: BUTTON_DEFAULT_STYLE_ICONONLY_ICON_MIN_INC;
3390                rel1 {
3391                   relative: 1.0 0.0;
3392                   to_x: "padding_left_top";
3393                }
3394                rel2 {
3395                   relative: 0.0 1.0;
3396                   to_x: "padding_right_bottom";
3397                }
3398                aspect: 1.0 1.0;
3399                aspect_preference: VERTICAL;
3400             }
3401          }
3402          part { name: "elm.text";
3403             type: TEXT;
3404             mouse_events: 0;
3405             scale: 1;
3406             clip_to: "disclip";
3407             effect: SHADOW BOTTOM;
3408             description { state: "default" 0.0;
3409                visible: 0;
3410                align: 0.0 0.5;
3411                rel1 {
3412                   relative: 1.0 1.0;
3413                   to_x: "padding_icon_text";
3414                   to_y: "padding_left_top";
3415                }
3416                rel2 {
3417                   relative: 0.0 0.0;
3418                   to: "padding_right_bottom";
3419                }
3420                color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_NORMAL_COLOR_INC;
3421                color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
3422                text {
3423                   font: "Tizen:style=Regular";
3424                   size: BUTTON_DEFAULT_STYLE_FONT_SIZE_INC;
3425                   min: 0 0;
3426                   text_class: "tizen";
3427                }
3428             }
3429             description { state: "visible" 0.0;
3430                inherit: "default" 0.0;
3431                visible: 1;
3432                min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3433             }
3434             description { state: "clicked" 0.0;
3435                inherit: "default" 0.0;
3436                visible: 1;
3437                min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3438                color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_PRESSED_COLOR_INC;
3439             }
3440             description { state: "disabled" 0.0;
3441                inherit: "default" 0.0;
3442             }
3443             description { state: "disabled_visible" 0.0;
3444                inherit: "default" 0.0;
3445                color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_DISABLED_COLOR_INC;
3446                color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
3447                visible: 1;
3448                min: BUTTON_DEFAULT_STYLE_TEXT_MIN_INC;
3449             }
3450             description { state: "focused" 0.0;
3451                inherit: "default" 0.0;
3452                visible: 1;
3453                min: 0 0;
3454                color: BUTTON_DEFAULT_STYLE_BUTTON_TEXT_FOCUSED_COLOR_INC;
3455             }
3456          }
3457          part { name: "over2";
3458             type: RECT;
3459             repeat_events: 1;
3460             ignore_flags: ON_HOLD;
3461             description { state: "default" 0.0;
3462                color: 0 0 0 0;
3463             }
3464          }
3465          part { name: "over3";
3466             type: RECT;
3467             repeat_events: 1;
3468             description { state: "default" 0.0;
3469                color: 0 0 0 0;
3470             }
3471          }
3472          part { name: "disclip";
3473             type: RECT;
3474             description { state: "default" 0.0;
3475                color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
3476             }
3477             description { state: "disabled" 0.0;
3478                inherit: "default" 0.0;
3479                color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
3480             }
3481          }
3482          part { name: "disabler";
3483             type: RECT;
3484             description { state: "default" 0.0;
3485                color: 0 0 0 0;
3486                visible: 0;
3487             }
3488             description { state: "disabled" 0.0;
3489                inherit: "default" 0.0;
3490                visible: 1;
3491             }
3492          }
3493       }
3494       programs {
3495          program { name: "button_click";
3496             signal: "mouse,down,1";
3497             source: "over3";
3498             action: SIGNAL_EMIT "elm,action,press" "";
3499             after: "button_click_anim";
3500          }
3501          program { name: "button_click_anim";
3502             action: STATE_SET "clicked" 0.0;
3503             target: "button_image";
3504             after: "text_clicked";
3505          }
3506          program { name: "text_clicked";
3507             script {
3508                new st[31];
3509                new Float:vl;
3510                get_state(PART:"elm.text", st, 30, vl);
3511                if (!strcmp(st, "visible"))
3512                  set_state(PART:"elm.text", "clicked", 0.0);
3513             }
3514          }
3515          program { name: "button_double_click";
3516             signal: "mouse,down,1,double";
3517             source: "over3";
3518             after: "button_click_anim";
3519          }
3520          program { name: "button_unpress";
3521             action: SIGNAL_EMIT "elm,action,unpress" "";
3522          }
3523          program { name: "button_mouseout_clicked";
3524             signal: "mouse,up,1";
3525             source: "over3";
3526             script {
3527                new st[31];
3528                new Float:vl;
3529                get_state(PART:"elm.swallow.content", st, 30, vl);
3530                if (strcmp(st, "icononly"))
3531                  {
3532                     emit("elm,action,default,text,set", "");
3533                     set_state(PART:"elm.text", "visible", 0.0);
3534                  }
3535                if (get_int(button_state) != BUTTON_STATE_DISABLED)
3536                  set_state(PART:"button_image", "default", 0.0);
3537             }
3538             after: button_unpress;
3539          }
3540          program { name: "touch_snd";
3541             signal: "mouse,clicked,1";
3542             source: "over2";
3543             action: PLAY_SAMPLE "touch_sound" 1.0;
3544             after: button_unclick3;
3545          }
3546          program { name: "button_unclick3";
3547             action: SIGNAL_EMIT "elm,action,click" "";
3548          }
3549          program { name: "text_show";
3550             signal: "elm,state,text,visible";
3551             source: "elm";
3552             script {
3553                new st[31];
3554                new Float:vl;
3555                get_state(PART:"elm.swallow.content", st, 30, vl);
3556                if (!strcmp(st, "icononly"))
3557                  {
3558                     set_state(PART:"elm.swallow.content", "visible", 0.0);
3559                     set_state(PART:"padding_icon_text", "visible", 0.0);
3560                  }
3561                if (get_int(button_state) != BUTTON_STATE_DISABLED)
3562                  set_state(PART:"elm.text", "visible", 0.0);
3563                else
3564                  set_state(PART:"elm.text", "disabled_visible", 0.0);
3565             }
3566          }
3567          program { name: "text_hide";
3568             signal: "elm,state,text,hidden";
3569             source: "elm";
3570             script {
3571                new st[31];
3572                new Float:vl;
3573                get_state(PART:"elm.swallow.content", st, 30, vl);
3574                if (!strcmp(st, "visible"))
3575                  {
3576                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
3577                     set_state(PART:"padding_icon_text", "icononly", 0.0);
3578                  }
3579                set_state(PART:"elm.text", "default", 0.0);
3580             }
3581          }
3582          program { name: "icon_show";
3583             signal: "elm,state,icon,visible";
3584             source: "elm";
3585             script {
3586                new st[31];
3587                new Float:vl;
3588                get_state(PART:"elm.text", st, 30, vl);
3589                if (!strcmp(st, "visible"))
3590                  {
3591                     set_state(PART:"elm.swallow.content", "visible", 0.0);
3592                     set_state(PART:"padding_icon_text", "visible", 0.0);
3593                  }
3594                else
3595                  {
3596                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
3597                     set_state(PART:"padding_icon_text", "icononly", 0.0);
3598                  }
3599             }
3600          }
3601          program { name: "icon_hide";
3602             signal: "elm,state,icon,hidden";
3603             source: "elm";
3604             action: STATE_SET "default" 0.0;
3605             target: "elm.swallow.content";
3606             target: "padding_icon_text";
3607          }
3608          program { name: "disable";
3609             signal: "elm,state,disabled";
3610             source: "elm";
3611             action: STATE_SET "disabled" 0.0;
3612             target: "button_image";
3613             target: "disabler";
3614             target: "disclip";
3615             after: "disable_text";
3616          }
3617          program { name: "disable_text";
3618             script {
3619                new st[31];
3620                new Float:vl;
3621                get_state(PART:"elm.text", st, 30, vl);
3622                if (!strcmp(st, "visible"))
3623                  set_state(PART:"elm.text", "disabled_visible", 0.0);
3624                else
3625                  set_state(PART:"elm.text", "disabled", 0.0);
3626                set_int(button_state, BUTTON_STATE_DISABLED);
3627             }
3628          }
3629          program { name: "enable";
3630             signal: "elm,state,enabled";
3631             source: "elm";
3632             action: STATE_SET "default" 0.0;
3633             target: "button_image";
3634             target: "disabler";
3635             target: "disclip";
3636             after: "enable_text";
3637          }
3638          program { name: "enable_text";
3639             script {
3640                new st[31];
3641                new Float:vl;
3642                get_state(PART:"elm.text", st, 30, vl);
3643                if (!strcmp(st, "disabled_visible"))
3644                  set_state(PART:"elm.text", "visible", 0.0);
3645                else
3646                  set_state(PART:"elm.text", "default", 0.0);
3647                set_int(button_state, BUTTON_STATE_ENABLED);
3648             }
3649          }
3650          program { name: "focused";
3651             //signal: "elm,action,focus";
3652             //source: "elm";
3653             action: STATE_SET "focused" 0.0;
3654             target: "button_image";
3655             target: "elm.text";
3656          }
3657          program { name: "unfocused";
3658             //signal: "elm,action,unfocus";
3659             //source: "elm";
3660             action: STATE_SET "default" 0.0;
3661             target: "button_image";
3662             after: "unfocus_text";
3663          }
3664          program { name: "unfocus_text";
3665             action: STATE_SET "visible" 0.0;
3666             target: "elm.text";
3667          }
3668       }
3669    }
3670
3671 ///////////////////////////////////////////////////////////////////////////////////////
3672    group { name: "elm/button/base/multiline";
3673       alias: "elm/button/base/text_only/multiline";
3674       inherit: "elm/button/base/default";
3675       styles{
3676          style { name: "btn_multiline_style";
3677             base: "font=Tizen:style=Regular font_size="BUTTON_TEXT_STYLE1_MULTILINE_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed ellipsis=1.0 text_class=tizen";
3678             tag: "br" "\n";
3679             tag: "ps" "ps";
3680             tag: "tab" "\t";
3681          }
3682       }
3683       parts {
3684          part { name: "button_image";
3685             scale: 1;
3686             description { state: "default" 0.0;
3687                min: BUTTON_DEFAULT_STYLE_MULTILINE_BG_MIN_INC;
3688                image {
3689                   normal: "00_button_01.png";
3690                   border: BUTTON_DEFAULT_STYLE_BG_BORDER_INC;
3691                   border_scale: 1;
3692                }
3693             }
3694             description { state: "clicked" 0.0;
3695                inherit: "default" 0.0;
3696                image.normal: "00_button_01_press.png";
3697             }
3698             description { state: "disabled" 0.0;
3699                inherit: "default" 0.0;
3700                image.normal: "00_button_01_dim.png";
3701             }
3702             description { state: "focused" 0.0;
3703                inherit: "default" 0.0;
3704                image.normal: "00_button_01_press.png";
3705             }
3706          }
3707          part { name: "padding_left_top";
3708             type: RECT;
3709             scale: 1;
3710             mouse_events: 0;
3711             description { state: "default" 0.0;
3712                align: 0.0 0.0;
3713                rel2.relative: 0.0 0.0;
3714                min: BUTTON_DEFAULT_STYLE_MULTILINE_PADDING_MIN_INC;
3715                fixed: 1 1;
3716                visible: 0;
3717             }
3718          }
3719          part { name: "padding_right_bottom";
3720             type: RECT;
3721             scale: 1;
3722             mouse_events: 0;
3723             description { state: "default" 0.0;
3724                align: 1.0 1.0;
3725                rel1.relative: 1.0 1.0;
3726                min: BUTTON_DEFAULT_STYLE_MULTILINE_PADDING_MIN_INC;
3727                fixed: 1 1;
3728                visible: 0;
3729             }
3730          }
3731          part { name: "elm.text";
3732             type: TEXTBLOCK;
3733             mouse_events: 0;
3734             scale: 1;
3735             clip_to: "disclip";
3736             description { state: "default" 0.0;
3737                visible: 0;
3738                rel1 {
3739                   relative: 1.0 1.0;
3740                   to_x: "padding_icon_text";
3741                   to_y: "padding_left_top";
3742                }
3743                rel2 {
3744                   relative: 0.0 0.0;
3745                   to: "padding_right_bottom";
3746                }
3747                color: BUTTON_TEXT_STYLE1_NORMAL_COLOR_INC;
3748                text {
3749                   style: "btn_multiline_style";
3750                }
3751             }
3752             description { state: "visible" 0.0;
3753                inherit: "default" 0.0;
3754                visible: 1;
3755                min: 80 0;
3756             }
3757             description { state: "clicked" 0.0;
3758                inherit: "default" 0.0;
3759                visible: 1;
3760                min: 0 0;
3761                color: BUTTON_TEXT_STYLE1_PRESSED_COLOR_INC;
3762             }
3763             description { state: "disabled" 0.0;
3764                inherit: "default" 0.0;
3765             }
3766             description { state: "disabled_visible" 0.0;
3767                inherit: "default" 0.0;
3768                color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
3769                visible: 1;
3770                min: 80 0;
3771             }
3772             description { state: "focused" 0.0;
3773                inherit: "default" 0.0;
3774                visible: 1;
3775                min: 0 0;
3776                color: BUTTON_TEXT_STYLE1_DISABLED_COLOR_INC;
3777             }
3778          }
3779       }
3780    }
3781
3782 ///////////////////////////////////////////////////////////////////////////////////////
3783 #define BUTTON_COLORSELECTOR_STYLES(style_name, image_normal, image_press) \
3784    group { name: "elm/button/base/"style_name; \
3785       images { \
3786          image: image_normal COMP; \
3787          image: image_press COMP; \
3788          image: image_dim COMP; \
3789          image: "00_button_01.png" COMP; \
3790          image: "00_button_01_press.png" COMP; \
3791       } \
3792       parts { \
3793          part { name: "button_image"; \
3794             scale: 1; \
3795             description { state: "default" 0.0; \
3796                min: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
3797                max: BUTTON_COLORSELECTOR_BG_DEFAULT_MIN_INC; \
3798                image { \
3799                   normal: "00_button_01.png"; \
3800                   border: BUTTON_COLORSELECTOR_BG_BORDER_INC; \
3801                   border_scale: 1; \
3802                } \
3803             } \
3804             description { \
3805                state: "clicked" 0.0; \
3806                inherit: "default" 0.0; \
3807                image.normal: "00_button_01_press.png"; \
3808             } \
3809             description { \
3810                state: "disabled" 0.0; \
3811                inherit: "default" 0.0; \
3812                image.normal: "00_button_01_dim.png"; \
3813             } \
3814             description { \
3815                state: "focused" 0.0; \
3816                inherit: "default" 0.0; \
3817                image.normal: "00_button_01_press.png"; \
3818             } \
3819          } \
3820          part { name: "button_center_part"; \
3821             scale: 1; \
3822             clip_to: "icon_clipper"; \
3823             description { state: "default" 0.0; \
3824                min: BUTTON_COLORSELECTOR_IMAGE_MIN_MAX_INC; \
3825                max: BUTTON_COLORSELECTOR_IMAGE_MIN_MAX_INC; \
3826                image.normal: image_normal; \
3827             } \
3828             description { \
3829                state: "clicked" 0.0; \
3830                inherit: "default" 0.0; \
3831                image.normal: image_press; \
3832             } \
3833             description { \
3834                state: "disabled" 0.0; \
3835                inherit: "default" 0.0; \
3836             } \
3837          } \
3838          part { name: "icon_clipper"; \
3839             type: RECT; \
3840             scale: 1; \
3841             description { state: "default" 0.0; \
3842                color: BUTTON_TEXT_COLORSELECTOR_NORMAL_COLOR_INC; \
3843             } \
3844             description { state: "clicked" 0.0; \
3845                color: BUTTON_TEXT_COLORSELECTOR_PRESSED_COLOR_INC; \
3846             } \
3847             description { state: "disabled" 0.0; \
3848                color: BUTTON_TEXT_COLORSELECTOR_DISABLED_COLOR_INC; \
3849             } \
3850          } \
3851          part { name: "over1"; \
3852             type: RECT; \
3853             ignore_flags: ON_HOLD; \
3854             description { state: "default" 0.0; \
3855                color: 0 0 0 0; \
3856             } \
3857          } \
3858          part { name: "over2"; \
3859             type: RECT; \
3860             repeat_events: 1; \
3861             description { state: "default" 0.0; \
3862                color: 0 0 0 0; \
3863             } \
3864          } \
3865          part { name: "disabler"; \
3866             type: RECT; \
3867             description { state: "default" 0.0; \
3868                color: 0 0 0 0; \
3869                visible: 0; \
3870             } \
3871             description { state: "disabled" 0.0; \
3872                inherit: "default" 0.0; \
3873                visible: 1; \
3874             } \
3875          } \
3876       } \
3877       programs { \
3878          program { name: "button_click"; \
3879             signal: "mouse,down,1"; \
3880             source: "over1"; \
3881             action: SIGNAL_EMIT "elm,action,press" ""; \
3882             after: "button_click_anim"; \
3883          } \
3884          program { name: "button_click_anim"; \
3885             action: STATE_SET "clicked" 0.0; \
3886             target: "button_image"; \
3887             target: "button_center_part"; \
3888             target: ""icon_clipper""; \
3889          } \
3890          program { name: "button_double_click"; \
3891             signal: "mouse,down,1,double"; \
3892             source: "over1"; \
3893             after: "button_click_anim"; \
3894          } \
3895          program { name: "button_unclick"; \
3896             signal: "mouse,up,1"; \
3897             source: "over2"; \
3898             action: SIGNAL_EMIT "elm,action,unpress" ""; \
3899             after: "button_unclick_anim"; \
3900          } \
3901          program { name: "button_unclick_anim"; \
3902             action: STATE_SET "default" 0.0; \
3903             target: "button_image"; \
3904             target: "button_center_part"; \
3905             target: ""icon_clipper""; \
3906          } \
3907          program { name: "touch_snd"; \
3908             signal: "mouse,clicked,1"; \
3909             source: "over1"; \
3910             action: PLAY_SAMPLE "touch_sound" 1.0; \
3911             after: button_unclick3; \
3912          } \
3913          program { name: "button_unclick3"; \
3914             action: SIGNAL_EMIT "elm,action,click" ""; \
3915          } \
3916          program { name: "disable"; \
3917             signal: "elm,state,disabled"; \
3918             source: "elm"; \
3919             action: STATE_SET "disabled" 0.0; \
3920             target: "disabler"; \
3921             target: "button_image"; \
3922             target: "button_center_part"; \
3923             target: ""icon_clipper""; \
3924          } \
3925          program { name: "enable"; \
3926             signal: "elm,state,enabled"; \
3927             source: "elm"; \
3928             action: STATE_SET "default" 0.0; \
3929             target: "disabler"; \
3930             target: "button_image"; \
3931             target: "button_center_part"; \
3932             target: ""icon_clipper""; \
3933          } \
3934       } \
3935    }
3936 ///////////////////////////////////////////////////////////////////////////////////////
3937    BUTTON_COLORSELECTOR_STYLES("colorselector/left/default", "00_button_left.png", "00_button_left_press.png")
3938 ///////////////////////////////////////////////////////////////////////////////////////
3939    BUTTON_COLORSELECTOR_STYLES("colorselector/right/default", "00_button_right.png", "00_button_right_press.png")
3940 ///////////////////////////////////////////////////////////////////////////////////////
3941
3942    group { name: "elm/button/base/multibuttonentry";
3943       alias: "elm/button/base/text_only/multibuttonentry";
3944       images {
3945          image: "00_contacts_button.png" COMP;
3946          image: "00_contacts_button_press.png" COMP;
3947       }
3948       script {
3949          public button_state = BUTTON_STATE_ENABLED;
3950       }
3951       parts {
3952          part { name: "button_image";
3953             scale: 1;
3954             description { state: "default" 0.0;
3955                rel1 {
3956                   to_x: "padding.left";
3957                   to_y: "elm.text";
3958                }
3959                rel2 {
3960                   to_x: "padding.right";
3961                   to_y: "elm.text";
3962                }
3963                min: BUTTON_CONTACT_BG_MIN_INC;
3964                image {
3965                   normal: "00_contacts_button.png";
3966                   border: BUTTON_CONTACT_BG_BORDER_INC;
3967                   border_scale: 1;
3968                }
3969             }
3970             description { state: "clicked" 0.0;
3971                inherit: "default" 0.0;
3972                image.normal: "00_contacts_button_press.png";
3973             }
3974             description { state: "disabled" 0.0;
3975                inherit: "default" 0.0;
3976             }
3977             description { state: "focused" 0.0;
3978                inherit: "default" 0.0;
3979                image.normal: "00_contacts_button_press.png";
3980             }
3981          }
3982          part { name: "padding.left";
3983             type: RECT;
3984             scale: 1;
3985             description { state: "default" 0.0;
3986                visible: 0;
3987                min: BUTTON_CONTACT_LEFT_PADDING_MIN_INC;
3988                fixed: 1 0;
3989                color: 0 0 0 0;
3990                rel2 {
3991                   relative: 0.0 1.0;
3992                   to_x: "elm.text";
3993                }
3994                align: 1.0 0.0;
3995             }
3996          }
3997          part { name: "padding.right";
3998             type: RECT;
3999             scale: 1;
4000             description { state: "default" 0.0;
4001                visible: 0;
4002                min: BUTTON_CONTACT_RIGHT_PADDING_MIN_INC;
4003                fixed: 1 0;
4004                color: 0 0 0 0;
4005                rel1 {
4006                   relative: 1.0 0.0;
4007                   to_x: "elm.text";
4008                }
4009                align: 0.0 0.0;
4010             }
4011          }
4012          part {   name: "elm.text";
4013             type: TEXT;
4014             mouse_events: 0;
4015             scale: 1;
4016             description { state: "default" 0.0;
4017                visible: 0;
4018                fixed: 1 1;
4019                color: BUTTON_CONTACT_BUTTON_TEXT_NORMAL_COLOR_INC;
4020                text {
4021                   font: "Tizen:style=Regular";
4022                   size: BUTTON_CONTACT_FONT_SIZE_INC;
4023                   min: 1 1;
4024                   text_class: "tizen";
4025                }
4026             }
4027             description { state: "visible" 0.0;
4028                inherit: "default" 0.0;
4029                visible: 1;
4030                min: 1 1;
4031             }
4032             description { state: "clicked" 0.0;
4033                inherit: "default" 0.0;
4034                visible: 1;
4035                min: 1 1;
4036                color: BUTTON_CONTACT_BUTTON_TEXT_PRESSED_COLOR_INC;
4037             }
4038             description { state: "disabled" 0.0;
4039                inherit: "default" 0.0;
4040             }
4041             description { state: "disabled_visible" 0.0;
4042                inherit: "default" 0.0;
4043                color: BUTTON_CONTACT_BUTTON_TEXT_DISABLED_COLOR_INC;
4044                visible: 1;
4045                min: 1 1;
4046             }
4047             description { state: "focused" 0.0;
4048                inherit: "default" 0.0;
4049                visible: 1;
4050                min: 1 1;
4051                color: BUTTON_CONTACT_BUTTON_TEXT_FOCUSED_COLOR_INC;
4052             }
4053          }
4054          part { name: "over1";
4055             type: RECT;
4056             mouse_events: 0;
4057             description { state: "default" 0.0;
4058                rel2.relative: 1.0 0.5;
4059                color: 0 0 0 0;
4060             }
4061          }
4062          part { name: "over2";
4063             type: RECT;
4064             repeat_events: 1;
4065             ignore_flags: ON_HOLD;
4066             description { state: "default" 0.0;
4067                rel1.to: "button_image";
4068                rel2.to: "button_image";
4069                color: 0 0 0 0;
4070             }
4071          }
4072          part { name: "over3";
4073             type: RECT;
4074             repeat_events: 1;
4075             description { state: "default" 0.0;
4076                rel1.to: "button_image";
4077                rel2.to: "button_image";
4078                color: 0 0 0 0;
4079             }
4080          }
4081          part { name: "disabler";
4082             type: RECT;
4083             description { state: "default" 0.0;
4084                rel1.to: "button_image";
4085                rel2.to: "button_image";
4086                color: 0 0 0 0;
4087                visible: 0;
4088             }
4089             description { state: "disabled" 0.0;
4090                inherit: "default" 0.0;
4091                visible: 1;
4092             }
4093          }
4094       }
4095       programs {
4096          program { name: "button_click";
4097             signal: "mouse,down,1";
4098             source: "over2";
4099             action: SIGNAL_EMIT "elm,action,press" "";
4100             after: "button_click_anim";
4101          }
4102          program { name: "button_click_anim";
4103             action: STATE_SET "clicked" 0.0;
4104             target: "button_image";
4105             target: "elm.text";
4106          }
4107          program { name: "button_double_click";
4108             signal: "mouse,down,1,double";
4109             source: "over2";
4110             after: "button_click_anim";
4111          }
4112          program { name: "button_unpress";
4113             action: SIGNAL_EMIT "elm,action,unpress" "";
4114          }
4115          program { name: "button_mouseout_clicked";
4116             signal: "mouse,up,1";
4117             source: "over3";
4118             script {
4119                new st[31];
4120                new Float:vl;
4121                get_state(PART:"elm.text", st, 30, vl);
4122                if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
4123                  {
4124                     emit("elm,action,default,text,set", "");
4125                     set_state(PART:"elm.text", "visible", 0.0);
4126                  }
4127                if (get_int(button_state) != BUTTON_STATE_DISABLED)
4128                  set_state(PART:"button_image", "default", 0.0);
4129             }
4130             after: button_unpress;
4131          }
4132          program { name: "touch_snd";
4133             signal: "mouse,clicked,1";
4134             source: "over2";
4135             action: PLAY_SAMPLE "touch_sound" 1.0;
4136             after: button_unclick3;
4137          }
4138          program { name: "button_unclick3";
4139             action: SIGNAL_EMIT "elm,action,click" "";
4140          }
4141          program { name: "text_show";
4142             signal: "elm,state,text,visible";
4143             source: "elm";
4144             script {
4145                if (get_int(button_state) != BUTTON_STATE_DISABLED)
4146                  set_state(PART:"elm.text", "visible", 0.0);
4147                else
4148                  set_state(PART:"elm.text", "disabled_visible", 0.0);
4149             }
4150          }
4151          program { name: "text_hide";
4152             signal: "elm,state,text,hidden";
4153             source: "elm";
4154             action: STATE_SET "default" 0.0;
4155             target: "elm.text";
4156          }
4157          program { name: "disable";
4158             signal: "elm,state,disabled";
4159             source: "elm";
4160             action: STATE_SET "disabled" 0.0;
4161             target: "button_image";
4162             target: "disabler";
4163             after: "disable_text";
4164          }
4165          program { name: "disable_text";
4166             script {
4167                new st[31];
4168                new Float:vl;
4169                get_state(PART:"elm.text", st, 30, vl);
4170                if (!strcmp(st, "visible"))
4171                  set_state(PART:"elm.text", "disabled_visible", 0.0);
4172                else
4173                  set_state(PART:"elm.text", "disabled", 0.0);
4174                set_int(button_state, BUTTON_STATE_DISABLED);
4175             }
4176          }
4177          program { name: "enable";
4178             signal: "elm,state,enabled";
4179             source: "elm";
4180             action: STATE_SET "default" 0.0;
4181             target: "button_image";
4182             target: "disabler";
4183             after: "enable_text";
4184          }
4185          program { name: "enable_text";
4186             script {
4187                new st[31];
4188                new Float:vl;
4189                get_state(PART:"elm.text", st, 30, vl);
4190                if (!strcmp(st, "disabled_visible"))
4191                  set_state(PART:"elm.text", "visible", 0.0);
4192                else
4193                  set_state(PART:"elm.text", "default", 0.0);
4194                set_int(button_state, BUTTON_STATE_ENABLED);
4195             }
4196          }
4197          program { name: "focused";
4198             //signal: "elm,action,focus";
4199             //source: "elm";
4200             action: STATE_SET "focused" 0.0;
4201             target: "button_image";
4202             target: "elm.text";
4203          }
4204          program { name: "unfocused";
4205             //signal: "elm,action,unfocus";
4206             //source: "elm";
4207             action: STATE_SET "default" 0.0;
4208             target: "button_image";
4209             action: STATE_SET "visible" 0.0;
4210             target: "elm.text";
4211          }
4212       }
4213    }
4214
4215 ///////////////////////////////////////////////////////////////////////////////////////
4216    group { name: "elm/button/base/naviframe/back_btn/default";
4217       alias: "elm/button/base/naviframe/prev_btn/default";
4218       alias: "elm/button/base/naviframe/end_btn/default";
4219       images {
4220          image: "00_icon_back.png" COMP;
4221          image: "00_icon_SIP_close.png" COMP;
4222       }
4223       parts {
4224          part { name: "button_image";
4225             type: RECT;
4226             scale: 1;
4227             description { state: "default" 0.0;
4228                min: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
4229                max: BUTTON_NAVIFRAME_BACK_BUTTON_BG_MIN_MAX_INC;
4230                visible: 0;
4231             }
4232             description { state: "landscape" 0.0;
4233                min: BUTTON_NAVIFRAME_LANDSCAPE_BACK_BUTTON_BG_MIN_MAX_INC;
4234                max: BUTTON_NAVIFRAME_LANDSCAPE_BACK_BUTTON_BG_MIN_MAX_INC;
4235                visible: 0;
4236             }
4237          }
4238          part { name: "back_button";
4239             scale: 1;
4240             mouse_events: 0;
4241             clip_to: "back_button.clipper";
4242             description { state: "default" 0.0;
4243                min: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
4244                max: BUTTON_NAVIFRAME_BACK_BUTTON_MIN_MAX_INC;
4245                fixed: 1 1;
4246                rel1.to: "button_image";
4247                rel2.to: "button_image";
4248                image.normal: "00_icon_back.png";
4249             }
4250             description { state: "compress" 0.0;
4251                inherit: "default" 0.0;
4252                image.normal: "00_icon_SIP_close.png";
4253             }
4254          }
4255          part { name: "back_button.clipper";
4256             type: RECT;
4257             description { state: "default" 0.0;
4258                color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_COLOR_INC;
4259             }
4260             description { state: "clicked" 0.0;
4261                color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_COLOR_INC;
4262             }
4263             description { state: "disabled" 0.0;
4264                color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
4265             }
4266          }
4267          part { name: "over2";
4268             type: RECT;
4269             ignore_flags: ON_HOLD;
4270             description { state: "default" 0.0;
4271                color: 0 0 0 0;
4272             }
4273          }
4274          part { name: "over3";
4275             type: RECT;
4276             repeat_events: 1;
4277             description { state: "default" 0.0;
4278                color: 0 0 0 0;
4279             }
4280          }
4281          part { name: "disabler";
4282             type: RECT;
4283             description { state: "default" 0.0;
4284                color: 0 0 0 0;
4285                visible: 0;
4286             }
4287             description { state: "disabled" 0.0;
4288                inherit: "default" 0.0;
4289                visible: 1;
4290             }
4291          }
4292       }
4293       programs {
4294          program { name: "button_click";
4295             signal: "mouse,down,1";
4296             source: "over2";
4297             action: SIGNAL_EMIT "elm,action,press" "";
4298             after: "button_click_anim";
4299          }
4300          program { name: "button_click_anim";
4301             script {
4302                set_state(PART:"back_button.clipper", "clicked", 0.0);
4303             }
4304          }
4305          program { name: "button_double_click";
4306             signal: "mouse,down,1,double";
4307             source: "over2";
4308             after: "button_click_anim";
4309          }
4310          program { name: "button_unclick";
4311             signal: "mouse,up,1";
4312             source: "over3";
4313             action: SIGNAL_EMIT "elm,action,unpress" "";
4314             after: "button_unclick_anim";
4315          }
4316          program { name: "button_unclick_anim";
4317             script {
4318                set_state(PART:"back_button.clipper", "default", 0.0);
4319             }
4320          }
4321          program { name: "touch_snd";
4322             signal: "mouse,clicked,1";
4323             source: "over2";
4324             action: PLAY_SAMPLE "touch_sound" 1.0;
4325             after: button_unclick3;
4326          }
4327          program { name: "button_unclick3";
4328             action: SIGNAL_EMIT "elm,action,click" "";
4329          }
4330          program { name: "disable";
4331             signal: "elm,state,disabled";
4332             source: "elm";
4333             script {
4334                set_state(PART:"back_button.clipper", "disabled", 0.0);
4335             }
4336          }
4337          program { name: "enable";
4338             signal: "elm,state,enabled";
4339             source: "elm";
4340             script {
4341                set_state(PART:"back_button.clipper", "default", 0.0);
4342             }
4343          }
4344          program { name: "change_to_landscape";
4345             signal: "elm,state,landscape";
4346             source: "elm";
4347             action: STATE_SET "landscape" 0.0;
4348             target: "button_image";
4349          }
4350          program { name: "change_to_portrait";
4351             signal: "elm,state,portrait";
4352             source: "elm";
4353             action: STATE_SET "default" 0.0;
4354             target: "button_image";
4355          }
4356          program { name: "landscape_mode";
4357             source: "elm";
4358             signal: "elm,state,orient,90";
4359             action: SIGNAL_EMIT "elm,state,landscape" "elm";
4360          }
4361          program { name: "landscape_mode2";
4362             source: "elm";
4363             signal: "elm,state,orient,270";
4364             action: SIGNAL_EMIT "elm,state,landscape" "elm";
4365          }
4366          program { name: "portrait_mode";
4367             source: "elm";
4368             signal: "elm,state,orient,0";
4369             action: SIGNAL_EMIT "elm,state,portrait" "elm";
4370          }
4371          program { name: "portrait_mode2";
4372             source: "elm";
4373             signal: "elm,state,orient,180";
4374             action: SIGNAL_EMIT "elm,state,portrait" "elm";
4375          }
4376          program { name: "display_compress_mode";
4377             signal: "elm,state,display,compress";
4378             source: "elm";
4379             action: STATE_SET "compress" 0.0;
4380             target: "back_button";
4381          }
4382          program { name: "display_default_mode";
4383             signal: "elm,state,display,default";
4384             source: "elm";
4385             action: STATE_SET "default" 0.0;
4386             target: "back_button";
4387          }
4388       }
4389    }
4390
4391 //////////////////////////////////////////////////////////////
4392    group { name: "elm/button/base/naviframe/toolbar/default";
4393       alias: "elm/button/base/naviframe/title/default";
4394       images {
4395          image: "00_toolbar_button.png" COMP;
4396          image: "00_toolbar_button_press.png" COMP;
4397          image: "00_toolbar_button_dim.png" COMP;
4398          image: "00_badge_bg.png" COMP;
4399       }
4400       styles{
4401          style { name: "btn_naviframe_toolbar";
4402             base: "font=Tizen:style=Bold font_size="BUTTON_NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC" align=center color=#ffffff ellipsis=1.0 wrap=none text_class=tizen";
4403             tag: "br" "\n";
4404             tag: "ps" "ps";
4405             tag: "tab" "\t";
4406          }
4407       }
4408       script {
4409          public button_state = BUTTON_STATE_ENABLED;
4410       }
4411       parts {
4412          part { name: "button_image";
4413             scale: 1;
4414             description { state: "default" 0.0;
4415                min: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MIN_INC;
4416                max: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MAX_INC;
4417                fixed: 1 1;
4418                rel1.to: "padding_text_left_top";
4419                rel2.to: "padding_text_right_bottom";
4420                image {
4421                   normal: "00_toolbar_button.png";
4422                   border: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_BORDER_INC;
4423                   border_scale: 1;
4424                }
4425             }
4426             description { state: "clicked" 0.0;
4427                inherit: "default" 0.0;
4428                image.normal: "00_toolbar_button_press.png";
4429             }
4430             description { state: "disabled" 0.0;
4431                inherit: "default" 0.0;
4432                image.normal: "00_toolbar_button_dim.png";
4433             }
4434             description { state: "focused" 0.0;
4435                inherit: "default" 0.0;
4436                image.normal: "00_toolbar_button_press.png";
4437             }
4438          }
4439          part { name: "padding_left_top";
4440             type: RECT;
4441             scale: 1;
4442             mouse_events: 0;
4443             description { state: "default" 0.0;
4444                visible: 0;
4445                align: 0.0 0.0;
4446                rel2.relative: 0.0 0.0;
4447                min: BUTTON_NAVIFRAME_TITLE_TEXT_PADDING_MIN_INC;
4448                fixed: 1 1;
4449             }
4450          }
4451          part { name: "padding_right_bottom";
4452             type: RECT;
4453             scale: 1;
4454             mouse_events: 0;
4455             description { state: "default" 0.0;
4456                align: 1.0 1.0;
4457                rel1.relative: 1.0 1.0;
4458                min: BUTTON_NAVIFRAME_TITLE_TEXT_PADDING_MIN_INC;
4459                fixed: 1 1;
4460                visible: 0;
4461             }
4462          }
4463          part { name: "padding_text_left_top";
4464             type: RECT;
4465             scale: 1;
4466             mouse_events: 0;
4467             description { state: "default" 0.0;
4468                visible: 0;
4469                min: BUTTON_NAVIFRAME_TITLE_TEXT_PADDING_MIN_INC;
4470                fixed: 1 1;
4471                rel1.to: "elm.text";
4472                rel2 {
4473                   relative: 0.0 0.0;
4474                   to: "elm.text";
4475                }
4476                align: 1.0 0.0;
4477             }
4478          }
4479          part { name: "padding_text_right_bottom";
4480             type: RECT;
4481             scale: 1;
4482             mouse_events: 0;
4483             description { state: "default" 0.0;
4484                min: BUTTON_NAVIFRAME_TITLE_TEXT_PADDING_MIN_INC;
4485                fixed: 1 1;
4486                visible: 0;
4487                rel1 {
4488                   relative: 1.0 1.0;
4489                   to: "elm.text";
4490                }
4491                rel2.to: "elm.text";
4492                align: 0.0 0.0;
4493             }
4494          }
4495          part { name: "elm.text";
4496             type: TEXTBLOCK;
4497             clip_to: "disclip";
4498             mouse_events: 0;
4499             effect: FAR_SHADOW BOTTOM;
4500             scale: 1;
4501             description { state: "default" 0.0;
4502                visible: 0;
4503                fixed: 1 1;
4504                min: BUTTON_NAVIFRAME_TITLE_TEXTBLOCK_MIN_INC;
4505                rel1 {
4506                   relative: 1.0 1.0;
4507                   to: "padding_left_top";
4508                }
4509                rel2 {
4510                   relative: 0.0 0.0;
4511                   to: "padding_right_bottom";
4512                }
4513                color: BUTTON_NAVIFRAME_TITLE_TEXT_NORMAL_COLOR_INC;
4514                color2: BUTTON_NAVIFRAME_TEXT_SHADOW_NORMAL_COLOR_INC;
4515                text {
4516                   min: 0 1;
4517                   max: 1 1;
4518                   style: "btn_naviframe_toolbar";
4519                }
4520             }
4521             description { state: "visible" 0.0;
4522                inherit: "default" 0.0;
4523                visible: 1;
4524             }
4525             description { state: "clicked" 0.0;
4526                inherit: "default" 0.0;
4527                visible: 1;
4528                color: BUTTON_NAVIFRAME_TITLE_TEXT_PRESSED_COLOR_INC;
4529             }
4530             description { state: "disabled" 0.0;
4531                inherit: "default" 0.0;
4532             }
4533             description { state: "disabled_visible" 0.0;
4534                inherit: "default" 0.0;
4535                color: BUTTON_NAVIFRAME_TITLE_TEXT_DISABLED_COLOR_INC;
4536                color2: BUTTON_NAVIFRAME_TEXT_SHADOW_NORMAL_COLOR_INC;
4537                visible: 1;
4538             }
4539             description { state: "focused" 0.0;
4540                inherit: "default" 0.0;
4541                visible: 1;
4542                color: BUTTON_NAVIFRAME_TITLE_TEXT_FOCUSED_COLOR_INC;
4543             }
4544          }
4545          part { name: "disclip";
4546             type: RECT;
4547             description { state: "default" 0.0;
4548                color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
4549             }
4550             description { state: "disabled" 0.0;
4551                inherit: "default" 0.0;
4552                color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
4553             }
4554          }
4555          part { name: "over2";
4556             type: RECT;
4557             repeat_events: 1;
4558             ignore_flags: ON_HOLD;
4559             description { state: "default" 0.0;
4560                rel1.to: "button_image";
4561                rel2.to: "button_image";
4562                color: 0 0 0 0;
4563             }
4564          }
4565          part { name: "over3";
4566             type: RECT;
4567             repeat_events: 1;
4568             description { state: "default" 0.0;
4569                rel1.to: "button_image";
4570                rel2.to: "button_image";
4571                color: 0 0 0 0;
4572             }
4573          }
4574          part { name: "disabler";
4575             type: RECT;
4576             description { state: "default" 0.0;
4577                rel1.to: "button_image";
4578                rel2.to: "button_image";
4579                color: 0 0 0 0;
4580                visible: 0;
4581             }
4582             description { state: "disabled" 0.0;
4583                inherit: "default" 0.0;
4584                visible: 1;
4585             }
4586          }
4587       }
4588       programs {
4589          program { name: "button_click";
4590             signal: "mouse,down,1";
4591             source: "over2";
4592             action: SIGNAL_EMIT "elm,action,press" "";
4593             after: "button_click_anim";
4594          }
4595          program { name: "button_click_anim";
4596             action: STATE_SET "clicked" 0.0;
4597             target: "button_image";
4598             target: "elm.text";
4599          }
4600          program { name: "button_double_click";
4601             signal: "mouse,down,1,double";
4602             source: "over2";
4603             after: "button_click_anim";
4604          }
4605          program { name: "button_unpress";
4606             action: SIGNAL_EMIT "elm,action,unpress" "";
4607          }
4608          program { name: "button_mouseout_clicked";
4609             signal: "mouse,up,1";
4610             source: "over3";
4611             script {
4612                new st[31];
4613                new Float:vl;
4614                get_state(PART:"elm.text", st, 30, vl);
4615                if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
4616                  {
4617                     emit("elm,action,default,text,set", "");
4618                     set_state(PART:"elm.text", "visible", 0.0);
4619                  }
4620                if (get_int(button_state) != BUTTON_STATE_DISABLED)
4621                  set_state(PART:"button_image", "default", 0.0);
4622             }
4623             after: button_unpress;
4624          }
4625          program { name: "touch_snd";
4626             signal: "mouse,clicked,1";
4627             source: "over2";
4628             action: PLAY_SAMPLE "touch_sound" 1.0;
4629             after: button_unclick3;
4630          }
4631          program { name: "button_unclick3";
4632             action: SIGNAL_EMIT "elm,action,click" "";
4633          }
4634          program { name: "text_show";
4635             signal: "elm,state,text,visible";
4636             source: "elm";
4637             script {
4638                if (get_int(button_state) != BUTTON_STATE_DISABLED)
4639                  set_state(PART:"elm.text", "visible", 0.0);
4640                else
4641                  set_state(PART:"elm.text", "disabled_visible", 0.0);
4642             }
4643          }
4644          program { name: "text_hide";
4645             signal: "elm,state,text,hidden";
4646             source: "elm";
4647             action: STATE_SET "default" 0.0;
4648             target: "elm.text";
4649          }
4650          program { name: "disable";
4651             signal: "elm,state,disabled";
4652             source: "elm";
4653             action: STATE_SET "disabled" 0.0;
4654             target: "button_image";
4655             target: "disclip";
4656             target: "disabler";
4657             after: "disable_text";
4658          }
4659          program { name: "disable_text";
4660             script {
4661                new st[31];
4662                new Float:vl;
4663                get_state(PART:"elm.text", st, 30, vl);
4664                if (!strcmp(st, "visible"))
4665                  set_state(PART:"elm.text", "disabled_visible", 0.0);
4666                else
4667                  set_state(PART:"elm.text", "disabled", 0.0);
4668                set_int(button_state, BUTTON_STATE_DISABLED);
4669             }
4670          }
4671          program { name: "enable";
4672             signal: "elm,state,enabled";
4673             source: "elm";
4674             action: STATE_SET "default" 0.0;
4675             target: "button_image";
4676             target: "disclip";
4677             target: "disabler";
4678             after: "enable_text";
4679          }
4680          program { name: "enable_text";
4681             script {
4682                new st[31];
4683                new Float:vl;
4684                get_state(PART:"elm.text", st, 30, vl);
4685                if (!strcmp(st, "disabled_visible"))
4686                  set_state(PART:"elm.text", "visible", 0.0);
4687                else
4688                  set_state(PART:"elm.text", "default", 0.0);
4689                set_int(button_state, BUTTON_STATE_ENABLED);
4690             }
4691          }
4692          program { name: "focused";
4693             //signal: "elm,action,focus";
4694             //source: "elm";
4695             action: STATE_SET "focused" 0.0;
4696             target: "button_image";
4697             target: "elm.text";
4698          }
4699          program { name: "unfocused";
4700             //signal: "elm,action,unfocus";
4701             //source: "elm";
4702             action: STATE_SET "default" 0.0;
4703             target: "button_image";
4704             action: STATE_SET "visible" 0.0;
4705             target: "elm.text";
4706          }
4707       }
4708    }
4709
4710 //////////////////////////////////////////////////////////////
4711    group { name: "elm/button/base/naviframe/toolbar/left";
4712       inherit: "elm/button/base/naviframe/toolbar/default";
4713       parts {
4714          part { name: "button_image";
4715             scale: 1;
4716             description { state: "default" 0.0;
4717                min: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MIN_INC;
4718                max: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MAX_INC;
4719                fixed: 1 1;
4720                rel1.to: "padding_text_left_top";
4721                rel2.to: "padding_text_right_bottom";
4722                align: 1.0 0.5;
4723                image {
4724                   normal: "00_toolbar_button.png";
4725                   border: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_BORDER_INC;
4726                   border_scale: 1;
4727                }
4728             }
4729             description { state: "clicked" 0.0;
4730                inherit: "default" 0.0;
4731                image.normal: "00_toolbar_button_press.png";
4732             }
4733             description { state: "disabled" 0.0;
4734                inherit: "default" 0.0;
4735                image.normal: "00_toolbar_button_dim.png";
4736             }
4737             description { state: "focused" 0.0;
4738                inherit: "default" 0.0;
4739                image.normal: "00_toolbar_button_press.png";
4740             }
4741          }
4742          part { name: "elm.text";
4743             type: TEXTBLOCK;
4744             clip_to: "disclip";
4745             mouse_events: 0;
4746             effect: FAR_SHADOW BOTTOM;
4747             scale: 1;
4748             description { state: "default" 0.0;
4749                visible: 0;
4750                fixed: 1 1;
4751                min: BUTTON_NAVIFRAME_TITLE_TEXTBLOCK_MIN_INC;
4752                rel1 {
4753                   relative: 1.0 1.0;
4754                   to: "padding_left_top";
4755                }
4756                rel2 {
4757                   relative: 0.0 0.0;
4758                   to: "padding_right_bottom";
4759                }
4760                align: 1.0 0.5;
4761                color: BUTTON_NAVIFRAME_TITLE_TEXT_NORMAL_COLOR_INC;
4762                color2: BUTTON_NAVIFRAME_TEXT_SHADOW_NORMAL_COLOR_INC;
4763                text {
4764                   min: 0 1;
4765                   max: 1 1;
4766                   style: "btn_naviframe_toolbar";
4767                }
4768             }
4769             description { state: "visible" 0.0;
4770                inherit: "default" 0.0;
4771                visible: 1;
4772             }
4773             description { state: "clicked" 0.0;
4774                inherit: "default" 0.0;
4775                visible: 1;
4776                color: BUTTON_NAVIFRAME_TITLE_TEXT_PRESSED_COLOR_INC;
4777             }
4778             description { state: "disabled" 0.0;
4779                inherit: "default" 0.0;
4780             }
4781             description { state: "disabled_visible" 0.0;
4782                inherit: "default" 0.0;
4783                color: BUTTON_NAVIFRAME_TITLE_TEXT_DISABLED_COLOR_INC;
4784                color2: BUTTON_NAVIFRAME_TEXT_SHADOW_NORMAL_COLOR_INC;
4785                visible: 1;
4786             }
4787             description { state: "focused" 0.0;
4788                inherit: "default" 0.0;
4789                visible: 1;
4790                color: BUTTON_NAVIFRAME_TITLE_TEXT_FOCUSED_COLOR_INC;
4791             }
4792          }
4793       }
4794    }
4795
4796 //////////////////////////////////////////////////////////////
4797    group { name: "elm/button/base/naviframe/toolbar/right";
4798       inherit: "elm/button/base/naviframe/toolbar/default";
4799       parts {
4800          part { name: "button_image";
4801             scale: 1;
4802             description { state: "default" 0.0;
4803                min: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MIN_INC;
4804                max: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MAX_INC;
4805                fixed: 1 1;
4806                rel1.to: "padding_text_left_top";
4807                rel2.to: "padding_text_right_bottom";
4808                align: 0.0 0.5;
4809                image {
4810                   normal: "00_toolbar_button.png";
4811                   border: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_BORDER_INC;
4812                   border_scale: 1;
4813                }
4814             }
4815             description { state: "clicked" 0.0;
4816                inherit: "default" 0.0;
4817                image.normal: "00_toolbar_button_press.png";
4818             }
4819             description { state: "disabled" 0.0;
4820                inherit: "default" 0.0;
4821                image.normal: "00_toolbar_button_dim.png";
4822             }
4823             description { state: "focused" 0.0;
4824                inherit: "default" 0.0;
4825                image.normal: "00_toolbar_button_press.png";
4826             }
4827          }
4828          part { name: "elm.text";
4829             type: TEXTBLOCK;
4830             clip_to: "disclip";
4831             mouse_events: 0;
4832             effect: FAR_SHADOW BOTTOM;
4833             scale: 1;
4834             description { state: "default" 0.0;
4835                visible: 0;
4836                fixed: 1 1;
4837                min: BUTTON_NAVIFRAME_TITLE_TEXTBLOCK_MIN_INC;
4838                rel1 {
4839                   relative: 1.0 1.0;
4840                   to: "padding_left_top";
4841                }
4842                rel2 {
4843                   relative: 0.0 0.0;
4844                   to: "padding_right_bottom";
4845                }
4846                align: 0.0 0.5;
4847                color: BUTTON_NAVIFRAME_TITLE_TEXT_NORMAL_COLOR_INC;
4848                color2: BUTTON_NAVIFRAME_TEXT_SHADOW_NORMAL_COLOR_INC;
4849                text {
4850                   min: 0 1;
4851                   max: 1 1;
4852                   style: "btn_naviframe_toolbar";
4853                }
4854             }
4855             description { state: "visible" 0.0;
4856                inherit: "default" 0.0;
4857                visible: 1;
4858             }
4859             description { state: "clicked" 0.0;
4860                inherit: "default" 0.0;
4861                visible: 1;
4862                color: BUTTON_NAVIFRAME_TITLE_TEXT_PRESSED_COLOR_INC;
4863             }
4864             description { state: "disabled" 0.0;
4865                inherit: "default" 0.0;
4866             }
4867             description { state: "disabled_visible" 0.0;
4868                inherit: "default" 0.0;
4869                color: BUTTON_NAVIFRAME_TITLE_TEXT_DISABLED_COLOR_INC;
4870                color2: BUTTON_NAVIFRAME_TEXT_SHADOW_NORMAL_COLOR_INC;
4871                visible: 1;
4872             }
4873             description { state: "focused" 0.0;
4874                inherit: "default" 0.0;
4875                visible: 1;
4876                color: BUTTON_NAVIFRAME_TITLE_TEXT_FOCUSED_COLOR_INC;
4877             }
4878          }
4879       }
4880    }
4881
4882 ////////////////////////////////////////////////////////////////////
4883    group { name: "elm/button/base/toolbar/segmentedcontrol";
4884       images {
4885          image: "00_toolbar_button.png" COMP;
4886          image: "00_toolbar_button_press.png" COMP;
4887          image: "00_toolbar_button_dim.png" COMP;
4888          image: "00_button_icon_arrow.png" COMP;
4889          image: "00_button_icon_arrow_press.png" COMP;
4890       }
4891       styles{
4892          style { name: "btn_toolbar_segmentedcontrol";
4893             base: "font=Tizen:style=Bold font_size="BUTTON_TOOLBAR_SEGMENTEDCONTROL_TEXT_FONT_SIZE_INC" align=center color=#ffffff ellipsis=1.0 wrap=none text_class=tizen";
4894             tag: "br" "\n";
4895             tag: "ps" "ps";
4896             tag: "tab" "\t";
4897          }
4898       }
4899       script {
4900          public button_state = BUTTON_STATE_ENABLED;
4901       }
4902       parts {
4903          part { name: "button_image";
4904             scale: 1;
4905             description { state: "default" 0.0;
4906                min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_BG_NORMAL_MIN_INC;
4907                max: BUTTON_TOOLBAR_SEGMENTEDCONTROL_BG_NORMAL_MAX_INC;
4908                fixed: 1 1;
4909                rel1.to: "padding_text_left_top";
4910                rel2.to: "padding_text_right_bottom";
4911                image {
4912                   normal: "00_toolbar_button.png";
4913                   border: BUTTON_TOOLBAR_SEGMENTEDCONTROL_BG_BORDER_INC;
4914                   border_scale: 1;
4915                }
4916             }
4917             description { state: "clicked" 0.0;
4918                inherit: "default" 0.0;
4919                image.normal: "00_toolbar_button_press.png";
4920             }
4921             description { state: "disabled" 0.0;
4922                inherit: "default" 0.0;
4923                image.normal: "00_toolbar_button_dim.png";
4924             }
4925             description { state: "focused" 0.0;
4926                inherit: "default" 0.0;
4927                image.normal: "00_toolbar_button_press.png";
4928             }
4929          }
4930          part { name: "padding_left_top";
4931             type: RECT;
4932             scale: 1;
4933             mouse_events: 0;
4934             description { state: "default" 0.0;
4935                visible: 0;
4936                align: 0.0 0.0;
4937                rel2.relative: 0.0 0.0;
4938                min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_LEFT_PADDING_MIN_INC;
4939                fixed: 1 1;
4940             }
4941          }
4942          part { name: "padding_right_bottom";
4943             type: RECT;
4944             scale: 1;
4945             mouse_events: 0;
4946             description { state: "default" 0.0;
4947                align: 1.0 1.0;
4948                rel1.relative: 1.0 1.0;
4949                min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_RIGHT_PADDING_MIN_INC;
4950                fixed: 1 1;
4951                visible: 0;
4952             }
4953          }
4954          part { name: "padding_text_left_top";
4955             type: RECT;
4956             scale: 1;
4957             mouse_events: 0;
4958             description { state: "default" 0.0;
4959                visible: 0;
4960                min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_LEFT_PADDING_MIN_INC;
4961                fixed: 1 1;
4962                rel1.to: "elm.text";
4963                rel2 {
4964                   relative: 0.0 0.0;
4965                   to: "elm.text";
4966                }
4967                align: 1.0 0.0;
4968             }
4969          }
4970          part { name: "padding_text_right_bottom";
4971             type: RECT;
4972             scale: 1;
4973             mouse_events: 0;
4974             description { state: "default" 0.0;
4975                min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_RIGHT_PADDING_MIN_INC;
4976                fixed: 1 1;
4977                visible: 0;
4978                rel1 {
4979                   relative: 1.0 1.0;
4980                   to_x: "icon";
4981                   to_y: "elm.text";
4982                }
4983                rel2 {
4984                   relative: 1.0 1.0;
4985                   to_x: "icon";
4986                   to_y: "elm.text";
4987                }
4988                align: 0.0 0.0;
4989             }
4990          }
4991          part { name: "elm.text";
4992             type: TEXTBLOCK;
4993             clip_to: "disclip";
4994             mouse_events: 0;
4995             effect: FAR_SHADOW BOTTOM;
4996             scale: 1;
4997             description { state: "default" 0.0;
4998                visible: 0;
4999                fixed: 1 1;
5000                min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_TEXTBLOCK_MIN_INC;
5001                rel1 {
5002                   relative: 1.0 1.0;
5003                   to: "padding_left_top";
5004                }
5005                rel2 {
5006                   relative: 0.0 0.0;
5007                   to: "padding_right_bottom";
5008                }
5009                color: BUTTON_NAVIFRAME_TITLE_TEXT_NORMAL_COLOR_INC;
5010                color2: BUTTON_NAVIFRAME_TEXT_SHADOW_NORMAL_COLOR_INC;
5011                text {
5012                   min: 0 1;
5013                   max: 1 1;
5014                   style: "btn_toolbar_segmentedcontrol";
5015                }
5016             }
5017             description { state: "visible" 0.0;
5018                inherit: "default" 0.0;
5019                visible: 1;
5020             }
5021             description { state: "clicked" 0.0;
5022                inherit: "default" 0.0;
5023                visible: 1;
5024                color: BUTTON_NAVIFRAME_TITLE_TEXT_PRESSED_COLOR_INC;
5025             }
5026             description { state: "disabled" 0.0;
5027                inherit: "default" 0.0;
5028             }
5029             description { state: "disabled_visible" 0.0;
5030                inherit: "default" 0.0;
5031                color: BUTTON_NAVIFRAME_TITLE_TEXT_DISABLED_COLOR_INC;
5032                color2: BUTTON_NAVIFRAME_TEXT_SHADOW_NORMAL_COLOR_INC;
5033                visible: 1;
5034             }
5035             description { state: "focused" 0.0;
5036                inherit: "default" 0.0;
5037                visible: 1;
5038                color: BUTTON_NAVIFRAME_TITLE_TEXT_FOCUSED_COLOR_INC;
5039             }
5040          }
5041          part { name: "icon_padding";
5042             scale: 1;
5043             type: RECT;
5044             description { state: "default" 0.0;
5045                min: 6 5;
5046                fixed: 1 1;
5047                align: 0.0 0.5;
5048                rel1 {
5049                   relative: 1.0 0.0;
5050                   to: "elm.text";
5051                }
5052                visible: 0;
5053                rel2.to: "elm.text";
5054             }
5055          }
5056          part { name: "icon";
5057             scale: 1;
5058             clip_to: "icon_clipper";
5059             description { state: "default" 0.0;
5060                min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_ICON_MIN_INC;
5061                max: BUTTON_TOOLBAR_SEGMENTEDCONTROL_ICON_MIN_INC;
5062                fixed: 1 1;
5063                align: 0.0 0.5;
5064                rel1 {
5065                   relative: 1.0 0.0;
5066                   to_x: "icon_padding";
5067                   to_y: "elm.text";
5068                   offset: 0 6;
5069                }
5070                rel2 {
5071                   relative: 1.0 1.0;
5072                   to_x: "icon_padding";
5073                   to_y: "elm.text";
5074                }
5075                image.normal: "00_button_icon_arrow.png";
5076             }
5077             description { state: "clicked" 0.0;
5078                inherit: "default" 0.0;
5079                image.normal: "00_button_icon_arrow_press.png";
5080             }
5081          }
5082          part { name: "icon_clipper";
5083             type: RECT;
5084             description { state: "default" 0.0;
5085                color: BUTTON_TOOLBAR_SEGMENTEDCONTROL_ICON_NORMAL_COLOR_INC;
5086             }
5087             description { state: "clicked" 0.0;
5088                inherit: "default" 0.0;
5089                color: BUTTON_TOOLBAR_SEGMENTEDCONTROL_ICON_PRESSED_COLOR_INC;
5090             }
5091          }
5092          part { name: "disclip";
5093             type: RECT;
5094             description { state: "default" 0.0;
5095                color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
5096             }
5097             description { state: "disabled" 0.0;
5098                inherit: "default" 0.0;
5099                color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
5100             }
5101          }
5102          part { name: "over2";
5103             type: RECT;
5104             repeat_events: 1;
5105             ignore_flags: ON_HOLD;
5106             description { state: "default" 0.0;
5107                rel1.to: "button_image";
5108                rel2.to: "button_image";
5109                color: 0 0 0 0;
5110             }
5111          }
5112          part { name: "over3";
5113             type: RECT;
5114             repeat_events: 1;
5115             description { state: "default" 0.0;
5116                rel1.to: "button_image";
5117                rel2.to: "button_image";
5118                color: 0 0 0 0;
5119             }
5120          }
5121          part { name: "disabler";
5122             type: RECT;
5123             description { state: "default" 0.0;
5124                rel1.to: "button_image";
5125                rel2.to: "button_image";
5126                color: 0 0 0 0;
5127                visible: 0;
5128             }
5129             description { state: "disabled" 0.0;
5130                inherit: "default" 0.0;
5131                visible: 1;
5132             }
5133          }
5134       }
5135       programs {
5136          program { name: "button_click";
5137             signal: "mouse,down,1";
5138             source: "over2";
5139             action: SIGNAL_EMIT "elm,action,press" "";
5140             after: "button_click_anim";
5141          }
5142          program { name: "button_click_anim";
5143             action: STATE_SET "clicked" 0.0;
5144             target: "button_image";
5145             target: "elm.text";
5146             target: "icon";
5147             target: "icon_clipper";
5148          }
5149          program { name: "button_double_click";
5150             signal: "mouse,down,1,double";
5151             source: "over2";
5152             after: "button_click_anim";
5153          }
5154          program { name: "button_unpress";
5155             action: SIGNAL_EMIT "elm,action,unpress" "";
5156          }
5157          program { name: "button_mouseout_clicked";
5158             signal: "mouse,up,1";
5159             source: "over3";
5160             script {
5161                new st[31];
5162                new Float:vl;
5163                get_state(PART:"elm.text", st, 30, vl);
5164                if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
5165                  {
5166                     emit("elm,action,default,text,set", "");
5167                     set_state(PART:"elm.text", "visible", 0.0);
5168                  }
5169                if (get_int(button_state) != BUTTON_STATE_DISABLED)
5170                  set_state(PART:"button_image", "default", 0.0);
5171                set_state(PART:"icon", "default", 0.0);
5172                set_state(PART:"icon_clipper", "default", 0.0);
5173             }
5174             after: button_unpress;
5175          }
5176          program { name: "touch_snd";
5177             signal: "mouse,clicked,1";
5178             source: "over2";
5179             action: PLAY_SAMPLE "touch_sound" 1.0;
5180             after: button_unclick3;
5181          }
5182          program { name: "button_unclick3";
5183             action: SIGNAL_EMIT "elm,action,click" "";
5184          }
5185          program { name: "text_show";
5186             signal: "elm,state,text,visible";
5187             source: "elm";
5188             script {
5189                if (get_int(button_state) != BUTTON_STATE_DISABLED)
5190                  set_state(PART:"elm.text", "visible", 0.0);
5191                else
5192                  set_state(PART:"elm.text", "disabled_visible", 0.0);
5193             }
5194          }
5195          program { name: "text_hide";
5196             signal: "elm,state,text,hidden";
5197             source: "elm";
5198             action: STATE_SET "default" 0.0;
5199             target: "elm.text";
5200          }
5201          program { name: "disable";
5202             signal: "elm,state,disabled";
5203             source: "elm";
5204             action: STATE_SET "disabled" 0.0;
5205             target: "button_image";
5206             target: "disclip";
5207             target: "disabler";
5208             after: "disable_text";
5209          }
5210          program { name: "disable_text";
5211             script {
5212                new st[31];
5213                new Float:vl;
5214                get_state(PART:"elm.text", st, 30, vl);
5215                if (!strcmp(st, "visible"))
5216                  set_state(PART:"elm.text", "disabled_visible", 0.0);
5217                else
5218                  set_state(PART:"elm.text", "disabled", 0.0);
5219                set_int(button_state, BUTTON_STATE_DISABLED);
5220             }
5221          }
5222          program { name: "enable";
5223             signal: "elm,state,enabled";
5224             source: "elm";
5225             action: STATE_SET "default" 0.0;
5226             target: "button_image";
5227             target: "disclip";
5228             target: "disabler";
5229             after: "enable_text";
5230          }
5231          program { name: "enable_text";
5232             script {
5233                new st[31];
5234                new Float:vl;
5235                get_state(PART:"elm.text", st, 30, vl);
5236                if (!strcmp(st, "disabled_visible"))
5237                  set_state(PART:"elm.text", "visible", 0.0);
5238                else
5239                  set_state(PART:"elm.text", "default", 0.0);
5240                set_int(button_state, BUTTON_STATE_ENABLED);
5241             }
5242          }
5243          program { name: "focused";
5244             //signal: "elm,action,focus";
5245             //source: "elm";
5246             action: STATE_SET "focused" 0.0;
5247             target: "button_image";
5248             target: "elm.text";
5249          }
5250          program { name: "unfocused";
5251             //signal: "elm,action,unfocus";
5252             //source: "elm";
5253             action: STATE_SET "default" 0.0;
5254             target: "button_image";
5255             action: STATE_SET "visible" 0.0;
5256             target: "elm.text";
5257          }
5258       }
5259    }
5260
5261 ////////////////////////////////////////////////////////////////////
5262    group { name: "elm/button/base/naviframe/title_icon";
5263       parts {
5264          part { name: "button_image";
5265             type: RECT;
5266             scale: 1;
5267             description { state: "default" 0.0;
5268                visible: 0;
5269                min: BUTTON_NAVIFRAME_TITLE_ICON_BG_MIN_MAX_INC;
5270                max: BUTTON_NAVIFRAME_TITLE_ICON_BG_MIN_MAX_INC;
5271             }
5272             description { state: "landscape" 0.0;
5273                visible: 0;
5274                min: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_ICON_BG_MIN_MAX_INC;
5275                max: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_ICON_BG_MIN_MAX_INC;
5276             }
5277          }
5278          part { name: "top_padding";
5279             type: RECT;
5280             scale: 1;
5281             description { state: "default" 0.0;
5282                visible: 0;
5283                min: BUTTON_NAVIFRAME_TITLE_ICON_TOP_PADDING_INC;
5284                fixed: 0 1;
5285                align: 0 0;
5286                rel1 { relative: 0.0 0.0; to: "button_image"; }
5287                rel2 { relative: 1.0 0.0; to: "button_image"; }
5288             }
5289             description { state: "landscape" 0.0;
5290                inherit: "default" 0.0;
5291                min: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_ICON_TOP_PADDING_INC;
5292             }
5293          }
5294          part { name: "elm.swallow.content";
5295             type: SWALLOW;
5296             scale: 1;
5297             clip_to: "elm.icon.clipper";
5298             description { state: "default" 0.0;
5299                visible: 0;
5300                max: BUTTON_NAVIFRAME_TITLE_ICON_IMAGE_MIN_MAX_INC;
5301                fixed: 1 1;
5302                align: 0.5 0.0;
5303                rel1 { relative: 0.0 1.0; to: "top_padding"; }
5304                rel2 { relative: 1.0 1.0; to: "button_image"; }
5305             }
5306             description { state: "visible" 0.0;
5307                inherit: "default" 0.0;
5308                visible: 1;
5309             }
5310          }
5311          part { name: "elm.swallow.icon.proxy";
5312             type: PROXY;
5313             scale: 1;
5314             clip_to: "elm.icon.proxy.clipper";
5315             description { state: "default" 0.0;
5316                 source: "elm.swallow.content";
5317                 rel1.to: "elm.swallow.content";
5318                 rel1.offset: 0 -2;
5319                 rel2.to: "elm.swallow.content";
5320                 rel2.offset: -1 -3;
5321             }
5322          }
5323          part { name: "elm.icon.proxy.clipper";
5324             type: RECT;
5325             description { state: "default" 0.0;
5326                color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_COLOR_INC;
5327             }
5328             description { state: "clicked" 0.0;
5329                color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_COLOR_INC;
5330             }
5331             description { state: "disabled" 0.0;
5332                color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
5333             }
5334          }
5335          part { name: "elm.icon.clipper";
5336             type: RECT;
5337             description { state: "default" 0.0;
5338                color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_NORMAL_COLOR_INC;
5339             }
5340             description { state: "clicked" 0.0;
5341                color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_NORMAL_COLOR_INC;
5342             }
5343             description { state: "disabled" 0.0;
5344                color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
5345             }
5346          }
5347          part { name: "over2";
5348             type: RECT;
5349             ignore_flags: ON_HOLD;
5350             description { state: "default" 0.0;
5351                color: 0 0 0 0;
5352             }
5353          }
5354          part { name: "over3";
5355             type: RECT;
5356             repeat_events: 1;
5357             description { state: "default" 0.0;
5358                color: 0 0 0 0;
5359             }
5360          }
5361          part { name: "disabler";
5362             type: RECT;
5363             description { state: "default" 0.0;
5364                color: 0 0 0 0;
5365                visible: 0;
5366             }
5367             description { state: "disabled" 0.0;
5368                inherit: "default" 0.0;
5369                visible: 1;
5370             }
5371          }
5372       }
5373       programs {
5374          program { name: "button_click";
5375             signal: "mouse,down,1";
5376             source: "over2";
5377             action: SIGNAL_EMIT "elm,action,press" "";
5378             after: "button_click_anim";
5379          }
5380          program { name: "button_click_anim";
5381             script {
5382                set_state(PART:"elm.icon.clipper", "clicked", 0.0);
5383                set_state(PART:"elm.icon.proxy.clipper", "clicked", 0.0);
5384             }
5385          }
5386          program { name: "button_double_click";
5387             signal: "mouse,down,1,double";
5388             source: "over2";
5389             after: "button_click_anim";
5390          }
5391          program { name: "button_unpress";
5392             action: SIGNAL_EMIT "elm,action,unpress" "";
5393          }
5394          program { name: "button_mouseout_clicked";
5395             signal: "mouse,up,1";
5396             source: "over3";
5397             action: STATE_SET "default" 0.0;
5398             target: "elm.icon.clipper";
5399             target: "elm.icon.proxy.clipper";
5400             after: button_unpress;
5401          }
5402          program { name: "touch_snd";
5403             signal: "mouse,clicked,1";
5404             source: "over2";
5405             action: PLAY_SAMPLE "touch_sound" 1.0;
5406             after: button_unclick3;
5407          }
5408          program { name: "button_unclick3";
5409             action: SIGNAL_EMIT "elm,action,click" "";
5410          }
5411          program { name: "icon_show";
5412             signal: "elm,state,icon,visible";
5413             source: "elm";
5414             action: STATE_SET "visible" 0.0;
5415             target: "elm.swallow.content";
5416          }
5417          program { name: "icon_hide";
5418             signal: "elm,state,icon,hidden";
5419             source: "elm";
5420             action: STATE_SET "default" 0.0;
5421             target: "elm.swallow.content";
5422          }
5423          program { name: "disable";
5424             signal: "elm,state,disabled";
5425             source: "elm";
5426             script {
5427                set_state(PART:"disabler", "disabled", 0.0);
5428                set_state(PART:"elm.icon.clipper", "disabled", 0.0);
5429                set_state(PART:"elm.icon.proxy.clipper", "disabled", 0.0);
5430             }
5431          }
5432          program { name: "enable";
5433             signal: "elm,state,enabled";
5434             source: "elm";
5435             script {
5436                set_state(PART:"disabler", "default", 0.0);
5437                set_state(PART:"elm.icon.clipper", "default", 0.0);
5438                set_state(PART:"elm.icon.proxy.clipper", "default", 0.0);
5439             }
5440          }
5441          program { name: "change_to_landscape";
5442             signal: "elm,state,landscape";
5443             source: "elm";
5444             action: STATE_SET "landscape" 0.0;
5445             target: "button_image";
5446             target: "top_padding";
5447          }
5448          program { name: "change_to_portrait";
5449             signal: "elm,state,portrait";
5450             source: "elm";
5451             action: STATE_SET "default" 0.0;
5452             target: "button_image";
5453             target: "top_padding";
5454          }
5455 /*         program { name: "landscape_mode";
5456             source: "elm";
5457             signal: "elm,state,orient,90";
5458             action: SIGNAL_EMIT "elm,state,landscape" "elm";
5459          }
5460          program { name: "landscape_mode2";
5461             source: "elm";
5462             signal: "elm,state,orient,270";
5463             action: SIGNAL_EMIT "elm,state,landscape" "elm";
5464          }
5465          program { name: "portrait_mode";
5466             source: "elm";
5467             signal: "elm,state,orient,0";
5468             action: SIGNAL_EMIT "elm,state,portrait" "elm";
5469          }
5470          program { name: "portrait_mode2";
5471             source: "elm";
5472             signal: "elm,state,orient,180";
5473             action: SIGNAL_EMIT "elm,state,portrait" "elm";
5474          } */
5475       }
5476    }
5477
5478 /////////////////////////////////////////////////////////////////////////////////////////
5479    group { name: "elm/button/base/naviframe/more/default";
5480       images {
5481          image: "00_icon_more.png" COMP;
5482       }
5483       parts {
5484          part { name: "button_image";
5485             type: RECT;
5486             scale: 1;
5487             description { state: "default" 0.0;
5488                min: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
5489                max: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
5490                visible: 0;
5491             }
5492             description { state: "landscape" 0.0;
5493                min: BUTTON_NAVIFRAME_LANDSCAPE_MORE_BG_MIN_MAX_INC;
5494                max: BUTTON_NAVIFRAME_LANDSCAPE_MORE_BG_MIN_MAX_INC;
5495                visible: 0;
5496             }
5497          }
5498          part { name: "more_image";
5499             scale: 1;
5500             mouse_events: 0;
5501             clip_to: "more_image.clipper";
5502             description { state: "default" 0.0;
5503                min: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
5504                max: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
5505                fixed: 1 1;
5506                rel1.to: "button_image";
5507                rel2.to: "button_image";
5508                image.normal: "00_icon_more.png";
5509             }
5510          }
5511          part { name: "more_image.clipper";
5512             type: RECT;
5513             description { state: "default" 0.0;
5514                color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_COLOR_INC;
5515             }
5516             description { state: "clicked" 0.0;
5517                color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_COLOR_INC;
5518             }
5519             description { state: "disabled" 0.0;
5520                color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
5521             }
5522          }
5523          part { name: "elm.text.badge.bg";
5524             mouse_events: 0;
5525             scale: 1;
5526             description {
5527                state: "default" 0.0;
5528                visible: 0;
5529                rel1 {
5530                   to: "left.padding.text.badge";
5531                   relative: 0.0 0.0;
5532                }
5533                rel2 {
5534                   to: "right.padding.text.badge";
5535                   relative: 1.0 1.0;
5536                }
5537                align: 1.0 0.0;
5538                image {
5539                   normal: "00_badge_bg.png";
5540                   border: 20 20 0 0;
5541                   border_scale: 1;
5542                }
5543             }
5544             description { state: "visible" 0.0;
5545                inherit: "default" 0.0;
5546                visible: 1;
5547             }
5548          }
5549          part { name: "left.padding.text.badge";
5550             type: RECT;
5551             scale: 1;
5552             description {
5553                state: "default" 0.0;
5554                visible: 0;
5555                fixed: 1 1;
5556                min: 16 48;
5557                rel1 {
5558                   to: "elm.text.badge";
5559                   relative: 0.0 0.0;
5560                }
5561                rel2 {
5562                   to: "elm.text.badge";
5563                   relative: 0.0 0.0;
5564                }
5565                align: 1.0 0.0;
5566             }
5567          }
5568          part { name: "right.padding.text.badge";
5569             type: RECT;
5570             scale: 1;
5571             description {
5572                state: "default" 0.0;
5573                visible: 0;
5574                fixed: 1 1;
5575                min: 16 48;
5576                rel1 {
5577                   to: "button_image";
5578                   relative: 1.0 0.0;
5579                }
5580                rel2 {
5581                   to: "button_image";
5582                   relative: 1.0 0.0;
5583                }
5584                align: 1.0 0.0;
5585             }
5586          }
5587          part { name: "elm.text.badge";
5588             type: TEXT;
5589             mouse_events: 0;
5590             scale: 1;
5591             description {
5592                state: "default" 0.0;
5593                visible: 0;
5594                min: 0 0;
5595                rel1 {
5596                   to: "button_image";
5597                   relative: 0.0 0.0;
5598                }
5599                rel2 {
5600                   to: "right.padding.text.badge";
5601                   relative: 0.0 1.0;
5602                }
5603                align: 1.0 0.0;
5604                color: 10 100 208 255;
5605                text {
5606                   font: "Tizen:style=Bold";
5607                   size: 26;
5608                   min: 0 0;
5609                   max: 1 1;
5610                }
5611             }
5612             description { state: "visible" 0.0;
5613                inherit: "default" 0.0;
5614                visible: 1;
5615             }
5616          }
5617          part { name: "over2";
5618             type: RECT;
5619             ignore_flags: ON_HOLD;
5620             description { state: "default" 0.0;
5621                color: 0 0 0 0;
5622             }
5623          }
5624          part { name: "over3";
5625             type: RECT;
5626             repeat_events: 1;
5627             description { state: "default" 0.0;
5628                color: 0 0 0 0;
5629             }
5630          }
5631          part { name: "disabler";
5632             type: RECT;
5633             description { state: "default" 0.0;
5634                color: 0 0 0 0;
5635                visible: 0;
5636             }
5637             description { state: "disabled" 0.0;
5638                inherit: "default" 0.0;
5639                visible: 1;
5640             }
5641          }
5642       }
5643       programs {
5644          program { name: "button_click";
5645             signal: "mouse,down,1";
5646             source: "over2";
5647             action: SIGNAL_EMIT "elm,action,press" "";
5648             after: "button_click_anim";
5649          }
5650          program { name: "button_click_anim";
5651             script {
5652                set_state(PART:"more_image.clipper", "clicked", 0.0);
5653             }
5654          }
5655          program { name: "button_double_click";
5656             signal: "mouse,down,1,double";
5657             source: "over2";
5658             after: "button_click_anim";
5659          }
5660          program { name: "button_unclick";
5661             signal: "mouse,up,1";
5662             source: "over3";
5663             action: SIGNAL_EMIT "elm,action,unpress" "";
5664             after: "button_unclick_anim";
5665          }
5666          program { name: "button_unclick_anim";
5667             script {
5668                set_state(PART:"more_image.clipper", "default", 0.0);
5669             }
5670          }
5671          program { name: "touch_snd";
5672             signal: "mouse,clicked,1";
5673             source: "over2";
5674             action: PLAY_SAMPLE "touch_sound" 1.0;
5675             after: button_unclick3;
5676          }
5677          program { name: "button_unclick3";
5678             action: SIGNAL_EMIT "elm,action,click" "";
5679          }
5680          program { name: "badge_text_show";
5681             signal: "elm,state,elm.text.badge,visible";
5682             source: "elm";
5683             action:  STATE_SET "visible" 0.0;
5684             target: "elm.text.badge";
5685             target: "elm.text.badge.bg";
5686          }
5687          program { name: "badge_text_hide";
5688             signal: "elm,state,elm.text.badge,hidden";
5689             source: "elm";
5690             action:  STATE_SET "default" 0.0;
5691             target: "elm.text.badge";
5692             target: "elm.text.badge.bg";
5693          }
5694          program { name: "disable";
5695             signal: "elm,state,disabled";
5696             source: "elm";
5697             script {
5698                set_state(PART:"disabler", "disabled", 0.0);
5699                set_state(PART:"more_image.clipper", "disabled", 0.0);
5700             }
5701          }
5702          program { name: "enable";
5703             signal: "elm,state,enabled";
5704             source: "elm";
5705             script {
5706                set_state(PART:"disabler", "default", 0.0);
5707                set_state(PART:"more_image.clipper", "default", 0.0);
5708             }
5709          }
5710          program { name: "change_to_landscape";
5711             signal: "elm,state,landscape";
5712             source: "elm";
5713             action: STATE_SET "landscape" 0.0;
5714             target: "button_image";
5715          }
5716          program { name: "change_to_portrait";
5717             signal: "elm,state,portrait";
5718             source: "elm";
5719             action: STATE_SET "default" 0.0;
5720             target: "button_image";
5721          }
5722          program { name: "landscape_mode";
5723             source: "elm";
5724             signal: "elm,state,orient,90";
5725             action: SIGNAL_EMIT "elm,state,landscape" "elm";
5726          }
5727          program { name: "landscape_mode2";
5728             source: "elm";
5729             signal: "elm,state,orient,270";
5730             action: SIGNAL_EMIT "elm,state,landscape" "elm";
5731          }
5732          program { name: "portrait_mode";
5733             source: "elm";
5734             signal: "elm,state,orient,0";
5735             action: SIGNAL_EMIT "elm,state,portrait" "elm";
5736          }
5737          program { name: "portrait_mode2";
5738             source: "elm";
5739             signal: "elm,state,orient,180";
5740             action: SIGNAL_EMIT "elm,state,portrait" "elm";
5741          }
5742       }
5743    }
5744
5745 ///////////////////////////////////////////////////////////////////////////////////////
5746    group { name: "elm/button/base/tickernoti";
5747       images {
5748          image: "00_notification_button_bg.png" COMP;
5749          image: "00_notification_button_bg_press.png" COMP;
5750          image: "00_notification_button_bg_dim.png" COMP;
5751       }
5752       script {
5753          public button_state = BUTTON_STATE_ENABLED;
5754       }
5755       parts {
5756          part { name: "button_image";
5757             scale: 1;
5758             description { state: "default" 0.0;
5759                min: BUTTON_TICKERNOTI_BG_MIN_MAX_INC;
5760                max: BUTTON_TICKERNOTI_BG_MIN_MAX_INC;
5761                image {
5762                   normal: "00_notification_button_bg.png";
5763                   border: BUTTON_TICKERNOTI_BG_BORDER_INC;
5764                   border_scale: 1;
5765                }
5766             }
5767             description { state: "clicked" 0.0;
5768                inherit: "default" 0.0;
5769                image.normal: "00_notification_button_bg_press.png";
5770             }
5771             description { state: "disabled" 0.0;
5772                inherit: "default" 0.0;
5773                image.normal: "00_notification_button_bg_dim.png";
5774             }
5775             description { state: "focused" 0.0;
5776                inherit: "default" 0.0;
5777                image.normal: "00_notification_button_bg_press.png";
5778             }
5779          }
5780          part { name: "padding_left_top";
5781             type: RECT;
5782             scale: 1;
5783             mouse_events: 0;
5784             description { state: "default" 0.0;
5785                visible: 0;
5786                align: 0.0 0.0;
5787                rel2.relative: 0.0 0.0;
5788                min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
5789                fixed: 1 1;
5790             }
5791          }
5792          part { name: "bg";
5793             type: RECT;
5794             scale: 1;
5795             mouse_events: 0;
5796             description { state: "default" 0.0;
5797                min: BUTTON_TICKERNOTI_BG_MIN_MAX_INC;
5798                visible: 0;
5799             }
5800             description { state: "visible" 0.0;
5801                inherit: "default" 0.0;
5802             }
5803             description { state: "icononly" 0.0;
5804                inherit: "default" 0.0;
5805             }
5806          }
5807          part { name: "padding_right_bottom";
5808             type: RECT;
5809             scale: 1;
5810             mouse_events: 0;
5811             description { state: "default" 0.0;
5812                align: 1.0 1.0;
5813                rel1.relative: 1.0 1.0;
5814                min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
5815                fixed: 1 1;
5816                visible: 0;
5817             }
5818          }
5819          part { name: "icon_rect";
5820             type: RECT;
5821             scale: 1;
5822             mouse_events: 0;
5823             description { state: "default" 0.0;
5824                visible: 0;
5825                min: 0 0;
5826                fixed: 1 0;
5827                rel1 {
5828                   relative: 1.0 1.0;
5829                   to: "padding_left_top";
5830                }
5831                rel2 {
5832                   relative: 1.0 0.0;
5833                   to_x: "padding_left_top";
5834                   to_y: "padding_right_bottom";
5835                }
5836                align: 0.0 0.5;
5837             }
5838             description { state: "visible" 0.0;
5839                inherit: "default" 0.0;
5840                min: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
5841                max: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
5842             }
5843             description { state: "icononly" 0.0;
5844                inherit: "default" 0.0;
5845             }
5846          }
5847          part { name: "padding_after_icon";
5848             type: RECT;
5849             scale: 1;
5850             mouse_events: 0;
5851             description { state: "default" 0.0; //when only icon or no icon is there
5852                visible: 0;
5853                fixed: 1 0;
5854                min: 0 0;
5855                align: 0.0 0.0;
5856                rel1 {
5857                   relative: 1.0 0.0;
5858                   to: "icon_rect";
5859                }
5860                rel2.to: "icon_rect";
5861             }
5862             description { state: "visible" 0.0;
5863                inherit: "default" 0.0;
5864                min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
5865             }
5866             description { state: "icononly" 0.0;
5867                inherit: "default" 0.0;
5868             }
5869          }
5870          part { name: "padding_before_text";
5871             type: RECT;
5872             scale: 1;
5873             mouse_events: 0;
5874             description { state: "default" 0.0; //when only icon or no icon is there
5875                visible: 0;
5876                align: 1.0 0.5;
5877                fixed: 1 0;
5878                min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
5879                rel1 {
5880                   relative: 0.0 1.0;
5881                   to_x: "elm.text";
5882                   to_y: "padding_left_top";
5883                }
5884                rel2 {
5885                   relative: 0.0 0.0;
5886                   to_x: "elm.text";
5887                   to_y: "padding_right_bottom";
5888                }
5889             }
5890          }
5891          part { name: "elm.swallow.content";
5892             type: SWALLOW;
5893             scale: 1;
5894             clip_to: "clipper";
5895             description { state: "default" 0.0;
5896                visible: 0;
5897                fixed: 1 0;
5898                align: 0.0 0.5;
5899                rel1 {
5900                   relative: 1.0 1.0;
5901                   to: "padding_left_top";
5902                }
5903                rel2 {
5904                   relative: 1.0 0.0;
5905                   to_x: "padding_left_top";
5906                   to_y: "padding_right_bottom";
5907                }
5908             }
5909             description { state: "visible" 0.0;
5910                fixed: 1 0;
5911                min: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
5912                max: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
5913                align: 1.0 0.5;
5914                rel1 {
5915                   relative: 0.0 1.0;
5916                   to_x: "padding_before_text";
5917                   to_y: "padding_left_top";
5918                }
5919                rel2 {
5920                   relative: 0.0 0.0;
5921                   to_x: "padding_before_text";
5922                   to_y: "padding_right_bottom";
5923                }
5924             }
5925             description { state: "icononly" 0.0;
5926                min: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
5927                max: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
5928             }
5929          }
5930          part { name: "elm.text";
5931             type: TEXT;
5932             mouse_events: 0;
5933             effect: FAR_SHADOW BOTTOM;
5934             scale: 1;
5935             clip_to: "clipper";
5936             description { state: "default" 0.0;
5937                visible: 0;
5938                rel1 {
5939                   relative: 1.0 1.0;
5940                   to_x: "padding_after_icon";
5941                   to_y: "padding_left_top";
5942                }
5943                rel2 {
5944                   relative: 0.0 0.0;
5945                   to: "padding_right_bottom";
5946                }
5947                color: BUTTON_TICKERNOTI_NORMAL_COLOR_INC;
5948                color2: BUTTON_TICKER_TEXT_SHADOW_NORMAL_COLOR_INC;
5949                text {
5950                   font: "Tizen:style=Regular";
5951                   size: BUTTON_TICKERNOTI_FONT_SIZE_INC;
5952                   text_class: "tizen";
5953                }
5954             }
5955             description { state: "visible" 0.0;
5956                inherit: "default" 0.0;
5957                visible: 1;
5958             }
5959             description { state: "clicked" 0.0;
5960                inherit: "default" 0.0;
5961                visible: 1;
5962                color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
5963             }
5964             description { state: "disabled" 0.0;
5965                inherit: "default" 0.0;
5966             }
5967             description { state: "disabled_visible" 0.0;
5968                inherit: "default" 0.0;
5969                color: BUTTON_TICKERNOTI_DISABLED_COLOR_INC;
5970                color2: BUTTON_TICKER_TEXT_SHADOW_NORMAL_COLOR_INC;
5971                visible: 1;
5972             }
5973             description { state: "focused" 0.0;
5974                inherit: "default" 0.0;
5975                visible: 1;
5976                color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
5977             }
5978          }
5979          part { name: "over2";
5980             type: RECT;
5981             repeat_events: 1;
5982             ignore_flags: ON_HOLD;
5983             description { state: "default" 0.0;
5984                color: 0 0 0 0;
5985             }
5986          }
5987          part { name: "over3";
5988             type: RECT;
5989             repeat_events: 1;
5990             description { state: "default" 0.0;
5991                color: 0 0 0 0;
5992             }
5993          }
5994          part { name: "clipper";
5995             type: RECT;
5996             description { state: "default" 0.0;
5997                color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
5998             }
5999             description { state: "disabled" 0.0;
6000                inherit: "default" 0.0;
6001                color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
6002             }
6003          }
6004          part { name: "disabler";
6005             type: RECT;
6006             description { state: "default" 0.0;
6007                color: 0 0 0 0;
6008                visible: 0;
6009             }
6010             description { state: "disabled" 0.0;
6011                inherit: "default" 0.0;
6012                visible: 1;
6013             }
6014          }
6015       }
6016       programs {
6017          program { name: "button_click";
6018             signal: "mouse,down,1";
6019             source: "over2";
6020             action: SIGNAL_EMIT "elm,action,press" "";
6021             after: "button_click_anim";
6022          }
6023          program { name: "button_click_anim";
6024             action: STATE_SET "clicked" 0.0;
6025             target: "button_image";
6026             after: "text_clicked";
6027          }
6028          program { name: "text_clicked";
6029             script {
6030                new st[31];
6031                new Float:vl;
6032                get_state(PART:"elm.text", st, 30, vl);
6033                if (!strcmp(st, "visible"))
6034                  set_state(PART:"elm.text", "clicked", 0.0);
6035             }
6036          }
6037          program { name: "button_double_click";
6038             signal: "mouse,down,1,double";
6039             source: "over2";
6040             after: "button_click_anim";
6041          }
6042          program { name: "button_unpress";
6043             action: SIGNAL_EMIT "elm,action,unpress" "";
6044          }
6045          program { name: "button_mouseout_clicked";
6046             signal: "mouse,up,1";
6047             source: "over3";
6048             script {
6049                new st[31];
6050                new Float:vl;
6051                get_state(PART:"elm.swallow.content", st, 30, vl);
6052                if (strcmp(st, "icononly"))
6053                  {
6054                     emit("elm,action,default,text,set", "");
6055                     set_state(PART:"elm.text", "visible", 0.0);
6056                  }
6057                if (get_int(button_state) != BUTTON_STATE_DISABLED)
6058                  set_state(PART:"button_image", "default", 0.0);
6059             }
6060             after: button_unpress;
6061          }
6062          program { name: "touch_snd";
6063             signal: "mouse,clicked,1";
6064             source: "over2";
6065             action: PLAY_SAMPLE "touch_sound" 1.0;
6066             after: button_unclick3;
6067          }
6068          program { name: "button_unclick3";
6069             action: SIGNAL_EMIT "elm,action,click" "";
6070          }
6071          program { name: "text_show";
6072             signal: "elm,state,text,visible";
6073             source: "elm";
6074             script {
6075                new st[31];
6076                new Float:vl;
6077                get_state(PART:"elm.swallow.content", st, 30, vl);
6078                if (!strcmp(st, "icononly"))
6079                  {
6080                     set_state(PART:"elm.swallow.content", "visible", 0.0);
6081                     set_state(PART:"icon_rect", "visible", 0.0);
6082                     set_state(PART:"padding_after_icon", "visible", 0.0);
6083                     set_state(PART:"bg", "visible", 0.0);
6084                  }
6085                if (get_int(button_state) != BUTTON_STATE_DISABLED)
6086                  set_state(PART:"elm.text", "visible", 0.0);
6087                else
6088                  set_state(PART:"elm.text", "disabled_visible", 0.0);
6089             }
6090          }
6091          program { name: "text_hide";
6092             signal: "elm,state,text,hidden";
6093             source: "elm";
6094             script {
6095                new st[31];
6096                new Float:vl;
6097                get_state(PART:"elm.swallow.content", st, 30, vl);
6098                if (!strcmp(st, "visible"))
6099                  {
6100                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
6101                     set_state(PART:"icon_rect", "icononly", 0.0);
6102                     set_state(PART:"padding_after_icon", "icononly", 0.0);
6103                     set_state(PART:"bg", "icononly", 0.0);
6104                  }
6105                set_state(PART:"elm.text", "default", 0.0);
6106             }
6107          }
6108          program { name: "icon_show";
6109             signal: "elm,state,icon,visible";
6110             source: "elm";
6111             script {
6112                new st[31];
6113                new Float:vl;
6114                get_state(PART:"elm.text", st, 30, vl);
6115                if (!strcmp(st, "visible"))
6116                  {
6117                     set_state(PART:"elm.swallow.content", "visible", 0.0);
6118                     set_state(PART:"icon_rect", "visible", 0.0);
6119                     set_state(PART:"padding_after_icon", "visible", 0.0);
6120                     set_state(PART:"bg", "visible", 0.0);
6121                  }
6122                else
6123                  {
6124                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
6125                     set_state(PART:"icon_rect", "icononly", 0.0);
6126                     set_state(PART:"padding_after_icon", "icononly", 0.0);
6127                     set_state(PART:"bg", "icononly", 0.0);
6128                  }
6129             }
6130          }
6131          program { name: "icon_hide";
6132             signal: "elm,state,icon,hidden";
6133             source: "elm";
6134             action: STATE_SET "default" 0.0;
6135             target: "elm.swallow.content";
6136             target: "padding_after_icon";
6137             target: "icon_rect";
6138             target: "bg";
6139          }
6140          program { name: "disable";
6141             signal: "elm,state,disabled";
6142             source: "elm";
6143             action: STATE_SET "disabled" 0.0;
6144             target: "button_image";
6145             target: "disabler";
6146             target: "clipper";
6147             after: "disable_text";
6148          }
6149          program { name: "disable_text";
6150             script {
6151                new st[31];
6152                new Float:vl;
6153                get_state(PART:"elm.text", st, 30, vl);
6154                if (!strcmp(st, "visible"))
6155                  set_state(PART:"elm.text", "disabled_visible", 0.0);
6156                else
6157                  set_state(PART:"elm.text", "disabled", 0.0);
6158                set_int(button_state, BUTTON_STATE_DISABLED);
6159             }
6160          }
6161          program { name: "enable";
6162             signal: "elm,state,enabled";
6163             source: "elm";
6164             action: STATE_SET "default" 0.0;
6165             target: "button_image";
6166             target: "disabler";
6167             target: "clipper";
6168             after: "enable_text";
6169          }
6170          program { name: "enable_text";
6171             script {
6172                new st[31];
6173                new Float:vl;
6174                get_state(PART:"elm.text", st, 30, vl);
6175                if (!strcmp(st, "disabled_visible"))
6176                  set_state(PART:"elm.text", "visible", 0.0);
6177                else
6178                  set_state(PART:"elm.text", "default", 0.0);
6179                set_int(button_state, BUTTON_STATE_ENABLED);
6180             }
6181          }
6182          program { name: "focused";
6183             //signal: "elm,action,focus";
6184             //source: "elm";
6185             action: STATE_SET "focused" 0.0;
6186             target: "button_image";
6187             target: "elm.text";
6188          }
6189          program { name: "unfocused";
6190             //signal: "elm,action,unfocus";
6191             //source: "elm";
6192             action: STATE_SET "default" 0.0;
6193             target: "button_image";
6194             after: "unfocus_text";
6195          }
6196          program { name: "unfocus_text";
6197             action: STATE_SET "visible" 0.0;
6198             target: "elm.text";
6199          }
6200       }
6201    }
6202
6203 ///////////////////////////////////////////////////////////////////////////////////////
6204    group { name: "elm/button/base/expandable_number";
6205       alias: "elm/button/base/text_only/expandable_number";
6206       images {
6207          image: "00_button_01.png" COMP;
6208          image: "00_button_01_press.png" COMP;
6209          image: "00_button_01_dim.png" COMP;
6210          image: "00_arrow_expand.png" COMP;
6211       }
6212       script {
6213          public button_state = BUTTON_STATE_ENABLED;
6214       }
6215       parts {
6216          part { name: "button_image";
6217             scale: 1;
6218             description { state: "default" 0.0;
6219                min: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
6220                max: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
6221                image {
6222                   normal: "00_button_01.png";
6223                   border: BUTTON_EXPANDABLE_NUMBER_BG_BORDER_INC;
6224                   border_scale: 1;
6225                }
6226             }
6227             description { state: "clicked" 0.0;
6228                inherit: "default" 0.0;
6229                image.normal: "00_button_01_press.png";
6230             }
6231             description { state: "disabled" 0.0;
6232                inherit: "default" 0.0;
6233                image.normal: "00_button_01_dim.png";
6234             }
6235             description { state: "focused" 0.0;
6236                inherit: "default" 0.0;
6237                image.normal: "00_button_01_press.png";
6238             }
6239          }
6240          part { name: "padding_left_top";
6241             type: RECT;
6242             scale: 1;
6243             mouse_events: 0;
6244             description { state: "default" 0.0;
6245                visible: 0;
6246                align: 0.0 0.0;
6247                rel2.relative: 0.0 0.0;
6248                min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
6249                fixed: 1 1;
6250             }
6251          }
6252          part { name: "padding_right_bottom";
6253             type: RECT;
6254             scale: 1;
6255             mouse_events: 0;
6256             description { state: "default" 0.0;
6257                visible: 0;
6258                align: 1.0 1.0;
6259                rel1.relative: 1.0 1.0;
6260                min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
6261                fixed: 1 1;
6262             }
6263          }
6264          part { name: "icon_rect";
6265             type: RECT;
6266             scale: 1;
6267             mouse_events: 0;
6268             description { state: "default" 0.0;
6269                visible: 0;
6270                min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6271                max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6272                fixed: 1 0;
6273                rel1 {
6274                   relative: 0.0 1.0;
6275                   to_x: "padding_right_bottom";
6276                   to_y: "padding_left_top";
6277                }
6278                rel2 {
6279                   relative: 0.0 0.0;
6280                   to: "padding_right_bottom";
6281                }
6282                align: 1.0 0.5;
6283             }
6284          }
6285          part { name: "arrow_expand";
6286             scale: 1;
6287             clip_to: "icon_clipper";
6288             mouse_events: 0;
6289             description { state: "default" 0.0;
6290                align: 0.0 0.5;
6291                min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6292                max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6293                fixed: 0 0;
6294                rel1.to: "icon_rect";
6295                rel2.to: "icon_rect";
6296                image.normal:"00_arrow_expand.png";
6297             }
6298          }
6299          part { name: "elm.text";
6300             type: TEXT;
6301             mouse_events: 0;
6302             effect: SHADOW BOTTOM;
6303             scale: 1;
6304             description { state: "default" 0.0;
6305                min: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
6306                max: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
6307                fixed:1 0;
6308                rel1 {
6309                   relative: 1.0 1.0;
6310                   to: "padding_left_top";
6311                }
6312                rel2 {
6313                   relative: 1.0 1.0;
6314                   to_x:"padding_left_top";
6315                   to_y:"padding_right_bottom";
6316                }
6317                align: 0.0 0.5;
6318                color: BUTTON_NUMBER_TEXT_NORMAL_COLOR_INC;
6319                color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
6320                text {
6321                   font: "Tizen:style=Regular";
6322                   size: BUTTON_EXPANDABLE_NUMBER_FONT_SIZE_INC;
6323                   min: 0 0;
6324                   fit: 1 1;
6325                   size_range: 28 32;
6326                   text_class: "tizen";
6327                }
6328             }
6329             description { state: "visible" 0.0;
6330                inherit: "default" 0.0;
6331             }
6332             description { state: "clicked" 0.0;
6333                inherit: "default" 0.0;
6334                color: BUTTON_NUMBER_TEXT_PRESSED_COLOR_INC;
6335             }
6336             description { state: "disabled" 0.0;
6337                inherit: "default" 0.0;
6338             }
6339             description { state: "disabled_visible" 0.0;
6340                inherit: "default" 0.0;
6341                color: BUTTON_NUMBER_TEXT_DISABLE_VISIBLE_COLOR_INC;
6342                color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
6343             }
6344             description { state: "focused" 0.0;
6345                inherit: "default" 0.0;
6346                color: BUTTON_NUMBER_TEXT_FOCUSED_COLOR_INC;
6347             }
6348          }
6349          part { name: "icon_clipper";
6350             scale: 1;
6351             type: RECT;
6352             description { state: "default" 0.0;
6353                color: BUTTON_NUMBER_ICON_NORMAL_COLOR_INC;
6354             }
6355             description { state: "clicked" 0.0;
6356                color: BUTTON_NUMBER_ICON_PRESSED_COLOR_INC;
6357             }
6358             description { state: "disabled" 0.0;
6359                color: BUTTON_NUMBER_ICON_DISABLED_COLOR_INC;
6360             }
6361          }
6362          part { name: "over2";
6363             type: RECT;
6364             repeat_events: 1;
6365             ignore_flags: ON_HOLD;
6366             description { state: "default" 0.0;
6367                color: 0 0 0 0;
6368             }
6369          }
6370          part { name: "over3";
6371             type: RECT;
6372             repeat_events: 1;
6373             description { state: "default" 0.0;
6374                color: 0 0 0 0;
6375             }
6376          }
6377          part { name: "disabler";
6378             type: RECT;
6379             description { state: "default" 0.0;
6380                color: 0 0 0 0;
6381                visible: 0;
6382             }
6383             description { state: "disabled" 0.0;
6384                inherit: "default" 0.0;
6385                visible: 1;
6386             }
6387          }
6388       }
6389       programs {
6390          program { name: "button_click";
6391             signal: "mouse,down,1";
6392             source: "over2";
6393             action: SIGNAL_EMIT "elm,action,press" "";
6394             after: "button_click_anim";
6395          }
6396          program { name: "button_click_anim";
6397             action: STATE_SET "clicked" 0.0;
6398             target: "button_image";
6399             target: "icon_clipper";
6400             after: "text_clicked";
6401          }
6402          program { name: "text_clicked";
6403             script {
6404                new st[31];
6405                new Float:vl;
6406                get_state(PART:"elm.text", st, 30, vl);
6407                if (!strcmp(st, "visible"))
6408                  set_state(PART:"elm.text", "clicked", 0.0);
6409             }
6410          }
6411          program { name: "button_double_click";
6412             signal: "mouse,down,1,double";
6413             source: "over2";
6414             after: "button_click_anim";
6415          }
6416          program { name: "button_unpress";
6417             action: SIGNAL_EMIT "elm,action,unpress" "";
6418          }
6419          program { name: "button_mouseout_clicked";
6420             signal: "mouse,up,1";
6421             source: "over3";
6422             script {
6423                if (get_int(button_state) != BUTTON_STATE_DISABLED)
6424                  {
6425                     set_state(PART:"button_image", "default", 0.0);
6426                     set_state(PART:"elm.text", "visible", 0.0);
6427                     set_state(PART:"icon_clipper", "default", 0.0);
6428                  }
6429             }
6430             after: button_unpress;
6431          }
6432          program { name: "touch_snd";
6433             signal: "mouse,clicked,1";
6434             source: "over2";
6435             action: PLAY_SAMPLE "touch_sound" 1.0;
6436             after: button_unclick3;
6437          }
6438          program { name: "button_unclick3";
6439             action: SIGNAL_EMIT "elm,action,click" "";
6440          }
6441          program { name: "text_show";
6442             signal: "elm,state,text,visible";
6443             source: "elm";
6444             script {
6445                if (get_int(button_state) != BUTTON_STATE_DISABLED)
6446                  set_state(PART:"elm.text", "visible", 0.0);
6447                else
6448                  set_state(PART:"elm.text", "disabled_visible", 0.0);
6449             }
6450          }
6451          program { name: "text_hide";
6452             signal: "elm,state,text,hidden";
6453             source: "elm";
6454             script {
6455                set_state(PART:"elm.text", "default", 0.0);
6456             }
6457          }
6458          program { name: "disable";
6459             signal: "elm,state,disabled";
6460             source: "elm";
6461             action: STATE_SET "disabled" 0.0;
6462             target: "button_image";
6463             target: "disabler";
6464             target: "icon_clipper";
6465             after: "disable_text";
6466          }
6467          program { name: "disable_text";
6468             script {
6469                new st[31];
6470                new Float:vl;
6471                get_state(PART:"elm.text", st, 30, vl);
6472                if (!strcmp(st, "visible"))
6473                  set_state(PART:"elm.text", "disabled_visible", 0.0);
6474                else
6475                  set_state(PART:"elm.text", "disabled", 0.0);
6476                set_int(button_state, BUTTON_STATE_DISABLED);
6477             }
6478          }
6479          program { name: "enable";
6480             signal: "elm,state,enabled";
6481             source: "elm";
6482             action: STATE_SET "default" 0.0;
6483             target: "button_image";
6484             target: "disabler";
6485             target: "icon_clipper";
6486             after: "enable_text";
6487          }
6488          program { name: "enable_text";
6489             script {
6490                new st[31];
6491                new Float:vl;
6492                get_state(PART:"elm.text", st, 30, vl);
6493                if (!strcmp(st, "disabled_visible"))
6494                  set_state(PART:"elm.text", "visible", 0.0);
6495                else
6496                  set_state(PART:"elm.text", "default", 0.0);
6497                set_int(button_state, BUTTON_STATE_ENABLED);
6498             }
6499          }
6500          program { name: "focused";
6501             //signal: "elm,action,focus";
6502             //source: "elm";
6503             action: STATE_SET "focused" 0.0;
6504             target: "button_image";
6505             target: "elm.text";
6506          }
6507          program { name: "unfocused";
6508             //signal: "elm,action,unfocus";
6509             //source: "elm";
6510             action: STATE_SET "default" 0.0;
6511             target: "button_image";
6512             after: "unfocus_text";
6513          }
6514          program { name: "unfocus_text";
6515             action: STATE_SET "visible" 0.0;
6516             target: "elm.text";
6517          }
6518       }
6519    }
6520
6521 ////////////////////////////////////////////////////////////////////////
6522    group { name: "elm/button/base/bubble_sent";
6523       inherit: "elm/button/base/style1";
6524       images {
6525          image: "00_messagebubble_button_sent.png" COMP;
6526          image: "00_messagebubble_button_sent_press.png" COMP;
6527          image: "00_messagebubble_button_sent_dim.png" COMP;
6528       }
6529       parts {
6530          part { name: "button_image";
6531             scale: 1;
6532             description { state: "default" 0.0;
6533                image {
6534                   normal: "00_messagebubble_button_sent.png";
6535                   border: BUTTON_SENT_BUBBLE_BG_BORDER_INC;
6536                   border_scale: 1;
6537                }
6538             }
6539             description { state: "clicked" 0.0;
6540                inherit: "default" 0.0;
6541                image.normal: "00_messagebubble_button_sent_press.png";
6542             }
6543             description { state: "disabled" 0.0;
6544                inherit: "default" 0.0;
6545                image.normal: "00_messagebubble_button_sent_dim.png";
6546             }
6547             description { state: "focused" 0.0;
6548                inherit: "default" 0.0;
6549                image.normal: "00_messagebubble_button_sent_press.png";
6550             }
6551          }
6552          part { name: "elm.text";
6553             type: TEXT;
6554             mouse_events: 0;
6555             effect: FAR_SHADOW BOTTOM;
6556             scale: 1;
6557             clip_to: "clipper";
6558             description { state: "default" 0.0;
6559                visible: 0;
6560                rel1 {
6561                   relative: 1.0 1.0;
6562                   to_x: "padding_after_icon";
6563                   to_y: "padding_left_top";
6564                }
6565                rel2 {
6566                   relative: 0.0 0.0;
6567                   to: "padding_right_bottom";
6568                }
6569                color: BUTTON_SEND_BUBBLE_TEXT_NORMAL_COLOR_INC;
6570                color2: BUTTON_SEND_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
6571                text {
6572                   font: "Tizen:style=Regular";
6573                   size: BUTTON_SENT_BUBBLE_TEXT_FONT_SIZE_INC;
6574                   min: 0 0;
6575                   max: 1 0;
6576                   text_class: "tizen";
6577                }
6578             }
6579             description { state: "visible" 0.0;
6580                inherit: "default" 0.0;
6581                visible: 1;
6582             }
6583             description { state: "clicked" 0.0;
6584                inherit: "default" 0.0;
6585                visible: 1;
6586                color: BUTTON_SEND_BUBBLE_TEXT_PRESSED_COLOR_INC;
6587             }
6588             description { state: "disabled" 0.0;
6589                inherit: "default" 0.0;
6590             }
6591             description { state: "disabled_visible" 0.0;
6592                inherit: "default" 0.0;
6593                color: BUTTON_SEND_BUBBLE_TEXT_DISABLED_COLOR_INC;
6594                visible: 1;
6595             }
6596             description { state: "focused" 0.0;
6597                inherit: "default" 0.0;
6598                visible: 1;
6599                color: BUTTON_SEND_BUBBLE_TEXT_FOCUSED_COLOR_INC;
6600             }
6601          }
6602       }
6603    }
6604
6605 ////////////////////////////////////////////////////////////////////////
6606    group { name: "elm/button/base/bubble_sent/multiline";
6607       inherit: "elm/button/base/bubble_sent";
6608       styles{
6609          style { name: "bubble_sent_multiline";
6610             base: "font=Tizen:style=Regular font_size="BUTTON_SENT_BUBBLE_TEXT_MULTILINE_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed ellipsis=1.0 text_class=tizen";
6611             tag: "br" "\n";
6612             tag: "ps" "ps";
6613             tag: "tab" "\t";
6614          }
6615       }
6616       parts {
6617          part { name: "elm.text";
6618             type: TEXTBLOCK;
6619             mouse_events: 0;
6620             effect: FAR_SHADOW BOTTOM;
6621             scale: 1;
6622             clip_to: "clipper";
6623             description { state: "default" 0.0;
6624                visible: 0;
6625                fixed: 1 1;
6626                rel1 {
6627                   relative: 1.0 1.0;
6628                   to_x: "padding_after_icon";
6629                   to_y: "padding_left_top";
6630                }
6631                rel2 {
6632                   relative: 0.0 0.0;
6633                   to: "padding_right_bottom";
6634                }
6635                color: BUTTON_SEND_BUBBLE_TEXT_NORMAL_COLOR_INC;
6636                color2: BUTTON_SEND_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
6637                text {
6638                    style: "bubble_sent_multiline";
6639                }
6640             }
6641             description { state: "visible" 0.0;
6642                inherit: "default" 0.0;
6643                visible: 1;
6644             }
6645             description { state: "clicked" 0.0;
6646                inherit: "default" 0.0;
6647                visible: 1;
6648                color: BUTTON_SEND_BUBBLE_TEXT_PRESSED_COLOR_INC;
6649             }
6650             description { state: "disabled" 0.0;
6651                inherit: "default" 0.0;
6652             }
6653             description { state: "disabled_visible" 0.0;
6654                inherit: "default" 0.0;
6655                color: BUTTON_SEND_BUBBLE_TEXT_DISABLED_COLOR_INC;
6656                visible: 1;
6657             }
6658             description { state: "focused" 0.0;
6659                inherit: "default" 0.0;
6660                visible: 1;
6661                color: BUTTON_SEND_BUBBLE_TEXT_FOCUSED_COLOR_INC;
6662             }
6663          }
6664       }
6665    }
6666
6667 ///////////////////////////////////////////////////////////////////////
6668    group { name: "elm/button/base/bubble_receive";
6669       inherit: "elm/button/base/style1";
6670       images {
6671          image: "00_messagebubble_button_receive.png" COMP;
6672          image: "00_messagebubble_button_receive_press.png" COMP;
6673          image: "00_messagebubble_button_receive_dim.png" COMP;
6674       }
6675       parts {
6676          part { name: "button_image";
6677             scale: 1;
6678             description { state: "default" 0.0;
6679                image {
6680                   normal: "00_messagebubble_button_receive.png";
6681                   border: BUTTON_RECEIVE_BUBBLE_BG_BORDER_INC;
6682                   border_scale: 1;
6683                }
6684             }
6685             description { state: "clicked" 0.0;
6686                inherit: "default" 0.0;
6687                image.normal: "00_messagebubble_button_receive_press.png";
6688             }
6689             description { state: "disabled" 0.0;
6690                inherit: "default" 0.0;
6691                image.normal: "00_messagebubble_button_receive_dim.png";
6692             }
6693             description { state: "focused" 0.0;
6694                inherit: "default" 0.0;
6695                image.normal: "00_messagebubble_button_receive_press.png";
6696             }
6697          }
6698          part { name: "elm.text";
6699             type: TEXT;
6700             mouse_events: 0;
6701             effect: SHADOW BOTTOM;
6702             scale: 1;
6703             clip_to: "clipper";
6704             description { state: "default" 0.0;
6705                visible: 0;
6706                rel1 {
6707                   relative: 1.0 1.0;
6708                   to_x: "padding_after_icon";
6709                   to_y: "padding_left_top";
6710                }
6711                rel2 {
6712                   relative: 0.0 0.0;
6713                   to: "padding_right_bottom";
6714                }
6715                color: BUTTON_RECEIVE_BUBBLE_TEXT_NORMAL_COLOR_INC;
6716                color2: BUTTON_RECEIVE_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
6717                text {
6718                   font: "Tizen:style=Regular";
6719                   size: BUTTON_RECEIVE_BUBBLE_TEXT_FONT_SIZE_INC;
6720                   min: 0 0;
6721                   max: 1 0;
6722                   text_class: "tizen";
6723                }
6724             }
6725             description { state: "visible" 0.0;
6726                inherit: "default" 0.0;
6727                visible: 1;
6728             }
6729             description { state: "clicked" 0.0;
6730                inherit: "default" 0.0;
6731                visible: 1;
6732                color: BUTTON_RECEIVE_BUBBLE_TEXT_PRESSED_COLOR_INC;
6733             }
6734             description { state: "disabled" 0.0;
6735                inherit: "default" 0.0;
6736             }
6737             description { state: "disabled_visible" 0.0;
6738                inherit: "default" 0.0;
6739                color: BUTTON_RECEIVE_BUBBLE_TEXT_DISABLED_COLOR_INC;
6740                visible: 1;
6741             }
6742             description { state: "focused" 0.0;
6743                inherit: "default" 0.0;
6744                visible: 1;
6745                color: BUTTON_RECEIVE_BUBBLE_TEXT_FOCUSED_COLOR_INC;
6746             }
6747          }
6748       }
6749    }
6750
6751 ///////////////////////////////////////////////////////////////////////
6752    group { name: "elm/button/base/bubble_receive/multiline";
6753       inherit: "elm/button/base/bubble_receive";
6754       styles{
6755          style { name: "bubble_receive_multiline";
6756             base: "font=Tizen:style=Regular font_size="BUTTON_RECEIVE_BUBBLE_TEXT_MULTILINE_FONT_SIZE_INC" align=center color=#ffffff wrap=mixed ellipsis=1.0 text_class=tizen";
6757             tag: "br" "\n";
6758             tag: "ps" "ps";
6759             tag: "tab" "\t";
6760          }
6761       }
6762       parts {
6763          part { name: "elm.text";
6764             type: TEXTBLOCK;
6765             mouse_events: 0;
6766             effect: SHADOW BOTTOM;
6767             scale: 1;
6768             clip_to: "clipper";
6769             description { state: "default" 0.0;
6770                visible: 0;
6771                fixed: 1 1;
6772                rel1 {
6773                   relative: 1.0 1.0;
6774                   to_x: "padding_after_icon";
6775                   to_y: "padding_left_top";
6776                }
6777                rel2 {
6778                   relative: 0.0 0.0;
6779                   to: "padding_right_bottom";
6780                }
6781                color: BUTTON_RECEIVE_BUBBLE_TEXT_NORMAL_COLOR_INC;
6782                color2: BUTTON_RECEIVE_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
6783                text {
6784                    style: "btn_style1_multiline";
6785                }
6786             }
6787             description { state: "visible" 0.0;
6788                inherit: "default" 0.0;
6789                visible: 1;
6790             }
6791             description { state: "clicked" 0.0;
6792                inherit: "default" 0.0;
6793                visible: 1;
6794                color: BUTTON_RECEIVE_BUBBLE_TEXT_PRESSED_COLOR_INC;
6795             }
6796             description { state: "disabled" 0.0;
6797                inherit: "default" 0.0;
6798             }
6799             description { state: "disabled_visible" 0.0;
6800                inherit: "default" 0.0;
6801                color: BUTTON_RECEIVE_BUBBLE_TEXT_DISABLED_COLOR_INC;
6802                visible: 1;
6803             }
6804             description { state: "focused" 0.0;
6805                inherit: "default" 0.0;
6806                visible: 1;
6807                color: BUTTON_RECEIVE_BUBBLE_TEXT_FOCUSED_COLOR_INC;
6808             }
6809          }
6810       }
6811    }
6812
6813 ///////////////////////////////////////////////////////////////////////
6814 group { name: "elm/button/base/bubble_circle/receive";
6815       images {
6816          image: "00_messagebubble_circle_receive.png" COMP;
6817          image: "00_messagebubble_circle_receive_press.png" COMP;
6818          image: "00_messagebubble_circle_receive_dim.png" COMP;
6819          image: "00_button_right.png" COMP;
6820          image: "00_button_right_press.png" COMP;
6821       }
6822       parts {
6823          part { name: "button_image";
6824             scale: 1;
6825             description { state: "default" 0.0;
6826                min: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
6827                max: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
6828                image.normal: "00_messagebubble_circle_receive.png";
6829             }
6830             description {
6831                state: "clicked" 0.0;
6832                inherit: "default" 0.0;
6833                image.normal: "00_messagebubble_circle_receive_press.png";
6834             }
6835             description {
6836                state: "disabled" 0.0;
6837                inherit: "default" 0.0;
6838                image.normal: "00_messagebubble_circle_receive_dim.png";
6839             }
6840          }
6841          part { name: "image";
6842             scale: 1;
6843             clip_to: "icon_clipper";
6844             description { state: "default" 0.0;
6845                min: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
6846                max: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
6847                image.normal: "00_button_right.png";
6848             }
6849             description {
6850                state: "clicked" 0.0;
6851                inherit: "default" 0.0;
6852                image.normal: "00_button_right_press.png";
6853             }
6854             description {
6855                state: "disabled" 0.0;
6856                inherit: "default" 0.0;
6857             }
6858          }
6859          part { name: "icon_clipper";
6860             type: RECT;
6861             scale: 1;
6862             description { state: "default" 0.0;
6863                color: BUTTON_BUBBLE_CIRCLE_RECEIVE_ICON_NORMAL_COLOR_INC;
6864             }
6865             description { state: "clicked" 0.0;
6866                color: BUTTON_BUBBLE_CIRCLE_RECEIVE_ICON_PRESSED_COLOR_INC;
6867             }
6868             description { state: "disabled" 0.0;
6869                color: BUTTON_BUBBLE_CIRCLE_RECEIVE_ICON_DISABLED_COLOR_INC;
6870             }
6871          }
6872          part { name: "over1";
6873             type: RECT;
6874             ignore_flags: ON_HOLD;
6875             description { state: "default" 0.0;
6876                color: 0 0 0 0;
6877             }
6878          }
6879          part { name: "over2";
6880             type: RECT;
6881             repeat_events: 1;
6882             description { state: "default" 0.0;
6883                color: 0 0 0 0;
6884             }
6885          }
6886          part { name: "disabler";
6887             type: RECT;
6888             description { state: "default" 0.0;
6889                color: 0 0 0 0;
6890                visible: 0;
6891             }
6892             description { state: "disabled" 0.0;
6893                inherit: "default" 0.0;
6894                visible: 1;
6895             }
6896          }
6897       }
6898       programs {
6899          program { name: "button_click";
6900             signal: "mouse,down,1";
6901             source: "over1";
6902             action: SIGNAL_EMIT "elm,action,press" "";
6903             after: "button_click_anim";
6904          }
6905          program { name: "button_click_anim";
6906             action: STATE_SET "clicked" 0.0;
6907             target: "button_image";
6908             target: "image";
6909             target: "icon_clipper";
6910          }
6911          program { name: "button_double_click";
6912             signal: "mouse,down,1,double";
6913             source: "over1";
6914             after: "button_click_anim";
6915          }
6916          program { name: "button_unclick";
6917             signal: "mouse,up,1";
6918             source: "over2";
6919             action: SIGNAL_EMIT "elm,action,unpress" "";
6920             after: "button_unclick_anim";
6921          }
6922          program { name: "button_unclick_anim";
6923             action: STATE_SET "default" 0.0;
6924             target: "button_image";
6925             target: "image";
6926             target: "icon_clipper";
6927          }
6928          program { name: "touch_snd";
6929             signal: "mouse,clicked,1";
6930             source: "over1";
6931             action: PLAY_SAMPLE "touch_sound" 1.0;
6932             after: button_unclick3;
6933          }
6934          program { name: "button_unclick3";
6935             action: SIGNAL_EMIT "elm,action,click" "";
6936          }
6937          program { name: "disable";
6938             signal: "elm,state,disabled";
6939             source: "elm";
6940             action: STATE_SET "disabled" 0.0;
6941             target: "disabler";
6942             target: "button_image";
6943             target: "icon_clipper";
6944             
6945          }
6946          program { name: "enable";
6947             signal: "elm,state,enabled";
6948             source: "elm";
6949             action: STATE_SET "default" 0.0;
6950             target: "disabler";
6951             target: "button_image";
6952             target: "icon_clipper";
6953          }
6954       }
6955    }
6956
6957 ///////////////////////////////////////////////////////////////////////
6958 group { name: "elm/button/base/bubble_circle/sent";
6959       images {
6960          image: "00_messagebubble_circle_sent.png" COMP;
6961          image: "00_messagebubble_circle_sent_press.png" COMP;
6962          image: "00_messagebubble_circle_sent_dim.png" COMP;
6963          image: "00_button_right.png" COMP;
6964          image: "00_button_right_press.png" COMP;
6965       }
6966       parts {
6967          part { name: "button_image";
6968             scale: 1;
6969             description { state: "default" 0.0;
6970                min: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
6971                max: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
6972                image.normal: "00_messagebubble_circle_sent.png";
6973             }
6974             description {
6975                state: "clicked" 0.0;
6976                inherit: "default" 0.0;
6977                image.normal: "00_messagebubble_circle_sent_press.png";
6978             }
6979             description {
6980                state: "disabled" 0.0;
6981                inherit: "default" 0.0;
6982                image.normal: "00_messagebubble_circle_sent_dim.png";
6983             }
6984          }
6985          part { name: "image";
6986             scale: 1;
6987             clip_to: "icon_clipper";
6988             description { state: "default" 0.0;
6989                min: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
6990                max: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
6991                image.normal: "00_button_right.png";
6992             }
6993             description {
6994                state: "clicked" 0.0;
6995                inherit: "default" 0.0;
6996                image.normal: "00_button_right_press.png";
6997             }
6998             description {
6999                state: "disabled" 0.0;
7000                inherit: "default" 0.0;
7001             }
7002          }
7003          part { name: "icon_clipper";
7004             type: RECT;
7005             scale: 1;
7006             description { state: "default" 0.0;
7007                color: BUTTON_BUBBLE_CIRCLE_SENT_ICON_NORMAL_COLOR_INC;
7008             }
7009             description { state: "clicked" 0.0;
7010                color: BUTTON_BUBBLE_CIRCLE_SENT_ICON_PRESSED_COLOR_INC;
7011             }
7012             description { state: "disabled" 0.0;
7013                color: BUTTON_BUBBLE_CIRCLE_SENT_ICON_DISABLED_COLOR_INC;
7014             }
7015          }
7016          part { name: "over1";
7017             type: RECT;
7018             ignore_flags: ON_HOLD;
7019             description { state: "default" 0.0;
7020                color: 0 0 0 0;
7021             }
7022          }
7023          part { name: "over2";
7024             type: RECT;
7025             repeat_events: 1;
7026             description { state: "default" 0.0;
7027                color: 0 0 0 0;
7028             }
7029          }
7030          part { name: "disabler";
7031             type: RECT;
7032             description { state: "default" 0.0;
7033                color: 0 0 0 0;
7034                visible: 0;
7035             }
7036             description { state: "disabled" 0.0;
7037                inherit: "default" 0.0;
7038                visible: 1;
7039             }
7040          }
7041       }
7042       programs {
7043          program { name: "button_click";
7044             signal: "mouse,down,1";
7045             source: "over1";
7046             action: SIGNAL_EMIT "elm,action,press" "";
7047             after: "button_click_anim";
7048          }
7049          program { name: "button_click_anim";
7050             action: STATE_SET "clicked" 0.0;
7051             target: "button_image";
7052             target: "image";
7053             target: "icon_clipper";
7054          }
7055          program { name: "button_double_click";
7056             signal: "mouse,down,1,double";
7057             source: "over1";
7058             after: "button_click_anim";
7059          }
7060          program { name: "button_unclick";
7061             signal: "mouse,up,1";
7062             source: "over2";
7063             action: SIGNAL_EMIT "elm,action,unpress" "";
7064             after: "button_unclick_anim";
7065          }
7066          program { name: "button_unclick_anim";
7067             action: STATE_SET "default" 0.0;
7068             target: "button_image";
7069             target: "image";
7070             target: "icon_clipper";
7071          }
7072          program { name: "touch_snd";
7073             signal: "mouse,clicked,1";
7074             source: "over1";
7075             action: PLAY_SAMPLE "touch_sound" 1.0;
7076             after: button_unclick3;
7077          }
7078          program { name: "button_unclick3";
7079             action: SIGNAL_EMIT "elm,action,click" "";
7080          }
7081          program { name: "disable";
7082             signal: "elm,state,disabled";
7083             source: "elm";
7084             action: STATE_SET "disabled" 0.0;
7085             target: "disabler";
7086             target: "button_image";
7087             target: "icon_clipper";
7088          }
7089          program { name: "enable";
7090             signal: "elm,state,enabled";
7091             source: "elm";
7092             action: STATE_SET "default" 0.0;
7093             target: "disabler";
7094             target: "button_image";
7095             target: "icon_clipper";
7096          }
7097       }
7098    }
7099
7100 //////////////////////////////////////////////////////////////////////////////////////
7101    group { name: "elm/button/base/editfield_clear";
7102       images {
7103          image: "00_EditField_clear" COMP;
7104       }
7105       parts {
7106          part { name: "button_image";
7107             type: RECT;
7108             scale: 1;
7109             description { state: "default" 0.0;
7110                visible: 0;
7111             }
7112             description { state: "clicked" 0.0;
7113                inherit: "default" 0.0;
7114             }
7115             description { state: "disabled" 0.0;
7116                inherit: "default" 0.0;
7117             }
7118             description { state: "focused" 0.0;
7119                inherit: "default" 0.0;
7120             }
7121          }
7122          part { name: "clear_button";
7123             scale: 1;
7124             mouse_events: 0;
7125             clip_to: "clear_button.clipper";
7126             description { state: "default" 0.0;
7127                min: BUTTON_EDITFIELD_CLEAR_BUTTON_MIN_MAX_INC;
7128                max: BUTTON_EDITFIELD_CLEAR_BUTTON_MIN_MAX_INC;
7129                fixed: 1 1;
7130                align: 0.0 0.5;
7131                image.normal: "00_EditField_clear.png";
7132             }
7133          }
7134          part { name: "clear_button.clipper";
7135             type: RECT;
7136             description { state: "default" 0.0;
7137                color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_DEFAULT_COLOR_INC;
7138             }
7139             description { state: "clicked" 0.0;
7140                color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_PRESSED_COLOR_INC;
7141             }
7142             description { state: "disabled" 0.0;
7143                color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_DISABLED_COLOR_INC;
7144             }
7145          }
7146          part { name: "over2";
7147             type: RECT;
7148             ignore_flags: ON_HOLD;
7149             description { state: "default" 0.0;
7150                color: 0 0 0 0;
7151             }
7152          }
7153          part { name: "over3";
7154             type: RECT;
7155             repeat_events: 1;
7156             description { state: "default" 0.0;
7157                color: 0 0 0 0;
7158             }
7159          }
7160          part { name: "disabler";
7161             type: RECT;
7162             description { state: "default" 0.0;
7163                color: 0 0 0 0;
7164                visible: 0;
7165             }
7166             description { state: "disabled" 0.0;
7167                inherit: "default" 0.0;
7168                visible: 1;
7169             }
7170          }
7171       }
7172       programs {
7173          program { name: "button_click";
7174             signal: "mouse,down,1";
7175             source: "over2";
7176             action: SIGNAL_EMIT "elm,action,press" "";
7177             after: "button_click_anim";
7178          }
7179          program { name: "button_click_anim";
7180             action: STATE_SET "clicked" 0.0;
7181             target: "button_image";
7182             target: "clear_button.clipper";
7183          }
7184          program { name: "button_double_click";
7185             signal: "mouse,down,1,double";
7186             source: "over1";
7187             after: "button_click_anim";
7188          }
7189          program { name: "button_unclick";
7190             signal: "mouse,up,1";
7191             source: "over3";
7192             action: SIGNAL_EMIT "elm,action,unpress" "";
7193             after: "button_unclick_anim";
7194          }
7195          program { name: "button_unclick_anim";
7196             action: STATE_SET "default" 0.0;
7197             target: "button_image";
7198             target: "clear_button.clipper";
7199          }
7200          program { name: "touch_snd";
7201             signal: "mouse,clicked,1";
7202             source: "over2";
7203             action: PLAY_SAMPLE "touch_sound" 1.0;
7204             after: button_unclick3;
7205          }
7206          program { name: "button_unclick3";
7207             action: SIGNAL_EMIT "elm,action,click" "";
7208          }
7209          program { name: "disable";
7210             signal: "elm,state,disabled";
7211             source: "elm";
7212             action: STATE_SET "disabled" 0.0;
7213             target: "button_image";
7214             target: "disabler";
7215             target: "clear_button.clipper";
7216          }
7217          program { name: "enable";
7218             signal: "elm,state,enabled";
7219             source: "elm";
7220             action: STATE_SET "default" 0.0;
7221             target: "button_image";
7222             target: "disabler";
7223             target: "clear_button.clipper";
7224          }
7225       }
7226    }
7227
7228    group { name: "elm/button/base/focus";
7229       parts {
7230          part { name: "elm.content.swallow";
7231             type: SWALLOW;
7232             scale: 1;
7233             description { state: "default" 0.0;
7234             }
7235          }
7236          part { name: "over2";
7237             type: RECT;
7238             ignore_flags: ON_HOLD;
7239             description { state: "default" 0.0;
7240                color: 0 0 0 0;
7241             }
7242          }
7243          part { name: "over3";
7244             type: RECT;
7245             repeat_events: 1;
7246             description { state: "default" 0.0;
7247                color: 0 0 0 0;
7248             }
7249          }
7250       }
7251       programs {
7252          program { name: "button_click";
7253             signal: "mouse,down,1";
7254             source: "over2";
7255             action: SIGNAL_EMIT "elm,action,press" "";
7256          }
7257          program { name: "button_unclick";
7258             signal: "mouse,up,1";
7259             source: "over3";
7260             action: SIGNAL_EMIT "elm,action,unpress" "";
7261          }
7262          program { name: "button_unclick3";
7263             action: SIGNAL_EMIT "elm,action,click" "";
7264          }
7265       }
7266    }
7267
7268    group { name: "elm/button/base/search_clear";
7269       inherit: "elm/button/base/editfield_clear";
7270       parts {
7271          part { name: "clear_button";
7272             scale: 1;
7273             mouse_events: 0;
7274             clip_to: "clear_button.clipper";
7275             description { state: "default" 0.0;
7276                min: BUTTON_SEARCH_CLEAR_BUTTON_MIN_MAX_INC;
7277                max: BUTTON_SEARCH_CLEAR_BUTTON_MIN_MAX_INC;
7278                fixed: 1 1;
7279                align: 0.0 0.5;
7280                image.normal: "00_EditField_clear.png";
7281             }
7282          }
7283       }
7284    }
7285
7286 #undef BUTTON_STATE_ENABLED
7287 #undef BUTTON_STATE_DISABLED