[button] Fix the naviframe toolbar button position and style
[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="BUTTON_NAVIFRAME_TITLE_TEXTBLOCK_NORMAL_COLOR_INC" style=shadow,bottom shadow_color="BUTTON_NAVIFRAME_TEXTBLOCK_SHADOW_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
4403             tag: "br" "\n";
4404             tag: "ps" "ps";
4405             tag: "tab" "\t";
4406          }
4407          style { name: "btn_naviframe_toolbar_pressed";
4408             base: "font=Tizen:style=Bold font_size="BUTTON_NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC" align=center color="BUTTON_NAVIFRAME_TITLE_TEXTBLOCK_PRESSED_COLOR_INC" style=shadow,top shadow_color="BUTTON_NAVIFRAME_TEXTBLOCK_SHADOW_PRESSED_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
4409             tag: "br" "\n";
4410             tag: "ps" "ps";
4411             tag: "tab" "\t";
4412          }
4413          style { name: "btn_naviframe_toolbar_disabled";
4414             base: "font=Tizen:style=Bold font_size="BUTTON_NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC" align=center color="BUTTON_NAVIFRAME_TITLE_TEXTBLOCK_DISABLED_COLOR_INC" style=shadow,bottom shadow_color="BUTTON_NAVIFRAME_TEXTBLOCK_SHADOW_DIM_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
4415             tag: "br" "\n";
4416             tag: "ps" "ps";
4417             tag: "tab" "\t";
4418          }
4419       }
4420       script {
4421          public button_state = BUTTON_STATE_ENABLED;
4422       }
4423       parts {
4424          part { name: "button_image";
4425             scale: 1;
4426             description { state: "default" 0.0;
4427                min: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MIN_INC;
4428                max: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MAX_INC;
4429                fixed: 1 1;
4430                rel1.to: "padding_text_left_top";
4431                rel2.to: "padding_text_right_bottom";
4432                image {
4433                   normal: "00_toolbar_button.png";
4434                   border: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_BORDER_INC;
4435                   border_scale: 1;
4436                }
4437             }
4438             description { state: "clicked" 0.0;
4439                inherit: "default" 0.0;
4440                image.normal: "00_toolbar_button_press.png";
4441             }
4442             description { state: "disabled" 0.0;
4443                inherit: "default" 0.0;
4444                image.normal: "00_toolbar_button_dim.png";
4445             }
4446             description { state: "focused" 0.0;
4447                inherit: "default" 0.0;
4448                image.normal: "00_toolbar_button_press.png";
4449             }
4450          }
4451          part { name: "padding_left_top";
4452             type: RECT;
4453             scale: 1;
4454             mouse_events: 0;
4455             description { state: "default" 0.0;
4456                visible: 0;
4457                align: 0.0 0.0;
4458                rel2.relative: 0.0 0.0;
4459                min: BUTTON_NAVIFRAME_TITLE_TEXT_PADDING_MIN_INC;
4460                fixed: 1 1;
4461             }
4462          }
4463          part { name: "padding_right_bottom";
4464             type: RECT;
4465             scale: 1;
4466             mouse_events: 0;
4467             description { state: "default" 0.0;
4468                align: 1.0 1.0;
4469                rel1.relative: 1.0 1.0;
4470                min: BUTTON_NAVIFRAME_TITLE_TEXT_PADDING_MIN_INC;
4471                fixed: 1 1;
4472                visible: 0;
4473             }
4474          }
4475          part { name: "padding_text_left_top";
4476             type: RECT;
4477             scale: 1;
4478             mouse_events: 0;
4479             description { state: "default" 0.0;
4480                visible: 0;
4481                min: BUTTON_NAVIFRAME_TITLE_TEXT_PADDING_MIN_INC;
4482                fixed: 1 1;
4483                rel1.to: "elm.text";
4484                rel2 {
4485                   relative: 0.0 0.0;
4486                   to: "elm.text";
4487                }
4488                align: 1.0 1.0;
4489             }
4490          }
4491          part { name: "padding_text_right_bottom";
4492             type: RECT;
4493             scale: 1;
4494             mouse_events: 0;
4495             description { state: "default" 0.0;
4496                min: BUTTON_NAVIFRAME_TITLE_TEXT_PADDING_MIN_INC;
4497                fixed: 1 1;
4498                visible: 0;
4499                rel1 {
4500                   relative: 1.0 1.0;
4501                   to: "elm.text";
4502                }
4503                rel2.to: "elm.text";
4504                align: 0.0 0.0;
4505             }
4506          }
4507          part { name: "elm.text";
4508             type: TEXTBLOCK;
4509             clip_to: "disclip";
4510             mouse_events: 0;
4511             scale: 1;
4512             description { state: "default" 0.0;
4513                visible: 0;
4514                fixed: 1 1;
4515                min: BUTTON_NAVIFRAME_TITLE_TEXTBLOCK_MIN_INC;
4516                rel1 {
4517                   relative: 1.0 1.0;
4518                   to: "padding_left_top";
4519                }
4520                rel2 {
4521                   relative: 0.0 0.0;
4522                   to: "padding_right_bottom";
4523                }
4524                text {
4525                   min: 0 1;
4526                   max: 1 1;
4527                   style: "btn_naviframe_toolbar";
4528                }
4529             }
4530             description { state: "visible" 0.0;
4531                inherit: "default" 0.0;
4532                visible: 1;
4533             }
4534             description { state: "clicked" 0.0;
4535                inherit: "default" 0.0;
4536                visible: 1;
4537                text {
4538                   style: "btn_naviframe_toolbar_pressed";
4539                }
4540             }
4541             description { state: "disabled" 0.0;
4542                inherit: "default" 0.0;
4543             }
4544             description { state: "disabled_visible" 0.0;
4545                inherit: "default" 0.0;
4546                visible: 1;
4547                text {
4548                   style: "btn_naviframe_toolbar_disabled";
4549                }
4550             }
4551             description { state: "focused" 0.0;
4552                inherit: "default" 0.0;
4553                visible: 1;
4554                text {
4555                   style: "btn_naviframe_toolbar_pressed";
4556                }
4557             }
4558          }
4559          part { name: "disclip";
4560             type: RECT;
4561             description { state: "default" 0.0;
4562                color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
4563             }
4564             description { state: "disabled" 0.0;
4565                inherit: "default" 0.0;
4566                color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
4567             }
4568          }
4569          part { name: "over2";
4570             type: RECT;
4571             repeat_events: 1;
4572             ignore_flags: ON_HOLD;
4573             description { state: "default" 0.0;
4574                rel1.to: "button_image";
4575                rel2.to: "button_image";
4576                color: 0 0 0 0;
4577             }
4578          }
4579          part { name: "over3";
4580             type: RECT;
4581             repeat_events: 1;
4582             description { state: "default" 0.0;
4583                rel1.to: "button_image";
4584                rel2.to: "button_image";
4585                color: 0 0 0 0;
4586             }
4587          }
4588          part { name: "disabler";
4589             type: RECT;
4590             description { state: "default" 0.0;
4591                rel1.to: "button_image";
4592                rel2.to: "button_image";
4593                color: 0 0 0 0;
4594                visible: 0;
4595             }
4596             description { state: "disabled" 0.0;
4597                inherit: "default" 0.0;
4598                visible: 1;
4599             }
4600          }
4601       }
4602       programs {
4603          program { name: "button_click";
4604             signal: "mouse,down,1";
4605             source: "over2";
4606             action: SIGNAL_EMIT "elm,action,press" "";
4607             after: "button_click_anim";
4608          }
4609          program { name: "button_click_anim";
4610             action: STATE_SET "clicked" 0.0;
4611             target: "button_image";
4612             target: "elm.text";
4613          }
4614          program { name: "button_double_click";
4615             signal: "mouse,down,1,double";
4616             source: "over2";
4617             after: "button_click_anim";
4618          }
4619          program { name: "button_unpress";
4620             action: SIGNAL_EMIT "elm,action,unpress" "";
4621          }
4622          program { name: "button_mouseout_clicked";
4623             signal: "mouse,up,1";
4624             source: "over3";
4625             script {
4626                new st[31];
4627                new Float:vl;
4628                get_state(PART:"elm.text", st, 30, vl);
4629                if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
4630                  {
4631                     emit("elm,action,default,text,set", "");
4632                     set_state(PART:"elm.text", "visible", 0.0);
4633                  }
4634                if (get_int(button_state) != BUTTON_STATE_DISABLED)
4635                  set_state(PART:"button_image", "default", 0.0);
4636             }
4637             after: button_unpress;
4638          }
4639          program { name: "touch_snd";
4640             signal: "mouse,clicked,1";
4641             source: "over2";
4642             action: PLAY_SAMPLE "touch_sound" 1.0;
4643             after: button_unclick3;
4644          }
4645          program { name: "button_unclick3";
4646             action: SIGNAL_EMIT "elm,action,click" "";
4647          }
4648          program { name: "text_show";
4649             signal: "elm,state,text,visible";
4650             source: "elm";
4651             script {
4652                if (get_int(button_state) != BUTTON_STATE_DISABLED)
4653                  set_state(PART:"elm.text", "visible", 0.0);
4654                else
4655                  set_state(PART:"elm.text", "disabled_visible", 0.0);
4656             }
4657          }
4658          program { name: "text_hide";
4659             signal: "elm,state,text,hidden";
4660             source: "elm";
4661             action: STATE_SET "default" 0.0;
4662             target: "elm.text";
4663          }
4664          program { name: "disable";
4665             signal: "elm,state,disabled";
4666             source: "elm";
4667             action: STATE_SET "disabled" 0.0;
4668             target: "button_image";
4669             target: "disclip";
4670             target: "disabler";
4671             after: "disable_text";
4672          }
4673          program { name: "disable_text";
4674             script {
4675                new st[31];
4676                new Float:vl;
4677                get_state(PART:"elm.text", st, 30, vl);
4678                if (!strcmp(st, "visible"))
4679                  set_state(PART:"elm.text", "disabled_visible", 0.0);
4680                else
4681                  set_state(PART:"elm.text", "disabled", 0.0);
4682                set_int(button_state, BUTTON_STATE_DISABLED);
4683             }
4684          }
4685          program { name: "enable";
4686             signal: "elm,state,enabled";
4687             source: "elm";
4688             action: STATE_SET "default" 0.0;
4689             target: "button_image";
4690             target: "disclip";
4691             target: "disabler";
4692             after: "enable_text";
4693          }
4694          program { name: "enable_text";
4695             script {
4696                new st[31];
4697                new Float:vl;
4698                get_state(PART:"elm.text", st, 30, vl);
4699                if (!strcmp(st, "disabled_visible"))
4700                  set_state(PART:"elm.text", "visible", 0.0);
4701                else
4702                  set_state(PART:"elm.text", "default", 0.0);
4703                set_int(button_state, BUTTON_STATE_ENABLED);
4704             }
4705          }
4706          program { name: "focused";
4707             //signal: "elm,action,focus";
4708             //source: "elm";
4709             action: STATE_SET "focused" 0.0;
4710             target: "button_image";
4711             target: "elm.text";
4712          }
4713          program { name: "unfocused";
4714             //signal: "elm,action,unfocus";
4715             //source: "elm";
4716             action: STATE_SET "default" 0.0;
4717             target: "button_image";
4718             action: STATE_SET "visible" 0.0;
4719             target: "elm.text";
4720          }
4721       }
4722    }
4723
4724 //////////////////////////////////////////////////////////////
4725    group { name: "elm/button/base/naviframe/toolbar/left";
4726       inherit: "elm/button/base/naviframe/toolbar/default";
4727       parts {
4728          part { name: "button_image";
4729             scale: 1;
4730             description { state: "default" 0.0;
4731                min: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MIN_INC;
4732                max: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MAX_INC;
4733                fixed: 1 1;
4734                rel1.to: "padding_text_left_top";
4735                rel2.to: "padding_text_right_bottom";
4736                align: 1.0 0.5;
4737                image {
4738                   normal: "00_toolbar_button.png";
4739                   border: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_BORDER_INC;
4740                   border_scale: 1;
4741                }
4742             }
4743             description { state: "clicked" 0.0;
4744                inherit: "default" 0.0;
4745                image.normal: "00_toolbar_button_press.png";
4746             }
4747             description { state: "disabled" 0.0;
4748                inherit: "default" 0.0;
4749                image.normal: "00_toolbar_button_dim.png";
4750             }
4751             description { state: "focused" 0.0;
4752                inherit: "default" 0.0;
4753                image.normal: "00_toolbar_button_press.png";
4754             }
4755          }
4756          part { name: "elm.text";
4757             type: TEXTBLOCK;
4758             clip_to: "disclip";
4759             mouse_events: 0;
4760             scale: 1;
4761             description { state: "default" 0.0;
4762                visible: 0;
4763                fixed: 1 1;
4764                min: BUTTON_NAVIFRAME_TITLE_TEXTBLOCK_MIN_INC;
4765                rel1 {
4766                   relative: 1.0 1.0;
4767                   to: "padding_left_top";
4768                }
4769                rel2 {
4770                   relative: 0.0 0.0;
4771                   to: "padding_right_bottom";
4772                }
4773                align: 1.0 0.5;
4774                text {
4775                   min: 0 1;
4776                   max: 1 1;
4777                   style: "btn_naviframe_toolbar";
4778                }
4779             }
4780             description { state: "visible" 0.0;
4781                inherit: "default" 0.0;
4782                visible: 1;
4783             }
4784             description { state: "clicked" 0.0;
4785                inherit: "default" 0.0;
4786                visible: 1;
4787                text {
4788                   style: "btn_naviframe_toolbar_pressed";
4789                }
4790             }
4791             description { state: "disabled" 0.0;
4792                inherit: "default" 0.0;
4793             }
4794             description { state: "disabled_visible" 0.0;
4795                inherit: "default" 0.0;
4796                visible: 1;
4797                text {
4798                   style: "btn_naviframe_toolbar_disabled";
4799                }
4800             }
4801             description { state: "focused" 0.0;
4802                inherit: "default" 0.0;
4803                visible: 1;
4804                text {
4805                   style: "btn_naviframe_toolbar_pressed";
4806                }
4807             }
4808          }
4809       }
4810    }
4811
4812 //////////////////////////////////////////////////////////////
4813    group { name: "elm/button/base/naviframe/toolbar/right";
4814       inherit: "elm/button/base/naviframe/toolbar/default";
4815       parts {
4816          part { name: "button_image";
4817             scale: 1;
4818             description { state: "default" 0.0;
4819                min: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MIN_INC;
4820                max: BUTTON_NAVIFRAME_TITLE_TEXT_BG_NORMAL_MAX_INC;
4821                fixed: 1 1;
4822                rel1.to: "padding_text_left_top";
4823                rel2.to: "padding_text_right_bottom";
4824                align: 0.0 0.5;
4825                image {
4826                   normal: "00_toolbar_button.png";
4827                   border: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_BORDER_INC;
4828                   border_scale: 1;
4829                }
4830             }
4831             description { state: "clicked" 0.0;
4832                inherit: "default" 0.0;
4833                image.normal: "00_toolbar_button_press.png";
4834             }
4835             description { state: "disabled" 0.0;
4836                inherit: "default" 0.0;
4837                image.normal: "00_toolbar_button_dim.png";
4838             }
4839             description { state: "focused" 0.0;
4840                inherit: "default" 0.0;
4841                image.normal: "00_toolbar_button_press.png";
4842             }
4843          }
4844          part { name: "elm.text";
4845             type: TEXTBLOCK;
4846             clip_to: "disclip";
4847             mouse_events: 0;
4848             scale: 1;
4849             description { state: "default" 0.0;
4850                visible: 0;
4851                fixed: 1 1;
4852                min: BUTTON_NAVIFRAME_TITLE_TEXTBLOCK_MIN_INC;
4853                rel1 {
4854                   relative: 1.0 1.0;
4855                   to: "padding_left_top";
4856                }
4857                rel2 {
4858                   relative: 0.0 0.0;
4859                   to: "padding_right_bottom";
4860                }
4861                align: 0.0 0.5;
4862                text {
4863                   min: 0 1;
4864                   max: 1 1;
4865                   style: "btn_naviframe_toolbar";
4866                }
4867             }
4868             description { state: "visible" 0.0;
4869                inherit: "default" 0.0;
4870                visible: 1;
4871             }
4872             description { state: "clicked" 0.0;
4873                inherit: "default" 0.0;
4874                visible: 1;
4875                text {
4876                   style: "btn_naviframe_toolbar_pressed";
4877                }
4878             }
4879             description { state: "disabled" 0.0;
4880                inherit: "default" 0.0;
4881             }
4882             description { state: "disabled_visible" 0.0;
4883                inherit: "default" 0.0;
4884                visible: 1;
4885                text {
4886                   style: "btn_naviframe_toolbar_disabled";
4887                }
4888             }
4889             description { state: "focused" 0.0;
4890                inherit: "default" 0.0;
4891                visible: 1;
4892                text {
4893                   style: "btn_naviframe_toolbar_pressed";
4894                }
4895             }
4896          }
4897       }
4898    }
4899
4900 ////////////////////////////////////////////////////////////////////
4901    group { name: "elm/button/base/toolbar/segmentedcontrol";
4902       images {
4903          image: "00_toolbar_button.png" COMP;
4904          image: "00_toolbar_button_press.png" COMP;
4905          image: "00_toolbar_button_dim.png" COMP;
4906          image: "00_button_icon_arrow.png" COMP;
4907          image: "00_button_icon_arrow_press.png" COMP;
4908       }
4909       styles{
4910          style { name: "btn_toolbar_segmentedcontrol";
4911             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";
4912             tag: "br" "\n";
4913             tag: "ps" "ps";
4914             tag: "tab" "\t";
4915          }
4916       }
4917       script {
4918          public button_state = BUTTON_STATE_ENABLED;
4919       }
4920       parts {
4921          part { name: "button_image";
4922             scale: 1;
4923             description { state: "default" 0.0;
4924                min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_BG_NORMAL_MIN_INC;
4925                max: BUTTON_TOOLBAR_SEGMENTEDCONTROL_BG_NORMAL_MAX_INC;
4926                fixed: 1 1;
4927                rel1.to: "padding_text_left_top";
4928                rel2.to: "padding_text_right_bottom";
4929                image {
4930                   normal: "00_toolbar_button.png";
4931                   border: BUTTON_TOOLBAR_SEGMENTEDCONTROL_BG_BORDER_INC;
4932                   border_scale: 1;
4933                }
4934             }
4935             description { state: "clicked" 0.0;
4936                inherit: "default" 0.0;
4937                image.normal: "00_toolbar_button_press.png";
4938             }
4939             description { state: "disabled" 0.0;
4940                inherit: "default" 0.0;
4941                image.normal: "00_toolbar_button_dim.png";
4942             }
4943             description { state: "focused" 0.0;
4944                inherit: "default" 0.0;
4945                image.normal: "00_toolbar_button_press.png";
4946             }
4947          }
4948          part { name: "padding_left_top";
4949             type: RECT;
4950             scale: 1;
4951             mouse_events: 0;
4952             description { state: "default" 0.0;
4953                visible: 0;
4954                align: 0.0 0.0;
4955                rel2.relative: 0.0 0.0;
4956                min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_LEFT_PADDING_MIN_INC;
4957                fixed: 1 1;
4958             }
4959          }
4960          part { name: "padding_right_bottom";
4961             type: RECT;
4962             scale: 1;
4963             mouse_events: 0;
4964             description { state: "default" 0.0;
4965                align: 1.0 1.0;
4966                rel1.relative: 1.0 1.0;
4967                min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_RIGHT_PADDING_MIN_INC;
4968                fixed: 1 1;
4969                visible: 0;
4970             }
4971          }
4972          part { name: "padding_text_left_top";
4973             type: RECT;
4974             scale: 1;
4975             mouse_events: 0;
4976             description { state: "default" 0.0;
4977                visible: 0;
4978                min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_LEFT_PADDING_MIN_INC;
4979                fixed: 1 1;
4980                rel1.to: "elm.text";
4981                rel2 {
4982                   relative: 0.0 0.0;
4983                   to: "elm.text";
4984                }
4985                align: 1.0 0.0;
4986             }
4987          }
4988          part { name: "padding_text_right_bottom";
4989             type: RECT;
4990             scale: 1;
4991             mouse_events: 0;
4992             description { state: "default" 0.0;
4993                min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_RIGHT_PADDING_MIN_INC;
4994                fixed: 1 1;
4995                visible: 0;
4996                rel1 {
4997                   relative: 1.0 1.0;
4998                   to_x: "icon";
4999                   to_y: "elm.text";
5000                }
5001                rel2 {
5002                   relative: 1.0 1.0;
5003                   to_x: "icon";
5004                   to_y: "elm.text";
5005                }
5006                align: 0.0 0.0;
5007             }
5008          }
5009          part { name: "elm.text";
5010             type: TEXTBLOCK;
5011             clip_to: "disclip";
5012             mouse_events: 0;
5013             effect: FAR_SHADOW BOTTOM;
5014             scale: 1;
5015             description { state: "default" 0.0;
5016                visible: 0;
5017                fixed: 1 1;
5018                min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_TEXTBLOCK_MIN_INC;
5019                rel1 {
5020                   relative: 1.0 1.0;
5021                   to: "padding_left_top";
5022                }
5023                rel2 {
5024                   relative: 0.0 0.0;
5025                   to: "padding_right_bottom";
5026                }
5027                color: BUTTON_NAVIFRAME_TITLE_TEXT_NORMAL_COLOR_INC;
5028                color2: BUTTON_NAVIFRAME_TEXT_SHADOW_NORMAL_COLOR_INC;
5029                text {
5030                   min: 0 1;
5031                   max: 1 1;
5032                   style: "btn_toolbar_segmentedcontrol";
5033                }
5034             }
5035             description { state: "visible" 0.0;
5036                inherit: "default" 0.0;
5037                visible: 1;
5038             }
5039             description { state: "clicked" 0.0;
5040                inherit: "default" 0.0;
5041                visible: 1;
5042                color: BUTTON_NAVIFRAME_TITLE_TEXT_PRESSED_COLOR_INC;
5043             }
5044             description { state: "disabled" 0.0;
5045                inherit: "default" 0.0;
5046             }
5047             description { state: "disabled_visible" 0.0;
5048                inherit: "default" 0.0;
5049                color: BUTTON_NAVIFRAME_TITLE_TEXT_DISABLED_COLOR_INC;
5050                color2: BUTTON_NAVIFRAME_TEXT_SHADOW_NORMAL_COLOR_INC;
5051                visible: 1;
5052             }
5053             description { state: "focused" 0.0;
5054                inherit: "default" 0.0;
5055                visible: 1;
5056                color: BUTTON_NAVIFRAME_TITLE_TEXT_FOCUSED_COLOR_INC;
5057             }
5058          }
5059          part { name: "icon_padding";
5060             scale: 1;
5061             type: RECT;
5062             description { state: "default" 0.0;
5063                min: 6 5;
5064                fixed: 1 1;
5065                align: 0.0 0.5;
5066                rel1 {
5067                   relative: 1.0 0.0;
5068                   to: "elm.text";
5069                }
5070                visible: 0;
5071                rel2.to: "elm.text";
5072             }
5073          }
5074          part { name: "icon";
5075             scale: 1;
5076             clip_to: "icon_clipper";
5077             description { state: "default" 0.0;
5078                min: BUTTON_TOOLBAR_SEGMENTEDCONTROL_ICON_MIN_INC;
5079                max: BUTTON_TOOLBAR_SEGMENTEDCONTROL_ICON_MIN_INC;
5080                fixed: 1 1;
5081                align: 0.0 0.5;
5082                rel1 {
5083                   relative: 1.0 0.0;
5084                   to_x: "icon_padding";
5085                   to_y: "elm.text";
5086                   offset: 0 6;
5087                }
5088                rel2 {
5089                   relative: 1.0 1.0;
5090                   to_x: "icon_padding";
5091                   to_y: "elm.text";
5092                }
5093                image.normal: "00_button_icon_arrow.png";
5094             }
5095             description { state: "clicked" 0.0;
5096                inherit: "default" 0.0;
5097                image.normal: "00_button_icon_arrow_press.png";
5098             }
5099          }
5100          part { name: "icon_clipper";
5101             type: RECT;
5102             description { state: "default" 0.0;
5103                color: BUTTON_TOOLBAR_SEGMENTEDCONTROL_ICON_NORMAL_COLOR_INC;
5104             }
5105             description { state: "clicked" 0.0;
5106                inherit: "default" 0.0;
5107                color: BUTTON_TOOLBAR_SEGMENTEDCONTROL_ICON_PRESSED_COLOR_INC;
5108             }
5109          }
5110          part { name: "disclip";
5111             type: RECT;
5112             description { state: "default" 0.0;
5113                color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
5114             }
5115             description { state: "disabled" 0.0;
5116                inherit: "default" 0.0;
5117                color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
5118             }
5119          }
5120          part { name: "over2";
5121             type: RECT;
5122             repeat_events: 1;
5123             ignore_flags: ON_HOLD;
5124             description { state: "default" 0.0;
5125                rel1.to: "button_image";
5126                rel2.to: "button_image";
5127                color: 0 0 0 0;
5128             }
5129          }
5130          part { name: "over3";
5131             type: RECT;
5132             repeat_events: 1;
5133             description { state: "default" 0.0;
5134                rel1.to: "button_image";
5135                rel2.to: "button_image";
5136                color: 0 0 0 0;
5137             }
5138          }
5139          part { name: "disabler";
5140             type: RECT;
5141             description { state: "default" 0.0;
5142                rel1.to: "button_image";
5143                rel2.to: "button_image";
5144                color: 0 0 0 0;
5145                visible: 0;
5146             }
5147             description { state: "disabled" 0.0;
5148                inherit: "default" 0.0;
5149                visible: 1;
5150             }
5151          }
5152       }
5153       programs {
5154          program { name: "button_click";
5155             signal: "mouse,down,1";
5156             source: "over2";
5157             action: SIGNAL_EMIT "elm,action,press" "";
5158             after: "button_click_anim";
5159          }
5160          program { name: "button_click_anim";
5161             action: STATE_SET "clicked" 0.0;
5162             target: "button_image";
5163             target: "elm.text";
5164             target: "icon";
5165             target: "icon_clipper";
5166          }
5167          program { name: "button_double_click";
5168             signal: "mouse,down,1,double";
5169             source: "over2";
5170             after: "button_click_anim";
5171          }
5172          program { name: "button_unpress";
5173             action: SIGNAL_EMIT "elm,action,unpress" "";
5174          }
5175          program { name: "button_mouseout_clicked";
5176             signal: "mouse,up,1";
5177             source: "over3";
5178             script {
5179                new st[31];
5180                new Float:vl;
5181                get_state(PART:"elm.text", st, 30, vl);
5182                if (!strcmp(st, "clicked") || !strcmp(st, "focused"))
5183                  {
5184                     emit("elm,action,default,text,set", "");
5185                     set_state(PART:"elm.text", "visible", 0.0);
5186                  }
5187                if (get_int(button_state) != BUTTON_STATE_DISABLED)
5188                  set_state(PART:"button_image", "default", 0.0);
5189                set_state(PART:"icon", "default", 0.0);
5190                set_state(PART:"icon_clipper", "default", 0.0);
5191             }
5192             after: button_unpress;
5193          }
5194          program { name: "touch_snd";
5195             signal: "mouse,clicked,1";
5196             source: "over2";
5197             action: PLAY_SAMPLE "touch_sound" 1.0;
5198             after: button_unclick3;
5199          }
5200          program { name: "button_unclick3";
5201             action: SIGNAL_EMIT "elm,action,click" "";
5202          }
5203          program { name: "text_show";
5204             signal: "elm,state,text,visible";
5205             source: "elm";
5206             script {
5207                if (get_int(button_state) != BUTTON_STATE_DISABLED)
5208                  set_state(PART:"elm.text", "visible", 0.0);
5209                else
5210                  set_state(PART:"elm.text", "disabled_visible", 0.0);
5211             }
5212          }
5213          program { name: "text_hide";
5214             signal: "elm,state,text,hidden";
5215             source: "elm";
5216             action: STATE_SET "default" 0.0;
5217             target: "elm.text";
5218          }
5219          program { name: "disable";
5220             signal: "elm,state,disabled";
5221             source: "elm";
5222             action: STATE_SET "disabled" 0.0;
5223             target: "button_image";
5224             target: "disclip";
5225             target: "disabler";
5226             after: "disable_text";
5227          }
5228          program { name: "disable_text";
5229             script {
5230                new st[31];
5231                new Float:vl;
5232                get_state(PART:"elm.text", st, 30, vl);
5233                if (!strcmp(st, "visible"))
5234                  set_state(PART:"elm.text", "disabled_visible", 0.0);
5235                else
5236                  set_state(PART:"elm.text", "disabled", 0.0);
5237                set_int(button_state, BUTTON_STATE_DISABLED);
5238             }
5239          }
5240          program { name: "enable";
5241             signal: "elm,state,enabled";
5242             source: "elm";
5243             action: STATE_SET "default" 0.0;
5244             target: "button_image";
5245             target: "disclip";
5246             target: "disabler";
5247             after: "enable_text";
5248          }
5249          program { name: "enable_text";
5250             script {
5251                new st[31];
5252                new Float:vl;
5253                get_state(PART:"elm.text", st, 30, vl);
5254                if (!strcmp(st, "disabled_visible"))
5255                  set_state(PART:"elm.text", "visible", 0.0);
5256                else
5257                  set_state(PART:"elm.text", "default", 0.0);
5258                set_int(button_state, BUTTON_STATE_ENABLED);
5259             }
5260          }
5261          program { name: "focused";
5262             //signal: "elm,action,focus";
5263             //source: "elm";
5264             action: STATE_SET "focused" 0.0;
5265             target: "button_image";
5266             target: "elm.text";
5267          }
5268          program { name: "unfocused";
5269             //signal: "elm,action,unfocus";
5270             //source: "elm";
5271             action: STATE_SET "default" 0.0;
5272             target: "button_image";
5273             action: STATE_SET "visible" 0.0;
5274             target: "elm.text";
5275          }
5276       }
5277    }
5278
5279 ////////////////////////////////////////////////////////////////////
5280    group { name: "elm/button/base/naviframe/title_icon";
5281       parts {
5282          part { name: "button_image";
5283             type: RECT;
5284             scale: 1;
5285             description { state: "default" 0.0;
5286                visible: 0;
5287                min: BUTTON_NAVIFRAME_TITLE_ICON_BG_MIN_MAX_INC;
5288                max: BUTTON_NAVIFRAME_TITLE_ICON_BG_MIN_MAX_INC;
5289             }
5290             description { state: "landscape" 0.0;
5291                visible: 0;
5292                min: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_ICON_BG_MIN_MAX_INC;
5293                max: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_ICON_BG_MIN_MAX_INC;
5294             }
5295          }
5296          part { name: "top_padding";
5297             type: RECT;
5298             scale: 1;
5299             description { state: "default" 0.0;
5300                visible: 0;
5301                min: BUTTON_NAVIFRAME_TITLE_ICON_TOP_PADDING_INC;
5302                fixed: 0 1;
5303                align: 0 0;
5304                rel1 { relative: 0.0 0.0; to: "button_image"; }
5305                rel2 { relative: 1.0 0.0; to: "button_image"; }
5306             }
5307             description { state: "landscape" 0.0;
5308                inherit: "default" 0.0;
5309                min: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_ICON_TOP_PADDING_INC;
5310             }
5311          }
5312          part { name: "elm.swallow.content";
5313             type: SWALLOW;
5314             scale: 1;
5315             clip_to: "elm.icon.clipper";
5316             description { state: "default" 0.0;
5317                visible: 0;
5318                max: BUTTON_NAVIFRAME_TITLE_ICON_IMAGE_MIN_MAX_INC;
5319                fixed: 1 1;
5320                align: 0.5 0.0;
5321                rel1 { relative: 0.0 1.0; to: "top_padding"; }
5322                rel2 { relative: 1.0 1.0; to: "button_image"; }
5323             }
5324             description { state: "visible" 0.0;
5325                inherit: "default" 0.0;
5326                visible: 1;
5327             }
5328          }
5329          part { name: "elm.swallow.icon.proxy";
5330             type: PROXY;
5331             scale: 1;
5332             clip_to: "elm.icon.proxy.clipper";
5333             description { state: "default" 0.0;
5334                 source: "elm.swallow.content";
5335                 rel1.to: "elm.swallow.content";
5336                 rel1.offset: 0 -2;
5337                 rel2.to: "elm.swallow.content";
5338                 rel2.offset: -1 -3;
5339             }
5340          }
5341          part { name: "elm.icon.proxy.clipper";
5342             type: RECT;
5343             description { state: "default" 0.0;
5344                color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_COLOR_INC;
5345             }
5346             description { state: "clicked" 0.0;
5347                color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_COLOR_INC;
5348             }
5349             description { state: "disabled" 0.0;
5350                color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
5351             }
5352          }
5353          part { name: "elm.icon.clipper";
5354             type: RECT;
5355             description { state: "default" 0.0;
5356                color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_NORMAL_COLOR_INC;
5357             }
5358             description { state: "clicked" 0.0;
5359                color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_NORMAL_COLOR_INC;
5360             }
5361             description { state: "disabled" 0.0;
5362                color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
5363             }
5364          }
5365          part { name: "over2";
5366             type: RECT;
5367             ignore_flags: ON_HOLD;
5368             description { state: "default" 0.0;
5369                color: 0 0 0 0;
5370             }
5371          }
5372          part { name: "over3";
5373             type: RECT;
5374             repeat_events: 1;
5375             description { state: "default" 0.0;
5376                color: 0 0 0 0;
5377             }
5378          }
5379          part { name: "disabler";
5380             type: RECT;
5381             description { state: "default" 0.0;
5382                color: 0 0 0 0;
5383                visible: 0;
5384             }
5385             description { state: "disabled" 0.0;
5386                inherit: "default" 0.0;
5387                visible: 1;
5388             }
5389          }
5390       }
5391       programs {
5392          program { name: "button_click";
5393             signal: "mouse,down,1";
5394             source: "over2";
5395             action: SIGNAL_EMIT "elm,action,press" "";
5396             after: "button_click_anim";
5397          }
5398          program { name: "button_click_anim";
5399             script {
5400                set_state(PART:"elm.icon.clipper", "clicked", 0.0);
5401                set_state(PART:"elm.icon.proxy.clipper", "clicked", 0.0);
5402             }
5403          }
5404          program { name: "button_double_click";
5405             signal: "mouse,down,1,double";
5406             source: "over2";
5407             after: "button_click_anim";
5408          }
5409          program { name: "button_unpress";
5410             action: SIGNAL_EMIT "elm,action,unpress" "";
5411          }
5412          program { name: "button_mouseout_clicked";
5413             signal: "mouse,up,1";
5414             source: "over3";
5415             action: STATE_SET "default" 0.0;
5416             target: "elm.icon.clipper";
5417             target: "elm.icon.proxy.clipper";
5418             after: button_unpress;
5419          }
5420          program { name: "touch_snd";
5421             signal: "mouse,clicked,1";
5422             source: "over2";
5423             action: PLAY_SAMPLE "touch_sound" 1.0;
5424             after: button_unclick3;
5425          }
5426          program { name: "button_unclick3";
5427             action: SIGNAL_EMIT "elm,action,click" "";
5428          }
5429          program { name: "icon_show";
5430             signal: "elm,state,icon,visible";
5431             source: "elm";
5432             action: STATE_SET "visible" 0.0;
5433             target: "elm.swallow.content";
5434          }
5435          program { name: "icon_hide";
5436             signal: "elm,state,icon,hidden";
5437             source: "elm";
5438             action: STATE_SET "default" 0.0;
5439             target: "elm.swallow.content";
5440          }
5441          program { name: "disable";
5442             signal: "elm,state,disabled";
5443             source: "elm";
5444             script {
5445                set_state(PART:"disabler", "disabled", 0.0);
5446                set_state(PART:"elm.icon.clipper", "disabled", 0.0);
5447                set_state(PART:"elm.icon.proxy.clipper", "disabled", 0.0);
5448             }
5449          }
5450          program { name: "enable";
5451             signal: "elm,state,enabled";
5452             source: "elm";
5453             script {
5454                set_state(PART:"disabler", "default", 0.0);
5455                set_state(PART:"elm.icon.clipper", "default", 0.0);
5456                set_state(PART:"elm.icon.proxy.clipper", "default", 0.0);
5457             }
5458          }
5459          program { name: "change_to_landscape";
5460             signal: "elm,state,landscape";
5461             source: "elm";
5462             action: STATE_SET "landscape" 0.0;
5463             target: "button_image";
5464             target: "top_padding";
5465          }
5466          program { name: "change_to_portrait";
5467             signal: "elm,state,portrait";
5468             source: "elm";
5469             action: STATE_SET "default" 0.0;
5470             target: "button_image";
5471             target: "top_padding";
5472          }
5473 /*         program { name: "landscape_mode";
5474             source: "elm";
5475             signal: "elm,state,orient,90";
5476             action: SIGNAL_EMIT "elm,state,landscape" "elm";
5477          }
5478          program { name: "landscape_mode2";
5479             source: "elm";
5480             signal: "elm,state,orient,270";
5481             action: SIGNAL_EMIT "elm,state,landscape" "elm";
5482          }
5483          program { name: "portrait_mode";
5484             source: "elm";
5485             signal: "elm,state,orient,0";
5486             action: SIGNAL_EMIT "elm,state,portrait" "elm";
5487          }
5488          program { name: "portrait_mode2";
5489             source: "elm";
5490             signal: "elm,state,orient,180";
5491             action: SIGNAL_EMIT "elm,state,portrait" "elm";
5492          } */
5493       }
5494    }
5495
5496 /////////////////////////////////////////////////////////////////////////////////////////
5497    group { name: "elm/button/base/naviframe/more/default";
5498       images {
5499          image: "00_icon_more.png" COMP;
5500       }
5501       parts {
5502          part { name: "button_image";
5503             type: RECT;
5504             scale: 1;
5505             description { state: "default" 0.0;
5506                min: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
5507                max: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
5508                visible: 0;
5509             }
5510             description { state: "landscape" 0.0;
5511                min: BUTTON_NAVIFRAME_LANDSCAPE_MORE_BG_MIN_MAX_INC;
5512                max: BUTTON_NAVIFRAME_LANDSCAPE_MORE_BG_MIN_MAX_INC;
5513                visible: 0;
5514             }
5515          }
5516          part { name: "more_image";
5517             scale: 1;
5518             mouse_events: 0;
5519             clip_to: "more_image.clipper";
5520             description { state: "default" 0.0;
5521                min: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
5522                max: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
5523                fixed: 1 1;
5524                rel1.to: "button_image";
5525                rel2.to: "button_image";
5526                image.normal: "00_icon_more.png";
5527             }
5528          }
5529          part { name: "more_image.clipper";
5530             type: RECT;
5531             description { state: "default" 0.0;
5532                color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_COLOR_INC;
5533             }
5534             description { state: "clicked" 0.0;
5535                color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_COLOR_INC;
5536             }
5537             description { state: "disabled" 0.0;
5538                color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
5539             }
5540          }
5541          part { name: "elm.text.badge.bg";
5542             mouse_events: 0;
5543             scale: 1;
5544             description {
5545                state: "default" 0.0;
5546                visible: 0;
5547                rel1 {
5548                   to: "left.padding.text.badge";
5549                   relative: 0.0 0.0;
5550                }
5551                rel2 {
5552                   to: "right.padding.text.badge";
5553                   relative: 1.0 1.0;
5554                }
5555                align: 1.0 0.0;
5556                image {
5557                   normal: "00_badge_bg.png";
5558                   border: 20 20 0 0;
5559                   border_scale: 1;
5560                }
5561             }
5562             description { state: "visible" 0.0;
5563                inherit: "default" 0.0;
5564                visible: 1;
5565             }
5566          }
5567          part { name: "left.padding.text.badge";
5568             type: RECT;
5569             scale: 1;
5570             description {
5571                state: "default" 0.0;
5572                visible: 0;
5573                fixed: 1 1;
5574                min: 16 48;
5575                rel1 {
5576                   to: "elm.text.badge";
5577                   relative: 0.0 0.0;
5578                }
5579                rel2 {
5580                   to: "elm.text.badge";
5581                   relative: 0.0 0.0;
5582                }
5583                align: 1.0 0.0;
5584             }
5585          }
5586          part { name: "right.padding.text.badge";
5587             type: RECT;
5588             scale: 1;
5589             description {
5590                state: "default" 0.0;
5591                visible: 0;
5592                fixed: 1 1;
5593                min: 16 48;
5594                rel1 {
5595                   to: "button_image";
5596                   relative: 1.0 0.0;
5597                }
5598                rel2 {
5599                   to: "button_image";
5600                   relative: 1.0 0.0;
5601                }
5602                align: 1.0 0.0;
5603             }
5604          }
5605          part { name: "elm.text.badge";
5606             type: TEXT;
5607             mouse_events: 0;
5608             scale: 1;
5609             description {
5610                state: "default" 0.0;
5611                visible: 0;
5612                min: 0 0;
5613                rel1 {
5614                   to: "button_image";
5615                   relative: 0.0 0.0;
5616                }
5617                rel2 {
5618                   to: "right.padding.text.badge";
5619                   relative: 0.0 1.0;
5620                }
5621                align: 1.0 0.0;
5622                color: 10 100 208 255;
5623                text {
5624                   font: "Tizen:style=Bold";
5625                   size: 26;
5626                   min: 0 0;
5627                   max: 1 1;
5628                }
5629             }
5630             description { state: "visible" 0.0;
5631                inherit: "default" 0.0;
5632                visible: 1;
5633             }
5634          }
5635          part { name: "over2";
5636             type: RECT;
5637             ignore_flags: ON_HOLD;
5638             description { state: "default" 0.0;
5639                color: 0 0 0 0;
5640             }
5641          }
5642          part { name: "over3";
5643             type: RECT;
5644             repeat_events: 1;
5645             description { state: "default" 0.0;
5646                color: 0 0 0 0;
5647             }
5648          }
5649          part { name: "disabler";
5650             type: RECT;
5651             description { state: "default" 0.0;
5652                color: 0 0 0 0;
5653                visible: 0;
5654             }
5655             description { state: "disabled" 0.0;
5656                inherit: "default" 0.0;
5657                visible: 1;
5658             }
5659          }
5660       }
5661       programs {
5662          program { name: "button_click";
5663             signal: "mouse,down,1";
5664             source: "over2";
5665             action: SIGNAL_EMIT "elm,action,press" "";
5666             after: "button_click_anim";
5667          }
5668          program { name: "button_click_anim";
5669             script {
5670                set_state(PART:"more_image.clipper", "clicked", 0.0);
5671             }
5672          }
5673          program { name: "button_double_click";
5674             signal: "mouse,down,1,double";
5675             source: "over2";
5676             after: "button_click_anim";
5677          }
5678          program { name: "button_unclick";
5679             signal: "mouse,up,1";
5680             source: "over3";
5681             action: SIGNAL_EMIT "elm,action,unpress" "";
5682             after: "button_unclick_anim";
5683          }
5684          program { name: "button_unclick_anim";
5685             script {
5686                set_state(PART:"more_image.clipper", "default", 0.0);
5687             }
5688          }
5689          program { name: "touch_snd";
5690             signal: "mouse,clicked,1";
5691             source: "over2";
5692             action: PLAY_SAMPLE "touch_sound" 1.0;
5693             after: button_unclick3;
5694          }
5695          program { name: "button_unclick3";
5696             action: SIGNAL_EMIT "elm,action,click" "";
5697          }
5698          program { name: "badge_text_show";
5699             signal: "elm,state,elm.text.badge,visible";
5700             source: "elm";
5701             action:  STATE_SET "visible" 0.0;
5702             target: "elm.text.badge";
5703             target: "elm.text.badge.bg";
5704          }
5705          program { name: "badge_text_hide";
5706             signal: "elm,state,elm.text.badge,hidden";
5707             source: "elm";
5708             action:  STATE_SET "default" 0.0;
5709             target: "elm.text.badge";
5710             target: "elm.text.badge.bg";
5711          }
5712          program { name: "disable";
5713             signal: "elm,state,disabled";
5714             source: "elm";
5715             script {
5716                set_state(PART:"disabler", "disabled", 0.0);
5717                set_state(PART:"more_image.clipper", "disabled", 0.0);
5718             }
5719          }
5720          program { name: "enable";
5721             signal: "elm,state,enabled";
5722             source: "elm";
5723             script {
5724                set_state(PART:"disabler", "default", 0.0);
5725                set_state(PART:"more_image.clipper", "default", 0.0);
5726             }
5727          }
5728          program { name: "change_to_landscape";
5729             signal: "elm,state,landscape";
5730             source: "elm";
5731             action: STATE_SET "landscape" 0.0;
5732             target: "button_image";
5733          }
5734          program { name: "change_to_portrait";
5735             signal: "elm,state,portrait";
5736             source: "elm";
5737             action: STATE_SET "default" 0.0;
5738             target: "button_image";
5739          }
5740          program { name: "landscape_mode";
5741             source: "elm";
5742             signal: "elm,state,orient,90";
5743             action: SIGNAL_EMIT "elm,state,landscape" "elm";
5744          }
5745          program { name: "landscape_mode2";
5746             source: "elm";
5747             signal: "elm,state,orient,270";
5748             action: SIGNAL_EMIT "elm,state,landscape" "elm";
5749          }
5750          program { name: "portrait_mode";
5751             source: "elm";
5752             signal: "elm,state,orient,0";
5753             action: SIGNAL_EMIT "elm,state,portrait" "elm";
5754          }
5755          program { name: "portrait_mode2";
5756             source: "elm";
5757             signal: "elm,state,orient,180";
5758             action: SIGNAL_EMIT "elm,state,portrait" "elm";
5759          }
5760       }
5761    }
5762
5763 ///////////////////////////////////////////////////////////////////////////////////////
5764    group { name: "elm/button/base/tickernoti";
5765       images {
5766          image: "00_notification_button_bg.png" COMP;
5767          image: "00_notification_button_bg_press.png" COMP;
5768          image: "00_notification_button_bg_dim.png" COMP;
5769       }
5770       script {
5771          public button_state = BUTTON_STATE_ENABLED;
5772       }
5773       parts {
5774          part { name: "button_image";
5775             scale: 1;
5776             description { state: "default" 0.0;
5777                min: BUTTON_TICKERNOTI_BG_MIN_MAX_INC;
5778                max: BUTTON_TICKERNOTI_BG_MIN_MAX_INC;
5779                image {
5780                   normal: "00_notification_button_bg.png";
5781                   border: BUTTON_TICKERNOTI_BG_BORDER_INC;
5782                   border_scale: 1;
5783                }
5784             }
5785             description { state: "clicked" 0.0;
5786                inherit: "default" 0.0;
5787                image.normal: "00_notification_button_bg_press.png";
5788             }
5789             description { state: "disabled" 0.0;
5790                inherit: "default" 0.0;
5791                image.normal: "00_notification_button_bg_dim.png";
5792             }
5793             description { state: "focused" 0.0;
5794                inherit: "default" 0.0;
5795                image.normal: "00_notification_button_bg_press.png";
5796             }
5797          }
5798          part { name: "padding_left_top";
5799             type: RECT;
5800             scale: 1;
5801             mouse_events: 0;
5802             description { state: "default" 0.0;
5803                visible: 0;
5804                align: 0.0 0.0;
5805                rel2.relative: 0.0 0.0;
5806                min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
5807                fixed: 1 1;
5808             }
5809          }
5810          part { name: "bg";
5811             type: RECT;
5812             scale: 1;
5813             mouse_events: 0;
5814             description { state: "default" 0.0;
5815                min: BUTTON_TICKERNOTI_BG_MIN_MAX_INC;
5816                visible: 0;
5817             }
5818             description { state: "visible" 0.0;
5819                inherit: "default" 0.0;
5820             }
5821             description { state: "icononly" 0.0;
5822                inherit: "default" 0.0;
5823             }
5824          }
5825          part { name: "padding_right_bottom";
5826             type: RECT;
5827             scale: 1;
5828             mouse_events: 0;
5829             description { state: "default" 0.0;
5830                align: 1.0 1.0;
5831                rel1.relative: 1.0 1.0;
5832                min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
5833                fixed: 1 1;
5834                visible: 0;
5835             }
5836          }
5837          part { name: "icon_rect";
5838             type: RECT;
5839             scale: 1;
5840             mouse_events: 0;
5841             description { state: "default" 0.0;
5842                visible: 0;
5843                min: 0 0;
5844                fixed: 1 0;
5845                rel1 {
5846                   relative: 1.0 1.0;
5847                   to: "padding_left_top";
5848                }
5849                rel2 {
5850                   relative: 1.0 0.0;
5851                   to_x: "padding_left_top";
5852                   to_y: "padding_right_bottom";
5853                }
5854                align: 0.0 0.5;
5855             }
5856             description { state: "visible" 0.0;
5857                inherit: "default" 0.0;
5858                min: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
5859                max: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
5860             }
5861             description { state: "icononly" 0.0;
5862                inherit: "default" 0.0;
5863             }
5864          }
5865          part { name: "padding_after_icon";
5866             type: RECT;
5867             scale: 1;
5868             mouse_events: 0;
5869             description { state: "default" 0.0; //when only icon or no icon is there
5870                visible: 0;
5871                fixed: 1 0;
5872                min: 0 0;
5873                align: 0.0 0.0;
5874                rel1 {
5875                   relative: 1.0 0.0;
5876                   to: "icon_rect";
5877                }
5878                rel2.to: "icon_rect";
5879             }
5880             description { state: "visible" 0.0;
5881                inherit: "default" 0.0;
5882                min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
5883             }
5884             description { state: "icononly" 0.0;
5885                inherit: "default" 0.0;
5886             }
5887          }
5888          part { name: "padding_before_text";
5889             type: RECT;
5890             scale: 1;
5891             mouse_events: 0;
5892             description { state: "default" 0.0; //when only icon or no icon is there
5893                visible: 0;
5894                align: 1.0 0.5;
5895                fixed: 1 0;
5896                min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
5897                rel1 {
5898                   relative: 0.0 1.0;
5899                   to_x: "elm.text";
5900                   to_y: "padding_left_top";
5901                }
5902                rel2 {
5903                   relative: 0.0 0.0;
5904                   to_x: "elm.text";
5905                   to_y: "padding_right_bottom";
5906                }
5907             }
5908          }
5909          part { name: "elm.swallow.content";
5910             type: SWALLOW;
5911             scale: 1;
5912             clip_to: "clipper";
5913             description { state: "default" 0.0;
5914                visible: 0;
5915                fixed: 1 0;
5916                align: 0.0 0.5;
5917                rel1 {
5918                   relative: 1.0 1.0;
5919                   to: "padding_left_top";
5920                }
5921                rel2 {
5922                   relative: 1.0 0.0;
5923                   to_x: "padding_left_top";
5924                   to_y: "padding_right_bottom";
5925                }
5926             }
5927             description { state: "visible" 0.0;
5928                fixed: 1 0;
5929                min: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
5930                max: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
5931                align: 1.0 0.5;
5932                rel1 {
5933                   relative: 0.0 1.0;
5934                   to_x: "padding_before_text";
5935                   to_y: "padding_left_top";
5936                }
5937                rel2 {
5938                   relative: 0.0 0.0;
5939                   to_x: "padding_before_text";
5940                   to_y: "padding_right_bottom";
5941                }
5942             }
5943             description { state: "icononly" 0.0;
5944                min: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
5945                max: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
5946             }
5947          }
5948          part { name: "elm.text";
5949             type: TEXT;
5950             mouse_events: 0;
5951             effect: FAR_SHADOW BOTTOM;
5952             scale: 1;
5953             clip_to: "clipper";
5954             description { state: "default" 0.0;
5955                visible: 0;
5956                rel1 {
5957                   relative: 1.0 1.0;
5958                   to_x: "padding_after_icon";
5959                   to_y: "padding_left_top";
5960                }
5961                rel2 {
5962                   relative: 0.0 0.0;
5963                   to: "padding_right_bottom";
5964                }
5965                color: BUTTON_TICKERNOTI_NORMAL_COLOR_INC;
5966                color2: BUTTON_TICKER_TEXT_SHADOW_NORMAL_COLOR_INC;
5967                text {
5968                   font: "Tizen:style=Regular";
5969                   size: BUTTON_TICKERNOTI_FONT_SIZE_INC;
5970                   text_class: "tizen";
5971                }
5972             }
5973             description { state: "visible" 0.0;
5974                inherit: "default" 0.0;
5975                visible: 1;
5976             }
5977             description { state: "clicked" 0.0;
5978                inherit: "default" 0.0;
5979                visible: 1;
5980                color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
5981             }
5982             description { state: "disabled" 0.0;
5983                inherit: "default" 0.0;
5984             }
5985             description { state: "disabled_visible" 0.0;
5986                inherit: "default" 0.0;
5987                color: BUTTON_TICKERNOTI_DISABLED_COLOR_INC;
5988                color2: BUTTON_TICKER_TEXT_SHADOW_NORMAL_COLOR_INC;
5989                visible: 1;
5990             }
5991             description { state: "focused" 0.0;
5992                inherit: "default" 0.0;
5993                visible: 1;
5994                color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
5995             }
5996          }
5997          part { name: "over2";
5998             type: RECT;
5999             repeat_events: 1;
6000             ignore_flags: ON_HOLD;
6001             description { state: "default" 0.0;
6002                color: 0 0 0 0;
6003             }
6004          }
6005          part { name: "over3";
6006             type: RECT;
6007             repeat_events: 1;
6008             description { state: "default" 0.0;
6009                color: 0 0 0 0;
6010             }
6011          }
6012          part { name: "clipper";
6013             type: RECT;
6014             description { state: "default" 0.0;
6015                color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
6016             }
6017             description { state: "disabled" 0.0;
6018                inherit: "default" 0.0;
6019                color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
6020             }
6021          }
6022          part { name: "disabler";
6023             type: RECT;
6024             description { state: "default" 0.0;
6025                color: 0 0 0 0;
6026                visible: 0;
6027             }
6028             description { state: "disabled" 0.0;
6029                inherit: "default" 0.0;
6030                visible: 1;
6031             }
6032          }
6033       }
6034       programs {
6035          program { name: "button_click";
6036             signal: "mouse,down,1";
6037             source: "over2";
6038             action: SIGNAL_EMIT "elm,action,press" "";
6039             after: "button_click_anim";
6040          }
6041          program { name: "button_click_anim";
6042             action: STATE_SET "clicked" 0.0;
6043             target: "button_image";
6044             after: "text_clicked";
6045          }
6046          program { name: "text_clicked";
6047             script {
6048                new st[31];
6049                new Float:vl;
6050                get_state(PART:"elm.text", st, 30, vl);
6051                if (!strcmp(st, "visible"))
6052                  set_state(PART:"elm.text", "clicked", 0.0);
6053             }
6054          }
6055          program { name: "button_double_click";
6056             signal: "mouse,down,1,double";
6057             source: "over2";
6058             after: "button_click_anim";
6059          }
6060          program { name: "button_unpress";
6061             action: SIGNAL_EMIT "elm,action,unpress" "";
6062          }
6063          program { name: "button_mouseout_clicked";
6064             signal: "mouse,up,1";
6065             source: "over3";
6066             script {
6067                new st[31];
6068                new Float:vl;
6069                get_state(PART:"elm.swallow.content", st, 30, vl);
6070                if (strcmp(st, "icononly"))
6071                  {
6072                     emit("elm,action,default,text,set", "");
6073                     set_state(PART:"elm.text", "visible", 0.0);
6074                  }
6075                if (get_int(button_state) != BUTTON_STATE_DISABLED)
6076                  set_state(PART:"button_image", "default", 0.0);
6077             }
6078             after: button_unpress;
6079          }
6080          program { name: "touch_snd";
6081             signal: "mouse,clicked,1";
6082             source: "over2";
6083             action: PLAY_SAMPLE "touch_sound" 1.0;
6084             after: button_unclick3;
6085          }
6086          program { name: "button_unclick3";
6087             action: SIGNAL_EMIT "elm,action,click" "";
6088          }
6089          program { name: "text_show";
6090             signal: "elm,state,text,visible";
6091             source: "elm";
6092             script {
6093                new st[31];
6094                new Float:vl;
6095                get_state(PART:"elm.swallow.content", st, 30, vl);
6096                if (!strcmp(st, "icononly"))
6097                  {
6098                     set_state(PART:"elm.swallow.content", "visible", 0.0);
6099                     set_state(PART:"icon_rect", "visible", 0.0);
6100                     set_state(PART:"padding_after_icon", "visible", 0.0);
6101                     set_state(PART:"bg", "visible", 0.0);
6102                  }
6103                if (get_int(button_state) != BUTTON_STATE_DISABLED)
6104                  set_state(PART:"elm.text", "visible", 0.0);
6105                else
6106                  set_state(PART:"elm.text", "disabled_visible", 0.0);
6107             }
6108          }
6109          program { name: "text_hide";
6110             signal: "elm,state,text,hidden";
6111             source: "elm";
6112             script {
6113                new st[31];
6114                new Float:vl;
6115                get_state(PART:"elm.swallow.content", st, 30, vl);
6116                if (!strcmp(st, "visible"))
6117                  {
6118                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
6119                     set_state(PART:"icon_rect", "icononly", 0.0);
6120                     set_state(PART:"padding_after_icon", "icononly", 0.0);
6121                     set_state(PART:"bg", "icononly", 0.0);
6122                  }
6123                set_state(PART:"elm.text", "default", 0.0);
6124             }
6125          }
6126          program { name: "icon_show";
6127             signal: "elm,state,icon,visible";
6128             source: "elm";
6129             script {
6130                new st[31];
6131                new Float:vl;
6132                get_state(PART:"elm.text", st, 30, vl);
6133                if (!strcmp(st, "visible"))
6134                  {
6135                     set_state(PART:"elm.swallow.content", "visible", 0.0);
6136                     set_state(PART:"icon_rect", "visible", 0.0);
6137                     set_state(PART:"padding_after_icon", "visible", 0.0);
6138                     set_state(PART:"bg", "visible", 0.0);
6139                  }
6140                else
6141                  {
6142                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
6143                     set_state(PART:"icon_rect", "icononly", 0.0);
6144                     set_state(PART:"padding_after_icon", "icononly", 0.0);
6145                     set_state(PART:"bg", "icononly", 0.0);
6146                  }
6147             }
6148          }
6149          program { name: "icon_hide";
6150             signal: "elm,state,icon,hidden";
6151             source: "elm";
6152             action: STATE_SET "default" 0.0;
6153             target: "elm.swallow.content";
6154             target: "padding_after_icon";
6155             target: "icon_rect";
6156             target: "bg";
6157          }
6158          program { name: "disable";
6159             signal: "elm,state,disabled";
6160             source: "elm";
6161             action: STATE_SET "disabled" 0.0;
6162             target: "button_image";
6163             target: "disabler";
6164             target: "clipper";
6165             after: "disable_text";
6166          }
6167          program { name: "disable_text";
6168             script {
6169                new st[31];
6170                new Float:vl;
6171                get_state(PART:"elm.text", st, 30, vl);
6172                if (!strcmp(st, "visible"))
6173                  set_state(PART:"elm.text", "disabled_visible", 0.0);
6174                else
6175                  set_state(PART:"elm.text", "disabled", 0.0);
6176                set_int(button_state, BUTTON_STATE_DISABLED);
6177             }
6178          }
6179          program { name: "enable";
6180             signal: "elm,state,enabled";
6181             source: "elm";
6182             action: STATE_SET "default" 0.0;
6183             target: "button_image";
6184             target: "disabler";
6185             target: "clipper";
6186             after: "enable_text";
6187          }
6188          program { name: "enable_text";
6189             script {
6190                new st[31];
6191                new Float:vl;
6192                get_state(PART:"elm.text", st, 30, vl);
6193                if (!strcmp(st, "disabled_visible"))
6194                  set_state(PART:"elm.text", "visible", 0.0);
6195                else
6196                  set_state(PART:"elm.text", "default", 0.0);
6197                set_int(button_state, BUTTON_STATE_ENABLED);
6198             }
6199          }
6200          program { name: "focused";
6201             //signal: "elm,action,focus";
6202             //source: "elm";
6203             action: STATE_SET "focused" 0.0;
6204             target: "button_image";
6205             target: "elm.text";
6206          }
6207          program { name: "unfocused";
6208             //signal: "elm,action,unfocus";
6209             //source: "elm";
6210             action: STATE_SET "default" 0.0;
6211             target: "button_image";
6212             after: "unfocus_text";
6213          }
6214          program { name: "unfocus_text";
6215             action: STATE_SET "visible" 0.0;
6216             target: "elm.text";
6217          }
6218       }
6219    }
6220
6221 ///////////////////////////////////////////////////////////////////////////////////////
6222    group { name: "elm/button/base/expandable_number";
6223       alias: "elm/button/base/text_only/expandable_number";
6224       images {
6225          image: "00_button_01.png" COMP;
6226          image: "00_button_01_press.png" COMP;
6227          image: "00_button_01_dim.png" COMP;
6228          image: "00_arrow_expand.png" COMP;
6229       }
6230       script {
6231          public button_state = BUTTON_STATE_ENABLED;
6232       }
6233       parts {
6234          part { name: "button_image";
6235             scale: 1;
6236             description { state: "default" 0.0;
6237                min: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
6238                max: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
6239                image {
6240                   normal: "00_button_01.png";
6241                   border: BUTTON_EXPANDABLE_NUMBER_BG_BORDER_INC;
6242                   border_scale: 1;
6243                }
6244             }
6245             description { state: "clicked" 0.0;
6246                inherit: "default" 0.0;
6247                image.normal: "00_button_01_press.png";
6248             }
6249             description { state: "disabled" 0.0;
6250                inherit: "default" 0.0;
6251                image.normal: "00_button_01_dim.png";
6252             }
6253             description { state: "focused" 0.0;
6254                inherit: "default" 0.0;
6255                image.normal: "00_button_01_press.png";
6256             }
6257          }
6258          part { name: "padding_left_top";
6259             type: RECT;
6260             scale: 1;
6261             mouse_events: 0;
6262             description { state: "default" 0.0;
6263                visible: 0;
6264                align: 0.0 0.0;
6265                rel2.relative: 0.0 0.0;
6266                min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
6267                fixed: 1 1;
6268             }
6269          }
6270          part { name: "padding_right_bottom";
6271             type: RECT;
6272             scale: 1;
6273             mouse_events: 0;
6274             description { state: "default" 0.0;
6275                visible: 0;
6276                align: 1.0 1.0;
6277                rel1.relative: 1.0 1.0;
6278                min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
6279                fixed: 1 1;
6280             }
6281          }
6282          part { name: "icon_rect";
6283             type: RECT;
6284             scale: 1;
6285             mouse_events: 0;
6286             description { state: "default" 0.0;
6287                visible: 0;
6288                min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6289                max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6290                fixed: 1 0;
6291                rel1 {
6292                   relative: 0.0 1.0;
6293                   to_x: "padding_right_bottom";
6294                   to_y: "padding_left_top";
6295                }
6296                rel2 {
6297                   relative: 0.0 0.0;
6298                   to: "padding_right_bottom";
6299                }
6300                align: 1.0 0.5;
6301             }
6302          }
6303          part { name: "arrow_expand";
6304             scale: 1;
6305             clip_to: "icon_clipper";
6306             mouse_events: 0;
6307             description { state: "default" 0.0;
6308                align: 0.0 0.5;
6309                min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6310                max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6311                fixed: 0 0;
6312                rel1.to: "icon_rect";
6313                rel2.to: "icon_rect";
6314                image.normal:"00_arrow_expand.png";
6315             }
6316          }
6317          part { name: "elm.text";
6318             type: TEXT;
6319             mouse_events: 0;
6320             effect: SHADOW BOTTOM;
6321             scale: 1;
6322             description { state: "default" 0.0;
6323                min: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
6324                max: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
6325                fixed:1 0;
6326                rel1 {
6327                   relative: 1.0 1.0;
6328                   to: "padding_left_top";
6329                }
6330                rel2 {
6331                   relative: 1.0 1.0;
6332                   to_x:"padding_left_top";
6333                   to_y:"padding_right_bottom";
6334                }
6335                align: 0.0 0.5;
6336                color: BUTTON_NUMBER_TEXT_NORMAL_COLOR_INC;
6337                color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
6338                text {
6339                   font: "Tizen:style=Regular";
6340                   size: BUTTON_EXPANDABLE_NUMBER_FONT_SIZE_INC;
6341                   min: 0 0;
6342                   fit: 1 1;
6343                   size_range: 28 32;
6344                   text_class: "tizen";
6345                }
6346             }
6347             description { state: "visible" 0.0;
6348                inherit: "default" 0.0;
6349             }
6350             description { state: "clicked" 0.0;
6351                inherit: "default" 0.0;
6352                color: BUTTON_NUMBER_TEXT_PRESSED_COLOR_INC;
6353             }
6354             description { state: "disabled" 0.0;
6355                inherit: "default" 0.0;
6356             }
6357             description { state: "disabled_visible" 0.0;
6358                inherit: "default" 0.0;
6359                color: BUTTON_NUMBER_TEXT_DISABLE_VISIBLE_COLOR_INC;
6360                color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
6361             }
6362             description { state: "focused" 0.0;
6363                inherit: "default" 0.0;
6364                color: BUTTON_NUMBER_TEXT_FOCUSED_COLOR_INC;
6365             }
6366          }
6367          part { name: "icon_clipper";
6368             scale: 1;
6369             type: RECT;
6370             description { state: "default" 0.0;
6371                color: BUTTON_NUMBER_ICON_NORMAL_COLOR_INC;
6372             }
6373             description { state: "clicked" 0.0;
6374                color: BUTTON_NUMBER_ICON_PRESSED_COLOR_INC;
6375             }
6376             description { state: "disabled" 0.0;
6377                color: BUTTON_NUMBER_ICON_DISABLED_COLOR_INC;
6378             }
6379          }
6380          part { name: "over2";
6381             type: RECT;
6382             repeat_events: 1;
6383             ignore_flags: ON_HOLD;
6384             description { state: "default" 0.0;
6385                color: 0 0 0 0;
6386             }
6387          }
6388          part { name: "over3";
6389             type: RECT;
6390             repeat_events: 1;
6391             description { state: "default" 0.0;
6392                color: 0 0 0 0;
6393             }
6394          }
6395          part { name: "disabler";
6396             type: RECT;
6397             description { state: "default" 0.0;
6398                color: 0 0 0 0;
6399                visible: 0;
6400             }
6401             description { state: "disabled" 0.0;
6402                inherit: "default" 0.0;
6403                visible: 1;
6404             }
6405          }
6406       }
6407       programs {
6408          program { name: "button_click";
6409             signal: "mouse,down,1";
6410             source: "over2";
6411             action: SIGNAL_EMIT "elm,action,press" "";
6412             after: "button_click_anim";
6413          }
6414          program { name: "button_click_anim";
6415             action: STATE_SET "clicked" 0.0;
6416             target: "button_image";
6417             target: "icon_clipper";
6418             after: "text_clicked";
6419          }
6420          program { name: "text_clicked";
6421             script {
6422                new st[31];
6423                new Float:vl;
6424                get_state(PART:"elm.text", st, 30, vl);
6425                if (!strcmp(st, "visible"))
6426                  set_state(PART:"elm.text", "clicked", 0.0);
6427             }
6428          }
6429          program { name: "button_double_click";
6430             signal: "mouse,down,1,double";
6431             source: "over2";
6432             after: "button_click_anim";
6433          }
6434          program { name: "button_unpress";
6435             action: SIGNAL_EMIT "elm,action,unpress" "";
6436          }
6437          program { name: "button_mouseout_clicked";
6438             signal: "mouse,up,1";
6439             source: "over3";
6440             script {
6441                if (get_int(button_state) != BUTTON_STATE_DISABLED)
6442                  {
6443                     set_state(PART:"button_image", "default", 0.0);
6444                     set_state(PART:"elm.text", "visible", 0.0);
6445                     set_state(PART:"icon_clipper", "default", 0.0);
6446                  }
6447             }
6448             after: button_unpress;
6449          }
6450          program { name: "touch_snd";
6451             signal: "mouse,clicked,1";
6452             source: "over2";
6453             action: PLAY_SAMPLE "touch_sound" 1.0;
6454             after: button_unclick3;
6455          }
6456          program { name: "button_unclick3";
6457             action: SIGNAL_EMIT "elm,action,click" "";
6458          }
6459          program { name: "text_show";
6460             signal: "elm,state,text,visible";
6461             source: "elm";
6462             script {
6463                if (get_int(button_state) != BUTTON_STATE_DISABLED)
6464                  set_state(PART:"elm.text", "visible", 0.0);
6465                else
6466                  set_state(PART:"elm.text", "disabled_visible", 0.0);
6467             }
6468          }
6469          program { name: "text_hide";
6470             signal: "elm,state,text,hidden";
6471             source: "elm";
6472             script {
6473                set_state(PART:"elm.text", "default", 0.0);
6474             }
6475          }
6476          program { name: "disable";
6477             signal: "elm,state,disabled";
6478             source: "elm";
6479             action: STATE_SET "disabled" 0.0;
6480             target: "button_image";
6481             target: "disabler";
6482             target: "icon_clipper";
6483             after: "disable_text";
6484          }
6485          program { name: "disable_text";
6486             script {
6487                new st[31];
6488                new Float:vl;
6489                get_state(PART:"elm.text", st, 30, vl);
6490                if (!strcmp(st, "visible"))
6491                  set_state(PART:"elm.text", "disabled_visible", 0.0);
6492                else
6493                  set_state(PART:"elm.text", "disabled", 0.0);
6494                set_int(button_state, BUTTON_STATE_DISABLED);
6495             }
6496          }
6497          program { name: "enable";
6498             signal: "elm,state,enabled";
6499             source: "elm";
6500             action: STATE_SET "default" 0.0;
6501             target: "button_image";
6502             target: "disabler";
6503             target: "icon_clipper";
6504             after: "enable_text";
6505          }
6506          program { name: "enable_text";
6507             script {
6508                new st[31];
6509                new Float:vl;
6510                get_state(PART:"elm.text", st, 30, vl);
6511                if (!strcmp(st, "disabled_visible"))
6512                  set_state(PART:"elm.text", "visible", 0.0);
6513                else
6514                  set_state(PART:"elm.text", "default", 0.0);
6515                set_int(button_state, BUTTON_STATE_ENABLED);
6516             }
6517          }
6518          program { name: "focused";
6519             //signal: "elm,action,focus";
6520             //source: "elm";
6521             action: STATE_SET "focused" 0.0;
6522             target: "button_image";
6523             target: "elm.text";
6524          }
6525          program { name: "unfocused";
6526             //signal: "elm,action,unfocus";
6527             //source: "elm";
6528             action: STATE_SET "default" 0.0;
6529             target: "button_image";
6530             after: "unfocus_text";
6531          }
6532          program { name: "unfocus_text";
6533             action: STATE_SET "visible" 0.0;
6534             target: "elm.text";
6535          }
6536       }
6537    }
6538
6539 ////////////////////////////////////////////////////////////////////////
6540    group { name: "elm/button/base/bubble_sent";
6541       inherit: "elm/button/base/style1";
6542       images {
6543          image: "00_messagebubble_button_sent.png" COMP;
6544          image: "00_messagebubble_button_sent_press.png" COMP;
6545          image: "00_messagebubble_button_sent_dim.png" COMP;
6546       }
6547       parts {
6548          part { name: "button_image";
6549             scale: 1;
6550             description { state: "default" 0.0;
6551                image {
6552                   normal: "00_messagebubble_button_sent.png";
6553                   border: BUTTON_SENT_BUBBLE_BG_BORDER_INC;
6554                   border_scale: 1;
6555                }
6556             }
6557             description { state: "clicked" 0.0;
6558                inherit: "default" 0.0;
6559                image.normal: "00_messagebubble_button_sent_press.png";
6560             }
6561             description { state: "disabled" 0.0;
6562                inherit: "default" 0.0;
6563                image.normal: "00_messagebubble_button_sent_dim.png";
6564             }
6565             description { state: "focused" 0.0;
6566                inherit: "default" 0.0;
6567                image.normal: "00_messagebubble_button_sent_press.png";
6568             }
6569          }
6570          part { name: "elm.text";
6571             type: TEXT;
6572             mouse_events: 0;
6573             effect: FAR_SHADOW BOTTOM;
6574             scale: 1;
6575             clip_to: "clipper";
6576             description { state: "default" 0.0;
6577                visible: 0;
6578                rel1 {
6579                   relative: 1.0 1.0;
6580                   to_x: "padding_after_icon";
6581                   to_y: "padding_left_top";
6582                }
6583                rel2 {
6584                   relative: 0.0 0.0;
6585                   to: "padding_right_bottom";
6586                }
6587                color: BUTTON_SEND_BUBBLE_TEXT_NORMAL_COLOR_INC;
6588                color2: BUTTON_SEND_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
6589                text {
6590                   font: "Tizen:style=Regular";
6591                   size: BUTTON_SENT_BUBBLE_TEXT_FONT_SIZE_INC;
6592                   min: 0 0;
6593                   max: 1 0;
6594                   text_class: "tizen";
6595                }
6596             }
6597             description { state: "visible" 0.0;
6598                inherit: "default" 0.0;
6599                visible: 1;
6600             }
6601             description { state: "clicked" 0.0;
6602                inherit: "default" 0.0;
6603                visible: 1;
6604                color: BUTTON_SEND_BUBBLE_TEXT_PRESSED_COLOR_INC;
6605             }
6606             description { state: "disabled" 0.0;
6607                inherit: "default" 0.0;
6608             }
6609             description { state: "disabled_visible" 0.0;
6610                inherit: "default" 0.0;
6611                color: BUTTON_SEND_BUBBLE_TEXT_DISABLED_COLOR_INC;
6612                visible: 1;
6613             }
6614             description { state: "focused" 0.0;
6615                inherit: "default" 0.0;
6616                visible: 1;
6617                color: BUTTON_SEND_BUBBLE_TEXT_FOCUSED_COLOR_INC;
6618             }
6619          }
6620       }
6621    }
6622
6623 ////////////////////////////////////////////////////////////////////////
6624    group { name: "elm/button/base/bubble_sent/multiline";
6625       inherit: "elm/button/base/bubble_sent";
6626       styles{
6627          style { name: "bubble_sent_multiline";
6628             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";
6629             tag: "br" "\n";
6630             tag: "ps" "ps";
6631             tag: "tab" "\t";
6632          }
6633       }
6634       parts {
6635          part { name: "elm.text";
6636             type: TEXTBLOCK;
6637             mouse_events: 0;
6638             effect: FAR_SHADOW BOTTOM;
6639             scale: 1;
6640             clip_to: "clipper";
6641             description { state: "default" 0.0;
6642                visible: 0;
6643                fixed: 1 1;
6644                rel1 {
6645                   relative: 1.0 1.0;
6646                   to_x: "padding_after_icon";
6647                   to_y: "padding_left_top";
6648                }
6649                rel2 {
6650                   relative: 0.0 0.0;
6651                   to: "padding_right_bottom";
6652                }
6653                color: BUTTON_SEND_BUBBLE_TEXT_NORMAL_COLOR_INC;
6654                color2: BUTTON_SEND_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
6655                text {
6656                    style: "bubble_sent_multiline";
6657                }
6658             }
6659             description { state: "visible" 0.0;
6660                inherit: "default" 0.0;
6661                visible: 1;
6662             }
6663             description { state: "clicked" 0.0;
6664                inherit: "default" 0.0;
6665                visible: 1;
6666                color: BUTTON_SEND_BUBBLE_TEXT_PRESSED_COLOR_INC;
6667             }
6668             description { state: "disabled" 0.0;
6669                inherit: "default" 0.0;
6670             }
6671             description { state: "disabled_visible" 0.0;
6672                inherit: "default" 0.0;
6673                color: BUTTON_SEND_BUBBLE_TEXT_DISABLED_COLOR_INC;
6674                visible: 1;
6675             }
6676             description { state: "focused" 0.0;
6677                inherit: "default" 0.0;
6678                visible: 1;
6679                color: BUTTON_SEND_BUBBLE_TEXT_FOCUSED_COLOR_INC;
6680             }
6681          }
6682       }
6683    }
6684
6685 ///////////////////////////////////////////////////////////////////////
6686    group { name: "elm/button/base/bubble_receive";
6687       inherit: "elm/button/base/style1";
6688       images {
6689          image: "00_messagebubble_button_receive.png" COMP;
6690          image: "00_messagebubble_button_receive_press.png" COMP;
6691          image: "00_messagebubble_button_receive_dim.png" COMP;
6692       }
6693       parts {
6694          part { name: "button_image";
6695             scale: 1;
6696             description { state: "default" 0.0;
6697                image {
6698                   normal: "00_messagebubble_button_receive.png";
6699                   border: BUTTON_RECEIVE_BUBBLE_BG_BORDER_INC;
6700                   border_scale: 1;
6701                }
6702             }
6703             description { state: "clicked" 0.0;
6704                inherit: "default" 0.0;
6705                image.normal: "00_messagebubble_button_receive_press.png";
6706             }
6707             description { state: "disabled" 0.0;
6708                inherit: "default" 0.0;
6709                image.normal: "00_messagebubble_button_receive_dim.png";
6710             }
6711             description { state: "focused" 0.0;
6712                inherit: "default" 0.0;
6713                image.normal: "00_messagebubble_button_receive_press.png";
6714             }
6715          }
6716          part { name: "elm.text";
6717             type: TEXT;
6718             mouse_events: 0;
6719             effect: SHADOW BOTTOM;
6720             scale: 1;
6721             clip_to: "clipper";
6722             description { state: "default" 0.0;
6723                visible: 0;
6724                rel1 {
6725                   relative: 1.0 1.0;
6726                   to_x: "padding_after_icon";
6727                   to_y: "padding_left_top";
6728                }
6729                rel2 {
6730                   relative: 0.0 0.0;
6731                   to: "padding_right_bottom";
6732                }
6733                color: BUTTON_RECEIVE_BUBBLE_TEXT_NORMAL_COLOR_INC;
6734                color2: BUTTON_RECEIVE_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
6735                text {
6736                   font: "Tizen:style=Regular";
6737                   size: BUTTON_RECEIVE_BUBBLE_TEXT_FONT_SIZE_INC;
6738                   min: 0 0;
6739                   max: 1 0;
6740                   text_class: "tizen";
6741                }
6742             }
6743             description { state: "visible" 0.0;
6744                inherit: "default" 0.0;
6745                visible: 1;
6746             }
6747             description { state: "clicked" 0.0;
6748                inherit: "default" 0.0;
6749                visible: 1;
6750                color: BUTTON_RECEIVE_BUBBLE_TEXT_PRESSED_COLOR_INC;
6751             }
6752             description { state: "disabled" 0.0;
6753                inherit: "default" 0.0;
6754             }
6755             description { state: "disabled_visible" 0.0;
6756                inherit: "default" 0.0;
6757                color: BUTTON_RECEIVE_BUBBLE_TEXT_DISABLED_COLOR_INC;
6758                visible: 1;
6759             }
6760             description { state: "focused" 0.0;
6761                inherit: "default" 0.0;
6762                visible: 1;
6763                color: BUTTON_RECEIVE_BUBBLE_TEXT_FOCUSED_COLOR_INC;
6764             }
6765          }
6766       }
6767    }
6768
6769 ///////////////////////////////////////////////////////////////////////
6770    group { name: "elm/button/base/bubble_receive/multiline";
6771       inherit: "elm/button/base/bubble_receive";
6772       styles{
6773          style { name: "bubble_receive_multiline";
6774             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";
6775             tag: "br" "\n";
6776             tag: "ps" "ps";
6777             tag: "tab" "\t";
6778          }
6779       }
6780       parts {
6781          part { name: "elm.text";
6782             type: TEXTBLOCK;
6783             mouse_events: 0;
6784             effect: SHADOW BOTTOM;
6785             scale: 1;
6786             clip_to: "clipper";
6787             description { state: "default" 0.0;
6788                visible: 0;
6789                fixed: 1 1;
6790                rel1 {
6791                   relative: 1.0 1.0;
6792                   to_x: "padding_after_icon";
6793                   to_y: "padding_left_top";
6794                }
6795                rel2 {
6796                   relative: 0.0 0.0;
6797                   to: "padding_right_bottom";
6798                }
6799                color: BUTTON_RECEIVE_BUBBLE_TEXT_NORMAL_COLOR_INC;
6800                color2: BUTTON_RECEIVE_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
6801                text {
6802                    style: "btn_style1_multiline";
6803                }
6804             }
6805             description { state: "visible" 0.0;
6806                inherit: "default" 0.0;
6807                visible: 1;
6808             }
6809             description { state: "clicked" 0.0;
6810                inherit: "default" 0.0;
6811                visible: 1;
6812                color: BUTTON_RECEIVE_BUBBLE_TEXT_PRESSED_COLOR_INC;
6813             }
6814             description { state: "disabled" 0.0;
6815                inherit: "default" 0.0;
6816             }
6817             description { state: "disabled_visible" 0.0;
6818                inherit: "default" 0.0;
6819                color: BUTTON_RECEIVE_BUBBLE_TEXT_DISABLED_COLOR_INC;
6820                visible: 1;
6821             }
6822             description { state: "focused" 0.0;
6823                inherit: "default" 0.0;
6824                visible: 1;
6825                color: BUTTON_RECEIVE_BUBBLE_TEXT_FOCUSED_COLOR_INC;
6826             }
6827          }
6828       }
6829    }
6830
6831 ///////////////////////////////////////////////////////////////////////
6832 group { name: "elm/button/base/bubble_circle/receive";
6833       images {
6834          image: "00_messagebubble_circle_receive.png" COMP;
6835          image: "00_messagebubble_circle_receive_press.png" COMP;
6836          image: "00_messagebubble_circle_receive_dim.png" COMP;
6837          image: "00_button_right.png" COMP;
6838          image: "00_button_right_press.png" COMP;
6839       }
6840       parts {
6841          part { name: "button_image";
6842             scale: 1;
6843             description { state: "default" 0.0;
6844                min: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
6845                max: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
6846                image.normal: "00_messagebubble_circle_receive.png";
6847             }
6848             description {
6849                state: "clicked" 0.0;
6850                inherit: "default" 0.0;
6851                image.normal: "00_messagebubble_circle_receive_press.png";
6852             }
6853             description {
6854                state: "disabled" 0.0;
6855                inherit: "default" 0.0;
6856                image.normal: "00_messagebubble_circle_receive_dim.png";
6857             }
6858          }
6859          part { name: "image";
6860             scale: 1;
6861             clip_to: "icon_clipper";
6862             description { state: "default" 0.0;
6863                min: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
6864                max: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
6865                image.normal: "00_button_right.png";
6866             }
6867             description {
6868                state: "clicked" 0.0;
6869                inherit: "default" 0.0;
6870                image.normal: "00_button_right_press.png";
6871             }
6872             description {
6873                state: "disabled" 0.0;
6874                inherit: "default" 0.0;
6875             }
6876          }
6877          part { name: "icon_clipper";
6878             type: RECT;
6879             scale: 1;
6880             description { state: "default" 0.0;
6881                color: BUTTON_BUBBLE_CIRCLE_RECEIVE_ICON_NORMAL_COLOR_INC;
6882             }
6883             description { state: "clicked" 0.0;
6884                color: BUTTON_BUBBLE_CIRCLE_RECEIVE_ICON_PRESSED_COLOR_INC;
6885             }
6886             description { state: "disabled" 0.0;
6887                color: BUTTON_BUBBLE_CIRCLE_RECEIVE_ICON_DISABLED_COLOR_INC;
6888             }
6889          }
6890          part { name: "over1";
6891             type: RECT;
6892             ignore_flags: ON_HOLD;
6893             description { state: "default" 0.0;
6894                color: 0 0 0 0;
6895             }
6896          }
6897          part { name: "over2";
6898             type: RECT;
6899             repeat_events: 1;
6900             description { state: "default" 0.0;
6901                color: 0 0 0 0;
6902             }
6903          }
6904          part { name: "disabler";
6905             type: RECT;
6906             description { state: "default" 0.0;
6907                color: 0 0 0 0;
6908                visible: 0;
6909             }
6910             description { state: "disabled" 0.0;
6911                inherit: "default" 0.0;
6912                visible: 1;
6913             }
6914          }
6915       }
6916       programs {
6917          program { name: "button_click";
6918             signal: "mouse,down,1";
6919             source: "over1";
6920             action: SIGNAL_EMIT "elm,action,press" "";
6921             after: "button_click_anim";
6922          }
6923          program { name: "button_click_anim";
6924             action: STATE_SET "clicked" 0.0;
6925             target: "button_image";
6926             target: "image";
6927             target: "icon_clipper";
6928          }
6929          program { name: "button_double_click";
6930             signal: "mouse,down,1,double";
6931             source: "over1";
6932             after: "button_click_anim";
6933          }
6934          program { name: "button_unclick";
6935             signal: "mouse,up,1";
6936             source: "over2";
6937             action: SIGNAL_EMIT "elm,action,unpress" "";
6938             after: "button_unclick_anim";
6939          }
6940          program { name: "button_unclick_anim";
6941             action: STATE_SET "default" 0.0;
6942             target: "button_image";
6943             target: "image";
6944             target: "icon_clipper";
6945          }
6946          program { name: "touch_snd";
6947             signal: "mouse,clicked,1";
6948             source: "over1";
6949             action: PLAY_SAMPLE "touch_sound" 1.0;
6950             after: button_unclick3;
6951          }
6952          program { name: "button_unclick3";
6953             action: SIGNAL_EMIT "elm,action,click" "";
6954          }
6955          program { name: "disable";
6956             signal: "elm,state,disabled";
6957             source: "elm";
6958             action: STATE_SET "disabled" 0.0;
6959             target: "disabler";
6960             target: "button_image";
6961             target: "icon_clipper";
6962             
6963          }
6964          program { name: "enable";
6965             signal: "elm,state,enabled";
6966             source: "elm";
6967             action: STATE_SET "default" 0.0;
6968             target: "disabler";
6969             target: "button_image";
6970             target: "icon_clipper";
6971          }
6972       }
6973    }
6974
6975 ///////////////////////////////////////////////////////////////////////
6976 group { name: "elm/button/base/bubble_circle/sent";
6977       images {
6978          image: "00_messagebubble_circle_sent.png" COMP;
6979          image: "00_messagebubble_circle_sent_press.png" COMP;
6980          image: "00_messagebubble_circle_sent_dim.png" COMP;
6981          image: "00_button_right.png" COMP;
6982          image: "00_button_right_press.png" COMP;
6983       }
6984       parts {
6985          part { name: "button_image";
6986             scale: 1;
6987             description { state: "default" 0.0;
6988                min: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
6989                max: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
6990                image.normal: "00_messagebubble_circle_sent.png";
6991             }
6992             description {
6993                state: "clicked" 0.0;
6994                inherit: "default" 0.0;
6995                image.normal: "00_messagebubble_circle_sent_press.png";
6996             }
6997             description {
6998                state: "disabled" 0.0;
6999                inherit: "default" 0.0;
7000                image.normal: "00_messagebubble_circle_sent_dim.png";
7001             }
7002          }
7003          part { name: "image";
7004             scale: 1;
7005             clip_to: "icon_clipper";
7006             description { state: "default" 0.0;
7007                min: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
7008                max: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
7009                image.normal: "00_button_right.png";
7010             }
7011             description {
7012                state: "clicked" 0.0;
7013                inherit: "default" 0.0;
7014                image.normal: "00_button_right_press.png";
7015             }
7016             description {
7017                state: "disabled" 0.0;
7018                inherit: "default" 0.0;
7019             }
7020          }
7021          part { name: "icon_clipper";
7022             type: RECT;
7023             scale: 1;
7024             description { state: "default" 0.0;
7025                color: BUTTON_BUBBLE_CIRCLE_SENT_ICON_NORMAL_COLOR_INC;
7026             }
7027             description { state: "clicked" 0.0;
7028                color: BUTTON_BUBBLE_CIRCLE_SENT_ICON_PRESSED_COLOR_INC;
7029             }
7030             description { state: "disabled" 0.0;
7031                color: BUTTON_BUBBLE_CIRCLE_SENT_ICON_DISABLED_COLOR_INC;
7032             }
7033          }
7034          part { name: "over1";
7035             type: RECT;
7036             ignore_flags: ON_HOLD;
7037             description { state: "default" 0.0;
7038                color: 0 0 0 0;
7039             }
7040          }
7041          part { name: "over2";
7042             type: RECT;
7043             repeat_events: 1;
7044             description { state: "default" 0.0;
7045                color: 0 0 0 0;
7046             }
7047          }
7048          part { name: "disabler";
7049             type: RECT;
7050             description { state: "default" 0.0;
7051                color: 0 0 0 0;
7052                visible: 0;
7053             }
7054             description { state: "disabled" 0.0;
7055                inherit: "default" 0.0;
7056                visible: 1;
7057             }
7058          }
7059       }
7060       programs {
7061          program { name: "button_click";
7062             signal: "mouse,down,1";
7063             source: "over1";
7064             action: SIGNAL_EMIT "elm,action,press" "";
7065             after: "button_click_anim";
7066          }
7067          program { name: "button_click_anim";
7068             action: STATE_SET "clicked" 0.0;
7069             target: "button_image";
7070             target: "image";
7071             target: "icon_clipper";
7072          }
7073          program { name: "button_double_click";
7074             signal: "mouse,down,1,double";
7075             source: "over1";
7076             after: "button_click_anim";
7077          }
7078          program { name: "button_unclick";
7079             signal: "mouse,up,1";
7080             source: "over2";
7081             action: SIGNAL_EMIT "elm,action,unpress" "";
7082             after: "button_unclick_anim";
7083          }
7084          program { name: "button_unclick_anim";
7085             action: STATE_SET "default" 0.0;
7086             target: "button_image";
7087             target: "image";
7088             target: "icon_clipper";
7089          }
7090          program { name: "touch_snd";
7091             signal: "mouse,clicked,1";
7092             source: "over1";
7093             action: PLAY_SAMPLE "touch_sound" 1.0;
7094             after: button_unclick3;
7095          }
7096          program { name: "button_unclick3";
7097             action: SIGNAL_EMIT "elm,action,click" "";
7098          }
7099          program { name: "disable";
7100             signal: "elm,state,disabled";
7101             source: "elm";
7102             action: STATE_SET "disabled" 0.0;
7103             target: "disabler";
7104             target: "button_image";
7105             target: "icon_clipper";
7106          }
7107          program { name: "enable";
7108             signal: "elm,state,enabled";
7109             source: "elm";
7110             action: STATE_SET "default" 0.0;
7111             target: "disabler";
7112             target: "button_image";
7113             target: "icon_clipper";
7114          }
7115       }
7116    }
7117
7118 //////////////////////////////////////////////////////////////////////////////////////
7119    group { name: "elm/button/base/editfield_clear";
7120       images {
7121          image: "00_EditField_clear" COMP;
7122       }
7123       parts {
7124          part { name: "button_image";
7125             type: RECT;
7126             scale: 1;
7127             description { state: "default" 0.0;
7128                visible: 0;
7129             }
7130             description { state: "clicked" 0.0;
7131                inherit: "default" 0.0;
7132             }
7133             description { state: "disabled" 0.0;
7134                inherit: "default" 0.0;
7135             }
7136             description { state: "focused" 0.0;
7137                inherit: "default" 0.0;
7138             }
7139          }
7140          part { name: "clear_button";
7141             scale: 1;
7142             mouse_events: 0;
7143             clip_to: "clear_button.clipper";
7144             description { state: "default" 0.0;
7145                min: BUTTON_EDITFIELD_CLEAR_BUTTON_MIN_MAX_INC;
7146                max: BUTTON_EDITFIELD_CLEAR_BUTTON_MIN_MAX_INC;
7147                fixed: 1 1;
7148                align: 0.0 0.5;
7149                image.normal: "00_EditField_clear.png";
7150             }
7151          }
7152          part { name: "clear_button.clipper";
7153             type: RECT;
7154             description { state: "default" 0.0;
7155                color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_DEFAULT_COLOR_INC;
7156             }
7157             description { state: "clicked" 0.0;
7158                color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_PRESSED_COLOR_INC;
7159             }
7160             description { state: "disabled" 0.0;
7161                color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_DISABLED_COLOR_INC;
7162             }
7163          }
7164          part { name: "over2";
7165             type: RECT;
7166             ignore_flags: ON_HOLD;
7167             description { state: "default" 0.0;
7168                color: 0 0 0 0;
7169             }
7170          }
7171          part { name: "over3";
7172             type: RECT;
7173             repeat_events: 1;
7174             description { state: "default" 0.0;
7175                color: 0 0 0 0;
7176             }
7177          }
7178          part { name: "disabler";
7179             type: RECT;
7180             description { state: "default" 0.0;
7181                color: 0 0 0 0;
7182                visible: 0;
7183             }
7184             description { state: "disabled" 0.0;
7185                inherit: "default" 0.0;
7186                visible: 1;
7187             }
7188          }
7189       }
7190       programs {
7191          program { name: "button_click";
7192             signal: "mouse,down,1";
7193             source: "over2";
7194             action: SIGNAL_EMIT "elm,action,press" "";
7195             after: "button_click_anim";
7196          }
7197          program { name: "button_click_anim";
7198             action: STATE_SET "clicked" 0.0;
7199             target: "button_image";
7200             target: "clear_button.clipper";
7201          }
7202          program { name: "button_double_click";
7203             signal: "mouse,down,1,double";
7204             source: "over1";
7205             after: "button_click_anim";
7206          }
7207          program { name: "button_unclick";
7208             signal: "mouse,up,1";
7209             source: "over3";
7210             action: SIGNAL_EMIT "elm,action,unpress" "";
7211             after: "button_unclick_anim";
7212          }
7213          program { name: "button_unclick_anim";
7214             action: STATE_SET "default" 0.0;
7215             target: "button_image";
7216             target: "clear_button.clipper";
7217          }
7218          program { name: "touch_snd";
7219             signal: "mouse,clicked,1";
7220             source: "over2";
7221             action: PLAY_SAMPLE "touch_sound" 1.0;
7222             after: button_unclick3;
7223          }
7224          program { name: "button_unclick3";
7225             action: SIGNAL_EMIT "elm,action,click" "";
7226          }
7227          program { name: "disable";
7228             signal: "elm,state,disabled";
7229             source: "elm";
7230             action: STATE_SET "disabled" 0.0;
7231             target: "button_image";
7232             target: "disabler";
7233             target: "clear_button.clipper";
7234          }
7235          program { name: "enable";
7236             signal: "elm,state,enabled";
7237             source: "elm";
7238             action: STATE_SET "default" 0.0;
7239             target: "button_image";
7240             target: "disabler";
7241             target: "clear_button.clipper";
7242          }
7243       }
7244    }
7245
7246    group { name: "elm/button/base/focus";
7247       parts {
7248          part { name: "elm.content.swallow";
7249             type: SWALLOW;
7250             scale: 1;
7251             description { state: "default" 0.0;
7252             }
7253          }
7254          part { name: "over2";
7255             type: RECT;
7256             ignore_flags: ON_HOLD;
7257             description { state: "default" 0.0;
7258                color: 0 0 0 0;
7259             }
7260          }
7261          part { name: "over3";
7262             type: RECT;
7263             repeat_events: 1;
7264             description { state: "default" 0.0;
7265                color: 0 0 0 0;
7266             }
7267          }
7268       }
7269       programs {
7270          program { name: "button_click";
7271             signal: "mouse,down,1";
7272             source: "over2";
7273             action: SIGNAL_EMIT "elm,action,press" "";
7274          }
7275          program { name: "button_unclick";
7276             signal: "mouse,up,1";
7277             source: "over3";
7278             action: SIGNAL_EMIT "elm,action,unpress" "";
7279          }
7280          program { name: "button_unclick3";
7281             action: SIGNAL_EMIT "elm,action,click" "";
7282          }
7283       }
7284    }
7285
7286    group { name: "elm/button/base/search_clear";
7287       inherit: "elm/button/base/editfield_clear";
7288       parts {
7289          part { name: "clear_button";
7290             scale: 1;
7291             mouse_events: 0;
7292             clip_to: "clear_button.clipper";
7293             description { state: "default" 0.0;
7294                min: BUTTON_SEARCH_CLEAR_BUTTON_MIN_MAX_INC;
7295                max: BUTTON_SEARCH_CLEAR_BUTTON_MIN_MAX_INC;
7296                fixed: 1 1;
7297                align: 0.0 0.5;
7298                image.normal: "00_EditField_clear.png";
7299             }
7300          }
7301       }
7302    }
7303
7304 #undef BUTTON_STATE_ENABLED
7305 #undef BUTTON_STATE_DISABLED