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