b4a5a1272f3f255ee4e57e01c77ffd84014f4d5d
[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_TOOLBAR_TEXT_FONT_SIZE_INC" align=center color="BUTTON_NAVIFRAME_TOOLBAR_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_TOOLBAR_TEXT_FONT_SIZE_INC" align=center color="BUTTON_NAVIFRAME_TOOLBAR_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_TOOLBAR_TEXT_FONT_SIZE_INC" align=center color="BUTTON_NAVIFRAME_TOOLBAR_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_TOOLBAR_TEXT_BG_NORMAL_MIN_INC;
4754                max: BUTTON_NAVIFRAME_TOOLBAR_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_TOOLBAR_TEXT_LANDSCAPE_BG_NORMAL_MIN_INC;
4762                max: BUTTON_NAVIFRAME_TOOLBAR_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_TOOLBAR_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_TOOLBAR_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_TOOLBAR_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_TOOLBAR_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_TOOLBAR_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_TOOLBAR_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_TOOLBAR_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_TOOLBAR_TEXT_BG_NORMAL_MIN_INC;
5234                max: BUTTON_NAVIFRAME_TOOLBAR_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_TOOLBAR_TEXT_LANDSCAPE_BG_NORMAL_MIN_INC;
5243                max: BUTTON_NAVIFRAME_TOOLBAR_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_TOOLBAR_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_TOOLBAR_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_TOOLBAR_TEXT_BG_NORMAL_MIN_INC;
5344                max: BUTTON_NAVIFRAME_TOOLBAR_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_TOOLBAR_TEXT_LANDSCAPE_BG_NORMAL_MIN_INC;
5353                max: BUTTON_NAVIFRAME_TOOLBAR_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_TOOLBAR_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_TOOLBAR_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_TOOLBAR_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_TOOLBAR_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_TOOLBAR_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_TOOLBAR_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/title_text";
6023       images {
6024          image: "00_title_press.png" COMP;
6025       }
6026       styles{
6027          style { name: "btn_naviframe_title_text";
6028             base: "font=Tizen:style=Bold font_size="BUTTON_NAVIFRAME_TITLE_TEXT_FONT_SIZE_INC" align=center color="BUTTON_NAVIFRAME_TITLE_TEXT_NORMAL_COLOR_INC" style=shadow,bottom shadow_color="BUTTON_NAVIFRAME_TITLE_TEXT_SHADOW_NORMAL_COLOR_INC" ellipsis=1.0 wrap=none text_class=tizen";
6029             tag: "br" "\n";
6030             tag: "ps" "ps";
6031             tag: "tab" "\t";
6032          }
6033       }
6034       parts {
6035          part { name: "button_bg";
6036             type: RECT;
6037             scale: 1;
6038             description { state: "default" 0.0;
6039                min: BUTTON_NAVIFRAME_TITLE_TEXT_BG_MIN_MAX_INC;
6040                max: BUTTON_NAVIFRAME_TITLE_TEXT_BG_MIN_MAX_INC;
6041             }
6042             description { state: "landscape" 0.0;
6043                min: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_TEXT_BG_MIN_MAX_INC;
6044                max: BUTTON_NAVIFRAME_LANDSCAPE_TITLE_TEXT_BG_MIN_MAX_INC;
6045             }
6046          }
6047          part { name: "button_image";
6048             type: IMAGE;
6049             scale: 1;
6050             description { state: "default" 0.0;
6051                visible: 0;
6052                rel1 { to: "button_bg"; }
6053                rel2 { to: "button_bg"; }
6054             }
6055             description { state: "clicked" 0.0;
6056                inherit: "default" 0.0;
6057                visible: 1;
6058                image {
6059                   normal: "00_title_press.png";
6060                   border: BUTTON_NAVIFRAME_TITLE_TEXT_BG_PRESSED_BORDER_INC;
6061                   border_scale: 1;
6062                }
6063             }
6064          }
6065          part { name: "elm.text";
6066             type: TEXTBLOCK;
6067             mouse_events: 0;
6068             scale: 1;
6069             clip_to: "button_bg";
6070             description { state: "default" 0.0;
6071                rel1.to: "button_bg";
6072                rel2.to: "button_bg";
6073                text {
6074                   style: "btn_naviframe_title_text";
6075                   min: 0 1;
6076                }
6077             }
6078          }
6079          part { name: "over2";
6080             type: RECT;
6081             ignore_flags: ON_HOLD;
6082             description { state: "default" 0.0;
6083                color: 0 0 0 0;
6084             }
6085          }
6086          part { name: "over3";
6087             type: RECT;
6088             repeat_events: 1;
6089             description { state: "default" 0.0;
6090                color: 0 0 0 0;
6091             }
6092          }
6093          part { name: "disabler";
6094             type: RECT;
6095             description { state: "default" 0.0;
6096                color: 0 0 0 0;
6097                visible: 0;
6098             }
6099             description { state: "disabled" 0.0;
6100                inherit: "default" 0.0;
6101                visible: 1;
6102             }
6103          }
6104       }
6105       programs {
6106          program { name: "button_click";
6107             signal: "mouse,down,1";
6108             source: "over2";
6109             action: SIGNAL_EMIT "elm,action,press" "";
6110             after: "button_click_anim";
6111          }
6112          program { name: "button_click_anim";
6113             script {
6114                set_state(PART:"button_image", "clicked", 0.0);
6115             }
6116          }
6117          program { name: "button_double_click";
6118             signal: "mouse,down,1,double";
6119             source: "over2";
6120             after: "button_click_anim";
6121          }
6122          program { name: "button_unclick";
6123             signal: "mouse,up,1";
6124             source: "over3";
6125             action: SIGNAL_EMIT "elm,action,unpress" "";
6126             after: "button_unclick_anim";
6127          }
6128          program { name: "button_unclick_anim";
6129             script {
6130                set_state(PART:"button_image", "default", 0.0);
6131             }
6132          }
6133          program { name: "touch_snd";
6134             signal: "mouse,clicked,1";
6135             source: "over2";
6136             action: PLAY_SAMPLE "touch_sound" 1.0;
6137             after: "button_unclick3";
6138          }
6139          program { name: "button_unclick3";
6140             action: SIGNAL_EMIT "elm,action,click" "";
6141          }
6142          program { name: "change_to_landscape";
6143             signal: "elm,state,landscape";
6144             source: "elm";
6145             action: STATE_SET "landscape" 0.0;
6146             target: "button_bg";
6147          }
6148          program { name: "change_to_portrait";
6149             signal: "elm,state,portrait";
6150             source: "elm";
6151             action: STATE_SET "default" 0.0;
6152             target: "button_bg";
6153          }
6154          program { name: "landscape_mode";
6155             source: "elm";
6156             signal: "elm,state,orient,90";
6157             action: SIGNAL_EMIT "elm,state,landscape" "elm";
6158          }
6159          program { name: "landscape_mode2";
6160             source: "elm";
6161             signal: "elm,state,orient,270";
6162             action: SIGNAL_EMIT "elm,state,landscape" "elm";
6163          }
6164          program { name: "portrait_mode";
6165             source: "elm";
6166             signal: "elm,state,orient,0";
6167             action: SIGNAL_EMIT "elm,state,portrait" "elm";
6168          }
6169          program { name: "portrait_mode2";
6170             source: "elm";
6171             signal: "elm,state,orient,180";
6172             action: SIGNAL_EMIT "elm,state,portrait" "elm";
6173          }
6174       }
6175    }
6176
6177 /////////////////////////////////////////////////////////////////////////////////////////
6178    group { name: "elm/button/base/naviframe/more/default";
6179       data {
6180          item: "focus_highlight" "on";
6181       }
6182       images {
6183          image: "00_icon_more.png" COMP;
6184          image: "00_icon_focus.png" COMP;
6185       }
6186       parts {
6187          part { name: "button_image";
6188             type: RECT;
6189             scale: 1;
6190             description { state: "default" 0.0;
6191                min: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
6192                max: BUTTON_NAVIFRAME_MORE_BG_MIN_MAX_INC;
6193                visible: 0;
6194             }
6195             description { state: "landscape" 0.0;
6196                min: BUTTON_NAVIFRAME_LANDSCAPE_MORE_BG_MIN_MAX_INC;
6197                max: BUTTON_NAVIFRAME_LANDSCAPE_MORE_BG_MIN_MAX_INC;
6198                visible: 0;
6199             }
6200          }
6201          part { name: "focus_image";
6202             scale: 1;
6203             mouse_events: 0;
6204             repeat_events: 1;
6205             description { state: "default" 0.0;
6206                visible: 0;
6207                rel1.to : "button_image";
6208                rel2.to : "button_image";
6209                image {
6210                   normal: "00_icon_focus.png";
6211                   border_scale: 1;
6212                }
6213             }
6214             description { state: "focused" 0.0;
6215                inherit: "default" 0.0;
6216                visible: 1;
6217             }
6218          }
6219          part { name: "more_image";
6220             scale: 1;
6221             mouse_events: 0;
6222             clip_to: "more_image.clipper";
6223             description { state: "default" 0.0;
6224                min: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
6225                max: BUTTON_NAVIFRAME_MORE_DEFAULT_IMAGE_MIN_MAX_INC;
6226                fixed: 1 1;
6227                rel1.to: "button_image";
6228                rel2.to: "button_image";
6229                image.normal: "00_icon_more.png";
6230             }
6231          }
6232          part { name: "more_image.clipper";
6233             type: RECT;
6234             description { state: "default" 0.0;
6235                color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DEFAULT_COLOR_INC;
6236             }
6237             description { state: "clicked" 0.0;
6238                color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_PRESSED_COLOR_INC;
6239             }
6240             description { state: "disabled" 0.0;
6241                color: BUTTON_NAVIFRAME_TITLE_ICON_CLIPPER_DISABLED_COLOR_INC;
6242             }
6243          }
6244          part { name: "over2";
6245             type: RECT;
6246             ignore_flags: ON_HOLD;
6247             description { state: "default" 0.0;
6248                color: 0 0 0 0;
6249             }
6250          }
6251          part { name: "over3";
6252             type: RECT;
6253             repeat_events: 1;
6254             description { state: "default" 0.0;
6255                color: 0 0 0 0;
6256             }
6257          }
6258          part { name: "disabler";
6259             type: RECT;
6260             description { state: "default" 0.0;
6261                color: 0 0 0 0;
6262                visible: 0;
6263             }
6264             description { state: "disabled" 0.0;
6265                inherit: "default" 0.0;
6266                visible: 1;
6267             }
6268          }
6269       }
6270       programs {
6271          program { name: "button_click";
6272             signal: "mouse,down,1";
6273             source: "over2";
6274             action: SIGNAL_EMIT "elm,action,press" "";
6275             after: "button_click_anim";
6276          }
6277          program { name: "button_click_anim";
6278             script {
6279                set_state(PART:"more_image.clipper", "clicked", 0.0);
6280             }
6281          }
6282          program { name: "button_double_click";
6283             signal: "mouse,down,1,double";
6284             source: "over2";
6285             after: "button_click_anim";
6286          }
6287          program { name: "button_unclick";
6288             signal: "mouse,up,1";
6289             source: "over3";
6290             action: SIGNAL_EMIT "elm,action,unpress" "";
6291             after: "button_unclick_anim";
6292          }
6293          program { name: "button_unclick_anim";
6294             script {
6295                set_state(PART:"more_image.clipper", "default", 0.0);
6296             }
6297          }
6298          program { name: "touch_snd";
6299             signal: "mouse,clicked,1";
6300             source: "over2";
6301             action: PLAY_SAMPLE "touch_sound" 1.0;
6302             after: button_unclick3;
6303          }
6304          program { name: "button_unclick3";
6305             action: SIGNAL_EMIT "elm,action,click" "";
6306          }
6307          program { name: "disable";
6308             signal: "elm,state,disabled";
6309             source: "elm";
6310             script {
6311                set_state(PART:"disabler", "disabled", 0.0);
6312                set_state(PART:"more_image.clipper", "disabled", 0.0);
6313             }
6314          }
6315          program { name: "enable";
6316             signal: "elm,state,enabled";
6317             source: "elm";
6318             script {
6319                set_state(PART:"disabler", "default", 0.0);
6320                set_state(PART:"more_image.clipper", "default", 0.0);
6321             }
6322          }
6323          program { name: "change_to_landscape";
6324             signal: "elm,state,landscape";
6325             source: "elm";
6326             action: STATE_SET "landscape" 0.0;
6327             target: "button_image";
6328          }
6329          program { name: "change_to_portrait";
6330             signal: "elm,state,portrait";
6331             source: "elm";
6332             action: STATE_SET "default" 0.0;
6333             target: "button_image";
6334          }
6335          program { name: "landscape_mode";
6336             source: "elm";
6337             signal: "elm,state,orient,90";
6338             action: SIGNAL_EMIT "elm,state,landscape" "elm";
6339          }
6340          program { name: "landscape_mode2";
6341             source: "elm";
6342             signal: "elm,state,orient,270";
6343             action: SIGNAL_EMIT "elm,state,landscape" "elm";
6344          }
6345          program { name: "portrait_mode";
6346             source: "elm";
6347             signal: "elm,state,orient,0";
6348             action: SIGNAL_EMIT "elm,state,portrait" "elm";
6349          }
6350          program { name: "portrait_mode2";
6351             source: "elm";
6352             signal: "elm,state,orient,180";
6353             action: SIGNAL_EMIT "elm,state,portrait" "elm";
6354          }
6355          program { name: "action_focus";
6356             signal: "elm,action,focus_highlight,show";
6357             source: "elm";
6358             action: STATE_SET "focused" 0.0;
6359             target: "focus_image";
6360          }
6361          program { name: "action_unfocus";
6362             signal: "elm,action,focus_highlight,hide";
6363             source: "elm";
6364             action: STATE_SET "default" 0.0;
6365             target: "focus_image";
6366          }
6367       }
6368    }
6369
6370 ///////////////////////////////////////////////////////////////////////////////////////
6371    group { name: "elm/button/base/tickernoti";
6372       images {
6373          image: "00_notification_button.png" COMP;
6374          image: "00_notification_button_press.png" COMP;
6375          image: "00_notification_button_dim.png" COMP;
6376       }
6377       script {
6378          public button_state = BUTTON_STATE_ENABLED;
6379       }
6380       parts {
6381          part { name: "button_image";
6382             scale: 1;
6383             description { state: "default" 0.0;
6384                min: BUTTON_TICKERNOTI_BG_MIN_MAX_INC;
6385                max: BUTTON_TICKERNOTI_BG_MIN_MAX_INC;
6386                image {
6387                   normal: "00_notification_button.png";
6388                   border: BUTTON_TICKERNOTI_BG_BORDER_INC;
6389                   border_scale: 1;
6390                }
6391             }
6392             description { state: "clicked" 0.0;
6393                inherit: "default" 0.0;
6394                image.normal: "00_notification_button_press.png";
6395             }
6396             description { state: "disabled" 0.0;
6397                inherit: "default" 0.0;
6398                image.normal: "00_notification_button_dim.png";
6399             }
6400             description { state: "focused" 0.0;
6401                inherit: "default" 0.0;
6402                image.normal: "00_notification_button_press.png";
6403             }
6404          }
6405          part { name: "padding_left_top";
6406             type: RECT;
6407             scale: 1;
6408             mouse_events: 0;
6409             description { state: "default" 0.0;
6410                visible: 0;
6411                align: 0.0 0.0;
6412                rel2.relative: 0.0 0.0;
6413                min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
6414                fixed: 1 1;
6415             }
6416          }
6417          part { name: "bg";
6418             type: RECT;
6419             scale: 1;
6420             mouse_events: 0;
6421             description { state: "default" 0.0;
6422                min: BUTTON_TICKERNOTI_BG_MIN_MAX_INC;
6423                visible: 0;
6424             }
6425             description { state: "visible" 0.0;
6426                inherit: "default" 0.0;
6427             }
6428             description { state: "icononly" 0.0;
6429                inherit: "default" 0.0;
6430             }
6431          }
6432          part { name: "padding_right_bottom";
6433             type: RECT;
6434             scale: 1;
6435             mouse_events: 0;
6436             description { state: "default" 0.0;
6437                align: 1.0 1.0;
6438                rel1.relative: 1.0 1.0;
6439                min: BUTTON_TICKERNOTI_PADDING_MIN_INC;
6440                fixed: 1 1;
6441                visible: 0;
6442             }
6443          }
6444          part { name: "icon_rect";
6445             type: RECT;
6446             scale: 1;
6447             mouse_events: 0;
6448             description { state: "default" 0.0;
6449                visible: 0;
6450                min: 0 0;
6451                fixed: 1 0;
6452                rel1 {
6453                   relative: 1.0 1.0;
6454                   to: "padding_left_top";
6455                }
6456                rel2 {
6457                   relative: 1.0 0.0;
6458                   to_x: "padding_left_top";
6459                   to_y: "padding_right_bottom";
6460                }
6461                align: 0.0 0.5;
6462             }
6463             description { state: "visible" 0.0;
6464                inherit: "default" 0.0;
6465                min: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
6466                max: BUTTON_TICKERNOTI_VISIBLE_ICON_RECT_MIN_MAX_INC;
6467             }
6468             description { state: "icononly" 0.0;
6469                inherit: "default" 0.0;
6470             }
6471          }
6472          part { name: "padding_after_icon";
6473             type: RECT;
6474             scale: 1;
6475             mouse_events: 0;
6476             description { state: "default" 0.0; //when only icon or no icon is there
6477                visible: 0;
6478                fixed: 1 0;
6479                min: 0 0;
6480                align: 0.0 0.0;
6481                rel1 {
6482                   relative: 1.0 0.0;
6483                   to: "icon_rect";
6484                }
6485                rel2.to: "icon_rect";
6486             }
6487             description { state: "visible" 0.0;
6488                inherit: "default" 0.0;
6489                min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
6490             }
6491             description { state: "icononly" 0.0;
6492                inherit: "default" 0.0;
6493             }
6494          }
6495          part { name: "padding_before_text";
6496             type: RECT;
6497             scale: 1;
6498             mouse_events: 0;
6499             description { state: "default" 0.0; //when only icon or no icon is there
6500                visible: 0;
6501                align: 1.0 0.5;
6502                fixed: 1 0;
6503                min: BUTTON_TICKERNOTI_VISIBLE_PADDING_ICON_TEXT_MIN_INC;
6504                rel1 {
6505                   relative: 0.0 1.0;
6506                   to_x: "elm.text";
6507                   to_y: "padding_left_top";
6508                }
6509                rel2 {
6510                   relative: 0.0 0.0;
6511                   to_x: "elm.text";
6512                   to_y: "padding_right_bottom";
6513                }
6514             }
6515          }
6516          part { name: "elm.swallow.content";
6517             type: SWALLOW;
6518             scale: 1;
6519             clip_to: "clipper";
6520             description { state: "default" 0.0;
6521                visible: 0;
6522                fixed: 1 0;
6523                align: 0.0 0.5;
6524                rel1 {
6525                   relative: 1.0 1.0;
6526                   to: "padding_left_top";
6527                }
6528                rel2 {
6529                   relative: 1.0 0.0;
6530                   to_x: "padding_left_top";
6531                   to_y: "padding_right_bottom";
6532                }
6533             }
6534             description { state: "visible" 0.0;
6535                fixed: 1 0;
6536                min: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
6537                max: BUTTON_TICKERNOTI_VISIBLE_ICON_MIN_MAX_INC;
6538                align: 1.0 0.5;
6539                rel1 {
6540                   relative: 0.0 1.0;
6541                   to_x: "padding_before_text";
6542                   to_y: "padding_left_top";
6543                }
6544                rel2 {
6545                   relative: 0.0 0.0;
6546                   to_x: "padding_before_text";
6547                   to_y: "padding_right_bottom";
6548                }
6549             }
6550             description { state: "icononly" 0.0;
6551                min: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
6552                max: BUTTON_TICKERNOTI_ICONONLY_ICON_MIN_MAX_INC;
6553             }
6554          }
6555          part { name: "elm.text";
6556             type: TEXT;
6557             mouse_events: 0;
6558             effect: FAR_SHADOW BOTTOM;
6559             scale: 1;
6560             clip_to: "clipper";
6561             description { state: "default" 0.0;
6562                visible: 0;
6563                rel1 {
6564                   relative: 1.0 1.0;
6565                   to_x: "padding_after_icon";
6566                   to_y: "padding_left_top";
6567                }
6568                rel2 {
6569                   relative: 0.0 0.0;
6570                   to: "padding_right_bottom";
6571                }
6572                color: BUTTON_TICKERNOTI_NORMAL_COLOR_INC;
6573                color2: BUTTON_TICKER_TEXT_SHADOW_NORMAL_COLOR_INC;
6574                text {
6575                   font: "Tizen:style=Regular";
6576                   size: BUTTON_TICKERNOTI_FONT_SIZE_INC;
6577                   text_class: "tizen";
6578                }
6579             }
6580             description { state: "visible" 0.0;
6581                inherit: "default" 0.0;
6582                visible: 1;
6583             }
6584             description { state: "clicked" 0.0;
6585                inherit: "default" 0.0;
6586                visible: 1;
6587                color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
6588             }
6589             description { state: "disabled" 0.0;
6590                inherit: "default" 0.0;
6591             }
6592             description { state: "disabled_visible" 0.0;
6593                inherit: "default" 0.0;
6594                color: BUTTON_TICKERNOTI_DISABLED_COLOR_INC;
6595                color2: BUTTON_TICKER_TEXT_SHADOW_NORMAL_COLOR_INC;
6596                visible: 1;
6597             }
6598             description { state: "focused" 0.0;
6599                inherit: "default" 0.0;
6600                visible: 1;
6601                color: BUTTON_TICKERNOTI_PRESSED_COLOR_INC;
6602             }
6603          }
6604          part { name: "over2";
6605             type: RECT;
6606             repeat_events: 1;
6607             ignore_flags: ON_HOLD;
6608             description { state: "default" 0.0;
6609                color: 0 0 0 0;
6610             }
6611          }
6612          part { name: "over3";
6613             type: RECT;
6614             repeat_events: 1;
6615             description { state: "default" 0.0;
6616                color: 0 0 0 0;
6617             }
6618          }
6619          part { name: "clipper";
6620             type: RECT;
6621             description { state: "default" 0.0;
6622                color: BUTTON_DISCLIP_NORMAL_COLOR_INC;
6623             }
6624             description { state: "disabled" 0.0;
6625                inherit: "default" 0.0;
6626                color: BUTTON_DISCLIP_DISABLED_COLOR_INC;
6627             }
6628          }
6629          part { name: "disabler";
6630             type: RECT;
6631             description { state: "default" 0.0;
6632                color: 0 0 0 0;
6633                visible: 0;
6634             }
6635             description { state: "disabled" 0.0;
6636                inherit: "default" 0.0;
6637                visible: 1;
6638             }
6639          }
6640       }
6641       programs {
6642          program { name: "button_click";
6643             signal: "mouse,down,1";
6644             source: "over2";
6645             action: SIGNAL_EMIT "elm,action,press" "";
6646             after: "button_click_anim";
6647          }
6648          program { name: "button_click_anim";
6649             action: STATE_SET "clicked" 0.0;
6650             target: "button_image";
6651             after: "text_clicked";
6652          }
6653          program { name: "text_clicked";
6654             script {
6655                new st[31];
6656                new Float:vl;
6657                get_state(PART:"elm.text", st, 30, vl);
6658                if (!strcmp(st, "visible"))
6659                  set_state(PART:"elm.text", "clicked", 0.0);
6660             }
6661          }
6662          program { name: "button_double_click";
6663             signal: "mouse,down,1,double";
6664             source: "over2";
6665             after: "button_click_anim";
6666          }
6667          program { name: "button_unpress";
6668             action: SIGNAL_EMIT "elm,action,unpress" "";
6669          }
6670          program { name: "button_mouseout_clicked";
6671             signal: "mouse,up,1";
6672             source: "over3";
6673             script {
6674                new st[31];
6675                new Float:vl;
6676                get_state(PART:"elm.swallow.content", st, 30, vl);
6677                if (strcmp(st, "icononly"))
6678                  {
6679                     emit("elm,action,default,text,set", "");
6680                     set_state(PART:"elm.text", "visible", 0.0);
6681                  }
6682                if (get_int(button_state) != BUTTON_STATE_DISABLED)
6683                  set_state(PART:"button_image", "default", 0.0);
6684             }
6685             after: button_unpress;
6686          }
6687          program { name: "touch_snd";
6688             signal: "mouse,clicked,1";
6689             source: "over2";
6690             action: PLAY_SAMPLE "touch_sound" 1.0;
6691             after: button_unclick3;
6692          }
6693          program { name: "button_unclick3";
6694             action: SIGNAL_EMIT "elm,action,click" "";
6695          }
6696          program { name: "text_show";
6697             signal: "elm,state,text,visible";
6698             source: "elm";
6699             script {
6700                new st[31];
6701                new Float:vl;
6702                get_state(PART:"elm.swallow.content", st, 30, vl);
6703                if (!strcmp(st, "icononly"))
6704                  {
6705                     set_state(PART:"elm.swallow.content", "visible", 0.0);
6706                     set_state(PART:"icon_rect", "visible", 0.0);
6707                     set_state(PART:"padding_after_icon", "visible", 0.0);
6708                     set_state(PART:"bg", "visible", 0.0);
6709                  }
6710                if (get_int(button_state) != BUTTON_STATE_DISABLED)
6711                  set_state(PART:"elm.text", "visible", 0.0);
6712                else
6713                  set_state(PART:"elm.text", "disabled_visible", 0.0);
6714             }
6715          }
6716          program { name: "text_hide";
6717             signal: "elm,state,text,hidden";
6718             source: "elm";
6719             script {
6720                new st[31];
6721                new Float:vl;
6722                get_state(PART:"elm.swallow.content", st, 30, vl);
6723                if (!strcmp(st, "visible"))
6724                  {
6725                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
6726                     set_state(PART:"icon_rect", "icononly", 0.0);
6727                     set_state(PART:"padding_after_icon", "icononly", 0.0);
6728                     set_state(PART:"bg", "icononly", 0.0);
6729                  }
6730                set_state(PART:"elm.text", "default", 0.0);
6731             }
6732          }
6733          program { name: "icon_show";
6734             signal: "elm,state,icon,visible";
6735             source: "elm";
6736             script {
6737                new st[31];
6738                new Float:vl;
6739                get_state(PART:"elm.text", st, 30, vl);
6740                if (!strcmp(st, "visible"))
6741                  {
6742                     set_state(PART:"elm.swallow.content", "visible", 0.0);
6743                     set_state(PART:"icon_rect", "visible", 0.0);
6744                     set_state(PART:"padding_after_icon", "visible", 0.0);
6745                     set_state(PART:"bg", "visible", 0.0);
6746                  }
6747                else
6748                  {
6749                     set_state(PART:"elm.swallow.content", "icononly", 0.0);
6750                     set_state(PART:"icon_rect", "icononly", 0.0);
6751                     set_state(PART:"padding_after_icon", "icononly", 0.0);
6752                     set_state(PART:"bg", "icononly", 0.0);
6753                  }
6754             }
6755          }
6756          program { name: "icon_hide";
6757             signal: "elm,state,icon,hidden";
6758             source: "elm";
6759             action: STATE_SET "default" 0.0;
6760             target: "elm.swallow.content";
6761             target: "padding_after_icon";
6762             target: "icon_rect";
6763             target: "bg";
6764          }
6765          program { name: "disable";
6766             signal: "elm,state,disabled";
6767             source: "elm";
6768             action: STATE_SET "disabled" 0.0;
6769             target: "button_image";
6770             target: "disabler";
6771             target: "clipper";
6772             after: "disable_text";
6773          }
6774          program { name: "disable_text";
6775             script {
6776                new st[31];
6777                new Float:vl;
6778                get_state(PART:"elm.text", st, 30, vl);
6779                if (!strcmp(st, "visible"))
6780                  set_state(PART:"elm.text", "disabled_visible", 0.0);
6781                else
6782                  set_state(PART:"elm.text", "disabled", 0.0);
6783                set_int(button_state, BUTTON_STATE_DISABLED);
6784             }
6785          }
6786          program { name: "enable";
6787             signal: "elm,state,enabled";
6788             source: "elm";
6789             action: STATE_SET "default" 0.0;
6790             target: "button_image";
6791             target: "disabler";
6792             target: "clipper";
6793             after: "enable_text";
6794          }
6795          program { name: "enable_text";
6796             script {
6797                new st[31];
6798                new Float:vl;
6799                get_state(PART:"elm.text", st, 30, vl);
6800                if (!strcmp(st, "disabled_visible"))
6801                  set_state(PART:"elm.text", "visible", 0.0);
6802                else
6803                  set_state(PART:"elm.text", "default", 0.0);
6804                set_int(button_state, BUTTON_STATE_ENABLED);
6805             }
6806          }
6807          program { name: "focused";
6808             //signal: "elm,action,focus";
6809             //source: "elm";
6810             action: STATE_SET "focused" 0.0;
6811             target: "button_image";
6812             target: "elm.text";
6813          }
6814          program { name: "unfocused";
6815             //signal: "elm,action,unfocus";
6816             //source: "elm";
6817             action: STATE_SET "default" 0.0;
6818             target: "button_image";
6819             after: "unfocus_text";
6820          }
6821          program { name: "unfocus_text";
6822             action: STATE_SET "visible" 0.0;
6823             target: "elm.text";
6824          }
6825       }
6826    }
6827
6828 ///////////////////////////////////////////////////////////////////////////////////////
6829    group { name: "elm/button/base/expandable_number";
6830       alias: "elm/button/base/text_only/expandable_number";
6831       data {
6832          item: "focus_highlight" "on";
6833       }
6834       images {
6835          image: "00_button_01.png" COMP;
6836          image: "00_button_01_press.png" COMP;
6837          image: "00_button_01_dim.png" COMP;
6838          image: "00_arrow_expand.png" COMP;
6839          image: "00_button_01_focus.png" COMP;
6840       }
6841       script {
6842          public button_state = BUTTON_STATE_ENABLED;
6843       }
6844       parts {
6845          part { name: "button_image";
6846             scale: 1;
6847             description { state: "default" 0.0;
6848                min: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
6849                max: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
6850                image {
6851                   normal: "00_button_01.png";
6852                   border: BUTTON_EXPANDABLE_NUMBER_BG_BORDER_INC;
6853                   border_scale: 1;
6854                }
6855             }
6856             description { state: "clicked" 0.0;
6857                inherit: "default" 0.0;
6858                image.normal: "00_button_01_press.png";
6859             }
6860             description { state: "disabled" 0.0;
6861                inherit: "default" 0.0;
6862                image.normal: "00_button_01_dim.png";
6863             }
6864             description { state: "focused" 0.0;
6865                inherit: "default" 0.0;
6866                image.normal: "00_button_01_press.png";
6867             }
6868          }
6869          part { name: "focus_image";
6870             scale: 1;
6871             mouse_events: 0;
6872             repeat_events: 1;
6873             description { state: "default" 0.0;
6874                min: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
6875                max: BUTTON_EXPANDABLE_NUMBER_BG_NORMAL_MIN_MAX_INC;
6876                visible: 0;
6877                rel1.to : "button_image";
6878                rel2.to : "button_image";
6879                image {
6880                   normal: "00_button_01_focus.png";
6881                   border: BUTTON_EXPANDABLE_NUMBER_BG_BORDER_INC;
6882                   border_scale: 1;
6883                }
6884             }
6885             description { state: "focused" 0.0;
6886                inherit: "default" 0.0;
6887                visible: 1;
6888             }
6889          }
6890          part { name: "padding_left_top";
6891             type: RECT;
6892             scale: 1;
6893             mouse_events: 0;
6894             description { state: "default" 0.0;
6895                visible: 0;
6896                align: 0.0 0.0;
6897                rel2.relative: 0.0 0.0;
6898                min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
6899                fixed: 1 1;
6900             }
6901          }
6902          part { name: "padding_right_bottom";
6903             type: RECT;
6904             scale: 1;
6905             mouse_events: 0;
6906             description { state: "default" 0.0;
6907                visible: 0;
6908                align: 1.0 1.0;
6909                rel1.relative: 1.0 1.0;
6910                min: BUTTON_EXPANDABLE_NUMBER_PADDING_MIN_INC;
6911                fixed: 1 1;
6912             }
6913          }
6914          part { name: "icon_rect";
6915             type: RECT;
6916             scale: 1;
6917             mouse_events: 0;
6918             description { state: "default" 0.0;
6919                visible: 0;
6920                min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6921                max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6922                fixed: 1 0;
6923                rel1 {
6924                   relative: 0.0 1.0;
6925                   to_x: "padding_right_bottom";
6926                   to_y: "padding_left_top";
6927                }
6928                rel2 {
6929                   relative: 0.0 0.0;
6930                   to: "padding_right_bottom";
6931                }
6932                align: 1.0 0.5;
6933             }
6934          }
6935          part { name: "arrow_expand";
6936             scale: 1;
6937             clip_to: "icon_clipper";
6938             mouse_events: 0;
6939             description { state: "default" 0.0;
6940                align: 0.0 0.5;
6941                min: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6942                max: BUTTON_EXPANDABLE_NUMBER_ICON_RECT_EXPAND_MIN_MAX_INC;
6943                fixed: 0 0;
6944                rel1.to: "icon_rect";
6945                rel2.to: "icon_rect";
6946                image.normal:"00_arrow_expand.png";
6947             }
6948          }
6949          part { name: "elm.text";
6950             type: TEXT;
6951             mouse_events: 0;
6952             effect: SHADOW BOTTOM;
6953             scale: 1;
6954             description { state: "default" 0.0;
6955                min: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
6956                max: BUTTON_EXPANDABLE_NUMBER_TEXT_MIN_MAX_INC;
6957                fixed:1 0;
6958                rel1 {
6959                   relative: 1.0 1.0;
6960                   to: "padding_left_top";
6961                }
6962                rel2 {
6963                   relative: 1.0 1.0;
6964                   to_x:"padding_left_top";
6965                   to_y:"padding_right_bottom";
6966                }
6967                align: 0.0 0.5;
6968                color: BUTTON_NUMBER_TEXT_NORMAL_COLOR_INC;
6969                color2: BUTTON_TEXT_SHADOW_NORMAL_COLOR_INC;
6970                text {
6971                   font: "Tizen:style=Regular";
6972                   size: BUTTON_EXPANDABLE_NUMBER_FONT_SIZE_INC;
6973                   min: 0 0;
6974                   fit: 1 1;
6975                   size_range: 28 32;
6976                   text_class: "tizen";
6977                }
6978             }
6979             description { state: "visible" 0.0;
6980                inherit: "default" 0.0;
6981             }
6982             description { state: "clicked" 0.0;
6983                inherit: "default" 0.0;
6984                color: BUTTON_NUMBER_TEXT_PRESSED_COLOR_INC;
6985             }
6986             description { state: "disabled" 0.0;
6987                inherit: "default" 0.0;
6988             }
6989             description { state: "disabled_visible" 0.0;
6990                inherit: "default" 0.0;
6991                color: BUTTON_NUMBER_TEXT_DISABLE_VISIBLE_COLOR_INC;
6992                color2: BUTTON_TEXT_SHADOW_DIM_COLOR_INC;
6993             }
6994             description { state: "focused" 0.0;
6995                inherit: "default" 0.0;
6996                color: BUTTON_NUMBER_TEXT_FOCUSED_COLOR_INC;
6997             }
6998          }
6999          part { name: "icon_clipper";
7000             scale: 1;
7001             type: RECT;
7002             description { state: "default" 0.0;
7003                color: BUTTON_NUMBER_ICON_NORMAL_COLOR_INC;
7004             }
7005             description { state: "clicked" 0.0;
7006                color: BUTTON_NUMBER_ICON_PRESSED_COLOR_INC;
7007             }
7008             description { state: "disabled" 0.0;
7009                color: BUTTON_NUMBER_ICON_DISABLED_COLOR_INC;
7010             }
7011          }
7012          part { name: "over2";
7013             type: RECT;
7014             repeat_events: 1;
7015             ignore_flags: ON_HOLD;
7016             description { state: "default" 0.0;
7017                color: 0 0 0 0;
7018             }
7019          }
7020          part { name: "over3";
7021             type: RECT;
7022             repeat_events: 1;
7023             description { state: "default" 0.0;
7024                color: 0 0 0 0;
7025             }
7026          }
7027          part { name: "disabler";
7028             type: RECT;
7029             description { state: "default" 0.0;
7030                color: 0 0 0 0;
7031                visible: 0;
7032             }
7033             description { state: "disabled" 0.0;
7034                inherit: "default" 0.0;
7035                visible: 1;
7036             }
7037          }
7038       }
7039       programs {
7040          program { name: "button_click";
7041             signal: "mouse,down,1";
7042             source: "over2";
7043             action: SIGNAL_EMIT "elm,action,press" "";
7044             after: "button_click_anim";
7045          }
7046          program { name: "button_click_anim";
7047             action: STATE_SET "clicked" 0.0;
7048             target: "button_image";
7049             target: "icon_clipper";
7050             after: "text_clicked";
7051          }
7052          program { name: "text_clicked";
7053             script {
7054                new st[31];
7055                new Float:vl;
7056                get_state(PART:"elm.text", st, 30, vl);
7057                if (!strcmp(st, "visible"))
7058                  set_state(PART:"elm.text", "clicked", 0.0);
7059             }
7060          }
7061          program { name: "button_double_click";
7062             signal: "mouse,down,1,double";
7063             source: "over2";
7064             after: "button_click_anim";
7065          }
7066          program { name: "button_unpress";
7067             action: SIGNAL_EMIT "elm,action,unpress" "";
7068          }
7069          program { name: "button_mouseout_clicked";
7070             signal: "mouse,up,1";
7071             source: "over3";
7072             script {
7073                if (get_int(button_state) != BUTTON_STATE_DISABLED)
7074                  {
7075                     set_state(PART:"button_image", "default", 0.0);
7076                     set_state(PART:"elm.text", "visible", 0.0);
7077                     set_state(PART:"icon_clipper", "default", 0.0);
7078                  }
7079             }
7080             after: button_unpress;
7081          }
7082          program { name: "touch_snd";
7083             signal: "mouse,clicked,1";
7084             source: "over2";
7085             action: PLAY_SAMPLE "touch_sound" 1.0;
7086             after: button_unclick3;
7087          }
7088          program { name: "button_unclick3";
7089             action: SIGNAL_EMIT "elm,action,click" "";
7090          }
7091          program { name: "text_show";
7092             signal: "elm,state,text,visible";
7093             source: "elm";
7094             script {
7095                if (get_int(button_state) != BUTTON_STATE_DISABLED)
7096                  set_state(PART:"elm.text", "visible", 0.0);
7097                else
7098                  set_state(PART:"elm.text", "disabled_visible", 0.0);
7099             }
7100          }
7101          program { name: "text_hide";
7102             signal: "elm,state,text,hidden";
7103             source: "elm";
7104             script {
7105                set_state(PART:"elm.text", "default", 0.0);
7106             }
7107          }
7108          program { name: "disable";
7109             signal: "elm,state,disabled";
7110             source: "elm";
7111             action: STATE_SET "disabled" 0.0;
7112             target: "button_image";
7113             target: "disabler";
7114             target: "icon_clipper";
7115             after: "disable_text";
7116          }
7117          program { name: "disable_text";
7118             script {
7119                new st[31];
7120                new Float:vl;
7121                get_state(PART:"elm.text", st, 30, vl);
7122                if (!strcmp(st, "visible"))
7123                  set_state(PART:"elm.text", "disabled_visible", 0.0);
7124                else
7125                  set_state(PART:"elm.text", "disabled", 0.0);
7126                set_int(button_state, BUTTON_STATE_DISABLED);
7127             }
7128          }
7129          program { name: "enable";
7130             signal: "elm,state,enabled";
7131             source: "elm";
7132             action: STATE_SET "default" 0.0;
7133             target: "button_image";
7134             target: "disabler";
7135             target: "icon_clipper";
7136             after: "enable_text";
7137          }
7138          program { name: "enable_text";
7139             script {
7140                new st[31];
7141                new Float:vl;
7142                get_state(PART:"elm.text", st, 30, vl);
7143                if (!strcmp(st, "disabled_visible"))
7144                  set_state(PART:"elm.text", "visible", 0.0);
7145                else
7146                  set_state(PART:"elm.text", "default", 0.0);
7147                set_int(button_state, BUTTON_STATE_ENABLED);
7148             }
7149          }
7150          program { name: "action_focus";
7151             signal: "elm,action,focus_highlight,show";
7152             source: "elm";
7153             action: STATE_SET "focused" 0.0;
7154             target: "focus_image";
7155          }
7156          program { name: "action_unfocus";
7157             signal: "elm,action,focus_highlight,hide";
7158             source: "elm";
7159             action: STATE_SET "default" 0.0;
7160             target: "focus_image";
7161          }
7162       }
7163    }
7164
7165 ////////////////////////////////////////////////////////////////////////
7166    group { name: "elm/button/base/bubble_sent";
7167       inherit: "elm/button/base/style1";
7168       images {
7169          image: "00_messagebubble_button_sent.png" COMP;
7170          image: "00_messagebubble_button_sent_press.png" COMP;
7171          image: "00_messagebubble_button_sent_dim.png" COMP;
7172       }
7173       parts {
7174          part { name: "button_image";
7175             scale: 1;
7176             description { state: "default" 0.0;
7177                image {
7178                   normal: "00_messagebubble_button_sent.png";
7179                   border: BUTTON_SENT_BUBBLE_BG_BORDER_INC;
7180                   border_scale: 1;
7181                }
7182             }
7183             description { state: "clicked" 0.0;
7184                inherit: "default" 0.0;
7185                image.normal: "00_messagebubble_button_sent_press.png";
7186             }
7187             description { state: "disabled" 0.0;
7188                inherit: "default" 0.0;
7189                image.normal: "00_messagebubble_button_sent_dim.png";
7190             }
7191             description { state: "focused" 0.0;
7192                inherit: "default" 0.0;
7193                image.normal: "00_messagebubble_button_sent_press.png";
7194             }
7195          }
7196          part { name: "elm.text";
7197             type: TEXT;
7198             mouse_events: 0;
7199             effect: FAR_SHADOW BOTTOM;
7200             scale: 1;
7201             clip_to: "clipper";
7202             description { state: "default" 0.0;
7203                visible: 0;
7204                rel1 {
7205                   relative: 1.0 1.0;
7206                   to_x: "padding_after_icon";
7207                   to_y: "padding_left_top";
7208                }
7209                rel2 {
7210                   relative: 0.0 0.0;
7211                   to: "padding_right_bottom";
7212                }
7213                color: BUTTON_SEND_BUBBLE_TEXT_NORMAL_COLOR_INC;
7214                color2: BUTTON_SEND_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
7215                text {
7216                   font: "Tizen:style=Regular";
7217                   size: BUTTON_SENT_BUBBLE_TEXT_FONT_SIZE_INC;
7218                   min: 0 0;
7219                   max: 1 0;
7220                   text_class: "tizen";
7221                }
7222             }
7223             description { state: "visible" 0.0;
7224                inherit: "default" 0.0;
7225                visible: 1;
7226             }
7227             description { state: "clicked" 0.0;
7228                inherit: "default" 0.0;
7229                visible: 1;
7230                color: BUTTON_SEND_BUBBLE_TEXT_PRESSED_COLOR_INC;
7231             }
7232             description { state: "disabled" 0.0;
7233                inherit: "default" 0.0;
7234             }
7235             description { state: "disabled_visible" 0.0;
7236                inherit: "default" 0.0;
7237                color: BUTTON_SEND_BUBBLE_TEXT_DISABLED_COLOR_INC;
7238                visible: 1;
7239             }
7240             description { state: "focused" 0.0;
7241                inherit: "default" 0.0;
7242                visible: 1;
7243                color: BUTTON_SEND_BUBBLE_TEXT_FOCUSED_COLOR_INC;
7244             }
7245          }
7246       }
7247    }
7248
7249 ////////////////////////////////////////////////////////////////////////
7250    group { name: "elm/button/base/bubble_sent/multiline";
7251       inherit: "elm/button/base/bubble_sent";
7252       styles{
7253          style { name: "bubble_sent_multiline";
7254             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";
7255             tag: "br" "\n";
7256             tag: "ps" "ps";
7257             tag: "tab" "\t";
7258          }
7259       }
7260       parts {
7261          part { name: "elm.text";
7262             type: TEXTBLOCK;
7263             mouse_events: 0;
7264             effect: FAR_SHADOW BOTTOM;
7265             scale: 1;
7266             clip_to: "clipper";
7267             description { state: "default" 0.0;
7268                visible: 0;
7269                fixed: 1 1;
7270                rel1 {
7271                   relative: 1.0 1.0;
7272                   to_x: "padding_after_icon";
7273                   to_y: "padding_left_top";
7274                }
7275                rel2 {
7276                   relative: 0.0 0.0;
7277                   to: "padding_right_bottom";
7278                }
7279                color: BUTTON_SEND_BUBBLE_TEXT_NORMAL_COLOR_INC;
7280                color2: BUTTON_SEND_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
7281                text {
7282                    style: "bubble_sent_multiline";
7283                }
7284             }
7285             description { state: "visible" 0.0;
7286                inherit: "default" 0.0;
7287                visible: 1;
7288             }
7289             description { state: "clicked" 0.0;
7290                inherit: "default" 0.0;
7291                visible: 1;
7292                color: BUTTON_SEND_BUBBLE_TEXT_PRESSED_COLOR_INC;
7293             }
7294             description { state: "disabled" 0.0;
7295                inherit: "default" 0.0;
7296             }
7297             description { state: "disabled_visible" 0.0;
7298                inherit: "default" 0.0;
7299                color: BUTTON_SEND_BUBBLE_TEXT_DISABLED_COLOR_INC;
7300                visible: 1;
7301             }
7302             description { state: "focused" 0.0;
7303                inherit: "default" 0.0;
7304                visible: 1;
7305                color: BUTTON_SEND_BUBBLE_TEXT_FOCUSED_COLOR_INC;
7306             }
7307          }
7308       }
7309    }
7310
7311 ///////////////////////////////////////////////////////////////////////
7312    group { name: "elm/button/base/bubble_receive";
7313       inherit: "elm/button/base/style1";
7314       images {
7315          image: "00_messagebubble_button_receive.png" COMP;
7316          image: "00_messagebubble_button_receive_press.png" COMP;
7317          image: "00_messagebubble_button_receive_dim.png" COMP;
7318       }
7319       parts {
7320          part { name: "button_image";
7321             scale: 1;
7322             description { state: "default" 0.0;
7323                image {
7324                   normal: "00_messagebubble_button_receive.png";
7325                   border: BUTTON_RECEIVE_BUBBLE_BG_BORDER_INC;
7326                   border_scale: 1;
7327                }
7328             }
7329             description { state: "clicked" 0.0;
7330                inherit: "default" 0.0;
7331                image.normal: "00_messagebubble_button_receive_press.png";
7332             }
7333             description { state: "disabled" 0.0;
7334                inherit: "default" 0.0;
7335                image.normal: "00_messagebubble_button_receive_dim.png";
7336             }
7337             description { state: "focused" 0.0;
7338                inherit: "default" 0.0;
7339                image.normal: "00_messagebubble_button_receive_press.png";
7340             }
7341          }
7342          part { name: "elm.text";
7343             type: TEXT;
7344             mouse_events: 0;
7345             effect: SHADOW BOTTOM;
7346             scale: 1;
7347             clip_to: "clipper";
7348             description { state: "default" 0.0;
7349                visible: 0;
7350                rel1 {
7351                   relative: 1.0 1.0;
7352                   to_x: "padding_after_icon";
7353                   to_y: "padding_left_top";
7354                }
7355                rel2 {
7356                   relative: 0.0 0.0;
7357                   to: "padding_right_bottom";
7358                }
7359                color: BUTTON_RECEIVE_BUBBLE_TEXT_NORMAL_COLOR_INC;
7360                color2: BUTTON_RECEIVE_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
7361                text {
7362                   font: "Tizen:style=Regular";
7363                   size: BUTTON_RECEIVE_BUBBLE_TEXT_FONT_SIZE_INC;
7364                   min: 0 0;
7365                   max: 1 0;
7366                   text_class: "tizen";
7367                }
7368             }
7369             description { state: "visible" 0.0;
7370                inherit: "default" 0.0;
7371                visible: 1;
7372             }
7373             description { state: "clicked" 0.0;
7374                inherit: "default" 0.0;
7375                visible: 1;
7376                color: BUTTON_RECEIVE_BUBBLE_TEXT_PRESSED_COLOR_INC;
7377             }
7378             description { state: "disabled" 0.0;
7379                inherit: "default" 0.0;
7380             }
7381             description { state: "disabled_visible" 0.0;
7382                inherit: "default" 0.0;
7383                color: BUTTON_RECEIVE_BUBBLE_TEXT_DISABLED_COLOR_INC;
7384                visible: 1;
7385             }
7386             description { state: "focused" 0.0;
7387                inherit: "default" 0.0;
7388                visible: 1;
7389                color: BUTTON_RECEIVE_BUBBLE_TEXT_FOCUSED_COLOR_INC;
7390             }
7391          }
7392       }
7393    }
7394
7395 ///////////////////////////////////////////////////////////////////////
7396    group { name: "elm/button/base/bubble_receive/multiline";
7397       inherit: "elm/button/base/bubble_receive";
7398       styles{
7399          style { name: "bubble_receive_multiline";
7400             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";
7401             tag: "br" "\n";
7402             tag: "ps" "ps";
7403             tag: "tab" "\t";
7404          }
7405       }
7406       parts {
7407          part { name: "elm.text";
7408             type: TEXTBLOCK;
7409             mouse_events: 0;
7410             effect: SHADOW BOTTOM;
7411             scale: 1;
7412             clip_to: "clipper";
7413             description { state: "default" 0.0;
7414                visible: 0;
7415                fixed: 1 1;
7416                rel1 {
7417                   relative: 1.0 1.0;
7418                   to_x: "padding_after_icon";
7419                   to_y: "padding_left_top";
7420                }
7421                rel2 {
7422                   relative: 0.0 0.0;
7423                   to: "padding_right_bottom";
7424                }
7425                color: BUTTON_RECEIVE_BUBBLE_TEXT_NORMAL_COLOR_INC;
7426                color2: BUTTON_RECEIVE_BUBBLE_TEXT_SHADOW_NORMAL_COLOR_INC;
7427                text {
7428                    style: "btn_style1_multiline";
7429                }
7430             }
7431             description { state: "visible" 0.0;
7432                inherit: "default" 0.0;
7433                visible: 1;
7434             }
7435             description { state: "clicked" 0.0;
7436                inherit: "default" 0.0;
7437                visible: 1;
7438                color: BUTTON_RECEIVE_BUBBLE_TEXT_PRESSED_COLOR_INC;
7439             }
7440             description { state: "disabled" 0.0;
7441                inherit: "default" 0.0;
7442             }
7443             description { state: "disabled_visible" 0.0;
7444                inherit: "default" 0.0;
7445                color: BUTTON_RECEIVE_BUBBLE_TEXT_DISABLED_COLOR_INC;
7446                visible: 1;
7447             }
7448             description { state: "focused" 0.0;
7449                inherit: "default" 0.0;
7450                visible: 1;
7451                color: BUTTON_RECEIVE_BUBBLE_TEXT_FOCUSED_COLOR_INC;
7452             }
7453          }
7454       }
7455    }
7456
7457 ///////////////////////////////////////////////////////////////////////
7458 group { name: "elm/button/base/bubble_circle/receive";
7459       images {
7460          image: "00_messagebubble_circle_receive.png" COMP;
7461          image: "00_messagebubble_circle_receive_press.png" COMP;
7462          image: "00_messagebubble_circle_receive_dim.png" COMP;
7463          image: "00_button_right.png" COMP;
7464          image: "00_button_right_press.png" COMP;
7465       }
7466       parts {
7467          part { name: "button_image";
7468             scale: 1;
7469             description { state: "default" 0.0;
7470                min: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
7471                max: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
7472                image.normal: "00_messagebubble_circle_receive.png";
7473             }
7474             description {
7475                state: "clicked" 0.0;
7476                inherit: "default" 0.0;
7477                image.normal: "00_messagebubble_circle_receive_press.png";
7478             }
7479             description {
7480                state: "disabled" 0.0;
7481                inherit: "default" 0.0;
7482                image.normal: "00_messagebubble_circle_receive_dim.png";
7483             }
7484          }
7485          part { name: "image";
7486             scale: 1;
7487             clip_to: "icon_clipper";
7488             description { state: "default" 0.0;
7489                min: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
7490                max: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
7491                image.normal: "00_button_right.png";
7492             }
7493             description {
7494                state: "clicked" 0.0;
7495                inherit: "default" 0.0;
7496                image.normal: "00_button_right_press.png";
7497             }
7498             description {
7499                state: "disabled" 0.0;
7500                inherit: "default" 0.0;
7501             }
7502          }
7503          part { name: "icon_clipper";
7504             type: RECT;
7505             scale: 1;
7506             description { state: "default" 0.0;
7507                color: BUTTON_BUBBLE_CIRCLE_RECEIVE_ICON_NORMAL_COLOR_INC;
7508             }
7509             description { state: "clicked" 0.0;
7510                color: BUTTON_BUBBLE_CIRCLE_RECEIVE_ICON_PRESSED_COLOR_INC;
7511             }
7512             description { state: "disabled" 0.0;
7513                color: BUTTON_BUBBLE_CIRCLE_RECEIVE_ICON_DISABLED_COLOR_INC;
7514             }
7515          }
7516          part { name: "over1";
7517             type: RECT;
7518             ignore_flags: ON_HOLD;
7519             description { state: "default" 0.0;
7520                color: 0 0 0 0;
7521             }
7522          }
7523          part { name: "over2";
7524             type: RECT;
7525             repeat_events: 1;
7526             description { state: "default" 0.0;
7527                color: 0 0 0 0;
7528             }
7529          }
7530          part { name: "disabler";
7531             type: RECT;
7532             description { state: "default" 0.0;
7533                color: 0 0 0 0;
7534                visible: 0;
7535             }
7536             description { state: "disabled" 0.0;
7537                inherit: "default" 0.0;
7538                visible: 1;
7539             }
7540          }
7541       }
7542       programs {
7543          program { name: "button_click";
7544             signal: "mouse,down,1";
7545             source: "over1";
7546             action: SIGNAL_EMIT "elm,action,press" "";
7547             after: "button_click_anim";
7548          }
7549          program { name: "button_click_anim";
7550             action: STATE_SET "clicked" 0.0;
7551             target: "button_image";
7552             target: "image";
7553             target: "icon_clipper";
7554          }
7555          program { name: "button_double_click";
7556             signal: "mouse,down,1,double";
7557             source: "over1";
7558             after: "button_click_anim";
7559          }
7560          program { name: "button_unclick";
7561             signal: "mouse,up,1";
7562             source: "over2";
7563             action: SIGNAL_EMIT "elm,action,unpress" "";
7564             after: "button_unclick_anim";
7565          }
7566          program { name: "button_unclick_anim";
7567             action: STATE_SET "default" 0.0;
7568             target: "button_image";
7569             target: "image";
7570             target: "icon_clipper";
7571          }
7572          program { name: "touch_snd";
7573             signal: "mouse,clicked,1";
7574             source: "over1";
7575             action: PLAY_SAMPLE "touch_sound" 1.0;
7576             after: button_unclick3;
7577          }
7578          program { name: "button_unclick3";
7579             action: SIGNAL_EMIT "elm,action,click" "";
7580          }
7581          program { name: "disable";
7582             signal: "elm,state,disabled";
7583             source: "elm";
7584             action: STATE_SET "disabled" 0.0;
7585             target: "disabler";
7586             target: "button_image";
7587             target: "icon_clipper";
7588             
7589          }
7590          program { name: "enable";
7591             signal: "elm,state,enabled";
7592             source: "elm";
7593             action: STATE_SET "default" 0.0;
7594             target: "disabler";
7595             target: "button_image";
7596             target: "icon_clipper";
7597          }
7598       }
7599    }
7600
7601 ///////////////////////////////////////////////////////////////////////
7602 group { name: "elm/button/base/bubble_circle/sent";
7603       images {
7604          image: "00_messagebubble_circle_sent.png" COMP;
7605          image: "00_messagebubble_circle_sent_press.png" COMP;
7606          image: "00_messagebubble_circle_sent_dim.png" COMP;
7607          image: "00_button_right.png" COMP;
7608          image: "00_button_right_press.png" COMP;
7609       }
7610       parts {
7611          part { name: "button_image";
7612             scale: 1;
7613             description { state: "default" 0.0;
7614                min: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
7615                max: BUTTON_BUBBLE_CIRCLE_BG_MIN_MAX_INC;
7616                image.normal: "00_messagebubble_circle_sent.png";
7617             }
7618             description {
7619                state: "clicked" 0.0;
7620                inherit: "default" 0.0;
7621                image.normal: "00_messagebubble_circle_sent_press.png";
7622             }
7623             description {
7624                state: "disabled" 0.0;
7625                inherit: "default" 0.0;
7626                image.normal: "00_messagebubble_circle_sent_dim.png";
7627             }
7628          }
7629          part { name: "image";
7630             scale: 1;
7631             clip_to: "icon_clipper";
7632             description { state: "default" 0.0;
7633                min: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
7634                max: BUTTON_BUBBLE_CIRCLE_IMAGE_MIN_MAX_INC;
7635                image.normal: "00_button_right.png";
7636             }
7637             description {
7638                state: "clicked" 0.0;
7639                inherit: "default" 0.0;
7640                image.normal: "00_button_right_press.png";
7641             }
7642             description {
7643                state: "disabled" 0.0;
7644                inherit: "default" 0.0;
7645             }
7646          }
7647          part { name: "icon_clipper";
7648             type: RECT;
7649             scale: 1;
7650             description { state: "default" 0.0;
7651                color: BUTTON_BUBBLE_CIRCLE_SENT_ICON_NORMAL_COLOR_INC;
7652             }
7653             description { state: "clicked" 0.0;
7654                color: BUTTON_BUBBLE_CIRCLE_SENT_ICON_PRESSED_COLOR_INC;
7655             }
7656             description { state: "disabled" 0.0;
7657                color: BUTTON_BUBBLE_CIRCLE_SENT_ICON_DISABLED_COLOR_INC;
7658             }
7659          }
7660          part { name: "over1";
7661             type: RECT;
7662             ignore_flags: ON_HOLD;
7663             description { state: "default" 0.0;
7664                color: 0 0 0 0;
7665             }
7666          }
7667          part { name: "over2";
7668             type: RECT;
7669             repeat_events: 1;
7670             description { state: "default" 0.0;
7671                color: 0 0 0 0;
7672             }
7673          }
7674          part { name: "disabler";
7675             type: RECT;
7676             description { state: "default" 0.0;
7677                color: 0 0 0 0;
7678                visible: 0;
7679             }
7680             description { state: "disabled" 0.0;
7681                inherit: "default" 0.0;
7682                visible: 1;
7683             }
7684          }
7685       }
7686       programs {
7687          program { name: "button_click";
7688             signal: "mouse,down,1";
7689             source: "over1";
7690             action: SIGNAL_EMIT "elm,action,press" "";
7691             after: "button_click_anim";
7692          }
7693          program { name: "button_click_anim";
7694             action: STATE_SET "clicked" 0.0;
7695             target: "button_image";
7696             target: "image";
7697             target: "icon_clipper";
7698          }
7699          program { name: "button_double_click";
7700             signal: "mouse,down,1,double";
7701             source: "over1";
7702             after: "button_click_anim";
7703          }
7704          program { name: "button_unclick";
7705             signal: "mouse,up,1";
7706             source: "over2";
7707             action: SIGNAL_EMIT "elm,action,unpress" "";
7708             after: "button_unclick_anim";
7709          }
7710          program { name: "button_unclick_anim";
7711             action: STATE_SET "default" 0.0;
7712             target: "button_image";
7713             target: "image";
7714             target: "icon_clipper";
7715          }
7716          program { name: "touch_snd";
7717             signal: "mouse,clicked,1";
7718             source: "over1";
7719             action: PLAY_SAMPLE "touch_sound" 1.0;
7720             after: button_unclick3;
7721          }
7722          program { name: "button_unclick3";
7723             action: SIGNAL_EMIT "elm,action,click" "";
7724          }
7725          program { name: "disable";
7726             signal: "elm,state,disabled";
7727             source: "elm";
7728             action: STATE_SET "disabled" 0.0;
7729             target: "disabler";
7730             target: "button_image";
7731             target: "icon_clipper";
7732          }
7733          program { name: "enable";
7734             signal: "elm,state,enabled";
7735             source: "elm";
7736             action: STATE_SET "default" 0.0;
7737             target: "disabler";
7738             target: "button_image";
7739             target: "icon_clipper";
7740          }
7741       }
7742    }
7743
7744 //////////////////////////////////////////////////////////////////////////////////////
7745    group { name: "elm/button/base/editfield_rename";
7746       images {
7747          image: "00_edit_field_rename.png" COMP;
7748       }
7749       parts {
7750          part { name: "button_image";
7751             type: RECT;
7752             scale: 1;
7753             description { state: "default" 0.0;
7754                visible: 0;
7755             }
7756             description { state: "clicked" 0.0;
7757                inherit: "default" 0.0;
7758             }
7759             description { state: "disabled" 0.0;
7760                inherit: "default" 0.0;
7761             }
7762             description { state: "focused" 0.0;
7763                inherit: "default" 0.0;
7764             }
7765          }
7766          part { name: "rename_button";
7767             scale: 1;
7768             mouse_events: 0;
7769             clip_to: "rename_button.clipper";
7770             description { state: "default" 0.0;
7771                min: BUTTON_EDITFIELD_RENAME_BUTTON_MIN_MAX_INC;
7772                max: BUTTON_EDITFIELD_RENAME_BUTTON_MIN_MAX_INC;
7773                fixed: 1 1;
7774                align: 0.0 0.5;
7775                image.normal: "00_edit_field_rename.png";
7776             }
7777          }
7778          part { name: "rename_button.clipper";
7779             type: RECT;
7780             description { state: "default" 0.0;
7781                color: BUTTON_EDITFIELD_RENAME_BUTTON_CLIPPER_DEFAULT_COLOR_INC;
7782             }
7783             description { state: "clicked" 0.0;
7784                color: BUTTON_EDITFIELD_RENAME_BUTTON_CLIPPER_PRESSED_COLOR_INC;
7785             }
7786             description { state: "disabled" 0.0;
7787                color: BUTTON_EDITFIELD_RENAME_BUTTON_CLIPPER_DISABLED_COLOR_INC;
7788             }
7789          }
7790          part { name: "over2";
7791             type: RECT;
7792             ignore_flags: ON_HOLD;
7793             description { state: "default" 0.0;
7794                color: 0 0 0 0;
7795             }
7796          }
7797          part { name: "over3";
7798             type: RECT;
7799             repeat_events: 1;
7800             description { state: "default" 0.0;
7801                color: 0 0 0 0;
7802             }
7803          }
7804          part { name: "disabler";
7805             type: RECT;
7806             description { state: "default" 0.0;
7807                color: 0 0 0 0;
7808                visible: 0;
7809             }
7810             description { state: "disabled" 0.0;
7811                inherit: "default" 0.0;
7812                visible: 1;
7813             }
7814          }
7815       }
7816       programs {
7817          program { name: "button_click";
7818             signal: "mouse,down,1";
7819             source: "over2";
7820             action: SIGNAL_EMIT "elm,action,press" "";
7821             after: "button_click_anim";
7822          }
7823          program { name: "button_click_anim";
7824             action: STATE_SET "clicked" 0.0;
7825             target: "button_image";
7826             target: "rename_button.clipper";
7827          }
7828          program { name: "button_double_click";
7829             signal: "mouse,down,1,double";
7830             source: "over1";
7831             after: "button_click_anim";
7832          }
7833          program { name: "button_unclick";
7834             signal: "mouse,up,1";
7835             source: "over3";
7836             action: SIGNAL_EMIT "elm,action,unpress" "";
7837             after: "button_unclick_anim";
7838          }
7839          program { name: "button_unclick_anim";
7840             action: STATE_SET "default" 0.0;
7841             target: "button_image";
7842             target: "rename_button.clipper";
7843          }
7844          program { name: "touch_snd";
7845             signal: "mouse,clicked,1";
7846             source: "over2";
7847             action: PLAY_SAMPLE "touch_sound" 1.0;
7848             after: "button_unclick3";
7849          }
7850          program { name: "button_unclick3";
7851             action: SIGNAL_EMIT "elm,action,click" "";
7852          }
7853          program { name: "disable";
7854             signal: "elm,state,disabled";
7855             source: "elm";
7856             action: STATE_SET "disabled" 0.0;
7857             target: "button_image";
7858             target: "disabler";
7859             target: "rename_button.clipper";
7860          }
7861          program { name: "enable";
7862             signal: "elm,state,enabled";
7863             source: "elm";
7864             action: STATE_SET "default" 0.0;
7865             target: "button_image";
7866             target: "disabler";
7867             target: "rename_button.clipper";
7868          }
7869       }
7870    }
7871    group { name: "elm/button/base/editfield_clear";
7872       images {
7873          image: "00_edit_field_clear.png" COMP;
7874       }
7875       parts {
7876          part { name: "button_image";
7877             type: RECT;
7878             scale: 1;
7879             description { state: "default" 0.0;
7880                visible: 0;
7881             }
7882             description { state: "clicked" 0.0;
7883                inherit: "default" 0.0;
7884             }
7885             description { state: "disabled" 0.0;
7886                inherit: "default" 0.0;
7887             }
7888             description { state: "focused" 0.0;
7889                inherit: "default" 0.0;
7890             }
7891          }
7892          part { name: "clear_button";
7893             scale: 1;
7894             mouse_events: 0;
7895             clip_to: "clear_button.clipper";
7896             description { state: "default" 0.0;
7897                min: BUTTON_EDITFIELD_CLEAR_BUTTON_MIN_MAX_INC;
7898                max: BUTTON_EDITFIELD_CLEAR_BUTTON_MIN_MAX_INC;
7899                fixed: 1 1;
7900                align: 0.0 0.5;
7901                image.normal: "00_edit_field_clear.png";
7902             }
7903          }
7904          part { name: "clear_button.clipper";
7905             type: RECT;
7906             description { state: "default" 0.0;
7907                color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_DEFAULT_COLOR_INC;
7908             }
7909             description { state: "clicked" 0.0;
7910                color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_PRESSED_COLOR_INC;
7911             }
7912             description { state: "disabled" 0.0;
7913                color: BUTTON_EDITFIELD_CLEAR_BUTTON_CLIPPER_DISABLED_COLOR_INC;
7914             }
7915          }
7916          part { name: "over2";
7917             type: RECT;
7918             ignore_flags: ON_HOLD;
7919             description { state: "default" 0.0;
7920                color: 0 0 0 0;
7921             }
7922          }
7923          part { name: "over3";
7924             type: RECT;
7925             repeat_events: 1;
7926             description { state: "default" 0.0;
7927                color: 0 0 0 0;
7928             }
7929          }
7930          part { name: "disabler";
7931             type: RECT;
7932             description { state: "default" 0.0;
7933                color: 0 0 0 0;
7934                visible: 0;
7935             }
7936             description { state: "disabled" 0.0;
7937                inherit: "default" 0.0;
7938                visible: 1;
7939             }
7940          }
7941       }
7942       programs {
7943          program { name: "button_click";
7944             signal: "mouse,down,1";
7945             source: "over2";
7946             action: SIGNAL_EMIT "elm,action,press" "";
7947             after: "button_click_anim";
7948          }
7949          program { name: "button_click_anim";
7950             action: STATE_SET "clicked" 0.0;
7951             target: "button_image";
7952             target: "clear_button.clipper";
7953          }
7954          program { name: "button_double_click";
7955             signal: "mouse,down,1,double";
7956             source: "over1";
7957             after: "button_click_anim";
7958          }
7959          program { name: "button_unclick";
7960             signal: "mouse,up,1";
7961             source: "over3";
7962             action: SIGNAL_EMIT "elm,action,unpress" "";
7963             after: "button_unclick_anim";
7964          }
7965          program { name: "button_unclick_anim";
7966             action: STATE_SET "default" 0.0;
7967             target: "button_image";
7968             target: "clear_button.clipper";
7969          }
7970          program { name: "touch_snd";
7971             signal: "mouse,clicked,1";
7972             source: "over2";
7973             action: PLAY_SAMPLE "touch_sound" 1.0;
7974             after: button_unclick3;
7975          }
7976          program { name: "button_unclick3";
7977             action: SIGNAL_EMIT "elm,action,click" "";
7978          }
7979          program { name: "disable";
7980             signal: "elm,state,disabled";
7981             source: "elm";
7982             action: STATE_SET "disabled" 0.0;
7983             target: "button_image";
7984             target: "disabler";
7985             target: "clear_button.clipper";
7986          }
7987          program { name: "enable";
7988             signal: "elm,state,enabled";
7989             source: "elm";
7990             action: STATE_SET "default" 0.0;
7991             target: "button_image";
7992             target: "disabler";
7993             target: "clear_button.clipper";
7994          }
7995       }
7996    }
7997
7998 #define BUTTON_DEFAULT_FOCUS_STYLES(style_name, image_normal) \
7999    group { name: "elm/button/base/"style_name; \
8000       data { \
8001          item: "focus_highlight" "on"; \
8002       } \
8003       images { \
8004          image: image_normal COMP; \
8005       } \
8006       parts { \
8007          part { name: "elm.swallow.content"; \
8008             type: SWALLOW; \
8009             scale: 1; \
8010             description { state: "default" 0.0; \
8011             } \
8012          } \
8013          part { name: "focus_image"; \
8014             scale: 1; \
8015             mouse_events: 0; \
8016             repeat_events: 1; \
8017             description { state: "default" 0.0; \
8018                visible: 0; \
8019                image { \
8020                   normal: image_normal; \
8021                   border: 6 6 6 6; \
8022                   border_scale: 1; \
8023                } \
8024             } \
8025             description { state: "focused" 0.0; \
8026                inherit: "default" 0.0; \
8027                visible: 1; \
8028             } \
8029          } \
8030          part { name: "over2"; \
8031             type: RECT; \
8032             repeat_events: 1; \
8033             ignore_flags: ON_HOLD; \
8034             description { state: "default" 0.0; \
8035                color: 0 0 0 0; \
8036             } \
8037          } \
8038          part { name: "over3"; \
8039             type: RECT; \
8040             repeat_events: 1; \
8041             description { state: "default" 0.0; \
8042                color: 0 0 0 0; \
8043             } \
8044          } \
8045       } \
8046       programs { \
8047          program { name: "button_click"; \
8048             signal: "mouse,down,1"; \
8049             source: "over2"; \
8050             action: SIGNAL_EMIT "elm,action,press" ""; \
8051          } \
8052          program { name: "button_unclick"; \
8053             signal: "mouse,up,1"; \
8054             source: "over3"; \
8055             action: SIGNAL_EMIT "elm,action,unpress" ""; \
8056          } \
8057          program { name: "button_click3"; \
8058             signal: "mouse,clicked,1"; \
8059             source: "over2"; \
8060             action: SIGNAL_EMIT "elm,action,click" ""; \
8061          } \
8062          program { name: "action_focus"; \
8063             signal: "elm,action,focus_highlight,show"; \
8064             source: "elm"; \
8065             action: STATE_SET "focused" 0.0; \
8066             target: "focus_image"; \
8067          } \
8068          program { name: "action_unfocus"; \
8069             signal: "elm,action,focus_highlight,hide"; \
8070             source: "elm"; \
8071             action: STATE_SET "default" 0.0; \
8072             target: "focus_image"; \
8073          } \
8074       } \
8075    } \
8076
8077 BUTTON_DEFAULT_FOCUS_STYLES("focus", "00_focus.png")
8078 BUTTON_DEFAULT_FOCUS_STYLES("focus_top", "00_list_group_bg_top_focus.png")
8079 BUTTON_DEFAULT_FOCUS_STYLES("focus_center", "00_list_group_bg_center_focus.png")
8080 BUTTON_DEFAULT_FOCUS_STYLES("focus_bottom", "00_list_group_bg_bottom_focus.png")
8081
8082    group { name: "elm/button/base/search_icon";
8083       images {
8084          image: "00_search_icon.png" COMP;
8085       }
8086       parts {
8087          part { name: "search_icon";
8088             scale: 1;
8089             mouse_events: 0;
8090             clip_to: "search_icon.clipper";
8091             description { state: "default" 0.0;
8092                min: BUTTON_SEARCH_ICON_MIN_MAX_INC;
8093                max: BUTTON_SEARCH_ICON_MIN_MAX_INC;
8094                fixed: 1 1;
8095                align: 0.5 0.5;
8096                image.normal: "00_search_icon.png";
8097             }
8098          }
8099          part { name: "search_icon.clipper";
8100             type: RECT;
8101             description { state: "default" 0.0;
8102                color: BUTTON_SEARCH_ICON_CLIPPER_DEFAULT_COLOR_INC;
8103             }
8104             description { state: "disabled" 0.0;
8105                color: BUTTON_SEARCH_ICON_CLIPPER_DISABLED_COLOR_INC;
8106             }
8107          }
8108          part { name: "over2";
8109             type: RECT;
8110             ignore_flags: ON_HOLD;
8111             description { state: "default" 0.0;
8112                color: 0 0 0 0;
8113             }
8114          }
8115          part { name: "over3";
8116             type: RECT;
8117             repeat_events: 1;
8118             description { state: "default" 0.0;
8119                color: 0 0 0 0;
8120             }
8121          }
8122          part { name: "disabler";
8123             type: RECT;
8124             description { state: "default" 0.0;
8125                color: 0 0 0 0;
8126                visible: 0;
8127             }
8128             description { state: "disabled" 0.0;
8129                inherit: "default" 0.0;
8130                visible: 1;
8131             }
8132          }
8133       }
8134       programs {
8135          program { name: "button_click";
8136             signal: "mouse,down,1";
8137             source: "over2";
8138             action: SIGNAL_EMIT "elm,action,press" "";
8139          }
8140          program { name: "button_double_click";
8141             signal: "mouse,down,1,double";
8142             source: "over1";
8143          }
8144          program { name: "button_unclick";
8145             signal: "mouse,up,1";
8146             source: "over3";
8147             action: SIGNAL_EMIT "elm,action,unpress" "";
8148          }
8149          program { name: "touch_snd";
8150             signal: "mouse,clicked,1";
8151             source: "over2";
8152             action: PLAY_SAMPLE "touch_sound" 1.0;
8153             after: "button_unclick3";
8154          }
8155          program { name: "button_unclick3";
8156             action: SIGNAL_EMIT "elm,action,click" "";
8157          }
8158          program { name: "disable";
8159             signal: "elm,state,disabled";
8160             source: "elm";
8161             action: STATE_SET "disabled" 0.0;
8162             target: "disabler";
8163             target: "search_icon.clipper";
8164          }
8165          program { name: "enable";
8166             signal: "elm,state,enabled";
8167             source: "elm";
8168             action: STATE_SET "default" 0.0;
8169             target: "disabler";
8170             target: "search_icon.clipper";
8171          }
8172       }
8173    }
8174    group { name: "elm/button/base/search_rename";
8175       inherit: "elm/button/base/editfield_rename";
8176       parts {
8177          part { name: "rename_button";
8178             scale: 1;
8179             mouse_events: 0;
8180             clip_to: "rename_button.clipper";
8181             description { state: "default" 0.0;
8182                min: BUTTON_SEARCH_RENAME_BUTTON_MIN_MAX_INC;
8183                max: BUTTON_SEARCH_RENAME_BUTTON_MIN_MAX_INC;
8184                fixed: 1 1;
8185                align: 0.5 0.5;
8186                image.normal: "00_edit_field_rename.png";
8187             }
8188          }
8189       }
8190    }
8191
8192    group { name: "elm/button/base/search_clear";
8193       inherit: "elm/button/base/editfield_clear";
8194       parts {
8195          part { name: "clear_button";
8196             scale: 1;
8197             mouse_events: 0;
8198             clip_to: "clear_button.clipper";
8199             description { state: "default" 0.0;
8200                min: BUTTON_SEARCH_CLEAR_BUTTON_MIN_MAX_INC;
8201                max: BUTTON_SEARCH_CLEAR_BUTTON_MIN_MAX_INC;
8202                fixed: 1 1;
8203                align: 0.5 0.5;
8204                image.normal: "00_edit_field_clear.png";
8205             }
8206          }
8207       }
8208    }
8209
8210 #undef BUTTON_STATE_ENABLED
8211 #undef BUTTON_STATE_DISABLED
8212 #undef BUTTON_LANDSCAPE_DISABLED
8213 #undef BUTTON_LANDSCAPE_ENABLED