[tab]changed icon+text style GUI
[platform/core/uifw/efl-theme-tizen.git] / themes / widgets / layout.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    /*************************************************/
21    /* elm_layout -> fundamental template style      */
22    /*************************************************/
23    group { name: "elm/layout/application/default";
24       alias: "elm/layout/application/noindicator";
25       parts {
26          part { name: "elm.swallow.bg";
27             type: SWALLOW;
28             scale: 1;
29             description { state: "default" 0.0;
30             }
31          }
32          part { name: "elm.swallow.content";
33             type: SWALLOW;
34             scale: 1;
35             description { state: "default" 0.0;
36             }
37          }
38          //Might be no need anymore
39          part { name: "elm.swallow.controlbar";
40             type: SWALLOW;
41             description { state: "default" 0.0;
42                visible: 0;
43             }
44          }
45       }
46    }
47    /*************************************************************************/
48    /* elm_layout -> fundamental template style with controlbar (deprecated) */
49    /*************************************************************************/
50    group { name: "elm/layout/application/controlbar";
51       parts {
52          part { name: "elm.swallow.bg";
53             type: SWALLOW;
54             scale: 1;
55             description { state: "default" 0.0;
56             }
57          }
58          part { name: "elm.swallow.content";
59             type: SWALLOW;
60             scale: 1;
61             description { state: "default" 0.0;
62                rel2.relative: 1.0 0.0;
63                rel2.to: "elm.swallow.controlbar";
64             }
65          }
66          part { name: "elm.swallow.controlbar";
67             type: SWALLOW;
68             scale: 1;
69             description { state: "default" 0.0;
70                min: 0 CONTROLBAR_LARGE_HEIGHT_INC;
71                fixed: 0 1;
72                rel1 { relative: 0.0 1.0; }
73                rel2 { relative: 1.0 1.0; }
74                align: 0.5 1.0;
75             }
76          }
77       }
78    }
79    /************************************************************/
80    /* elm_layout -> fundamental template style with tabbar */
81    /************************************************************/
82    group { name: "elm/layout/application/tabbar";
83       alias: "elm/layout/tabbar/default";
84       parts {
85          part { name: "elm.swallow.bg";
86             type: SWALLOW;
87             scale: 1;
88             description { state: "default" 0.0;
89             }
90          }
91          part { name: "elm.swallow.tabbar";
92             type: SWALLOW;
93             scale: 1;
94             description { state: "default" 0.0;
95                min: 0 TABBAR_DEFAULT_HEIGHT_INC;
96                fixed: 0 1;
97                rel1 { relative: 0.0 0.0; }
98                rel2 { relative: 1.0 0.0; }
99                align: 0.5 0.0;
100             }
101             description { state: "icon_text" 0.0;
102                inherit: "default" 0.0;
103                min: 0 TABBAR_ICON_TEXT_HEIGHT_INC;
104             }
105             description { state: "horizontal" 0.0;
106                inherit: "default" 0.0;
107                min: 0 TABBAR_HORIZONTAL_HEIGHT_INC;
108             }
109             description { state: "horizontal_icon_text" 0.0;
110                inherit: "default" 0.0;
111                min: 0 TABBAR_HORIZONTAL_ICON_TEXT_HEIGHT_INC;
112             }
113             description { state: "hidden" 0.0;
114                inherit: "default" 0.0;
115                min: 0 0;
116             }
117          }
118          part { name: "elm.swallow.content";
119             type: SWALLOW;
120             scale: 1;
121             description { state: "default" 0.0;
122                rel1.to_y: "elm.swallow.tabbar";
123                rel1.relative: 0.0 1.0;
124             }
125          }
126       }
127       programs {
128          program { name: "show_tabbar";
129             signal: "elm,state,show,tabbar";
130             signal: "elm,state,default,tabbar";
131             source: "elm";
132             action: STATE_SET "default" 0.0;
133             target: "elm.swallow.tabbar";
134          }
135          program { name: "hide_tabbar";
136             signal: "elm,state,hide,tabbar";
137             source: "elm";
138             action: STATE_SET "hidden" 0.0;
139             target: "elm.swallow.tabbar";
140          }
141          program { name: "icon_text_tabbar";
142             signal: "elm,state,icon_text,tabbar";
143             source: "elm";
144             action: STATE_SET "icon_text" 0.0;
145             target: "elm.swallow.tabbar";
146          }
147          program { name: "horizontal_tabbar";
148             signal: "elm,state,horizontal,tabbar";
149             source: "elm";
150             action: STATE_SET "horizontal" 0.0;
151             target: "elm.swallow.tabbar";
152          }
153          program { name: "horizontal_icon_text_tabbar";
154             signal: "elm,state,horizontal_icon_text,tabbar";
155             source: "elm";
156             action: STATE_SET "horizontal_icon_text" 0.0;
157             target: "elm.swallow.tabbar";
158          }
159       }
160    }
161
162    /*************************************************/
163    /* elm_layout -> searchbar style                 */
164    /*************************************************/
165    group { name: "elm/layout/application/searchbar_base";
166       parts {
167          part { name: "elm.swallow.bg";
168             type: SWALLOW;
169             scale: 1;
170             description { state: "default" 0.0;
171             }
172          }
173          part { name: "searchbar";
174             type: SWALLOW;
175             mouse_events: 1;
176             scale: 1;
177             description { state: "default" 0.0;
178                min: 0 SEARCHBAR_H_INC;
179                fixed: 0 1;
180                align: 0.0 1.0;
181                rel2 {
182                   relative: 1.0 0.0;
183                }
184             }
185             description { state: "visible" 0.0;
186                inherit: "default" 0.0;
187                align: 0.0 0.0;
188             }
189          }
190          part { name: "elm.swallow.content";
191             type: SWALLOW;
192             mouse_events: 1;
193             scale: 1;
194             description { state: "default" 0.0;
195                align: 0.0 0.0;
196                rel1 {
197                   relative: 0.0 1.0;
198                   to: "searchbar";
199                }
200             }
201          }
202       }
203       programs {
204          program { name: "show_searchbar";
205             signal: "elm,state,show,searchbar";
206             source: "elm";
207             action: STATE_SET "visible" 0.0;
208             target: "searchbar";
209          }
210          program { name: "show_searchbar_with_animation";
211             signal: "elm,state,show,searchbar,animation";
212             source: "elm";
213             action: STATE_SET "visible" 0.0;
214             transition: DECELERATE 0.3;
215             target: "searchbar";
216          }
217          program { name: "hide_searchbar";
218             signal: "elm,state,hide,searchbar";
219             source: "elm";
220             action: STATE_SET "default" 0.0;
221             target: "searchbar";
222          }
223          program { name: "hide_searchbar_with_animation";
224             signal: "elm,state,hide,searchbar,animation";
225             source: "elm";
226             action: STATE_SET "default" 0.0;
227             transition: ACCELERATE 0.3;
228             target: "searchbar";
229          }
230       }
231    }
232
233    /*************************************************/
234    /* elm_layout -> integrated style (deprecated)   */
235    /*************************************************/
236    group { name: "elm/standard/window/integration";
237       parts {
238          /* for event blocking */
239          part { name: "base_event";
240             type: RECT;
241             repeat_events: 0;
242             description { state: "default" 0.0;
243                visible: 1;
244                color: 0 0 0 0;
245             }
246             description { state: "block_events" 0.0;
247                inherit: "default" 0.0;
248             }
249             description { state: "repeat_events" 0.0;
250                inherit: "default" 0.0;
251                visible: 0;
252             }
253          }
254          part { name: "base";
255             type: RECT;
256             mouse_events: 1;
257             repeat_events: 1;
258             description { state: "default" 0.0;
259                color: LAYOUT_BG_COLOR_INC;
260             }
261             description { state: "white_bg" 0.0;
262                color: 255 255 255 255;
263             }
264             description { state: "black_bg" 0.0;
265                color: 0 0 0 255;
266             }
267             description { state: "beige_bg" 0.0;
268                color: 246 245 237 255;
269             }
270             description { state: "group_list_bg" 0.0;
271                color: LAYOUT_GROUP_LIST_BG_COLOR_INC;
272             }
273             description { state: "transparent_bg" 0.0;
274                color: 0 0 0 0;
275             }
276             description { state: "edit_mode" 0.0;
277                color: LAYOUT_EDIT_MODE_BG_COLOR_INC;
278             }
279          }
280          part { name: "elm.swallow.content";
281             type: SWALLOW;
282             description {
283                state: "default" 0.0;
284                visible: 0;
285                rel1 { relative: 0.0 0.0; }
286                rel2 { relative: 1.0 1.0; }
287             }
288             description { state: "show" 0.0;
289                inherit: "default" 0.0;
290                visible: 1;
291             }
292             description { state: "show_with_navi_bar" 0.0;
293                inherit: "default" 0.0;
294                rel1 { relative: 0.0 1.0; to_y: "elm.swallow.navi_bar"; }
295                visible: 1;
296             }
297             description { state: "show" 1.0;
298                inherit: "default" 0.0;
299                rel2 { relative: 1.0 0.0; to_y: "elm.swallow.controlbar"; }
300                visible: 1;
301             }
302             description { state: "show_with_navi_bar" 1.0;
303                inherit: "default" 0.0;
304                rel1 { relative: 0.0 1.0; to_y: "elm.swallow.navi_bar"; }
305                rel2 { relative: 1.0 0.0; to_y: "elm.swallow.controlbar"; }
306                visible: 1;
307             }
308          }
309          part { name: "elm.swallow.navi_bar";
310             type: SWALLOW;
311             scale: 1;
312             description {
313                state: "default" 0.0;
314                visible: 0;
315                min: 0 NAVIFRAME_TITLE_H_INC;
316                fixed: 0 1;
317                rel1 { relative: 0.0 0.0; }
318                rel2 { relative: 1.0 0.0; }
319                align: 0.5 0;
320             }
321             description { state: "show" 0.0;
322                inherit: "default" 0.0;
323                visible: 1;
324             }
325          }
326          part { name: "elm.swallow.controlbar";
327             type: SWALLOW;
328             scale: 1;
329             description { state: "default" 0.0;
330                visible: 0;
331                min: 0 CONTROLBAR_LARGE_HEIGHT_INC;
332                fixed: 0 1;
333                rel1 { relative: 0.0 1.0; }
334                rel2 { relative: 1.0 1.0; }
335                align: 0.5 1.0;
336             }
337             description { state: "show" 0.0;
338                inherit: "default" 0.0;
339                visible: 1;
340             }
341          }
342       }
343       programs {
344          program { name: "block_events";
345             signal: "elm,base_event,block_events";
346             source: "elm";
347             action: STATE_SET "block_events" 0.0;
348             target: "base_event";
349          }
350          program { name: "repeat_events";
351             signal: "elm,base_event,repeat_events";
352             source: "elm";
353             action: STATE_SET "repeat_events" 0.0;
354             target: "base_event";
355          }
356          program { name: "show_default_bg";
357             signal: "elm,bg,show,default";
358             source: "elm";
359             script {
360                set_state(PART:"base", "default", 0.0);
361             }
362          }
363          program { name: "show_black_bg";
364             signal: "elm,bg,show,black";
365             source: "elm";
366             script {
367                set_state(PART:"base", "black_bg", 0.0);
368             }
369          }
370          program { name: "show_white_bg";
371             signal: "elm,bg,show,white";
372             source: "elm";
373             script {
374                set_state(PART:"base", "white_bg", 0.0);
375             }
376          }
377          program { name: "show_beige_bg";
378             signal: "elm,bg,show,beige";
379             source: "elm";
380             script {
381                set_state(PART:"base", "beige_bg", 0.0);
382             }
383          }
384          program { name: "show_group_list_bg";
385             signal: "elm,bg,show,group_list";
386             source: "elm";
387             script {
388                set_state(PART:"base", "group_list_bg", 0.0);
389             }
390          }
391          program { name: "show_transparent_bg";
392             signal: "elm,bg,show,transparent";
393             source: "elm";
394             script {
395                set_state(PART:"base", "transparent_bg", 0.0);
396             }
397          }
398          program { name: "show_edit_mode_bg";
399             signal: "elm,bg,show,edit_mode";
400             source: "elm";
401             script {
402                set_state(PART:"base", "edit_mode", 0.0);
403             }
404          }
405          program { name: "show_navi_bar";
406             signal: "elm,state,show,navi_bar";
407             source: "elm";
408             script {
409                set_state(PART:"elm.swallow.navi_bar", "show", 0.0);
410                run_program(PROGRAM:"check_location");
411             }
412          }
413          program { name: "hide_navi_bar";
414             signal: "elm,state,hide,navi_bar";
415             source: "elm";
416             script {
417                set_state(PART:"elm.swallow.navi_bar", "default", 0.0);
418                run_program(PROGRAM:"check_location");
419             }
420          }
421          program { name: "show_content";
422             signal: "elm,state,show,content";
423             source: "elm";
424             script {
425                set_state(PART:"elm.swallow.content", "show", 0.0);
426                run_program(PROGRAM:"check_location");
427             }
428          }
429          program { name: "hide_content";
430             signal: "elm,state,hide,content";
431             source: "elm";
432             script {
433                set_state(PART:"elm.swallow.content", "hide", 0.0);
434                run_program(PROGRAM:"check_location");
435             }
436          }
437          program { name: "show_controlbar";
438             signal: "elm,state,show,controlbar";
439             source: "elm";
440             script {
441                set_state(PART:"elm.swallow.controlbar", "show", 0.0);
442                run_program(PROGRAM:"check_location");
443             }
444          }
445          program { name: "hide_controlbar";
446             signal: "elm,state,hide,controlbar";
447             source: "elm";
448             script {
449                set_state(PART:"elm.swallow.controlbar", "default", 0.0);
450                run_program(PROGRAM:"check_location");
451             }
452          }
453          program { name: "check_location";
454             script {
455                new st[30];
456                new Float:vl;
457                new navi_bar = 0, content = 0, controlbar = 0;
458
459                get_state(PART:"elm.swallow.navi_bar", st, 30, vl)
460                if (!strncmp(st, "show", 4))  navi_bar = 1;
461                get_state(PART:"elm.swallow.content", st, 30, vl)
462                if (!strncmp(st, "show", 4))  content = 1;
463                get_state(PART:"elm.swallow.controlbar", st, 30, vl)
464                if (!strncmp(st, "show", 4))  controlbar = 1;
465
466                // set navi bar
467                if (navi_bar == 1) {
468                   set_state(PART:"elm.swallow.navi_bar", "show", 0.0)
469                }
470
471                // set content
472                if (content == 1) {
473                   if (navi_bar == 1) {
474                      set_state(PART:"elm.swallow.content", "show_with_navi_bar", 0.0)
475                   } else {
476                      set_state(PART:"elm.swallow.content", "show", 0.0)
477                   }
478                   get_state(PART:"elm.swallow.content", st, 30, vl)
479
480                   if (controlbar == 1) {
481                      set_state(PART:"elm.swallow.content", st, 1.0)
482                   }
483                }
484             }
485          }
486       }
487    }
488
489    /************************************************************/
490    /* elm_layout -> fundamental template style with fastscroll */
491    /************************************************************/
492    group { name: "elm/layout/application/fastscroll";
493       parts {
494          part {
495             name: "bg";
496             type: RECT;
497             scale: 1;
498             description {
499                state: "default" 0.0;
500                color: 0 0 0 0;
501             }
502          }
503          part {
504             name: "right.padding";
505             type: RECT;
506             scale: 1;
507             description {
508                state: "default" 0.0;
509                rel1.relative: 1.0 0.0;
510                align: 1.0 0.5;
511                min: INDEX_ITEM_WIDTH_INC 0;
512                visible: 0;
513             }
514          }
515          part {
516             name: "elm.swallow.content";
517             type: SWALLOW;
518             scale: 1;
519             description {
520                state: "default" 0.0;
521                rel2 {
522                   to: "right.padding";
523                   relative: 0.0 1.0;
524                }
525             }
526          }
527          part {
528             name: "elm.swallow.fastscroll";
529             type: SWALLOW;
530             scale: 1;
531             description {
532                state: "default" 0.0;
533             }
534          }
535       }
536    }
537 group { name: "elm/layout/editfield/default";
538    images {
539       image: "00_edit_field_clear.png" COMP;
540    }
541    parts {
542       part {
543          name: "base";
544          type: RECT;
545          scale: 1;
546          ignore_flags: ON_HOLD;
547          description {
548             state: "default" 0.0;
549             min: 0 EDITFIELD_DEFAULT_MINH_INC;
550             color: 0 0 0 0;
551          }
552       }
553       part {
554          name: "top1";
555          type: RECT;
556          scale: 1;
557          ignore_flags: ON_HOLD;
558          description {
559             state: "default" 0.0;
560             visible: 0;
561             min: 0 EDITFIELD_DEFAULT_TOP1_SINGLE_INC;
562             fixed: 1 1;
563             rel1.relative: 0.0 0.0;
564             rel2.relative: 1.0 0.0;
565             align: 0.5 0;
566          }
567       }
568       part {
569          name: "left1";
570          type: RECT;
571          scale: 1;
572          ignore_flags: ON_HOLD;
573          description {
574             state: "default" 0.0;
575             visible: 0;
576             min: EDITFIELD_DEFAULT_LEFT1_INC 0;
577             fixed: 1 1;
578             align: 0 0;
579             rel1.relative : 0.0 0.0;
580             rel2.relative : 0.0 1.0;
581          }
582       }
583       part {
584          name: "right1";
585          type: RECT;
586          scale: 1;
587          ignore_flags: ON_HOLD;
588          description {
589             state: "default" 0.0;
590             visible: 0;
591             min: EDITFIELD_DEFAULT_RIGHT1_ERASER_SHOW_INC 0;
592             fixed: 1 1;
593             align: 1 0;
594             rel1.relative : 1.0 0.0;
595             rel2.relative : 1.0 1.0;
596          }
597       }
598       part {
599          name: "right2";
600          type: RECT;
601          scale: 1;
602          ignore_flags: ON_HOLD;
603          description {
604             state: "default" 0.0;
605             visible: 0;
606             min: EDITFIELD_DEFAULT_RIGHT2_INC 0;
607             fixed: 1 1;
608             align: 1 0;
609             rel1.relative : 1.0 0.0;
610             rel2.relative : 1.0 1.0;
611          }
612       }
613       part {
614          name: "bottom1";
615          type: RECT;
616          scale: 1;
617          ignore_flags: ON_HOLD;
618          description {
619             state: "default" 0.0;
620             visible: 0;
621             min: 0 EDITFIELD_DEFAULT_BOTTOM1_SINGLE_INC;
622             fixed: 1 1;
623             align: 0 1;
624             rel1.relative: 0.0 1.0;
625          }
626       }
627       part {
628          name: "elm.guidetext";
629          type: TEXT;
630          scale: 1;
631          ignore_flags: ON_HOLD;
632          description {
633             state: "default" 0.0;
634             align: 0.0 0.0;
635             fixed: 1 1;
636             rel1.to: "elm.swallow.content";
637             rel2.to: "elm.swallow.content";
638             color: EDITFIELD_GUIDE_TEXT_COLOR_INC;
639             text {
640                font: "Tizen:style=Roman";
641                size: ENTRY_TEXT_SIZE_INC;
642                min: 0 0;
643                align: 0.0 0.5;
644                text_class: "tizen";
645             }
646          }
647          description {
648             state: "hidden" 0.0;
649             inherit: "default" 0.0;
650             visible: 0;
651          }
652       }
653       part {
654          name: "elm.swallow.content";
655          type: SWALLOW;
656          scale: 1;
657          ignore_flags: ON_HOLD;
658          description {
659             state: "default" 0.0;
660             min: 0 40;
661             rel1 {
662                relative : 1.0 1.0;
663                to_x: "left1";
664                to_y: "top1";
665             }
666             rel2 {
667                relative : 0.0 0.0;
668                to_x: "right1";
669                to_y: "bottom1";
670             }
671             align: 0.0 0.5;
672          }
673       }
674       part {
675          name: "eraser_image";
676          scale: 1;
677          clip_to: "eraser_image.clipper";
678          description {
679             state: "default" 0.0;
680             visible: 0;
681             min: EDITFIELD_DEFAULT_ERASER_MINW_INC EDITFIELD_DEFAULT_ERASER_MINH_INC;
682             fixed: 1 1;
683             align: 1 0.5;
684             rel1 {
685                relative: 0.0 0.5;
686                to_x : "right2";
687             }
688             rel2 {
689                relative: 0.0 0.5;
690                to_x : "right2";
691             }
692             image.normal: "00_edit_field_clear.png";
693          }
694          description {
695             state: "elm.eraser.show" 0.0;
696             inherit: "default" 0.0;
697             visible: 1;
698          }
699       }
700       part { name: "eraser_image.clipper";
701          type: RECT;
702          description { state: "default" 0.0;
703             color: 0 0 0 0;
704          }
705          description { state: "elm.eraser.show" 0.0;
706             color: EDITFIELD_ERASER_DEFAULT_COLOR_INC;
707          }
708          description { state: "elm.eraser.pressed" 0.0;
709             color: EDITFIELD_ERASER_PRESSED_COLOR_INC;
710          }
711       }
712       part {
713          name: "eraser";
714          type: RECT;
715          scale: 1;
716          mouse_events: 1;
717          description {
718             state: "default" 0.0;
719             visible: 0;
720             min: EDITFIELD_DEFAULT_ERASER_EVENT_MINW_INC EDITFIELD_DEFAULT_ERASER_EVENT_MINH_INC;
721             fixed: 1 1;
722             align: 1 0.5;
723             color: 0 0 0 0;
724             rel1 {
725                relative: 0.0 0.5;
726                to_x : "right2";
727             }
728             rel2 {
729                relative: 0.0 0.5;
730                to_x : "right2";
731             }
732          }
733          description {
734             state: "elm.eraser.show" 0.0;
735             inherit: "default" 0.0;
736             visible: 1;
737          }
738       }
739    }
740    programs {
741       program {
742          name: "guidetext_show";
743          signal: "elm,state,guidetext,show";
744          source: "elm";
745          action: STATE_SET "default" 0.0;
746          target: "elm.guidetext";
747       }
748       program {
749          name: "guidetext_hide";
750          signal: "elm,state,guidetext,hide";
751          source: "elm";
752          action: STATE_SET "hidden" 0.0;
753          target: "elm.guidetext";
754       }
755       program {
756          name: "eraser_show";
757          signal: "elm,state,eraser,show";
758          source: "elm";
759          action: STATE_SET "elm.eraser.show" 0.0;
760          target: "eraser_image";
761          target: "eraser_image.clipper";
762          target: "eraser";
763       }
764       program {
765          name: "eraser_hide";
766          signal: "elm,state,eraser,hide";
767          source: "elm";
768          action: STATE_SET "default" 0.0;
769          target: "eraser_image";
770          target: "eraser_image.clipper";
771          target: "eraser";
772       }
773       program {
774          name: "eraser_clicked";
775          signal: "mouse,clicked,1";
776          source: "eraser";
777          action: SIGNAL_EMIT "elm,eraser,clicked" "elm";
778       }
779       program {
780          name: "eraser_pressed";
781          signal: "mouse,down,1";
782          source: "eraser";
783          action: STATE_SET "elm.eraser.pressed" 0.0;
784          target: "eraser_image.clipper";
785       }
786       program {
787          name: "eraser_unpressed";
788          signal: "mouse,up,1";
789          source: "eraser";
790          action: STATE_SET "elm.eraser.show" 0.0;
791          target: "eraser_image.clipper";
792       }
793    }
794 }
795
796 group { name: "elm/layout/editfield/title";
797    images {
798       image: "00_edit_field_clear.png" COMP;
799    }
800    parts {
801       part {
802          name: "base";
803          type: RECT;
804          scale: 1;
805          ignore_flags: ON_HOLD;
806          description {
807             state: "default" 0.0;
808             min: 0 EDITFIELD_TITLE_MINH_INC;
809             color: 0 0 0 0;
810          }
811       }
812       part {
813          name: "top1";
814          type: RECT;
815          scale: 1;
816          ignore_flags: ON_HOLD;
817          description {
818             state: "default" 0.0;
819             visible: 0;
820             min: 0 EDITFIELD_DEFAULT_TOP1_MULTI_INC;
821             fixed: 1 1;
822             rel1.relative: 0.0 0.0;
823             rel2.relative: 1.0 0.0;
824             align: 0.5 0;
825          }
826       }
827       part {
828          name: "top2";
829          type: RECT;
830          scale: 1;
831          ignore_flags: ON_HOLD;
832          description {
833             state: "default" 0.0;
834             visible: 0;
835             min: 0 EDITFIELD_DEFAULT_TOP2_INC;
836             fixed: 1 1;
837             rel1.relative: 0.0 0.0;
838             rel2.relative: 1.0 0.0;
839             align: 0.5 0;
840          }
841       }
842       part {
843          name: "left1";
844          type: RECT;
845          scale: 1;
846          ignore_flags: ON_HOLD;
847          description {
848             state: "default" 0.0;
849             visible: 0;
850             min: EDITFIELD_DEFAULT_LEFT1_INC 0;
851             fixed: 1 1;
852             align: 0 0;
853             rel1.relative : 0.0 0.0;
854             rel2.relative : 0.0 1.0;
855          }
856       }
857       part {
858          name: "left2";
859          type: RECT;
860          scale: 1;
861          ignore_flags: ON_HOLD;
862          description {
863             state: "default" 0.0;
864             visible: 0;
865             min: EDITFIELD_DEFAULT_LEFT2_INC 0;
866             fixed: 1 1;
867             align: 0 0;
868             rel1.relative : 0.0 0.0;
869             rel2.relative : 0.0 1.0;
870          }
871       }
872       part {
873          name: "right1";
874          type: RECT;
875          scale: 1;
876          ignore_flags: ON_HOLD;
877          description {
878             state: "default" 0.0;
879             visible: 0;
880             min: EDITFIELD_DEFAULT_RIGHT1_ERASER_SHOW_INC 0;
881             fixed: 1 1;
882             align: 1 0;
883             rel1.relative : 1.0 0.0;
884             rel2.relative : 1.0 1.0;
885          }
886       }
887       part {
888          name: "right2";
889          type: RECT;
890          scale: 1;
891          ignore_flags: ON_HOLD;
892          description {
893             state: "default" 0.0;
894             visible: 0;
895             min: EDITFIELD_DEFAULT_RIGHT2_INC 0;
896             fixed: 1 1;
897             align: 1 0;
898             rel1.relative : 1.0 0.0;
899             rel2.relative : 1.0 1.0;
900          }
901       }
902       part {
903          name: "bottom1";
904          type: RECT;
905          scale: 1;
906          ignore_flags: ON_HOLD;
907          description {
908             state: "default" 0.0;
909             visible: 0;
910             min: 0 EDITFIELD_DEFAULT_BOTTOM1_MULTI_INC;
911             fixed: 1 1;
912             align: 0 1;
913             rel1.relative: 0.0 1.0;
914          }
915       }
916       part {
917          name: "bottom2";
918          type: RECT;
919          scale: 1;
920          ignore_flags: ON_HOLD;
921          description {
922             state: "default" 0.0;
923             visible: 0;
924             min: 0 EDITFIELD_DEFAULT_BOTTOM2_MULTI_INC;
925             fixed: 0 1;
926             rel1.relative: 0.0 1.0;
927             align: 0 1;
928          }
929       }
930       part {
931          name: "eraser_base";
932          type: RECT;
933          scale: 1;
934          ignore_flags: ON_HOLD;
935          description {
936             state: "default" 0.0;
937             visible: 0;
938             rel1 {
939                relative: 0.0 1.0;
940                to_y: "top1";
941             }
942          }
943       }
944       part {
945          name: "elm.text";
946          type: TEXT;
947          scale: 1;
948          ignore_flags: ON_HOLD;
949          description {
950             state: "default" 0.0;
951             align: 0.0 0.0;
952             min: 0 34;
953             fixed: 1 1;
954             rel1 {
955                relative: 1.0 1.0;
956                to_x: "left2";
957                to_y: "top2";
958             }
959             rel2 {
960                relative: 1.0 1.0;
961                to_x: "left2";
962                to_y: "top2";
963             }
964             color: EDITFIELD_TITLE_COLOR_INC;
965             text {
966                font: "Tizen:style=Medium";
967                size: EDITFIELD_TITLE_SIZE_INC;
968                min: 1 1;
969                align: 0.0 0.0;
970                text_class: "tizen";
971             }
972          }
973       }
974       part {
975          name: "elm.guidetext";
976          type: TEXT;
977          scale: 1;
978          ignore_flags: ON_HOLD;
979          description {
980             state: "default" 0.0;
981             align: 0.0 0.0;
982             fixed: 1 1;
983             rel1.to: "elm.swallow.content";
984             rel2.to: "elm.swallow.content";
985             color: EDITFIELD_GUIDE_TEXT_COLOR_INC;
986             text {
987                font: "Tizen:style=Roman";
988                size: ENTRY_TEXT_SIZE_INC;
989                min: 0 0;
990                align: 0.0 0.5;
991                text_class: "tizen";
992             }
993          }
994          description {
995             state: "hidden" 0.0;
996             inherit: "default" 0.0;
997             visible: 0;
998          }
999       }
1000       part {
1001          name: "elm.swallow.content";
1002          type: SWALLOW;
1003          scale: 1;
1004          ignore_flags: ON_HOLD;
1005          description {
1006             state: "default" 0.0;
1007             min: 0 40;
1008             rel1 {
1009                relative : 1.0 1.0;
1010                to_x: "left1";
1011                to_y: "top1";
1012             }
1013             rel2 {
1014                relative : 0.0 0.0;
1015                to_x: "right1";
1016                to_y: "bottom1";
1017             }
1018             align: 0.0 0.5;
1019          }
1020       }
1021       part {
1022          name: "eraser_image";
1023          scale: 1;
1024          clip_to: "eraser_image.clipper";
1025          description {
1026             state: "default" 0.0;
1027             visible: 0;
1028             min: EDITFIELD_DEFAULT_ERASER_MINW_INC EDITFIELD_DEFAULT_ERASER_MINH_INC;
1029             fixed: 1 1;
1030             align: 1 0.5;
1031             rel1 {
1032                relative: 0.0 0.5;
1033                to_x : "right2";
1034                to_y : "eraser_base";
1035             }
1036             rel2 {
1037                relative: 0.0 0.5;
1038                to_x : "right2";
1039                to_y : "eraser_base";
1040             }
1041             image.normal: "00_edit_field_clear.png";
1042          }
1043          description {
1044             state: "elm.eraser.show" 0.0;
1045             inherit: "default" 0.0;
1046             visible: 1;
1047          }
1048       }
1049       part { name: "eraser_image.clipper";
1050          type: RECT;
1051          description { state: "default" 0.0;
1052             color: 0 0 0 0;
1053          }
1054          description { state: "elm.eraser.show" 0.0;
1055             color: EDITFIELD_ERASER_DEFAULT_COLOR_INC;
1056          }
1057          description { state: "elm.eraser.pressed" 0.0;
1058             color: EDITFIELD_ERASER_PRESSED_COLOR_INC;
1059          }
1060       }
1061       part {
1062          name: "eraser";
1063          type: RECT;
1064          scale: 1;
1065          mouse_events: 1;
1066          description {
1067             state: "default" 0.0;
1068             visible: 0;
1069             min: EDITFIELD_DEFAULT_ERASER_EVENT_MINW_INC EDITFIELD_DEFAULT_ERASER_EVENT_MINH_INC;
1070             fixed: 1 1;
1071             align: 1 0.5;
1072             color: 0 0 0 0;
1073             rel1 {
1074                relative: 0.0 0.5;
1075                to_x : "right2";
1076                to_y : "eraser_base";
1077             }
1078             rel2 {
1079                relative: 0.0 0.5;
1080                to_x : "right2";
1081                to_y : "eraser_base";
1082             }
1083          }
1084          description {
1085             state: "elm.eraser.show" 0.0;
1086             inherit: "default" 0.0;
1087             visible: 1;
1088          }
1089       }
1090    }
1091    programs {
1092       program {
1093          name: "guidetext_show";
1094          signal: "elm,state,guidetext,show";
1095          source: "elm";
1096          action: STATE_SET "default" 0.0;
1097          target: "elm.guidetext";
1098       }
1099       program {
1100          name: "guidetext_hide";
1101          signal: "elm,state,guidetext,hide";
1102          source: "elm";
1103          action: STATE_SET "hidden" 0.0;
1104          target: "elm.guidetext";
1105       }
1106       program {
1107          name: "eraser_show";
1108          signal: "elm,state,eraser,show";
1109          source: "elm";
1110          action: STATE_SET "elm.eraser.show" 0.0;
1111          target: "eraser_image";
1112          target: "eraser_image.clipper";
1113          target: "eraser";
1114       }
1115       program {
1116          name: "eraser_hide";
1117          signal: "elm,state,eraser,hide";
1118          source: "elm";
1119          action: STATE_SET "default" 0.0;
1120          target: "eraser_image";
1121          target: "eraser_image.clipper";
1122          target: "eraser";
1123       }
1124       program {
1125          name: "eraser_clicked";
1126          signal: "mouse,clicked,1";
1127          source: "eraser";
1128          action: SIGNAL_EMIT "elm,eraser,clicked" "elm";
1129       }
1130       program {
1131          name: "eraser_pressed";
1132          signal: "mouse,down,1";
1133          source: "eraser";
1134          action: STATE_SET "elm.eraser.pressed" 0.0;
1135          target: "eraser_image.clipper";
1136       }
1137       program {
1138          name: "eraser_unpressed";
1139          signal: "mouse,up,1";
1140          source: "eraser";
1141          action: STATE_SET "elm.eraser.show" 0.0;
1142          target: "eraser_image.clipper";
1143       }
1144    }
1145 }
1146
1147 sounds {
1148    sample {
1149       name: "touch_sound" AS_IS;
1150       source: "S_Touch_30ms.wav";
1151    }
1152 }
1153
1154 group { name: "elm/layout/searchbar/default";
1155    images {
1156       image: "00_search_edit_field_bg.png" COMP;
1157    }
1158    parts {
1159       part { name: "inputfield_base";
1160          type: RECT;
1161          scale: 1;
1162          description { state: "default" 0.0;
1163             align: 0.0 0.0;
1164             visible: 0;
1165          }
1166       }
1167       part { name: "top_left_padding";
1168          type: RECT;
1169          mouse_events: 0;
1170          scale: 1;
1171          description {
1172             state: "default" 0.0;
1173             min: SEARCHBAR_LEFT_PADDING_INC SEARCHBAR_TOP_PADDING_INC;
1174             fixed: 1 1;
1175             align: 0.0 0.0;
1176             rel1 { relative: 0.0 0.0; to: "inputfield_base"; }
1177             rel2 { relative: 0.0 0.0; to: "inputfield_base"; }
1178             visible: 0;
1179          }
1180       }
1181       part { name: "bottom_right_padding";
1182          type: RECT;
1183          mouse_events: 0;
1184          scale: 1;
1185          description {
1186             state: "default" 0.0;
1187             min: SEARCHBAR_RIGHT_PADDING_INC SEARCHBAR_BOTTOM_PADDING_INC;
1188             fixed: 1 1;
1189             align: 1.0 1.0;
1190             rel1 { relative: 1.0 1.0; to: "inputfield_base"; }
1191             rel2 { relative: 1.0 1.0; to: "inputfield_base"; }
1192             visible: 0;
1193          }
1194       }
1195       part { name: "inputfield_rect";
1196          type: IMAGE;
1197          scale: 1;
1198          description { state: "default" 0.0;
1199             min: SEARCHBAR_WIDTH_INC SEARCHBAR_HEIGHT_INC;
1200             align: 0.0 0.5;
1201             image {
1202                normal: "00_search_edit_field_bg.png";
1203                border: SEARCHBAR_INPUTFIELD_BORDER_INC;
1204             }
1205             rel1 { relative: 1.0 1.0; to: "top_left_padding"; }
1206             rel2 { relative: 0.0 0.0; to: "bottom_right_padding"; }
1207          }
1208       }
1209       part { name: "left_padding_search_textfield";
1210          type: RECT;
1211          scale: 1;
1212          description { state: "default" 0.0;
1213             visible: 0;
1214             min: SEARCHBAR_LEFT_PADDING_SEARCHFIELD_INC 0;
1215             fixed: 1 0;
1216             align: 0.0 0.5;
1217             rel1 {
1218                relative: 0.0 0.0;
1219                to: "inputfield_rect";
1220             }
1221             rel2 {
1222                relative: 0.0 1.0;
1223                to: "inputfield_rect";
1224             }
1225          }
1226       }
1227       part { name: "right_padding_search_textfield";
1228          type: RECT;
1229          scale: 1;
1230          description { state: "default" 0.0;
1231             visible: 0;
1232             min: SEARCHBAR_RIGHT_PADDING_SEARCHFIELD_INC 0;
1233             fixed: 1 0;
1234             align: 1.0 0.5;
1235             rel1 {
1236                relative: 1.0 0.0;
1237                to: "inputfield_rect";
1238             }
1239             rel2 {
1240                relative: 1.0 1.0;
1241                to: "inputfield_rect";
1242             }
1243          }
1244       }
1245       part { name: "search_textfield";
1246          type: RECT;
1247          mouse_events: 1;
1248          scale: 1;
1249          ignore_flags: ON_HOLD;
1250          description { state: "default" 0.0;
1251             color: 0 0 0 0;
1252             min: 1 SEARCHBAR_SEARCH_TEXTFIELD_H_INC;
1253             fixed: 0 1;
1254             align: 0.0 0.5;
1255             rel1 {
1256                relative: 1.0 0.0;
1257                to: "left_padding_search_textfield";
1258             }
1259             rel2 {
1260                relative: 0.0 1.0;
1261                to: "right_padding_search_textfield";
1262             }
1263          }
1264       }
1265       part { name: "top1";
1266          type: RECT;
1267          scale: 1;
1268          ignore_flags: ON_HOLD;
1269          description { state: "default" 0.0;
1270             visible: 0;
1271             min: 0 EDITFIELD_SEARCHBAR_TOP1_SINGLE_INC;
1272             fixed: 1 1;
1273             rel1 {
1274                relative: 0.0 0.0;
1275                to: "search_textfield";
1276             }
1277             rel2 {
1278                relative: 1.0 0.0;
1279                to: "search_textfield";
1280             }
1281             align: 0.5 0;
1282          }
1283          description { state: "elm.text.show" 0.0;
1284             inherit: "default" 0.0;
1285             min: 0 EDITFIELD_SEARCHBAR_TOP1_MULTI_INC;
1286          }
1287       }
1288       part { name: "top2";
1289          type: RECT;
1290          scale: 1;
1291          ignore_flags: ON_HOLD;
1292          description { state: "default" 0.0;
1293             visible: 0;
1294             min: 0 EDITFIELD_SEARCHBAR_TOP2_INC;
1295             fixed: 1 1;
1296             rel1 {
1297                relative: 0.0 0.0;
1298                to: "search_textfield";
1299             }
1300             rel2 {
1301                relative: 1.0 0.0;
1302                to: "search_textfield";
1303             }
1304             align: 0.5 0;
1305          }
1306       }
1307       part { name: "left1";
1308          type: RECT;
1309          scale: 1;
1310          ignore_flags: ON_HOLD;
1311          description { state: "default" 0.0;
1312             visible: 0;
1313             min: EDITFIELD_SEARCHBAR_LEFT1_INC 0;
1314             fixed: 1 1;
1315             align: 0 0;
1316             rel1 {
1317                relative: 0.0 0.0;
1318                to: "search_textfield";
1319             }
1320             rel2 {
1321                relative: 0.0 1.0;
1322                to: "search_textfield";
1323             }
1324          }
1325       }
1326       part { name: "left2";
1327          type: RECT;
1328          scale: 1;
1329          ignore_flags: ON_HOLD;
1330          description { state: "default" 0.0;
1331             visible: 0;
1332             min: EDITFIELD_SEARCHBAR_LEFT2_INC 0;
1333             fixed: 1 1;
1334             align: 0 0;
1335             rel1 {
1336                relative: 0.0 0.0;
1337                to: "search_textfield";
1338             }
1339             rel2 {
1340                relative: 0.0 1.0;
1341                to: "search_textfield";
1342             }
1343          }
1344       }
1345       part { name: "right2";
1346          type: RECT;
1347          scale: 1;
1348          ignore_flags: ON_HOLD;
1349          description { state: "default" 0.0;
1350             visible: 0;
1351             min: EDITFIELD_SEARCHBAR_RIGHT2_INC 0;
1352             fixed: 1 1;
1353             align: 1 0;
1354             rel1 {
1355                relative: 1.0 0.0;
1356                to: "search_textfield";
1357             }
1358             rel2.to: "search_textfield";
1359          }
1360       }
1361       part { name: "bottom1";
1362          type: RECT;
1363          scale: 1;
1364          ignore_flags: ON_HOLD;
1365          description { state: "default" 0.0;
1366             visible: 0;
1367             min: 0 EDITFIELD_SEARCHBAR_BOTTOM1_SINGLE_INC;
1368             fixed: 1 1;
1369             align: 0 1;
1370             rel1 {
1371                relative: 0.0 1.0;
1372                to: "search_textfield";
1373             }
1374          }
1375          description { state: "elm.text.show" 0.0;
1376             inherit: "default" 0.0;
1377             min: 0 EDITFIELD_SEARCHBAR_BOTTOM1_MULTI_INC;
1378          }
1379       }
1380       part { name: "bottom2";
1381          type: RECT;
1382          scale: 1;
1383          ignore_flags: ON_HOLD;
1384          description { state: "default" 0.0;
1385             visible: 0;
1386             min: 0 EDITFIELD_SEARCHBAR_BOTTOM2_SINGLE_INC;
1387             fixed: 0 1;
1388             rel1 {
1389                relative: 0.0 1.0;
1390                to: "search_textfield";
1391             }
1392             align: 0 1;
1393          }
1394          description { state: "elm.text.show" 0.0;
1395             inherit: "default" 0.0;
1396             min: 0 EDITFIELD_SEARCHBAR_BOTTOM2_MULTI_INC;
1397          }
1398       }
1399       part { name: "bottom3";
1400          type: RECT;
1401          scale: 1;
1402          ignore_flags: ON_HOLD;
1403          description { state: "default" 0.0;
1404             visible: 0;
1405             min: 0 EDITFIELD_SEARCHBAR_BOTTOM3_SINGLE_INC;
1406             fixed: 0 1;
1407             rel1 {
1408                relative: 0.0 1.0;
1409                to: "search_textfield";
1410             }
1411             align: 0 1;
1412          }
1413          description { state: "elm.text.show" 0.0;
1414             inherit: "default" 0.0;
1415             min: 0 EDITFIELD_SEARCHBAR_BOTTOM3_MULTI_INC;
1416          }
1417       }
1418       part { name: "elm.text";
1419          type: TEXT;
1420          scale: 1;
1421          ignore_flags: ON_HOLD;
1422          description { state: "default" 0.0;
1423             visible: 0;
1424             align: 0.0 0.0;
1425             min: 0 32;
1426             fixed: 1 1;
1427             rel1 {
1428                relative: 1.0 1.0;
1429                to_x: "left2";
1430                to_y: "top2";
1431             }
1432             rel2 {
1433                relative: 1.0 1.0;
1434                to_x: "left2";
1435                to_y: "top2";
1436             }
1437             color: EDITFIELD_TITLE_COLOR_INC;
1438             text {
1439                font: "Tizen:style=Medium";
1440                size: EDITFIELD_TITLE_SIZE_INC;
1441                min: 1 1;
1442                align: 0.0 0.0;
1443                text_class: "tizen";
1444             }
1445          }
1446          description { state: "elm.text.show" 0.0;
1447             inherit: "default" 0.0;
1448             visible: 1;
1449          }
1450       }
1451       part {
1452          name: "elm.swallow.content";
1453          type: SWALLOW;
1454          scale: 1;
1455          ignore_flags: ON_HOLD;
1456          description { state: "default" 0.0;
1457             min: 0 40;
1458             rel1 {
1459                relative : 1.0 1.0;
1460                to_x: "left1";
1461                to_y: "top1";
1462             }
1463             rel2 {
1464                relative : 0.0 0.0;
1465                to_x: "right2";
1466                to_y: "bottom1";
1467             }
1468             align: 0.0 0.5;
1469          }
1470       }
1471    }
1472    programs {
1473       program {
1474          name: "label_show";
1475          signal: "elm,state,title,show";
1476          source: "elm";
1477          action: STATE_SET "elm.text.show" 0.0;
1478          target: "elm.text";
1479          target: "top1";
1480          target: "bottom1";
1481          target: "bottom2";
1482          target: "bottom3";
1483       }
1484       program {
1485          name: "label_hide";
1486          signal: "elm,state,title,hide";
1487          source: "elm";
1488          action: STATE_SET "default" 0.0;
1489          target: "elm.text";
1490          target: "top1";
1491          target: "bottom1";
1492          target: "bottom2";
1493          target: "bottom3";
1494       }
1495      program {
1496          name: "bg_clicked";
1497          signal: "mouse,clicked,1";
1498          source: "search_textfield";
1499          action: SIGNAL_EMIT "elm,bg,clicked" "elm";
1500       }
1501       program {
1502          name: "sound_play";
1503          signal: "mouse,clicked,1";
1504          source: "elm.text";
1505          action: PLAY_SAMPLE "touch_sound" 1.0;
1506       }
1507    }
1508 }
1509
1510 group { name: "elm/layout/searchbar/cancel_button";
1511    images {
1512       image: "00_search_edit_field_bg.png" COMP;
1513       image: "00_search_edit_field_bg_focus.png" COMP;
1514    }
1515    parts {
1516      part { name: "top_padding_rect";
1517          type: RECT;
1518          scale: 1;
1519          description { state: "default" 0.0;
1520             visible: 0;
1521             min: 0 SEARCHBAR_TOP_PADDING_INC;
1522             fixed: 0 1;
1523             align: 0 0;
1524             rel2.relative: 1.0 0.0;
1525          }
1526       }
1527       part { name: "bottom_padding_rect";
1528          type: RECT;
1529          scale: 1;
1530          description { state: "default" 0.0;
1531             visible: 0;
1532             min: 0 SEARCHBAR_BOTTOM_PADDING_INC;
1533             fixed: 0 1;
1534             align: 0 1;
1535             rel1.relative: 0.0 1.0;
1536          }
1537       }
1538       part { name: "base_bg";
1539          type: RECT;
1540          scale: 1;
1541          description { state: "default" 0.0;
1542             visible: 0;
1543             min: 0 SEARCHBAR_HEIGHT_INC;
1544             align: 0 0.5;
1545             fixed: 0 1;
1546             rel1 {
1547                relative: 0.0 1.0;
1548                to: "top_padding_rect";
1549             }
1550             rel2 {
1551                relative: 1.0 0.0;
1552                to: "bottom_padding_rect";
1553             }
1554          }
1555       }
1556       part { name: "left_padding_rect";
1557          type: RECT;
1558          scale: 1;
1559          description { state: "default" 0.0;
1560             visible: 0;
1561             min: SEARCHBAR_LEFT_PADDING_INC 0;
1562             fixed: 1 0;
1563             align: 0 0;
1564             rel2.relative: 0.0 1.0;
1565          }
1566       }
1567       part { name: "right_padding_rect";
1568          type: RECT;
1569          scale: 1;
1570          description { state: "default" 0.0;
1571             visible: 0;
1572             min: SEARCHBAR_RIGHT_PADDING_INC 0;
1573             fixed: 1 0;
1574             align: 1.0 0.0;
1575             rel1.relative: 1.0 0.0;
1576          }
1577          description { state: "in" 0.0;
1578             inherit: "default" 0.0;
1579             min: SEARCHBAR_CANCEL_BUTTON_WITH_DOUBLE_PADDING_W_INC 0;
1580          }
1581       }
1582       part { name: "inputfield_rect";
1583          type: IMAGE;
1584          scale: 1;
1585          description { state: "default" 0.0;
1586             align: 0.0 0.5;
1587             min: SEARCHBAR_WIDTH_INC 1;
1588             rel1 {
1589                relative: 1.0 0.0;
1590                to_x: "left_padding_rect";
1591                to_y: "base_bg";
1592             }
1593             rel2 {
1594                relative: 0.0 1.0;
1595                to_x: "right_padding_rect";
1596                to_y: "base_bg";
1597             }
1598             image {
1599                normal: "00_search_edit_field_bg.png";
1600                border: SEARCHBAR_INPUTFIELD_BORDER_INC;
1601             }
1602          }
1603       }
1604       part {
1605          name: "focus_image";
1606          mouse_events:1;
1607          scale: 1;
1608          description {
1609             state: "default" 0.0;
1610             visible: 0;
1611             image.normal: "00_search_edit_field_bg_focus.png";
1612             image.border: SEARCHBAR_INPUTFIELD_BORDER_INC;
1613             image.border_scale: 1;
1614             rel1.to: "inputfield_rect";
1615             rel2.to: "inputfield_rect";
1616          }
1617          description {
1618             state: "in" 0.0;
1619             inherit: "default" 0.0;
1620             visible: 1;
1621          }
1622       }
1623       part { name: "right_btn_padding_rect";
1624          type: RECT;
1625          scale: 1;
1626          description { state: "default" 0.0;
1627             visible: 0;
1628             min: SEARCHBAR_RIGHT_PADDING_INC 0;
1629             fixed: 1 0;
1630             align: 0.0 0.0;
1631             rel1.relative: 1.0 0.0;
1632             rel1.to: "inputfield_rect";
1633             rel2.relative: 1.0 1.0;
1634             rel2.to: "inputfield_rect";
1635          }
1636          description { state: "in" 0.0;
1637             inherit: "default" 0.0;
1638             min: SEARCHBAR_CANCEL_BUTTON_LEFT_PADDING_INC 0;
1639          }
1640       }
1641       part { name: "left_icon_padding_rect";
1642          type: RECT;
1643          scale: 1;
1644          description { state: "default" 0.0;
1645             visible: 0;
1646             min: SEARCHBAR_LEFT_ICON_PADDING_INC 0;
1647             fixed: 1 0;
1648             align: 0 0;
1649             rel1.to: "inputfield_rect";
1650             rel2 {
1651                relative: 0.0 1.0;
1652                to: "inputfield_rect";
1653             }
1654          }
1655       }
1656       part { name: "left_padding_search_textfield";
1657          type: RECT;
1658          scale: 1;
1659          description { state: "default" 0.0;
1660             visible: 0;
1661             min: SEARCHBAR_LEFT_PADDING_SEARCHFIELD_INC 0;
1662             fixed: 1 0;
1663             align: 0.0 0.5;
1664             rel1 {
1665                relative: 0.0 0.0;
1666                to: "inputfield_rect";
1667             }
1668             rel2 {
1669                relative: 0.0 1.0;
1670                to: "inputfield_rect";
1671             }
1672          }
1673       }
1674       part { name: "right_padding_search_textfield";
1675          type: RECT;
1676          scale: 1;
1677          description { state: "default" 0.0;
1678             visible: 0;
1679             min: SEARCHBAR_RIGHT_PADDING_SEARCHFIELD_INC 0;
1680             fixed: 1 0;
1681             align: 1.0 0.5;
1682             rel1 {
1683                relative: 1.0 0.0;
1684                to: "inputfield_rect";
1685             }
1686             rel2 {
1687                relative: 1.0 1.0;
1688                to: "inputfield_rect";
1689             }
1690          }
1691       }
1692       part { name: "search_textfield";
1693          type: RECT;
1694          mouse_events: 1;
1695          scale: 1;
1696          ignore_flags: ON_HOLD;
1697          description { state: "default" 0.0;
1698             visible: 0;
1699             min: 1 SEARCHBAR_SEARCH_TEXTFIELD_H_INC;
1700             fixed: 0 1;
1701             align: 0.0 0.5;
1702             rel1 {
1703                relative: 1.0 0.0;
1704                to: "left_padding_search_textfield";
1705             }
1706             rel2 {
1707                relative: 0.0 1.0;
1708                to: "right_padding_search_textfield";
1709             }
1710          }
1711       }
1712       part { name: "button_cancel";
1713          type: SWALLOW;
1714          mouse_events: 1;
1715          scale: 1;
1716          description { state: "default" 0.0;
1717             fixed: 1 1;
1718             min: SEARCHBAR_CANCEL_BUTTON_W_INC 0;
1719             align: 0.0 0.5;
1720             state: "default" 0.0;
1721             rel1 {
1722                relative: 1.0 1.0;
1723                to_x: "right_btn_padding_rect";
1724                to_y: "top_padding_rect";
1725             }
1726             rel2 {
1727                relative: 1.0 0.0;
1728                to_x: "right_btn_padding_rect";
1729                to_y: "bottom_padding_rect";
1730             }
1731          }
1732       }
1733       part { name: "top1";
1734          type: RECT;
1735          scale: 1;
1736          ignore_flags: ON_HOLD;
1737          description { state: "default" 0.0;
1738             visible: 0;
1739             min: 0 EDITFIELD_SEARCHBAR_TOP1_SINGLE_INC;
1740             fixed: 1 1;
1741             rel1 {
1742                relative: 0.0 0.0;
1743                to: "search_textfield";
1744             }
1745             rel2 {
1746                relative: 1.0 0.0;
1747                to: "search_textfield";
1748             }
1749             align: 0.5 0;
1750          }
1751          description { state: "elm.text.show" 0.0;
1752             inherit: "default" 0.0;
1753             min: 0 EDITFIELD_SEARCHBAR_TOP1_MULTI_INC;
1754          }
1755       }
1756       part { name: "top2";
1757          type: RECT;
1758          scale: 1;
1759          ignore_flags: ON_HOLD;
1760          description { state: "default" 0.0;
1761             visible: 0;
1762             min: 0 EDITFIELD_SEARCHBAR_TOP2_INC;
1763             fixed: 1 1;
1764             rel1 {
1765                relative: 0.0 0.0;
1766                to: "search_textfield";
1767             }
1768             rel2 {
1769                relative: 1.0 0.0;
1770                to: "search_textfield";
1771             }
1772             align: 0.5 0;
1773          }
1774       }
1775       part { name: "left1";
1776          type: RECT;
1777          scale: 1;
1778          ignore_flags: ON_HOLD;
1779          description { state: "default" 0.0;
1780             visible: 0;
1781             min: EDITFIELD_SEARCHBAR_LEFT1_INC 0;
1782             fixed: 1 1;
1783             align: 0 0;
1784             rel1 {
1785                relative: 0.0 0.0;
1786                to: "search_textfield";
1787             }
1788             rel2 {
1789                relative: 0.0 1.0;
1790                to: "search_textfield";
1791             }
1792          }
1793       }
1794       part { name: "left2";
1795          type: RECT;
1796          scale: 1;
1797          ignore_flags: ON_HOLD;
1798          description { state: "default" 0.0;
1799             visible: 0;
1800             min: EDITFIELD_SEARCHBAR_LEFT2_INC 0;
1801             fixed: 1 1;
1802             align: 0 0;
1803             rel1 {
1804                relative: 0.0 0.0;
1805                to: "search_textfield";
1806             }
1807             rel2 {
1808                relative: 0.0 1.0;
1809                to: "search_textfield";
1810             }
1811          }
1812       }
1813       part { name: "right2";
1814          type: RECT;
1815          scale: 1;
1816          ignore_flags: ON_HOLD;
1817          description { state: "default" 0.0;
1818             visible: 0;
1819             min: EDITFIELD_SEARCHBAR_RIGHT2_INC 0;
1820             fixed: 1 1;
1821             align: 1 0;
1822             rel1 {
1823                relative: 1.0 0.0;
1824                to: "search_textfield";
1825             }
1826             rel2.to: "search_textfield";
1827          }
1828       }
1829       part { name: "bottom1";
1830          type: RECT;
1831          scale: 1;
1832          ignore_flags: ON_HOLD;
1833          description { state: "default" 0.0;
1834             visible: 0;
1835             min: 0 EDITFIELD_SEARCHBAR_BOTTOM1_SINGLE_INC;
1836             fixed: 1 1;
1837             align: 0 1;
1838             rel1 {
1839                relative: 0.0 1.0;
1840                to: "search_textfield";
1841             }
1842             rel2.to: "search_textfield";
1843          }
1844          description { state: "elm.text.show" 0.0;
1845             inherit: "default" 0.0;
1846             min: 0 EDITFIELD_SEARCHBAR_BOTTOM1_MULTI_INC;
1847          }
1848       }
1849       part { name: "bottom2";
1850          type: RECT;
1851          scale: 1;
1852          ignore_flags: ON_HOLD;
1853          description { state: "default" 0.0;
1854             visible: 0;
1855             min: 0 EDITFIELD_SEARCHBAR_BOTTOM2_SINGLE_INC;
1856             fixed: 0 1;
1857             rel1 {
1858                relative: 0.0 1.0;
1859                to: "search_textfield";
1860             }
1861             rel2.to: "search_textfield";
1862             align: 0 1;
1863          }
1864          description { state: "elm.text.show" 0.0;
1865             inherit: "default" 0.0;
1866             min: 0 EDITFIELD_SEARCHBAR_BOTTOM2_MULTI_INC;
1867          }
1868       }
1869       part { name: "bottom3";
1870          type: RECT;
1871          scale: 1;
1872          ignore_flags: ON_HOLD;
1873          description { state: "default" 0.0;
1874             visible: 0;
1875             min: 0 EDITFIELD_SEARCHBAR_BOTTOM3_SINGLE_INC;
1876             fixed: 0 1;
1877             rel1 {
1878                relative: 0.0 1.0;
1879                to: "search_textfield";
1880             }
1881             rel2.to: "search_textfield";
1882             align: 0 1;
1883          }
1884          description { state: "elm.text.show" 0.0;
1885             inherit: "default" 0.0;
1886             min: 0 EDITFIELD_SEARCHBAR_BOTTOM3_MULTI_INC;
1887          }
1888       }
1889       part { name: "elm.text";
1890          type: TEXT;
1891          scale: 1;
1892          ignore_flags: ON_HOLD;
1893          description { state: "default" 0.0;
1894             visible: 0;
1895             align: 0.0 0.0;
1896             min: 0 34;
1897             fixed: 1 1;
1898             rel1 {
1899                relative: 1.0 1.0;
1900                to_x: "left2";
1901                to_y: "top2";
1902             }
1903             rel2 {
1904                relative: 1.0 1.0;
1905                to_x: "left2";
1906                to_y: "top2";
1907             }
1908             color: EDITFIELD_TITLE_COLOR_INC;
1909             text {
1910                font: "Tizen:style=Medium";
1911                size: EDITFIELD_TITLE_SIZE_INC;
1912                min: 1 1;
1913                align: 0.0 0.0;
1914                text_class: "tizen";
1915             }
1916          }
1917          description { state: "elm.text.show" 0.0;
1918             inherit: "default" 0.0;
1919             visible: 1;
1920          }
1921       }
1922       part {
1923          name: "elm.swallow.content";
1924          type: SWALLOW;
1925          scale: 1;
1926          ignore_flags: ON_HOLD;
1927          description { state: "default" 0.0;
1928             min: 0 40;
1929             rel1 {
1930                relative : 1.0 1.0;
1931                to_x: "left1";
1932                to_y: "top1";
1933             }
1934             rel2 {
1935                relative : 0.0 0.0;
1936                to_x: "right2";
1937                to_y: "bottom1";
1938             }
1939             align: 0.0 0.5;
1940          }
1941       }
1942    }
1943    programs {
1944       program {
1945          name: "label_show";
1946          signal: "elm,state,title,show";
1947          source: "elm";
1948          action: STATE_SET "elm.text.show" 0.0;
1949          target: "elm.text";
1950          target: "top1";
1951          target: "bottom1";
1952          target: "bottom2";
1953          target: "bottom3";
1954       }
1955       program {
1956          name: "label_hide";
1957          signal: "elm,state,title,hide";
1958          source: "elm";
1959          action: STATE_SET "default" 0.0;
1960          target: "elm.text";
1961          target: "top1";
1962          target: "bottom1";
1963          target: "bottom2";
1964          target: "bottom3";
1965       }
1966       program {
1967          name: "sound_play";
1968          signal: "mouse,clicked,1";
1969          source: "elm.text";
1970          action: PLAY_SAMPLE "touch_sound" 1.0;
1971       }
1972      program {
1973          name: "bg_clicked";
1974          signal: "mouse,clicked,1";
1975          source: "search_textfield";
1976          action: SIGNAL_EMIT "elm,bg,clicked" "elm";
1977       }
1978       program { name: "cancel_in";
1979          signal: "cancel,in";
1980          source: "";
1981          action: STATE_SET "in" 0.0;
1982          target: "right_padding_rect";
1983          target: "right_btn_padding_rect";
1984          target: "focus_image";
1985          transition: LINEAR 0.3;
1986       }
1987       program { name: "cancel_out";
1988          signal: "cancel,out";
1989          source: "";
1990          action: STATE_SET "default" 0.0;
1991          target: "right_padding_rect";
1992          target: "right_btn_padding_rect";
1993          target: "focus_image";
1994          transition: LINEAR 0.3;
1995       }
1996       program { name: "cancel_show";
1997          signal: "cancel,show";
1998          source: "";
1999          action: STATE_SET "in" 0.0;
2000          target: "focus_image";
2001          target: "right_padding_rect";
2002          target: "right_btn_padding_rect";
2003       }
2004       program { name: "cancel_hide";
2005          signal: "cancel,hide";
2006          source: "";
2007          action: STATE_SET "default" 0.0;
2008          target: "focus_image";
2009          target: "right_padding_rect";
2010          target: "right_btn_padding_rect";
2011       }
2012       program { name: "mouse_click";
2013          signal: "mouse,clicked,1";
2014          source: "search_icon";
2015          action: SIGNAL_EMIT "elm,action,click" "";
2016       }
2017    }
2018 }
2019
2020 group {
2021    name: "elm/layout/nocontents/full";
2022    alias: "elm/nocontents/base/full";
2023    alias: "elm/nocontents/base/default";
2024    styles{
2025       style { name: "nocontent_style";
2026          base: "font=Tizen:style=Regular font_size="NOCONTENT_TEXT_BLOCK_TEXT_SIZE_INC" align=center color=#ffffff wrap=mixed ellipsis=1.0 text_class=tizen";
2027          tag:  "br" "\n";
2028          tag:  "hilight" "+ font=Tizen:style=Bold";
2029          tag:  "b" "+ font=Tizen:style=Bold";
2030          tag:  "tab" "\t";
2031       }
2032    }
2033    images {
2034       image: "00_nocontents_picture.png" COMP;
2035    }
2036    parts {
2037       part { name: "bg";
2038          type: RECT;
2039          scale: 1;
2040          description { state: "default" 0.0;
2041             color: NOCONTENT_BG_COLOR_INC;
2042             rel2 {
2043                relative: 1.0 1.0;
2044                to_y: "pad_b";
2045             }
2046          }
2047       }
2048       part { name: "nocontents.image";
2049          scale: 1;
2050          description { state: "default" 0.0;
2051             fixed: 1 1;
2052             min: NOCONTENT_IMAGE_WIDTH_HEIGHT_INC;
2053             rel1 {
2054                relative: 0.5 0.5;
2055                to: "bg";
2056             }
2057             rel2 {
2058                relative: 0.5 0.5;
2059                to: "bg";
2060             }
2061             image {
2062                normal: "00_nocontents_picture.png";
2063             }
2064             color: NOCONTENT_IMAGE_COLOR_INC;
2065             aspect: 1.0 1.0;
2066             aspect_preference: BOTH;
2067          }
2068       }
2069       part { name: "middle.padding";
2070          type: RECT;
2071          scale: 1;
2072          description { state: "default" 0.0;
2073             visible: 0;
2074             min: 0 NOCONTENT_MIDDLE_PADDING_INC;
2075             align: 0.5 0.0;
2076             fixed: 0 1;
2077             rel1 {
2078                relative: 0.0 1.0;
2079                to: "nocontents.image";
2080             }
2081             rel2 {
2082                relative: 1.0 1.0;
2083                to: "nocontents.image";
2084             }
2085          }
2086       }
2087       part { name: "elm.text";
2088          type: TEXTBLOCK;
2089          scale: 1;
2090          description { state: "default" 0.0;
2091             min: NOCONTENT_TEXT_STYLE_BG_MIN_INC;
2092             max: 9999 NO_CONTENT_TEXT_STYLE_BG_HEIGHT_INC;
2093             fixed: 1 1;
2094             rel1 {
2095                relative: 0.14 1.0;
2096                to_x: "bg";
2097                to_y: "middle.padding";
2098             }
2099             rel2 {
2100                relative: 0.86 1.0;
2101                to_x: "bg";
2102                to_y: "middle.padding";
2103             }
2104             color: NOCONTENT_TEXT_BLOCK_STYLE_COLOR_INC;
2105             text {
2106                style: "nocontent_style";
2107                min: 0 1;
2108                max: 0 1;
2109             }
2110          }
2111       }
2112       part { name: "pad_b";
2113          scale : 1;
2114          mouse_events: 0;
2115          type: RECT;
2116          description { state: "default" 0.0;
2117             align: 0.0 1.0;
2118             min: 0 0;
2119             visible: 0;
2120             fixed: 0 1;
2121             rel1.relative: 0.0 1.0;
2122          }
2123       }
2124    }
2125 }
2126
2127 group {
2128    name: "elm/layout/nocontents/multimedia";
2129    alias: "elm/nocontents/base/multimedia";
2130    inherit: "elm/layout/nocontents/full";
2131    images {
2132       image: "00_nocontents_multimedia.png" COMP;
2133    }
2134    parts {
2135       part { name: "nocontents.image";
2136          description { state: "default" 0.0;
2137             image {
2138                normal: "00_nocontents_multimedia.png";
2139             }
2140          }
2141       }
2142    }
2143 }
2144
2145 group {
2146    name: "elm/layout/nocontents/text";
2147    alias: "elm/nocontents/base/text";
2148    inherit: "elm/layout/nocontents/full";
2149    images {
2150       image: "00_nocontents_text.png" COMP;
2151    }
2152    parts {
2153       part { name: "nocontents.image";
2154          description { state: "default" 0.0;
2155             image {
2156                normal: "00_nocontents_text.png";
2157             }
2158          }
2159       }
2160    }
2161 }
2162
2163 group {
2164    name: "elm/layout/nocontents/unnamed";
2165    alias: "elm/nocontents/base/unnamed";
2166    inherit: "elm/layout/nocontents/full";
2167    images {
2168       image: "00_nocontents_unnamed.png" COMP;
2169    }
2170    parts {
2171       part { name: "nocontents.image";
2172          description { state: "default" 0.0;
2173             image {
2174                normal: "00_nocontents_unnamed.png";
2175             }
2176          }
2177       }
2178    }
2179 }
2180
2181 group {
2182    name: "elm/layout/nocontents/devices";
2183    alias: "elm/nocontents/base/devices";
2184    inherit: "elm/layout/nocontents/full";
2185    images {
2186       image: "00_nocontents_devices.png" COMP;
2187    }
2188    parts {
2189       part { name: "nocontents.image";
2190          description { state: "default" 0.0;
2191             image {
2192                normal: "00_nocontents_devices.png";
2193             }
2194          }
2195       }
2196    }
2197 }
2198
2199 group {
2200    name: "elm/layout/nocontents/search";
2201    alias: "elm/nocontents/base/search";
2202    parts {
2203       part { name: "bg";
2204          mouse_events: 0;
2205          type: RECT;
2206          description { state: "default" 0.0;
2207             visible: 1;
2208             rel1 {
2209                relative: 0.0 0.0;
2210             }
2211             rel2 {
2212                relative: 1.0 1.0;
2213             }
2214             color: 0 0 0 0;
2215          }
2216       }
2217       part { name: "top_padding";
2218          mouse_events: 0;
2219          type: RECT;
2220          scale: 1;
2221          description { state: "default" 0.0;
2222             min: 0 NOCONTENT_BASE_SEARCH_PADDING_INC;
2223             fixed: 0 1;
2224             align: 0 0;
2225             visible: 1;
2226             rel1 {
2227                relative: 0.0 0.0;
2228             }
2229             rel2 {
2230                relative: 1.0 0.0;
2231             }
2232             color: 0 0 0 0;
2233          }
2234       }
2235       part { name: "elm.text";
2236          mouse_events: 0;
2237          type: TEXT;
2238          scale: 1;
2239          description { state: "default" 0.0;
2240             //min: 0 30;
2241             fixed: 0 1;
2242             align: 0 0;
2243             visible: 1;
2244             rel1 {
2245                relative: 0.0 1.0;
2246                to:"top_padding";
2247             }
2248             rel2 {
2249                relative: 1.0 1.0;
2250                to:"top_padding";
2251             }
2252             color: NOCONTENT_TEXT_BLOCK_STYLE_COLOR_INC;
2253             text {
2254                font: "Tizen:style=Roman";
2255                size: 30;
2256                text: "";
2257                align: 0.5 0.5;
2258                text_class: "tizen";
2259             }
2260          }
2261       }
2262       part { name: "text_bottom_padding";
2263          mouse_events: 0;
2264          type: RECT;
2265          scale: 1;
2266          description { state: "default" 0.0;
2267             min: 0 NOCONTENT_BASE_SEARCH_PADDING_INC;
2268             fixed: 0 1;
2269             align: 0 0;
2270             visible: 0;
2271             rel1 {
2272                relative: 0.0 1.0;
2273                to:"elm.text";
2274             }
2275             rel2 {
2276                relative: 1.0 1.0;
2277                to:"elm.text";
2278             }
2279          }
2280       }
2281       part { name: "custom";
2282          mouse_events: 1;
2283          type: SWALLOW;
2284          scale: 1;
2285          description { state: "default" 0.0;
2286             min: 0 0;
2287             fixed: 0 1;
2288             align: 0 0;
2289             visible: 1;
2290             rel1 {
2291                relative: 0.0 1.0;
2292                to:"text_bottom_padding";
2293             }
2294             rel2 {
2295                relative: 1.0 1.0;
2296                to:"text_bottom_padding";
2297             }
2298          }
2299       }
2300    }
2301 }