[Editfield Style] Change the height when title mode
[profile/ivi/efl-theme-tizen.git] / themes / widgets / toolbar.edc
1 /*
2  * Copyright (c) 2010 Samsung Electronics Co., Ltd All Rights Reserved 
3  *
4  * PROPRIETARY/CONFIDENTIAL
5  *
6  * This software is the confidential and proprietary information of SAMSUNG
7  * ELECTRONICS ("Confidential Information"). You agree and acknowledge that this
8  * software is owned by Samsung and you shall not disclose such Confidential
9  * Information and shall use it only in accordance with the terms of the license
10  * agreement you entered into with SAMSUNG ELECTRONICS. SAMSUNG make no
11  * representations or warranties about the suitability of the software, either
12  * express or implied, including but not limited to the implied warranties of
13  * merchantability, fitness for a particular purpose, or non-infringement.
14  * SAMSUNG shall not be liable for any damages suffered by licensee arising out
15  * of or releated to this software.
16  *
17  */
18
19 #define ITEM_STATE_ENABLED 0
20 #define ITEM_STATE_DISABLED 1
21
22 group { name: "elm/toolbar/base/default";
23    images {
24       image: "00_winset_control_toolbar_bg.png" COMP;
25    }
26    parts {
27       part { name: "base";
28          mouse_events: 1;
29          description { state: "default" 0.0;
30             image.normal: "00_winset_control_toolbar_bg.png";
31          }
32       }
33       part { name: "clipper";
34          type: RECT;
35          mouse_events: 0;
36          description {
37             state: "default" 0.0;
38             rel1 {
39                to: "base";
40                offset: 2 2;
41             }
42             rel2 {
43                to: "base";
44                offset: -3 -3;
45             }
46          }
47       }
48       part { name: "elm.swallow.content";
49          clip_to: "clipper";
50          type: SWALLOW;
51          description {
52             state: "default" 0.0;
53             rel1.to: "clipper";
54             rel2.to: "clipper";
55          }
56       }
57       part { name: "event";
58          type: RECT;
59          mouse_events: 1;
60          repeat_events: 1;
61          description { state: "default" 0.0;
62             color: 0 0 0 0;
63          }
64       }
65    }
66 }
67
68 group { name: "elm/toolbar/item/default";
69    images {
70       image: "00_winset_toolbar_press.png" COMP;
71    }
72    styles{
73       style { name: "toolbar_style";
74          base: "font=SLP:style=Medium font_size="BUTTON_CONTROLBAR_ITEM_BUTTON_TEXT_SIZE_INC" align=center color="BUTTON_CONTROLBAR_ITEM_BUTTON_TEXTBLOCK_COLOR_INC" wrap=mixed ellipsis=1 text_class=slp_medium";
75          tag: "br" "\n";
76          tag: "ps" "ps";
77          tag: "hilight" "+ font=SLP:style=Bold";
78          tag: "b" "+ font=SLP:style=Bold";
79          tag: "tab" "\t";
80       }
81    }
82
83    data.item: "transition_animation_on" "1";
84    script {
85       public item_state = ITEM_STATE_ENABLED;
86    }
87    parts {
88       part { name: "bg";
89          mouse_events: 0;
90          description { state: "default" 0.0;
91             visible: 0;
92             color: 255 255 255 0;
93             rel1 {
94                relative: 0.0 0.0;
95                offset: 4 4;
96             }
97             rel2 {
98                relative: 1.0 1.0;
99                offset: -5 -5;
100             }
101             image {
102                normal: "00_winset_toolbar_press.png";
103                border: 3 3 3 3;
104             }
105             image.middle: SOLID;
106             fill.smooth: 0;
107          }
108          description { state: "selected" 0.0;
109             inherit: "default" 0.0;
110             visible: 1;
111             color: 255 255 255 255;
112          }
113          description { state: "disabled" 0.0;
114             inherit: "default" 0.0;
115             visible: 0;
116             color: 255 255 255 0;
117          }
118       }
119       part { name: "padding_left_top";
120          type: RECT;
121          scale: 1;
122          mouse_events: 0;
123          description { state: "default" 0.0;
124             align: 0.0 0.0;
125             rel2.relative: 0.0 0.0;
126             min: 10 8;
127             fixed: 1 1;
128             visible: 1;
129             color: 0 0 0 0;
130          }
131       }
132       part { name: "padding_right_bottom";
133          type: RECT;
134          scale: 1;
135          mouse_events: 0;
136          description { state: "default" 0.0;
137             align: 1.0 1.0;
138             rel1.relative: 1.0 1.0;
139             min: 10 5;
140             fixed: 1 1;
141             visible: 1;
142             color: 0 0 0 0;
143          }
144       }
145       part {
146          name: "icon_rect";
147          type: RECT;
148          scale: 1;
149          mouse_events: 0;
150          description { state: "default" 0.0;
151             min: 0 0;
152             fixed: 0 1;
153             rel1 {
154                relative: 1.0 1.0;
155                to: "padding_left_top";
156             }
157             rel2 {
158                relative: 0.0 1.0;
159                to_x: "padding_right_bottom";
160                to_y: "padding_left_top";
161             }
162             align: 0.5 0.0;
163             color: 0 0 0 0;
164          }
165          description { state: "visible" 0.0;
166             min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
167             fixed: 0 1;
168             rel1 {
169                relative: 1.0 1.0;
170                to: "padding_left_top";
171             }
172             rel2 {
173                relative: 0.0 1.0;
174                to_x: "padding_right_bottom";
175                to_y: "padding_left_top";
176             }
177             align: 0.5 0.0;
178             color: 0 0 0 0;
179          }
180          description { state: "icononly" 0.0;
181             inherit: "default" 0.0;
182          }
183       }
184       part { name: "padding_after_icon";
185          type: RECT;
186          scale: 1;
187          mouse_events: 0;
188          description { state: "default" 0.0; //when only icon or no icon is there
189             align: 0.0 0.0;
190             rel1 {
191                relative: 0.0 1.0;
192                to: "icon_rect";
193             }
194             rel2.to: "icon_rect";
195             fixed: 0 1;
196             min: 0 0;
197             color: 0 0 0 0;
198          }
199          description { state: "visible" 0.0;
200             inherit: "default" 0.0;
201          }
202          description { state: "icononly" 0.0;
203             inherit: "default" 0.0;
204          }
205       }
206       part { name: "padding_before_text";
207          type: RECT;
208          scale: 1;
209          mouse_events: 0;
210          description { state: "default" 0.0; //when only icon or no icon is there
211             align: 0.5 1.0;
212             rel1 {
213                relative: 1.0 0.0;
214                to_x: "padding_left_top";
215                to_y: "elm.text";
216             }
217             rel2 {
218                relative: 0.0 0.0;
219                to_x: "padding_right_bottom";
220                to_y: "elm.text";
221             }
222             fixed: 0 1;
223             min: 0 0;
224             color: 0 0 0 0;
225          }
226       }
227       part { name: "elm.swallow.icon";
228          type: SWALLOW;
229          scale: 1;
230          clip_to: "elm.icon.clipper";
231          description { state: "default" 0.0;
232             visible: 0;
233             align: 0.5 0.0;
234             rel1 {
235                relative: 1.0 1.0;
236                to: "padding_left_top";
237             }
238             rel2 {
239                relative: 0.0 1.0;
240                to_x: "padding_right_bottom";
241                to_y: "padding_left_top";
242             }
243             fixed: 0 1;
244          }
245          description { state: "visible" 0.0;
246             fixed: 0 1;
247             min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
248             max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
249             rel1 {
250                relative: 1.0 1.0;
251                to: "padding_left_top";
252             }
253             rel2 {
254                relative: 0.0 0.0;
255                to_x: "padding_right_bottom";
256                to_y: "padding_before_text";
257             }
258             aspect: 1.0 1.0;
259             aspect_preference: HORIZONTAL;
260          }
261          description { state: "icononly" 0.0;
262             min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
263             max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
264             rel1 {
265                relative: 1.0 1.0;
266                to: "padding_left_top";
267             }
268             rel2 {
269                relative: 0.0 0.0;
270                to: "padding_right_bottom";
271             }
272             aspect: 1.0 1.0;
273             aspect_preference: HORIZONTAL;
274          }
275       }
276       part { name: "elm.swallow.icon_new";
277          type: SWALLOW;
278          scale: 1;
279          clip_to: "elm.icon_new.clipper";
280          description { state: "default" 0.0;
281             visible: 0;
282             align: 0.5 0.0;
283             rel1 {
284                relative: 1.0 1.0;
285                to: "padding_left_top";
286             }
287             rel2 {
288                relative: 0.0 1.0;
289                to_x: "padding_right_bottom";
290                to_y: "padding_left_top";
291             }
292             fixed: 0 1;
293          }
294          description { state: "visible" 0.0;
295             fixed: 0 1;
296             min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
297             max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
298             rel1 {
299                relative: 1.0 1.0;
300                to: "padding_left_top";
301             }
302             rel2 {
303                relative: 0.0 0.0;
304                to_x: "padding_right_bottom";
305                to_y: "padding_before_text";
306             }
307             aspect: 1.0 1.0;
308             aspect_preference: HORIZONTAL;
309          }
310          description { state: "icononly" 0.0;
311             min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
312             max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
313             rel1 {
314                relative: 1.0 1.0;
315                to: "padding_left_top";
316             }
317             rel2 {
318                relative: 0.0 0.0;
319                to: "padding_right_bottom";
320             }
321             aspect: 1.0 1.0;
322             aspect_preference: HORIZONTAL;
323          }
324       }
325       part { name: "elm.text";
326          type: TEXTBLOCK;
327          mouse_events: 0;
328          scale: 1;
329          clip_to: "elm.text.clipper";
330          description { state: "default" 0.0;
331             visible: 1;
332             rel1 {
333                relative: 1.0 1.0;
334                to_x: "padding_left_top";
335                to_y: "padding_after_icon";
336             }
337             rel2 {
338                relative: 0.0 0.0;
339                to: "padding_right_bottom";
340             }
341             color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
342             fixed: 1 1;
343             text {
344                style: "toolbar_style";
345                min: 0 1;
346             }
347          }
348          description { state: "selected" 0.0;
349             inherit: "default" 0.0;
350             visible: 1;
351          }
352          description { state: "visible" 0.0;
353             inherit: "default" 0.0;
354             visible: 1;
355          }
356          description { state: "clicked" 0.0;
357             inherit: "default" 0.0;
358             visible: 1;
359             color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
360          }
361          description { state: "focused" 0.0;
362             inherit: "default" 0.0;
363             visible: 1;
364             color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
365          }
366       }
367       part { name: "elm.text_new";
368          type: TEXTBLOCK;
369          mouse_events: 0;
370          scale: 1;
371          clip_to: "elm.text_new.clipper";
372          description { state: "default" 0.0;
373             visible: 1;
374             rel1 {
375                relative: 1.0 1.0;
376                to_x: "padding_left_top";
377                to_y: "padding_after_icon";
378             }
379             rel2 {
380                relative: 0.0 0.0;
381                to: "padding_right_bottom";
382             }
383             color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
384             fixed: 1 1;
385             text {
386                style: "toolbar_style";
387                min: 0 1;
388             }
389          }
390          description { state: "visible" 0.0;
391             inherit: "default" 0.0;
392             visible: 1;
393          }
394          description { state: "clicked" 0.0;
395             inherit: "default" 0.0;
396             visible: 1;
397             color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
398          }
399          description { state: "focused" 0.0;
400             inherit: "default" 0.0;
401             visible: 1;
402             color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
403          }
404       }
405       part { name: "elm.text.clipper";
406          type: RECT;
407          description { state: "default" 0.0;
408             color: 255 255 255 255;
409          }
410          description { state: "animation" 0.0;
411             color: 255 255 255 0;
412          }
413          description { state: "disabled" 0.0;
414             color: 255 255 255 153;
415          }
416       }
417       part { name: "elm.text_new.clipper";
418          type: RECT;
419          description { state: "default" 0.0;
420             color: 255 255 255 0;
421          }
422          description { state: "animation" 0.0;
423             color: 255 255 255 255;
424          }
425          description { state: "disabled" 0.0;
426             color: 255 255 255 153;
427          }
428       }
429       part { name: "elm.icon.clipper";
430          type: RECT;
431          description { state: "default" 0.0;
432             color: 255 255 255 255;
433          }
434          description { state: "animation" 0.0;
435             color: 255 255 255 0;
436          }
437          description { state: "disabled" 0.0;
438             color: 255 255 255 153;
439          }
440       }
441       part { name: "elm.icon_new.clipper";
442          type: RECT;
443          description { state: "default" 0.0;
444             color: 255 255 255 0;
445          }
446          description { state: "animation" 0.0;
447             color: 255 255 255 255;
448          }
449          description { state: "disabled" 0.0;
450             color: 255 255 255 153;
451          }
452       }
453       part { name: "event";
454          type: RECT;
455          mouse_events: 1;
456          ignore_flags: ON_HOLD;
457          description { state: "default" 0.0;
458             color: 0 0 0 0;
459          }
460       }
461       part { name: "event2";
462          type: RECT;
463          mouse_events: 1;
464          repeat_events: 1;
465          description { state: "default" 0.0;
466             color: 0 0 0 0;
467          }
468       }
469    }
470    programs {
471       program { name: "pressed";
472          signal:  "mouse,down,1";
473          source:  "event";
474          script {
475             if (get_int(item_state) != ITEM_STATE_DISABLED)
476               set_state(PART:"bg", "selected", 0.0);
477          }
478          transition: LINEAR 0.2;
479       }
480       program { name: "unpressed";
481          signal:  "mouse,up,1";
482          source:  "event2";
483          action:  STATE_SET "default" 0.0;
484          target:  "bg";
485          transition: LINEAR 0.1;
486       }
487       program { name: "go";
488          signal:  "mouse,up,1";
489          source:  "event";
490          action:  SIGNAL_EMIT "elm,action,click" "elm";
491       }
492       program { name: "mouse,in";
493          signal:  "mouse,in";
494          source:  "event";
495          action:  SIGNAL_EMIT "elm,mouse,in" "elm";
496       }
497       program { name: "mouse,out";
498          signal:  "mouse,out";
499          source:  "event";
500          action:  SIGNAL_EMIT "elm,mouse,out" "elm";
501       }
502       program { name: "disable";
503          signal: "elm,state,disabled";
504          source: "elm";
505          script {
506             set_int(item_state, ITEM_STATE_DISABLED);
507             set_state(PART:"bg", "disabled", 0.0);
508             set_state(PART:"elm.text.clipper", "disabled", 0.0);
509             set_state(PART:"elm.icon.clipper", "disabled", 0.0);
510             run_program(PROGRAM:"label_set,animation,done");
511             run_program(PROGRAM:"icon_set,animation,done");
512          }
513       }
514       program { name: "enable";
515          signal: "elm,state,enabled";
516          source: "elm";
517          script {
518             set_int(item_state, ITEM_STATE_ENABLED);
519             set_state(PART:"bg", "default", 0.0);
520             set_state(PART:"elm.text.clipper", "default", 0.0);
521             set_state(PART:"elm.icon.clipper", "default", 0.0);
522             run_program(PROGRAM:"label_set,animation,done");
523             run_program(PROGRAM:"icon_set,animation,done");
524          }
525       }
526       program { name: "label_set,animation,forward";
527          signal: "elm,state,label_set,forward";
528          source: "elm";
529          after: "label_set,animation";
530       }
531       program { name: "label_set,animation,backward";
532          signal: "elm,state,label_set,backward";
533          source: "elm";
534          after: "label_set,animation";
535       }
536       program { name: "label_set,animation";
537          signal: "elm,state,label_set";
538          source: "elm";
539          action: STATE_SET "animation" 0.0;
540          target: "elm.text.clipper";
541          target: "elm.text_new.clipper";
542          transition: LINEAR 0.2;
543          after: "label_set,animation,done";
544       }
545       program { name: "label_set,animation,done";
546          action: SIGNAL_EMIT "elm,state,label_set,done" "elm";
547       }
548       program { name: "label,reset";
549          signal: "elm,state,label,reset";
550          source: "elm";
551          script {
552             set_state(PART:"elm.text_new.clipper", "default", 0.0);
553             if (get_int(item_state) != ITEM_STATE_DISABLED)
554               set_state(PART:"elm.text.clipper", "default", 0.0);
555             else
556               set_state(PART:"elm.text.clipper", "disabled", 0.0);
557          }
558       }
559       program { name: "icon_set,animation,forward";
560          signal: "elm,state,icon_set,forward";
561          source: "elm";
562          after: "icon_set,animation";
563       }
564       program { name: "icon_set,animation,backward";
565          signal: "elm,state,icon_set,backward";
566          source: "elm";
567          after: "icon_set,animation";
568       }
569       program { name: "icon_set,animation";
570          signal: "elm,state,icon_set";
571          source: "elm";
572          action: STATE_SET "animation" 0.0;
573          target: "elm.icon.clipper";
574          target: "elm.icon_new.clipper";
575          transition: LINEAR 0.2;
576          after: "icon_set,animation,done";
577       }
578       program { name: "icon_set,animation,done";
579          action: SIGNAL_EMIT "elm,state,icon_set,done" "elm";
580       }
581       program { name: "icon,reset";
582          signal: "elm,state,icon,reset";
583          source: "elm";
584          script {
585             set_state(PART:"elm.icon_new.clipper", "default", 0.0);
586             if (get_int(item_state) != ITEM_STATE_DISABLED)
587               set_state(PART:"elm.icon.clipper", "default", 0.0);
588             else
589               set_state(PART:"elm.icon.clipper", "disabled", 0.0);
590          }
591       }
592       program { name: "text_show";
593          signal: "elm,state,text,visible";
594          source: "elm";
595          script {
596             new st[31];
597             new Float:vl;
598             get_state(PART:"elm.swallow.icon", st, 30, vl);
599             if (!strcmp(st, "icononly"))
600               {
601                  set_state(PART:"elm.swallow.icon", "visible", 0.0);
602                  set_state(PART:"icon_rect", "visible", 0.0);
603                  set_state(PART:"padding_after_icon", "visible", 0.0);
604               }
605             set_state(PART:"elm.text", "visible", 0.0);
606          }
607       }
608       program { name: "text_hide";
609          signal: "elm,state,text,hidden";
610          source: "elm";
611          script {
612             new st[31];
613             new Float:vl;
614             get_state(PART:"elm.swallow.icon", st, 30, vl);
615             if (!strcmp(st, "visible"))
616               {
617                  set_state(PART:"elm.swallow.icon", "icononly", 0.0);
618                  set_state(PART:"icon_rect", "icononly", 0.0);
619                  set_state(PART:"padding_after_icon", "icononly", 0.0);
620               }
621             set_state(PART:"elm.text", "default", 0.0);
622          }
623       }
624       program { name: "icon_show";
625          signal: "elm,state,icon,visible";
626          source: "elm";
627          script {
628             new st[31];
629             new Float:vl;
630             get_state(PART:"elm.text", st, 30, vl);
631             if (!strcmp(st, "visible"))
632               {
633                  set_state(PART:"elm.swallow.icon", "visible", 0.0);
634                  set_state(PART:"icon_rect", "visible", 0.0);
635                  set_state(PART:"padding_after_icon", "visible", 0.0);
636               }
637             else
638               {
639                  set_state(PART:"elm.swallow.icon", "icononly", 0.0);
640                  set_state(PART:"icon_rect", "icononly", 0.0);
641                  set_state(PART:"padding_after_icon", "icononly", 0.0);
642               }
643          }
644       }
645    }
646 }
647
648 group { name: "elm/toolbar/item/item_horizontal";
649    inherit: "elm/toolbar/item/default";
650    script {
651       public item_state = ITEM_STATE_ENABLED;
652    }
653    parts {
654       part { name: "icon_rect";
655          description { state: "default" 0.0;
656             fixed: 1 0;
657             align: 0.0 0.5;
658          }
659          description { state: "visible" 0.0;
660             fixed: 1 0;
661             rel2 {
662                relative: 1.0 0.0;
663                to_x: "padding_left_top";
664                to_y: "padding_right_bottom";
665             }
666             align: 0.0 0.5;
667          }
668       }
669       part { name: "padding_after_icon";
670          description { state: "default" 0.0; //when only icon or no icon is there
671             rel1.relative: 1.0 0.0;
672             fixed: 1 1;
673          }
674          description { state: "visible" 0.0;
675             inherit: "default" 0.0;
676             min: 6 0;
677          }
678       }
679       part { name: "padding_before_text";
680          description { state: "default" 0.0; //when only icon or no icon is there
681             align: 1.0 0.5;
682             rel1 {
683                relative: 0.0 1.0;
684                to_x: "elm.text";
685                to_y: "padding_left_top";
686             }
687             rel2 {
688                to_x: "elm.text";
689                to_y: "padding_right_bottom";
690             }
691             fixed: 1 0;
692             min: 6 0;
693          }
694       }
695       part { name: "elm.swallow.icon";
696          description { state: "default" 0.0;
697             align: 0.0 0.5;
698             rel2 {
699                relative: 1.0 0.0;
700                to_x: "padding_left_top";
701                to_y: "padding_right_bottom";
702             }
703             fixed: 1 0;
704          }
705          description { state: "visible" 0.0;
706             fixed: 1 0;
707             align: 1.0 0.5;
708             rel1 {
709                relative: 0.0 1.0;
710                to_x: "padding_before_text";
711                to_y: "padding_left_top";
712             }
713             rel2 {
714                relative: 0.0 0.0;
715                to_x: "padding_before_text";
716                to_y: "padding_right_bottom";
717             }
718             aspect_preference: VERTICAL;
719          }
720          description { state: "icononly" 0.0;
721             aspect_preference: VERTICAL;
722          }
723       }
724       part { name: "elm.swallow.icon_new";
725          description { state: "default" 0.0;
726             align: 0.0 0.5;
727             rel2 {
728                relative: 1.0 0.0;
729                to_x: "padding_left_top";
730                to_y: "padding_right_bottom";
731             }
732             fixed: 1 0;
733          }
734          description { state: "visible" 0.0;
735             fixed: 1 0;
736             align: 1.0 0.5;
737             rel1 {
738                relative: 0.0 1.0;
739                to_x: "padding_before_text";
740                to_y: "padding_left_top";
741             }
742             rel2 {
743                relative: 0.0 0.0;
744                to_x: "padding_before_text";
745                to_y: "padding_right_bottom";
746             }
747             aspect_preference: VERTICAL;
748          }
749          description { state: "icononly" 0.0;
750             aspect_preference: VERTICAL;
751          }
752       }
753       part { name: "elm.text";
754          type: TEXTBLOCK;
755          description { state: "default" 0.0;
756             rel1 {
757                relative: 1.0 1.0;
758                to_x: "padding_after_icon";
759                to_y: "padding_left_top";
760             }
761             text {
762                style: "toolbar_style";
763                min: 1 0;
764             }
765          }
766          description { state: "selected" 0.0;
767             inherit: "default" 0.0;
768             visible: 1;
769          }
770          description { state: "visible" 0.0;
771             inherit: "default" 0.0;
772             visible: 1;
773          }
774          description { state: "clicked" 0.0;
775             inherit: "default" 0.0;
776             visible: 1;
777             color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
778          }
779          description { state: "focused" 0.0;
780             inherit: "default" 0.0;
781             visible: 1;
782             color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
783          }
784       }
785       part { name: "elm.text_new";
786          type: TEXTBLOCK;
787          description { state: "default" 0.0;
788             rel1 {
789                relative: 1.0 1.0;
790                to_x: "padding_after_icon";
791                to_y: "padding_left_top";
792             }
793             text {
794                style: "toolbar_style";
795                min: 1 0;
796             }
797          }
798          description { state: "selected" 0.0;
799             inherit: "default" 0.0;
800             visible: 1;
801          }
802          description { state: "visible" 0.0;
803             inherit: "default" 0.0;
804             visible: 1;
805          }
806          description { state: "clicked" 0.0;
807             inherit: "default" 0.0;
808             visible: 1;
809             color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
810          }
811          description { state: "focused" 0.0;
812             inherit: "default" 0.0;
813             visible: 1;
814             color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
815          }
816       }
817    }
818 }
819
820 group { name: "elm/toolbar/separator/default";
821    parts {
822       part { name: "base";
823          type: RECT;
824          description { state: "default" 0.0;
825             min: 3 1;
826             max: 3 9999;
827             color: 0 0 0 0;
828          }
829       }
830       part { name: "separator_left";
831          type: RECT;
832          description { state: "default" 0.0;
833             min: 1 1;
834             max: 1 9999;
835             fixed: 1 1;
836             rel1 {
837                 relative: 0.0 0.1;
838                 offset: 0 0;
839             }
840             rel2 {
841                 relative: 0.0 0.9;
842                 offset: 1 0;
843             }
844             color: TOOLBAR_ITEM_SEPARATOR_LEFT_COLOR_INC;
845          }
846       }
847       part { name: "separator_middle";
848          type: RECT;
849          description { state: "default" 0.0;
850             min: 1 1;
851             max: 1 9999;
852             fixed: 1 1;
853             rel1 {
854                 relative: 1.0 0.0;
855                 offset: 0 0;
856                 to: "separator_left";
857             }
858             rel2 {
859                 relative: 1.0 1.0;
860                 offset: 1 -1;
861                 to: "separator_left";
862             }
863             color: TOOLBAR_ITEM_SEPARATOR_MIDDLE_COLOR_INC;
864          }
865       }
866       part { name: "separator_right";
867          type: RECT;
868          description { state: "default" 0.0;
869             min: 1 1;
870             max: 1 9999;
871             fixed: 1 1;
872             rel1 {
873                 relative: 1.0 0.0;
874                 offset: 0 0;
875                 to: "separator_middle";
876             }
877             rel2 {
878                 relative: 1.0 1.0;
879                 offset: 1 -1;
880                 to: "separator_middle";
881             }
882             color: TOOLBAR_ITEM_SEPARATOR_RIGHT_COLOR_INC;
883          }
884       }
885    }
886 }
887
888 group { name: "elm/toolbar/object/default";
889    parts {
890       part { name: "elm.swallow.object"; // object group
891          type: SWALLOW;
892          description {
893              state: "default" 0.0;
894          }
895       }
896    }
897 }
898
899 group { name: "elm/toolbar/base/tabbar";
900    alias: "elm/toolbar/base/tabbar/item_horizontal";
901    images {
902       image: "00_winset_control_tabbar_bg_top.png" COMP;
903    }
904
905    parts {
906       part { name: "base";
907          mouse_events: 1;
908          description { state: "default" 0.0;
909             image.normal: "00_winset_control_tabbar_bg_top.png";
910          }
911       }
912       part { name: "clipper";
913          type: RECT;
914          mouse_events: 0;
915          description {
916             state: "default" 0.0;
917             rel1 {
918                to: "base";
919                offset: 2 2;
920             }
921             rel2 {
922                to: "base";
923                offset: -3 -3;
924             }
925          }
926       }
927       part { name: "elm.swallow.content";
928          clip_to: "clipper";
929          type: SWALLOW;
930          description {
931             state: "default" 0.0;
932             rel1.to: "clipper";
933             rel2.to: "clipper";
934          }
935       }
936       part { name: "event";
937          type: RECT;
938          mouse_events: 1;
939          repeat_events: 1;
940          description { state: "default" 0.0;
941             color: 0 0 0 0;
942          }
943       }
944    }
945 }
946
947 group { name: "elm/toolbar/item/tabbar";
948    images {
949       image: "00_winset_tabbar_focus.png" COMP;
950    }
951
952    data.item: "transition_animation_on" "1";
953    script {
954       public item_state = ITEM_STATE_ENABLED;
955    }
956    parts {
957       part { name: "bg";
958          mouse_events: 0;
959          description { state: "default" 0.0;
960             visible: 0;
961             color: 255 255 255 0;
962             image {
963                normal: "00_winset_tabbar_focus.png";
964             }
965             image.middle: SOLID;
966             fill.smooth: 0;
967          }
968          description { state: "selected" 0.0;
969             inherit: "default" 0.0;
970             visible: 1;
971             color: 255 255 255 255;
972          }
973          description { state: "disabled" 0.0;
974             inherit: "default" 0.0;
975             visible: 0;
976             color: 255 255 255 0;
977          }
978       }
979       part { name: "padding_left_top";
980             type: RECT;
981             scale: 1;
982             mouse_events: 0;
983             description { state: "default" 0.0;
984                align: 0.0 0.0;
985                rel2.relative: 0.0 0.0;
986                min: 10 8;
987                fixed: 1 1;
988                visible: 1;
989                color: 0 0 0 0;
990             }
991          }
992       part { name: "padding_right_bottom";
993          type: RECT;
994          scale: 1;
995          mouse_events: 0;
996          description { state: "default" 0.0;
997             align: 1.0 1.0;
998             rel1.relative: 1.0 1.0;
999             min: 10 5;
1000             fixed: 1 1;
1001             visible: 1;
1002             color: 0 0 0 0;
1003          }
1004       }
1005       part {
1006          name: "icon_rect";
1007          type: RECT;
1008          scale: 1;
1009          mouse_events: 0;
1010          description { state: "default" 0.0;
1011             min: 0 0;
1012             fixed: 0 1;
1013             rel1 {
1014                relative: 1.0 1.0;
1015                to: "padding_left_top";
1016             }
1017             rel2 {
1018                relative: 0.0 1.0;
1019                to_x: "padding_right_bottom";
1020                to_y: "padding_left_top";
1021             }
1022             align: 0.5 0.0;
1023             color: 0 0 0 0;
1024          }
1025          description { state: "visible" 0.0;
1026             min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1027             fixed: 0 1;
1028             rel1 {
1029                relative: 1.0 1.0;
1030                to: "padding_left_top";
1031             }
1032             rel2 {
1033                relative: 0.0 1.0;
1034                to_x: "padding_right_bottom";
1035                to_y: "padding_left_top";
1036             }
1037             align: 0.5 0.0;
1038             color: 0 0 0 0;
1039          }
1040          description { state: "icononly" 0.0;
1041             inherit: "default" 0.0;
1042          }
1043       }
1044       part { name: "padding_after_icon";
1045          type: RECT;
1046          scale: 1;
1047          mouse_events: 0;
1048          description { state: "default" 0.0; //when only icon or no icon is there
1049             align: 0.0 0.0;
1050             rel1 {
1051                relative: 0.0 1.0;
1052                to: "icon_rect";
1053             }
1054             rel2.to: "icon_rect";
1055             fixed: 0 1;
1056             min: 0 0;
1057             color: 0 0 0 0;
1058          }
1059          description { state: "visible" 0.0;
1060             align: 0.0 0.0;
1061             rel1 {
1062                relative: 0.0 1.0;
1063                to: "icon_rect";
1064             }
1065             rel2.to: "icon_rect";
1066             fixed: 0 1;
1067             min: 0 0;
1068             color: 0 0 0 0;
1069          }
1070          description { state: "icononly" 0.0;
1071             inherit: "default" 0.0;
1072          }
1073       }
1074       part { name: "padding_before_text";
1075          type: RECT;
1076          scale: 1;
1077          mouse_events: 0;
1078          description { state: "default" 0.0; //when only icon or no icon is there
1079             align: 0.5 1.0;
1080             rel1 {
1081                relative: 1.0 0.0;
1082                to_x: "padding_left_top";
1083                to_y: "elm.text";
1084             }
1085             rel2 {
1086                relative: 0.0 0.0;
1087                to_x: "padding_right_bottom";
1088                to_y: "elm.text";
1089             }
1090             fixed: 0 1;
1091             min: 0 0;
1092             color: 0 0 0 0;
1093          }
1094       }
1095       part { name: "elm.swallow.icon";
1096          type: SWALLOW;
1097          scale: 1;
1098          clip_to: "elm.icon.clipper";
1099          description { state: "default" 0.0;
1100             visible: 0;
1101             align: 0.5 0.0;
1102             rel1 {
1103                relative: 1.0 1.0;
1104                to: "padding_left_top";
1105             }
1106             rel2 {
1107                relative: 0.0 1.0;
1108                to_x: "padding_right_bottom";
1109                to_y: "padding_left_top";
1110             }
1111             fixed: 0 1;
1112          }
1113          description { state: "visible" 0.0;
1114             fixed: 0 1;
1115             min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1116             max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1117             rel1 {
1118                relative: 1.0 1.0;
1119                to: "padding_left_top";
1120             }
1121             rel2 {
1122                relative: 0.0 0.0;
1123                to_x: "padding_right_bottom";
1124                to_y: "padding_before_text";
1125             }
1126             aspect: 1.0 1.0;
1127             aspect_preference: HORIZONTAL;
1128          }
1129          description { state: "icononly" 0.0;
1130             min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1131             max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1132             rel1 {
1133                relative: 1.0 1.0;
1134                to: "padding_left_top";
1135             }
1136             rel2 {
1137                relative: 0.0 0.0;
1138                to: "padding_right_bottom";
1139             }
1140             aspect: 1.0 1.0;
1141             aspect_preference: HORIZONTAL;
1142          }
1143       }
1144       part { name: "elm.swallow.icon_new";
1145          type: SWALLOW;
1146          scale: 1;
1147          clip_to: "elm.icon_new.clipper";
1148          description { state: "default" 0.0;
1149             visible: 0;
1150             align: 0.5 0.0;
1151             rel1 {
1152                relative: 1.0 1.0;
1153                to: "padding_left_top";
1154             }
1155             rel2 {
1156                relative: 0.0 1.0;
1157                to_x: "padding_right_bottom";
1158                to_y: "padding_left_top";
1159             }
1160             fixed: 0 1;
1161          }
1162          description { state: "visible" 0.0;
1163             fixed: 0 1;
1164             min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1165             max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1166             rel1 {
1167                relative: 1.0 1.0;
1168                to: "padding_left_top";
1169             }
1170             rel2 {
1171                relative: 0.0 0.0;
1172                to_x: "padding_right_bottom";
1173                to_y: "padding_before_text";
1174             }
1175             aspect: 1.0 1.0;
1176             aspect_preference: HORIZONTAL;
1177          }
1178          description { state: "icononly" 0.0;
1179             min: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1180             max: BUTTON_CONTROLBAR_ITEM_BUTTON_ICON_SIZE_INC;
1181             rel1 {
1182                relative: 1.0 1.0;
1183                to: "padding_left_top";
1184             }
1185             rel2 {
1186                relative: 0.0 0.0;
1187                to: "padding_right_bottom";
1188             }
1189             aspect: 1.0 1.0;
1190             aspect_preference: HORIZONTAL;
1191          }
1192       }
1193       part { name: "elm.text";
1194          type: TEXTBLOCK;
1195          mouse_events: 0;
1196          scale: 1;
1197          clip_to: "elm.text.clipper";
1198          description { state: "default" 0.0;
1199             visible: 1;
1200             rel1 {
1201                relative: 1.0 1.0;
1202                to_x: "padding_left_top";
1203                to_y: "padding_after_icon";
1204             }
1205             rel2 {
1206                relative: 0.0 0.0;
1207                to: "padding_right_bottom";
1208             }
1209             color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
1210             fixed: 1 1;
1211             text {
1212                style: "toolbar_style";
1213                min: 0 1;
1214             }
1215          }
1216          description { state: "selected" 0.0;
1217             inherit: "default" 0.0;
1218             visible: 1;
1219          }
1220          description { state: "visible" 0.0;
1221             inherit: "default" 0.0;
1222             visible: 1;
1223          }
1224          description { state: "clicked" 0.0;
1225             inherit: "default" 0.0;
1226             visible: 1;
1227             color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
1228          }
1229          description { state: "focused" 0.0;
1230             inherit: "default" 0.0;
1231             visible: 1;
1232             color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
1233          }
1234       }
1235       part { name: "elm.text_new";
1236          type: TEXTBLOCK;
1237          mouse_events: 0;
1238          scale: 1;
1239          clip_to: "elm.text_new.clipper";
1240          description { state: "default" 0.0;
1241             visible: 1;
1242             rel1 {
1243                relative: 1.0 1.0;
1244                to_x: "padding_left_top";
1245                to_y: "padding_after_icon";
1246             }
1247             rel2 {
1248                relative: 0.0 0.0;
1249                to: "padding_right_bottom";
1250             }
1251             color: BUTTON_NAVIFRAME_DEFAULT_TEXT_COLOR_INC;
1252             fixed: 1 1;
1253             text {
1254                style: "toolbar_style";
1255                min: 0 1;
1256             }
1257          }
1258          description { state: "visible" 0.0;
1259             inherit: "default" 0.0;
1260             visible: 1;
1261          }
1262          description { state: "clicked" 0.0;
1263             inherit: "default" 0.0;
1264             visible: 1;
1265             color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
1266          }
1267          description { state: "focused" 0.0;
1268             inherit: "default" 0.0;
1269             visible: 1;
1270             color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
1271          }
1272       }
1273       part { name: "elm.text.clipper";
1274          type: RECT;
1275          description { state: "default" 0.0;
1276             color: 255 255 255 255;
1277          }
1278          description { state: "animation" 0.0;
1279             color: 255 255 255 0;
1280          }
1281          description { state: "disabled" 0.0;
1282             color: 255 255 255 153;
1283          }
1284       }
1285       part { name: "elm.text_new.clipper";
1286          type: RECT;
1287          description { state: "default" 0.0;
1288             color: 255 255 255 0;
1289          }
1290          description { state: "animation" 0.0;
1291             color: 255 255 255 255;
1292          }
1293          description { state: "disabled" 0.0;
1294             color: 255 255 255 153;
1295          }
1296       }
1297       part { name: "elm.icon.clipper";
1298          type: RECT;
1299          description { state: "default" 0.0;
1300             color: 255 255 255 255;
1301          }
1302          description { state: "animation" 0.0;
1303             color: 255 255 255 0;
1304          }
1305          description { state: "disabled" 0.0;
1306             color: 255 255 255 153;
1307          }
1308       }
1309       part { name: "elm.icon_new.clipper";
1310          type: RECT;
1311          description { state: "default" 0.0;
1312             color: 255 255 255 0;
1313          }
1314          description { state: "animation" 0.0;
1315             color: 255 255 255 255;
1316          }
1317          description { state: "disabled" 0.0;
1318             color: 255 255 255 153;
1319          }
1320       }
1321       part { name: "event";
1322          type: RECT;
1323          mouse_events: 1;
1324          ignore_flags: ON_HOLD;
1325          description { state: "default" 0.0;
1326             color: 0 0 0 0;
1327          }
1328       }
1329    }
1330    programs {
1331       program { name: "go_active";
1332          signal:  "elm,state,selected";
1333          source:  "elm";
1334          action:  STATE_SET "selected" 0.0;
1335          target:  "bg";
1336          transition: LINEAR 0.2;
1337       }
1338       program { name: "go_passive";
1339          signal:  "elm,state,unselected";
1340          source:  "elm";
1341          action:  STATE_SET "default" 0.0;
1342          target:  "bg";
1343          transition: LINEAR 0.1;
1344       }/*
1345          program { name: "pressed";
1346          signal:  "mouse,down,1";
1347          source:  "event";
1348          action:  STATE_SET "selected" 0.0;
1349          target:  "bg";
1350          target:  "elm.text";
1351          target:  "elm.text_new";
1352          transition: LINEAR 0.2;
1353       }
1354       program { name: "unpressed";
1355          signal:  "mouse,up,1";
1356          source:  "event";
1357          action:  STATE_SET "default" 0.0;
1358          target:  "bg";
1359          target:  "elm.text";
1360          target:  "elm.text_new";
1361          transition: LINEAR 0.1;
1362       }*/
1363       program { name: "go";
1364          signal:  "mouse,up,1";
1365          source:  "event";
1366          action:  SIGNAL_EMIT "elm,action,click" "elm";
1367       }
1368       program { name: "mouse,in";
1369          signal:  "mouse,in";
1370          source:  "event";
1371          action:  SIGNAL_EMIT "elm,mouse,in" "elm";
1372       }
1373       program { name: "mouse,out";
1374          signal:  "mouse,out";
1375          source:  "event";
1376          action:  SIGNAL_EMIT "elm,mouse,out" "elm";
1377       }
1378       program { name: "disable";
1379          signal: "elm,state,disabled";
1380          source: "elm";
1381          script {
1382             set_int(item_state, ITEM_STATE_DISABLED);
1383             set_state(PART:"bg", "disabled", 0.0);
1384             set_state(PART:"elm.text.clipper", "disabled", 0.0);
1385             set_state(PART:"elm.icon.clipper", "disabled", 0.0);
1386             run_program(PROGRAM:"label_set,animation,done");
1387             run_program(PROGRAM:"icon_set,animation,done");
1388          }
1389       }
1390       program { name: "enable";
1391          signal: "elm,state,enabled";
1392          source: "elm";
1393          script {
1394             set_int(item_state, ITEM_STATE_ENABLED);
1395             set_state(PART:"bg", "default", 0.0);
1396             set_state(PART:"elm.text.clipper", "default", 0.0);
1397             set_state(PART:"elm.icon.clipper", "default", 0.0);
1398             run_program(PROGRAM:"label_set,animation,done");
1399             run_program(PROGRAM:"icon_set,animation,done");
1400          }
1401       }
1402       program { name: "label_set,animation,forward";
1403          signal: "elm,state,label_set,forward";
1404          source: "elm";
1405          after: "label_set,animation";
1406       }
1407       program { name: "label_set,animation,backward";
1408          signal: "elm,state,label_set,backward";
1409          source: "elm";
1410          after: "label_set,animation";
1411       }
1412       program { name: "label_set,animation";
1413          signal: "elm,state,label_set";
1414          source: "elm";
1415          action: STATE_SET "animation" 0.0;
1416          target: "elm.text.clipper";
1417          target: "elm.text_new.clipper";
1418          transition: LINEAR 0.2;
1419          after: "label_set,animation,done";
1420       }
1421       program { name: "label_set,animation,done";
1422          action: SIGNAL_EMIT "elm,state,label_set,done" "elm";
1423       }
1424       program { name: "label,reset";
1425          signal: "elm,state,label,reset";
1426          source: "elm";
1427          script {
1428             set_state(PART:"elm.text_new.clipper", "default", 0.0);
1429             if (get_int(item_state) != ITEM_STATE_DISABLED)
1430               set_state(PART:"elm.text.clipper", "default", 0.0);
1431             else
1432               set_state(PART:"elm.text.clipper", "disabled", 0.0);
1433          }
1434       }
1435       program { name: "icon_set,animation,forward";
1436          signal: "elm,state,icon_set,forward";
1437          source: "elm";
1438          after: "icon_set,animation";
1439       }
1440       program { name: "icon_set,animation,backward";
1441          signal: "elm,state,icon_set,backward";
1442          source: "elm";
1443          after: "icon_set,animation";
1444       }
1445       program { name: "icon_set,animation";
1446          signal: "elm,state,icon_set";
1447          source: "elm";
1448          action: STATE_SET "animation" 0.0;
1449          target: "elm.icon.clipper";
1450          target: "elm.icon_new.clipper";
1451          transition: LINEAR 0.2;
1452          after: "icon_set,animation,done";
1453       }
1454       program { name: "icon_set,animation,done";
1455          action: SIGNAL_EMIT "elm,state,icon_set,done" "elm";
1456       }
1457       program { name: "icon,reset";
1458          signal: "elm,state,icon,reset";
1459          source: "elm";
1460          script {
1461             set_state(PART:"elm.icon_new.clipper", "default", 0.0);
1462             if (get_int(item_state) != ITEM_STATE_DISABLED)
1463               set_state(PART:"elm.icon.clipper", "default", 0.0);
1464             else
1465               set_state(PART:"elm.icon.clipper", "disabled", 0.0);
1466          }
1467       }
1468       program { name: "text_show";
1469          signal: "elm,state,text,visible";
1470          source: "elm";
1471          script {
1472             new st[31];
1473             new Float:vl;
1474             get_state(PART:"elm.swallow.icon", st, 30, vl);
1475             if (!strcmp(st, "icononly"))
1476               {
1477                  set_state(PART:"elm.swallow.icon", "visible", 0.0);
1478                  set_state(PART:"icon_rect", "visible", 0.0);
1479                  set_state(PART:"padding_after_icon", "visible", 0.0);
1480               }
1481             set_state(PART:"elm.text", "visible", 0.0);
1482          }
1483       }
1484       program { name: "text_hide";
1485          signal: "elm,state,text,hidden";
1486          source: "elm";
1487          script {
1488             new st[31];
1489             new Float:vl;
1490             get_state(PART:"elm.swallow.icon", st, 30, vl);
1491             if (!strcmp(st, "visible"))
1492               {
1493                  set_state(PART:"elm.swallow.icon", "icononly", 0.0);
1494                  set_state(PART:"icon_rect", "icononly", 0.0);
1495                  set_state(PART:"padding_after_icon", "icononly", 0.0);
1496               }
1497             set_state(PART:"elm.text", "default", 0.0);
1498          }
1499       }
1500       program { name: "icon_show";
1501          signal: "elm,state,icon,visible";
1502          source: "elm";
1503          script {
1504             new st[31];
1505             new Float:vl;
1506             get_state(PART:"elm.text", st, 30, vl);
1507             if (!strcmp(st, "visible"))
1508               {
1509                  set_state(PART:"elm.swallow.icon", "visible", 0.0);
1510                  set_state(PART:"icon_rect", "visible", 0.0);
1511                  set_state(PART:"padding_after_icon", "visible", 0.0);
1512               }
1513             else
1514               {
1515                  set_state(PART:"elm.swallow.icon", "icononly", 0.0);
1516                  set_state(PART:"icon_rect", "icononly", 0.0);
1517                  set_state(PART:"padding_after_icon", "icononly", 0.0);
1518               }
1519          }
1520       }
1521    }
1522 }
1523
1524 group { name: "elm/toolbar/item/tabbar/item_horizontal";
1525    inherit: "elm/toolbar/item/tabbar";
1526    script {
1527       public item_state = ITEM_STATE_ENABLED;
1528    }
1529    parts {
1530       part { name: "icon_rect";
1531          description { state: "default" 0.0;
1532             fixed: 1 0;
1533             align: 0.0 0.5;
1534          }
1535          description { state: "visible" 0.0;
1536             fixed: 1 0;
1537             rel2 {
1538                relative: 1.0 0.0;
1539                to_x: "padding_left_top";
1540                to_y: "padding_right_bottom";
1541             }
1542             align: 0.0 0.5;
1543          }
1544       }
1545       part { name: "padding_after_icon";
1546          description { state: "default" 0.0; //when only icon or no icon is there
1547             rel1.relative: 1.0 0.0;
1548             fixed: 1 1;
1549          }
1550          description { state: "visible" 0.0;
1551             inherit: "default" 0.0;
1552             min: 6 0;
1553          }
1554       }
1555       part { name: "padding_before_text";
1556          description { state: "default" 0.0; //when only icon or no icon is there
1557             align: 1.0 0.5;
1558             rel1 {
1559                relative: 0.0 1.0;
1560                to_x: "elm.text";
1561                to_y: "padding_left_top";
1562             }
1563             rel2 {
1564                to_x: "elm.text";
1565                to_y: "padding_right_bottom";
1566             }
1567             fixed: 1 0;
1568             min: 6 0;
1569          }
1570       }
1571       part { name: "elm.swallow.icon";
1572          description { state: "default" 0.0;
1573             align: 0.0 0.5;
1574             rel2 {
1575                relative: 1.0 0.0;
1576                to_x: "padding_left_top";
1577                to_y: "padding_right_bottom";
1578             }
1579             fixed: 1 0;
1580          }
1581          description { state: "visible" 0.0;
1582             fixed: 1 0;
1583             align: 1.0 0.5;
1584             rel1 {
1585                relative: 0.0 1.0;
1586                to_x: "padding_before_text";
1587                to_y: "padding_left_top";
1588             }
1589             rel2 {
1590                relative: 0.0 0.0;
1591                to_x: "padding_before_text";
1592                to_y: "padding_right_bottom";
1593             }
1594             aspect_preference: VERTICAL;
1595          }
1596          description { state: "icononly" 0.0;
1597             aspect_preference: VERTICAL;
1598          }
1599       }
1600       part { name: "elm.swallow.icon_new";
1601          description { state: "default" 0.0;
1602             align: 0.0 0.5;
1603             rel2 {
1604                relative: 1.0 0.0;
1605                to_x: "padding_left_top";
1606                to_y: "padding_right_bottom";
1607             }
1608             fixed: 1 0;
1609          }
1610          description { state: "visible" 0.0;
1611             fixed: 1 0;
1612             align: 1.0 0.5;
1613             rel1 {
1614                relative: 0.0 1.0;
1615                to_x: "padding_before_text";
1616                to_y: "padding_left_top";
1617             }
1618             rel2 {
1619                relative: 0.0 0.0;
1620                to_x: "padding_before_text";
1621                to_y: "padding_right_bottom";
1622             }
1623             aspect_preference: VERTICAL;
1624          }
1625          description { state: "icononly" 0.0;
1626             aspect_preference: VERTICAL;
1627          }
1628       }
1629       part { name: "elm.text";
1630          type: TEXTBLOCK;
1631          description { state: "default" 0.0;
1632             rel1 {
1633                relative: 1.0 1.0;
1634                to_x: "padding_after_icon";
1635                to_y: "padding_left_top";
1636             }
1637             text {
1638                style: "toolbar_style";
1639                min: 1 0;
1640             }
1641          }
1642          description { state: "selected" 0.0;
1643             inherit: "default" 0.0;
1644             visible: 1;
1645          }
1646          description { state: "visible" 0.0;
1647             inherit: "default" 0.0;
1648             visible: 1;
1649          }
1650          description { state: "clicked" 0.0;
1651             inherit: "default" 0.0;
1652             visible: 1;
1653             color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
1654          }
1655          description { state: "focused" 0.0;
1656             inherit: "default" 0.0;
1657             visible: 1;
1658             color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
1659          }
1660       }
1661       part { name: "elm.text_new";
1662          type: TEXTBLOCK;
1663          description { state: "default" 0.0;
1664             rel1 {
1665                relative: 1.0 1.0;
1666                to_x: "padding_after_icon";
1667                to_y: "padding_left_top";
1668             }
1669             text {
1670                style: "toolbar_style";
1671                min: 1 0;
1672             }
1673          }
1674          description { state: "selected" 0.0;
1675             inherit: "default" 0.0;
1676             visible: 1;
1677          }
1678          description { state: "visible" 0.0;
1679             inherit: "default" 0.0;
1680             visible: 1;
1681          }
1682          description { state: "clicked" 0.0;
1683             inherit: "default" 0.0;
1684             visible: 1;
1685             color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
1686          }
1687          description { state: "focused" 0.0;
1688             inherit: "default" 0.0;
1689             visible: 1;
1690             color: BUTTON_NAVIFRAME_FOCUSED_TEXT_COLOR_INC;
1691          }
1692       }
1693    }
1694 }
1695
1696 group { name: "elm/toolbar/base/naviframe";
1697    parts {
1698       part { name: "base";
1699          mouse_events: 1;
1700          description { state: "default" 0.0;
1701             color: 0 0 0 0;
1702          }
1703       }
1704       part { name: "clipper";
1705          type: RECT;
1706          mouse_events: 0;
1707          description {
1708             state: "default" 0.0;
1709             rel1 {
1710                to: "base";
1711                offset: 2 2;
1712             }
1713             rel2 {
1714                to: "base";
1715                offset: -3 -3;
1716             }
1717          }
1718       }
1719       part { name: "elm.swallow.content";
1720          clip_to: "clipper";
1721          type: SWALLOW;
1722          description {
1723             state: "default" 0.0;
1724             rel1.to: "clipper";
1725             rel2.to: "clipper";
1726          }
1727       }
1728       part { name: "event";
1729          type: RECT;
1730          mouse_events: 1;
1731          repeat_events: 1;
1732          description { state: "default" 0.0;
1733             color: 0 0 0 0;
1734          }
1735       }
1736    }
1737 }
1738
1739 group { name: "elm/toolbar/object/naviframe";
1740    parts {
1741       part { name: "elm.swallow.object"; // object group
1742          type: SWALLOW;
1743          description {
1744              state: "default" 0.0;
1745                          rel1.offset: 5 0;
1746                          rel2.offset: -6 -1;
1747          }
1748       }
1749    }
1750 }
1751