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