Merge "[Progressbar] issue image getting invisible for list progressbar. fixed."
[profile/ivi/efl-theme-tizen.git] / themes / groups / segmentedcontrol.edc
1 /*
2  *  nBeat-theme
3  *
4  * Copyright (c) 2000 - 2010 Samsung Electronics Co., Ltd.
5  *
6  * Contact: Seokjae Jeong <seok.j.jeong@samsung.com>, Myoungwoon Roy Kim <Myoungwoon.kim@samsung.com>, Jeonghyun Yun <jh0506.yun@samsung.com>, Jaehwan Kim <jae.hwan.kim@samsung.com>, 
7  *              Chuneon Park <chuneon.park@samsung.com>, Juyung Seo <juyung.seo@samsung.com>, Woohyun Jung <wh0705.jung@samsung.com>, Myungjae Lee <mjae.lee@samsung.com>, Hyoyoung Chang <hyoyoung.chang@samsung.com>, 
8  *              Hyunsil Park <hyunsil.park@samsung.com>, Sohyun Kim <anna1014.kim@samsung.com>, Seunggyun Kim <sgyun.kim@samsung.com>
9  * 
10  * This library is free software; you can redistribute it and/or modify it under
11  * the terms of the GNU Lesser General Public License as published by the
12  * Free Software Foundation; either version 2.1 of the License, or (at your option)
13  * any later version.
14  * 
15  * This library is distributed in the hope that it will be useful, but WITHOUT ANY
16  * WARRANTY; without even the implied warranty of MERCHANTABILITY or
17  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
18  * License for more details.
19  *
20  * You should have received a copy of the GNU Lesser General Public License
21  * along with this library; if not, write to the Free Software Foundation, Inc., 51
22  * Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23  *
24  */
25
26
27 //################################################################
28 //Segment Control
29 //################################################################
30
31 group { name: "elm/segment_control/base/default";
32    parts {
33       part { name: "bg";
34          type: RECT;
35          mouse_events: 0;
36          scale: 1;
37          description {
38             state: "default" 0.0;
39             color: 0 0 0 0;
40             min: 100 40;
41          }
42       }
43    }
44 }
45
46 #define SEGMENT_TYPE_SINGLE 1
47 #define SEGMENT_TYPE_LEFT 2
48 #define SEGMENT_TYPE_MIDDLE 3
49 #define SEGMENT_TYPE_RIGHT 4
50 #define SEGMENT_STATE_NORMAL 1
51 #define SEGMENT_STATE_PRESSED 2
52 #define SEGMENT_STATE_SELECTED 3
53 #define SEGMENT_STATUS_ENABLED 0
54 #define SEGMENT_STATUS_DISABLED 1
55
56 group { name: "elm/segment_control/item/default";
57    data.item: "label.wrap.part" "label.bg";
58
59    images {
60       image: "00_winset_btn_sge_normal.png" COMP;
61       image: "00_winset_btn_sge_normal_left.png" COMP;
62       image: "00_winset_btn_sge_normal_centre.png" COMP;
63       image: "00_winset_btn_sge_normal_right.png" COMP;
64       image: "00_winset_btn_sge_press_normal.png" COMP;
65       image: "00_winset_btn_sge_press_left.png" COMP;
66       image: "00_winset_btn_sge_press_center.png" COMP;
67       image: "00_winset_btn_sge_press_right.png" COMP;
68       }
69    parts {
70       part { name: "segment";
71          mouse_events: 1;
72          scale: 1;
73          description { state: "default" 0.0;
74             min: 1 1;
75             visible: 0;
76             image {
77                normal: "00_winset_btn_sge_normal.png";
78                border: 5 5 5 5;
79                border_scale: 1;
80                middle: 1;
81             }
82          }
83          description { state: "default_single" 0.0;
84             inherit: "default" 0.0;
85             visible: 1;
86             image {
87                normal: "00_winset_btn_sge_normal.png";
88                border: 5 5 5 5;
89             }
90          }
91          description { state: "default_left" 0.0;
92             inherit: "default" 0.0;
93             visible: 1;
94             image {
95                normal: "00_winset_btn_sge_normal_left.png";
96                border:  5 3 5 5;
97             }
98          }
99          description { state: "default_right" 0.0;
100             inherit: "default" 0.0;
101             visible: 1;
102             image {
103                normal: "00_winset_btn_sge_normal_right.png";
104                border: 3 5 5 5;
105             }
106          }
107          description { state: "default_middle" 0.0;
108             inherit: "default" 0.0;
109             visible: 1;
110             image {
111             normal: "00_winset_btn_sge_normal_centre.png";
112             border: 2 2 7 7;
113             }
114          }
115          description { state: "pressed_single" 0.0;
116             inherit: "default" 0.0;
117             visible: 1;
118             image {
119                normal: "00_winset_btn_sge_press_normal.png";
120                border: 5 5 5 5;
121             }
122          }
123          description { state: "pressed_left" 0.0;
124             inherit: "default" 0.0;
125             visible: 1;
126             image {
127                normal: "00_winset_btn_sge_press_left.png";
128                border:  5 3 5 5;
129             }
130          }
131          description { state: "pressed_right" 0.0;
132             inherit: "default" 0.0;
133             visible: 1;
134             image {
135                normal: "00_winset_btn_sge_press_right.png";
136                border: 3 5 5 5;
137             }
138          }
139          description { state: "pressed_middle" 0.0;
140             inherit: "default" 0.0;
141             visible: 1;
142             image {
143                normal: "00_winset_btn_sge_press_center.png";
144                border: 2 2 7 7;
145             }
146          }
147          description { state: "selected_single" 0.0;
148             inherit: "default" 0.0;
149             visible: 1;
150             image {
151                normal: "00_winset_btn_sge_press_normal.png";
152                border: 5 5 5 5;
153             }
154          }
155          description { state: "selected_left" 0.0;
156             inherit: "default" 0.0;
157             visible: 1;
158             image {
159                normal: "00_winset_btn_sge_press_left.png";
160                border:  5 3 5 5;
161             }
162          }
163          description { state: "selected_right" 0.0;
164             inherit: "default" 0.0;
165             visible: 1;
166             image {
167                normal: "00_winset_btn_sge_press_right.png";
168                border: 3 5 5 5;
169             }
170          }
171          description { state: "selected_middle" 0.0;
172             inherit: "default" 0.0;
173             visible: 1;
174             image {
175                normal: "00_winset_btn_sge_press_center.png";
176                border: 2 2 7 7;
177             }
178          }
179       }
180       part { name: "padding_left";
181          type: RECT;
182          scale: 1;
183          mouse_events: 0;
184          description { state: "default" 0.0;
185             align: 0.0 0.0;
186             rel1.relative: 0.0 0.0;
187             rel2.relative: 0.0 1.0;
188             min: 2 2;
189             max: 2 2;
190             fixed: 1 0;
191             color: 0 0 0 0;
192          }
193       }
194       part { name: "padding_right";
195          type: RECT;
196          scale: 1;
197          mouse_events: 0;
198          description { state: "default" 0.0;
199             align: 1.0 0.0;
200             rel1.relative: 1.0 0.0;
201             rel2.relative: 1.0 1.0;
202             min: 2 2;
203             max: 2 2;
204             fixed: 1 0;
205             color: 0 0 0 0;
206          }
207       }
208       part { name: "padding_top";
209          type: RECT;
210          scale: 1;
211          mouse_events: 0;
212          description { state: "default" 0.0;
213             align: 0.0 0.0;
214             rel1.relative: 0.0 0.0;
215             rel2.relative: 1.0 0.0;
216             min: 2 2;
217             max: 2 2;
218             fixed: 0 1;
219             color: 0 0 0 0;
220          }
221       }
222       part { name: "padding_bottom";
223          type: RECT;
224          scale: 1;
225          mouse_events: 0;
226          description { state: "default" 0.0;
227             align: 1.0 1.0;
228             rel1.relative: 0.0 1.0;
229             rel2.relative: 1.0 1.0;
230             min: 2 2;
231             max: 2 2;
232             fixed: 0 1;
233             color: 0 0 0 0;
234          }
235       }
236       part { name: "icon.bg";
237          type: RECT;
238          scale: 1;
239          mouse_events: 0;
240          description { state: "default" 0.0;
241             visible: 1;
242             fixed: 1 0;
243             rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
244             rel2 {relative: 1.0 1.0; to: "elm.swallow.icon"; }
245             align: 0.0 0.5;
246             color: 0 0 0 0;
247          }
248       }
249       part { name: "padding_icon_text";
250          type: RECT;
251          scale: 1;
252          mouse_events: 0;
253          description { state: "default" 0.0; //when only icon or no icon is there
254             align: 0.0 0.0;
255             rel1 { relative: 1.0 0.0; to: "icon.bg"; }
256             rel2 { relative: 1.0 1.0; to: "icon.bg"; }
257             fixed: 1 0;
258             min: 0 0;
259             color: 0 0 0 0;
260          }
261          description { state: "icononly" 0.0;
262             inherit: "default" 0.0;
263          }
264          description { state: "visible" 0.0; //when icon is visible
265             align: 0.0 0.0;
266             rel1 { relative: 1.0 0.0; to: "icon.bg"; }
267             rel2 { relative: 1.0 1.0; to: "icon.bg"; }
268             fixed: 1 0;
269             min: 2 0;
270             color: 0 0 0 0;
271          }
272       }
273       part { name: "elm.swallow.icon";
274          type: SWALLOW;
275          scale: 1;
276          description { state: "default" 0.0;
277             visible: 0;
278             align: 0.0 0.5;
279             rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
280             rel2 {relative: 0.0 0.0; to_y: "padding_bottom"; }
281             fixed: 1 0;
282             aspect: 1.0 1.0;
283             aspect_preference: BOTH;
284          }
285          description { state: "visible" 0.0;
286             inherit: "default" 0.0;
287             visible: 1;
288             rel2 {relative: 0.3 0.0; to_y: "padding_bottom"; }
289          }
290          description { state: "icononly" 0.0;;
291             inherit: "default" 0.0;
292             visible: 1;
293             rel2 {relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
294             align: 0.5 0.5;
295          }
296       }
297       part { name: "label.bg";
298          repeat_events: 1;
299          scale: 1;
300          description { state: "default" 0.0;
301             rel1 { relative: 1.0 1.0; to_x: "padding_icon_text"; to_y: "padding_top"; }
302             rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
303          }
304       }
305       part { name: "elm.swallow.label";
306          type: SWALLOW;
307          mouse_events: 0;
308          scale: 1;
309          clip_to: "label.bg";
310          description { state: "default" 0.0;
311             visible: 0;
312             fixed: 1 1;
313             min: 1 1;
314             align: 0.0 0.5;
315             rel1 { relative: 1.0 1.0; to_x: "padding_icon_text";}
316             rel2 { relative: 0.0 0.0; to_x: "padding_right";}
317          }
318          description { state: "visible" 0.0;
319             inherit: "default" 0.0;
320             visible: 1;
321          }
322       }
323       part { name: "disabler";
324          repeat_events: 0;
325          scale: 1;
326          description { state: "default" 0.0;
327             visible: 0;
328             fixed: 1 1;
329             min: 1 1;
330             align: 0.0 0.5;
331             rel1 { relative: 0.0 0.0; to: "segment";}
332             rel2 { relative: 1.0 1.0; to: "segment";}
333             color: 255 255 255 150;
334          }
335          description { state: "disabled_single" 0.0;
336             inherit: "default" 0.0;
337             visible: 1;
338             image {
339                normal: "00_button_02_normal.png";
340                border: 7 7 7 7;
341             }
342          }
343          description { state: "disabled_left" 0.0;
344             inherit: "default" 0.0;
345             visible: 1;
346             image {
347                normal: "00_winset_btn_sge_normal_left.png";
348                border:  6 1 7 7;
349             }
350          }
351          description { state: "disabled_right" 0.0;
352             inherit: "default" 0.0;
353             visible: 1;
354             image {
355                normal: "00_winset_btn_sge_normal_right.png";
356                border: 1 6 7 7;
357             }
358          }
359          description { state: "disabled_middle" 0.0;
360             inherit: "default" 0.0;
361             visible: 1;
362             image {
363                normal: "00_winset_btn_sge_normal_centre.png";
364                border: 2 2 2 2;
365             }
366          }
367       }
368    }
369    programs {
370       script {
371          public seg_type; // Single, Left, Middle, Right.
372          public seg_state; // Normal/Default, Pressed, Selected.
373          public seg_status;// Enabled/Default, Disabled
374
375          public update_state() {
376             new type, state, disabled;
377             type = get_int(seg_type);
378             state = get_int(seg_state);
379             disabled = get_int(seg_status);
380
381             if(state == SEGMENT_STATE_NORMAL)
382               {
383                  if(type == SEGMENT_TYPE_SINGLE)
384                    set_state(PART:"segment", "default_single", 0.0);
385                  else if(type == SEGMENT_TYPE_LEFT)
386                    set_state(PART:"segment", "default_left", 0.0);
387                  else if(type == SEGMENT_TYPE_MIDDLE)
388                    set_state(PART:"segment", "default_middle", 0.0);
389                  else if(type == SEGMENT_TYPE_RIGHT)
390                    set_state(PART:"segment", "default_right", 0.0);
391               }
392             else if(state == SEGMENT_STATE_PRESSED)
393               {
394                  if(type == SEGMENT_TYPE_SINGLE)
395                    set_state(PART:"segment", "pressed_single", 0.0);
396                  else if(type == SEGMENT_TYPE_LEFT)
397                    set_state(PART:"segment", "pressed_left", 0.0);
398                  else if(type == SEGMENT_TYPE_MIDDLE)
399                    set_state(PART:"segment", "pressed_middle", 0.0);
400                  else if(type == SEGMENT_TYPE_RIGHT)
401                    set_state(PART:"segment", "pressed_right", 0.0);
402               }
403             else if(state == SEGMENT_STATE_SELECTED)
404               {
405                  if(type == SEGMENT_TYPE_SINGLE)
406                    set_state(PART:"segment", "selected_single", 0.0);
407                  else if(type == SEGMENT_TYPE_LEFT)
408                    set_state(PART:"segment", "selected_left", 0.0);
409                  else if(type == SEGMENT_TYPE_MIDDLE)
410                    set_state(PART:"segment", "selected_middle", 0.0);
411                  else if(type == SEGMENT_TYPE_RIGHT)
412                    set_state(PART:"segment", "selected_right", 0.0);
413               }
414             if(disabled == SEGMENT_STATUS_DISABLED)
415               {
416                  if(type == SEGMENT_TYPE_SINGLE)
417                    set_state(PART:"disabler", "disabled_single", 0.0);
418                  else if(type == SEGMENT_TYPE_LEFT)
419                    set_state(PART:"disabler", "disabled_left", 0.0);
420                  else if(type == SEGMENT_TYPE_MIDDLE)
421                    set_state(PART:"disabler", "disabled_middle", 0.0);
422                  else if(type == SEGMENT_TYPE_RIGHT)
423                    set_state(PART:"disabler", "disabled_right", 0.0);
424               }
425          }
426       }
427       program {
428          name: "segment_type_s";
429          signal: "elm,type,segment,single";
430          source: "elm";
431          script {
432             set_int(seg_status, SEGMENT_STATUS_ENABLED);
433             set_int(seg_type, SEGMENT_TYPE_SINGLE);
434             update_state();
435          }
436       }
437       program {
438          name: "segment_type_l";
439          signal: "elm,type,segment,left";
440          source: "elm";
441          script {
442             set_int(seg_status, SEGMENT_STATUS_ENABLED);
443             set_int(seg_type, SEGMENT_TYPE_LEFT);
444             update_state();
445          }
446       }
447       program {
448          name: "segment_type_m";
449          signal: "elm,type,segment,middle";
450          source: "elm";
451          script {
452             set_int(seg_status, SEGMENT_STATUS_ENABLED);
453             set_int(seg_type, SEGMENT_TYPE_MIDDLE);
454             update_state();
455          }
456       }
457       program {
458          name: "segment_type_r";
459          signal: "elm,type,segment,right";
460          source: "elm";
461          script {
462             set_int(seg_status, SEGMENT_STATUS_ENABLED);
463             set_int(seg_type, SEGMENT_TYPE_RIGHT);
464             update_state();
465          }
466       }
467       program {
468          name: "normal_segment";
469          signal: "elm,state,segment,normal";
470          source: "elm";
471          script {
472             set_int(seg_status, SEGMENT_STATUS_ENABLED);
473             set_int(seg_state, SEGMENT_STATE_NORMAL);
474             update_state();
475          }
476       }
477       program {
478          name: "pressed_segment";
479          signal: "elm,state,segment,pressed";
480          source: "elm";
481          script {
482             set_int(seg_status, SEGMENT_STATUS_ENABLED);
483             set_int(seg_state, SEGMENT_STATE_PRESSED);
484             update_state();
485          }
486       }
487       program {
488          name: "selected_segment";
489          signal: "elm,state,segment,selected";
490          source: "elm";
491          script {
492             set_int(seg_status, SEGMENT_STATUS_ENABLED);
493             set_int(seg_state, SEGMENT_STATE_SELECTED);
494             update_state();
495          }
496       }
497       program { name: "disable_segment";
498          signal: "elm,state,disabled";
499          source: "elm";
500          script {
501             set_int(seg_status, SEGMENT_STATUS_DISABLED);
502             update_state();
503          }
504       }
505       program { name: "enable_segment";
506          signal: "elm,state,enabled";
507          source: "elm";
508          script {
509             set_int(seg_status, SEGMENT_STATUS_ENABLED);
510             update_state();
511          }
512       }
513       program { name: "text_show";
514          signal: "elm,state,text,visible";
515          source: "elm";
516          script {
517             new st[31];
518             new Float:vl;
519             new st1[31];
520             new Float:vl1;
521             get_state(PART:"elm.swallow.icon", st, 30, vl);
522             get_state(PART:"elm.swallow.label", st1, 30, vl1);
523             if (!strcmp(st, "icononly"))
524               {
525                  set_state(PART:"elm.swallow.icon", "visible", 0.0);
526                  set_state(PART:"padding_icon_text", "visible", 0.0);
527               }
528             set_state(PART:"elm.swallow.label", "visible", 0.0);
529          }
530       }
531       program { name: "text_hide";
532          signal: "elm,state,text,hidden";
533          source: "elm";
534          script {
535             new st[31];
536             new Float:vl;
537             get_state(PART:"elm.swallow.icon", st, 30, vl);
538             if (!strcmp(st, "visible"))
539               {
540                  set_state(PART:"elm.swallow.icon", "icononly", 0.0);
541                  set_state(PART:"padding_icon_text", "icononly", 0.0);
542               }
543             set_state(PART:"elm.swallow.label", "default", 0.0);
544          }
545       }
546       program { name: "icon_show";
547          signal: "elm,state,icon,visible";
548          source: "elm";
549          script {
550             new st[31];
551             new Float:vl;
552             get_state(PART:"elm.swallow.label", st, 30, vl);
553             if (!strcmp(st, "normal"))
554               {
555                  set_state(PART:"elm.swallow.icon", "visible", 0.0);
556                  set_state(PART:"padding_icon_text", "visible", 0.0);
557               }
558             else
559               {
560                  set_state(PART:"elm.swallow.icon", "icononly", 0.0);
561                  set_state(PART:"padding_icon_text", "icononly", 0.0);
562               }
563          }
564       }
565       program { name: "icon_hide";
566          signal: "elm,state,icon,hidden";
567          source: "elm";
568          action:  STATE_SET "default" 0.0;
569          target: "elm.swallow.icon";
570       }
571    }
572 }
573
574 group { name: "elm/label/base/default/segment_normal";
575    data.item: "default_font_size" "24";
576    data.item: "min_font_size" "16";
577    data.item: "max_font_size" "24";
578    styles{
579       style { name: "seg_text_style_normal";
580          base: "font=SLP:style=Medium font_size=18\
581          align=center \
582          color="SEGMENT_CONTROL_ITEM_TITLE_TEXT_STYLE_COLOR_NORMAL_INC" wrap=char";
583          tag:  "br" "\n";
584          tag:  "hilight" "+ font=SLP:style=Bold";
585          tag:  "b" "+ font=SLP:style=Bold";
586          tag:  "tab" "\t";
587       }
588       style { name: "seg_text_style_pressed";
589          base: "font=SLP:style=Medium font_size=18\
590          align=center \
591          color="SEGMENT_CONTROL_ITEM_TITLE_TEXT_STYLE_COLOR_PRESSED_INC" wrap=char";
592          tag:  "br" "\n";
593          tag:  "hilight" "+ font=SLP:style=Bold";
594          tag:  "b" "+ font=SLP:style=Bold";
595          tag:  "tab" "\t";
596       }
597       style { name: "seg_text_style_selected";
598          base: "font=SLP:style=Medium font_size=18\
599          align=center color="SEGMENT_CONTROL_ITEM_TITLE_TEXT_STYLE_COLOR_SELECTED_INC" \
600          wrap=char";
601          tag:  "br" "\n";
602          tag:  "hilight" "+ font=SLP:style=Bold";
603          tag:  "b" "+ font=SLP:style=Bold";
604          tag:  "tab" "\t";
605       }
606       style { name: "seg_text_style_disabled";
607          base: "font=SLP:style=Medium font_size=18\
608          align=center color="SEGMENT_CONTROL_ITEM_TITLE_TEXT_STYLE_COLOR_NORMAL_INC" \
609          wrap=char";
610          tag:  "br" "\n";
611          tag:  "hilight" "+ font=SLP:style=Bold";
612          tag:  "b" "+ font=SLP:style=Bold";
613          tag:  "tab" "\t";
614       }
615    }
616    parts {
617       part { name: "label.swallow.background";
618          type: SWALLOW;
619          description { state: "default" 0.0;
620             visible: 1;
621             rel1.relative, 0.0 0.0;
622             rel2.relative, 1.0 1.0;
623          }
624       }
625       part { name: "label.text.clip";
626          type: RECT;
627          description { state: "default" 0.0;
628             visible: 1;
629             rel1 { relative: 0 0; to: "label.swallow.background"; }
630             rel2 { relative: 1 1; to: "label.swallow.background"; }
631          }
632       }
633       part { name: "elm.text";
634          type: TEXTBLOCK;
635          mouse_events: 0;
636          scale: 1;
637          clip_to: "label.text.clip";
638          description { state: "default" 0.0;
639             rel1.relative, 0.0 0.0;
640             rel2.relative, 1.0 1.0;
641             align: 0.0 0.5;
642             text {
643                style: "seg_text_style_normal";
644                align: 0.0 0.5;
645                min: 1 0;
646             }
647          }
648       }
649    }
650 }
651
652 group { name: "elm/label/base/default/segment_selected";
653    data.item: "default_font_size" "24";
654    data.item: "min_font_size" "16";
655    data.item: "max_font_size" "24";
656    parts {
657       part { name: "label.swallow.background";
658          type: SWALLOW;
659          description { state: "default" 0.0;
660             visible: 1;
661             rel1.relative, 0.0 0.0;
662             rel2.relative, 1.0 1.0;
663          }
664       }
665       part { name: "label.text.clip";
666          type: RECT;
667          description { state: "default" 0.0;
668             visible: 1;
669             rel1 { relative: 0 0; to: "label.swallow.background"; }
670             rel2 { relative: 1 1; to: "label.swallow.background"; }
671          }
672       }
673       part { name: "elm.text";
674          type: TEXTBLOCK;
675          mouse_events: 0;
676          scale: 1;
677          clip_to: "label.text.clip";
678          description { state: "default" 0.0;
679             rel1.relative, 0.0 0.0;
680             rel2.relative, 1.0 1.0;
681             align: 0.0 0.5;
682             text {
683                style: "seg_text_style_selected";
684                align: 0.0 0.5;
685                min: 1 0;
686             }
687          }
688       }
689    }
690 }
691 group { name: "elm/label/base/default/segment_pressed";
692    data.item: "default_font_size" "24";
693    data.item: "min_font_size" "16";
694    data.item: "max_font_size" "24";
695    parts {
696       part { name: "label.swallow.background";
697          type: SWALLOW;
698          description { state: "default" 0.0;
699             visible: 1;
700             rel1.relative, 0.0 0.0;
701             rel2.relative, 1.0 1.0;
702          }
703       }
704       part { name: "label.text.clip";
705          type: RECT;
706          description { state: "default" 0.0;
707             visible: 1;
708             rel1 { relative: 0 0; to: "label.swallow.background"; }
709             rel2 { relative: 1 1; to: "label.swallow.background"; }
710          }
711       }
712       part { name: "elm.text";
713          type: TEXTBLOCK;
714          mouse_events: 0;
715          scale: 1;
716          clip_to: "label.text.clip";
717          description { state: "default" 0.0;
718             rel1.relative, 0.0 0.0;
719             rel2.relative, 1.0 1.0;
720             align: 0.0 0.5;
721             text {
722                style: "seg_text_style_pressed";
723                align: 0.0 0.5;
724                min: 1 0;
725             }
726          }
727       }
728    }
729 }
730
731 group { name: "elm/label/base/default/segment_disabled";
732    data.item: "default_font_size" "24";
733    data.item: "min_font_size" "16";
734    data.item: "max_font_size" "24";
735    parts {
736       part { name: "label.swallow.background";
737          type: SWALLOW;
738          description { state: "default" 0.0;
739             visible: 1;
740             rel1.relative, 0.0 0.0;
741             rel2.relative, 1.0 1.0;
742          }
743       }
744       part { name: "label.text.clip";
745          type: RECT;
746          description { state: "default" 0.0;
747             visible: 1;
748             rel1 { relative: 0 0; to: "label.swallow.background"; }
749             rel2 { relative: 1 1; to: "label.swallow.background"; }
750          }
751       }
752       part { name: "elm.text";
753          type: TEXTBLOCK;
754          mouse_events: 0;
755          scale: 1;
756          clip_to: "label.text.clip";
757          description { state: "default" 0.0;
758             rel1.relative, 0.0 0.0;
759             rel2.relative, 1.0 1.0;
760             align: 0.0 0.5;
761             text {
762                style: "seg_text_style_disabled";
763                align: 0.0 0.5;
764                min: 1 0;
765             }
766          }
767       }
768    }
769 }
770
771
772 group { name: "elm/segment_control/base/body_style";
773    parts {
774       part { name: "bg";
775          type: RECT;
776          mouse_events: 0;
777          scale: 1;
778          description {
779             state: "default" 0.0;
780             color: 203 193 182 255;
781             rel1.offset: 5 0;
782             rel2.offset: -5 -1;
783             min: 100 40;
784          }
785       }
786    }
787 }
788
789 group { name: "elm/segment_control/item/body_style";
790    data.item: "label.wrap.part" "label.bg";
791
792    images {
793       image: "00_winset_btn_sge_normal.png" COMP;
794       image: "00_winset_btn_sge_body_normal_left.png" COMP;
795       image: "00_winset_btn_sge_body_normal_centre.png" COMP;
796       image: "00_winset_btn_sge_body_normal_right.png" COMP;
797       image: "00_winset_btn_sge_body.png" COMP;
798       image: "00_winset_btn_sge_body_press_center.png" COMP;
799       image: "00_winset_btn_sge_body_press_left.png" COMP;
800       image: "00_winset_btn_sge_body_press_right.png" COMP;
801       }
802    parts {
803       part { name: "segment";
804          mouse_events: 1;
805          scale: 1;
806          description { state: "default" 0.0;
807             min: 1 1;
808             visible: 0;
809             image {
810                normal: "00_winset_btn_sge_body.png";
811                border: 5 5 5 5;
812                border_scale: 1;
813                middle: 1;
814             }
815          }
816          description { state: "default_single" 0.0;
817             inherit: "default" 0.0;
818             visible: 1;
819             image {
820                normal: "00_winset_btn_sge_body.png";
821                border: 5 5 5 5;
822             }
823          }
824          description { state: "default_left" 0.0;
825             inherit: "default" 0.0;
826             visible: 1;
827             image {
828                normal: "00_winset_btn_sge_body_normal_left.png";
829                border:  5 1 5 5;
830             }
831          }
832          description { state: "default_right" 0.0;
833             inherit: "default" 0.0;
834             visible: 1;
835             image {
836                normal: "00_winset_btn_sge_body_normal_right.png";
837                border: 1 5 5 5;
838             }
839          }
840          description { state: "default_middle" 0.0;
841             inherit: "default" 0.0;
842             visible: 1;
843             image {
844             normal: "00_winset_btn_sge_body_normal_centre.png";
845             border: 1 1 5 5;
846             }
847          }
848          description { state: "pressed_single" 0.0;
849             inherit: "default" 0.0;
850             visible: 1;
851             image {
852                normal: "00_winset_btn_sge_normal.png";
853                border: 5 5 5 5;
854             }
855          }
856          description { state: "pressed_left" 0.0;
857             inherit: "default" 0.0;
858             visible: 1;
859             image {
860                normal: "00_winset_btn_sge_body_press_left.png";
861                border:  5 1 5 5;
862             }
863          }
864          description { state: "pressed_right" 0.0;
865             inherit: "default" 0.0;
866             visible: 1;
867             image {
868                normal: "00_winset_btn_sge_body_press_right.png";
869                border: 1 5 5 5;
870             }
871          }
872          description { state: "pressed_middle" 0.0;
873             inherit: "default" 0.0;
874             visible: 1;
875             image {
876                normal: "00_winset_btn_sge_body_press_center.png";
877                border: 1 1 7 7;
878             }
879          }
880          description { state: "selected_single" 0.0;
881             inherit: "default" 0.0;
882             visible: 1;
883             image {
884                normal: "00_winset_btn_sge_normal.png";
885                border: 5 5 5 5;
886             }
887          }
888          description { state: "selected_left" 0.0;
889             inherit: "default" 0.0;
890             visible: 1;
891             image {
892                normal: "00_winset_btn_sge_body_press_left.png";
893                border:  5 1 5 5;
894             }
895          }
896          description { state: "selected_right" 0.0;
897             inherit: "default" 0.0;
898             visible: 1;
899             image {
900                normal: "00_winset_btn_sge_body_press_right.png";
901                border: 1 5 5 5;
902             }
903          }
904          description { state: "selected_middle" 0.0;
905             inherit: "default" 0.0;
906             visible: 1;
907             image {
908                normal: "00_winset_btn_sge_body_press_center.png";
909                border: 1 1 7 7;
910             }
911          }
912       }
913       part { name: "padding_left";
914          type: RECT;
915          scale: 1;
916          mouse_events: 0;
917          description { state: "default" 0.0;
918             align: 0.0 0.0;
919             rel1.relative: 0.0 0.0;
920             rel2.relative: 0.0 1.0;
921             min: 2 2;
922             max: 2 2;
923             fixed: 1 0;
924             color: 0 0 0 0;
925          }
926       }
927       part { name: "padding_right";
928          type: RECT;
929          scale: 1;
930          mouse_events: 0;
931          description { state: "default" 0.0;
932             align: 1.0 0.0;
933             rel1.relative: 1.0 0.0;
934             rel2.relative: 1.0 1.0;
935             min: 2 2;
936             max: 2 2;
937             fixed: 1 0;
938             color: 0 0 0 0;
939          }
940       }
941       part { name: "padding_top";
942          type: RECT;
943          scale: 1;
944          mouse_events: 0;
945          description { state: "default" 0.0;
946             align: 0.0 0.0;
947             rel1.relative: 0.0 0.0;
948             rel2.relative: 1.0 0.0;
949             min: 2 2;
950             max: 2 2;
951             fixed: 0 1;
952             color: 0 0 0 0;
953          }
954       }
955       part { name: "padding_bottom";
956          type: RECT;
957          scale: 1;
958          mouse_events: 0;
959          description { state: "default" 0.0;
960             align: 1.0 1.0;
961             rel1.relative: 0.0 1.0;
962             rel2.relative: 1.0 1.0;
963             min: 2 2;
964             max: 2 2;
965             fixed: 0 1;
966             color: 0 0 0 0;
967          }
968       }
969       part { name: "icon.bg";
970          type: RECT;
971          scale: 1;
972          mouse_events: 0;
973          description { state: "default" 0.0;
974             visible: 1;
975             fixed: 1 0;
976             rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
977             rel2 {relative: 1.0 1.0; to: "elm.swallow.icon"; }
978             align: 0.0 0.5;
979             color: 0 0 0 0;
980          }
981       }
982       part { name: "padding_icon_text";
983          type: RECT;
984          scale: 1;
985          mouse_events: 0;
986          description { state: "default" 0.0; //when only icon or no icon is there
987             align: 0.0 0.0;
988             rel1 { relative: 1.0 0.0; to: "icon.bg"; }
989             rel2 { relative: 1.0 1.0; to: "icon.bg"; }
990             fixed: 1 0;
991             min: 0 0;
992             color: 0 0 0 0;
993          }
994          description { state: "icononly" 0.0;
995             inherit: "default" 0.0;
996          }
997          description { state: "visible" 0.0; //when icon is visible
998             align: 0.0 0.0;
999             rel1 { relative: 1.0 0.0; to: "icon.bg"; }
1000             rel2 { relative: 1.0 1.0; to: "icon.bg"; }
1001             fixed: 1 0;
1002             min: 2 0;
1003             color: 0 0 0 0;
1004          }
1005       }
1006       part { name: "elm.swallow.icon";
1007          type: SWALLOW;
1008          scale: 1;
1009          description { state: "default" 0.0;
1010             visible: 0;
1011             align: 0.0 0.5;
1012             rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
1013             rel2 {relative: 0.0 0.0; to_y: "padding_bottom"; }
1014             fixed: 1 0;
1015             aspect: 1.0 1.0;
1016             aspect_preference: BOTH;
1017          }
1018          description { state: "visible" 0.0;
1019             inherit: "default" 0.0;
1020             visible: 1;
1021             rel2 {relative: 0.3 0.0; to_y: "padding_bottom"; }
1022          }
1023          description { state: "icononly" 0.0;;
1024             inherit: "default" 0.0;
1025             visible: 1;
1026             rel2 {relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
1027             align: 0.5 0.5;
1028          }
1029       }
1030       part { name: "label.bg";
1031          repeat_events: 1;
1032          scale: 1;
1033          description { state: "default" 0.0;
1034             rel1 { relative: 1.0 1.0; to_x: "padding_icon_text"; to_y: "padding_top"; }
1035             rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
1036          }
1037       }
1038       part { name: "elm.swallow.label";
1039          type: SWALLOW;
1040          mouse_events: 0;
1041          scale: 1;
1042          clip_to: "label.bg";
1043          description { state: "default" 0.0;
1044             visible: 0;
1045             fixed: 1 1;
1046             min: 1 1;
1047             align: 0.0 0.5;
1048             rel1 { relative: 1.0 1.0; to_x: "padding_icon_text";}
1049             rel2 { relative: 0.0 0.0; to_x: "padding_right";}
1050          }
1051          description { state: "visible" 0.0;
1052             inherit: "default" 0.0;
1053             visible: 1;
1054          }
1055       }
1056       part { name: "disabler";
1057          repeat_events: 0;
1058          scale: 1;
1059          description { state: "default" 0.0;
1060             visible: 0;
1061             fixed: 1 1;
1062             min: 1 1;
1063             align: 0.0 0.5;
1064             rel1 { relative: 0.0 0.0; to: "segment";}
1065             rel2 { relative: 1.0 1.0; to: "segment";}
1066             color: 255 255 255 150;
1067          }
1068          description { state: "disabled_single" 0.0;
1069             inherit: "default" 0.0;
1070             visible: 1;
1071             image {
1072                normal: "00_button_02_normal.png";
1073                border: 7 7 7 7;
1074             }
1075          }
1076          description { state: "disabled_left" 0.0;
1077             inherit: "default" 0.0;
1078             visible: 1;
1079             image {
1080                normal: "00_winset_btn_sge_normal_left.png";
1081                border:  6 1 7 7;
1082             }
1083          }
1084          description { state: "disabled_right" 0.0;
1085             inherit: "default" 0.0;
1086             visible: 1;
1087             image {
1088                normal: "00_winset_btn_sge_normal_right.png";
1089                border: 1 6 7 7;
1090             }
1091          }
1092          description { state: "disabled_middle" 0.0;
1093             inherit: "default" 0.0;
1094             visible: 1;
1095             image {
1096                normal: "00_winset_btn_sge_normal_centre.png";
1097                border: 2 2 2 2;
1098             }
1099          }
1100       }
1101    }
1102    programs {
1103       script {
1104          public seg_type; // Single, Left, Middle, Right.
1105          public seg_state; // Normal/Default, Pressed, Selected.
1106          public seg_status;// Enabled/Default, Disabled
1107
1108          public update_state() {
1109             new type, state, disabled;
1110             type = get_int(seg_type);
1111             state = get_int(seg_state);
1112             disabled = get_int(seg_status);
1113
1114             if(state == SEGMENT_STATE_NORMAL)
1115               {
1116                  if(type == SEGMENT_TYPE_SINGLE)
1117                    set_state(PART:"segment", "default_single", 0.0);
1118                  else if(type == SEGMENT_TYPE_LEFT)
1119                    set_state(PART:"segment", "default_left", 0.0);
1120                  else if(type == SEGMENT_TYPE_MIDDLE)
1121                    set_state(PART:"segment", "default_middle", 0.0);
1122                  else if(type == SEGMENT_TYPE_RIGHT)
1123                    set_state(PART:"segment", "default_right", 0.0);
1124               }
1125             else if(state == SEGMENT_STATE_PRESSED)
1126               {
1127                  if(type == SEGMENT_TYPE_SINGLE)
1128                    set_state(PART:"segment", "pressed_single", 0.0);
1129                  else if(type == SEGMENT_TYPE_LEFT)
1130                    set_state(PART:"segment", "pressed_left", 0.0);
1131                  else if(type == SEGMENT_TYPE_MIDDLE)
1132                    set_state(PART:"segment", "pressed_middle", 0.0);
1133                  else if(type == SEGMENT_TYPE_RIGHT)
1134                    set_state(PART:"segment", "pressed_right", 0.0);
1135               }
1136             else if(state == SEGMENT_STATE_SELECTED)
1137               {
1138                  if(type == SEGMENT_TYPE_SINGLE)
1139                    set_state(PART:"segment", "selected_single", 0.0);
1140                  else if(type == SEGMENT_TYPE_LEFT)
1141                    set_state(PART:"segment", "selected_left", 0.0);
1142                  else if(type == SEGMENT_TYPE_MIDDLE)
1143                    set_state(PART:"segment", "selected_middle", 0.0);
1144                  else if(type == SEGMENT_TYPE_RIGHT)
1145                    set_state(PART:"segment", "selected_right", 0.0);
1146               }
1147             if(disabled == SEGMENT_STATUS_DISABLED)
1148               {
1149                  if(type == SEGMENT_TYPE_SINGLE)
1150                    set_state(PART:"disabler", "disabled_single", 0.0);
1151                  else if(type == SEGMENT_TYPE_LEFT)
1152                    set_state(PART:"disabler", "disabled_left", 0.0);
1153                  else if(type == SEGMENT_TYPE_MIDDLE)
1154                    set_state(PART:"disabler", "disabled_middle", 0.0);
1155                  else if(type == SEGMENT_TYPE_RIGHT)
1156                    set_state(PART:"disabler", "disabled_right", 0.0);
1157               }
1158          }
1159       }
1160       program {
1161          name: "segment_type_s";
1162          signal: "elm,type,segment,single";
1163          source: "elm";
1164          script {
1165             set_int(seg_status, SEGMENT_STATUS_ENABLED);
1166             set_int(seg_type, SEGMENT_TYPE_SINGLE);
1167             update_state();
1168          }
1169       }
1170       program {
1171          name: "segment_type_l";
1172          signal: "elm,type,segment,left";
1173          source: "elm";
1174          script {
1175             set_int(seg_status, SEGMENT_STATUS_ENABLED);
1176             set_int(seg_type, SEGMENT_TYPE_LEFT);
1177             update_state();
1178          }
1179       }
1180       program {
1181          name: "segment_type_m";
1182          signal: "elm,type,segment,middle";
1183          source: "elm";
1184          script {
1185             set_int(seg_status, SEGMENT_STATUS_ENABLED);
1186             set_int(seg_type, SEGMENT_TYPE_MIDDLE);
1187             update_state();
1188          }
1189       }
1190       program {
1191          name: "segment_type_r";
1192          signal: "elm,type,segment,right";
1193          source: "elm";
1194          script {
1195             set_int(seg_status, SEGMENT_STATUS_ENABLED);
1196             set_int(seg_type, SEGMENT_TYPE_RIGHT);
1197             update_state();
1198          }
1199       }
1200       program {
1201          name: "normal_segment";
1202          signal: "elm,state,segment,normal";
1203          source: "elm";
1204          script {
1205             set_int(seg_status, SEGMENT_STATUS_ENABLED);
1206             set_int(seg_state, SEGMENT_STATE_NORMAL);
1207             update_state();
1208          }
1209       }
1210       program {
1211          name: "pressed_segment";
1212          signal: "elm,state,segment,pressed";
1213          source: "elm";
1214          script {
1215             set_int(seg_status, SEGMENT_STATUS_ENABLED);
1216             set_int(seg_state, SEGMENT_STATE_PRESSED);
1217             update_state();
1218          }
1219       }
1220       program {
1221          name: "selected_segment";
1222          signal: "elm,state,segment,selected";
1223          source: "elm";
1224          script {
1225             set_int(seg_status, SEGMENT_STATUS_ENABLED);
1226             set_int(seg_state, SEGMENT_STATE_SELECTED);
1227             update_state();
1228          }
1229       }
1230       program { name: "disable_segment";
1231          signal: "elm,state,disabled";
1232          source: "elm";
1233          script {
1234             set_int(seg_status, SEGMENT_STATUS_DISABLED);
1235             update_state();
1236          }
1237       }
1238       program { name: "enable_segment";
1239          signal: "elm,state,enabled";
1240          source: "elm";
1241          script {
1242             set_int(seg_status, SEGMENT_STATUS_ENABLED);
1243             update_state();
1244          }
1245       }
1246       program { name: "text_show";
1247          signal: "elm,state,text,visible";
1248          source: "elm";
1249          script {
1250             new st[31];
1251             new Float:vl;
1252             new st1[31];
1253             new Float:vl1;
1254             get_state(PART:"elm.swallow.icon", st, 30, vl);
1255             get_state(PART:"elm.swallow.label", st1, 30, vl1);
1256             if (!strcmp(st, "icononly"))
1257               {
1258                  set_state(PART:"elm.swallow.icon", "visible", 0.0);
1259                  set_state(PART:"padding_icon_text", "visible", 0.0);
1260               }
1261             set_state(PART:"elm.swallow.label", "visible", 0.0);
1262          }
1263       }
1264       program { name: "text_hide";
1265          signal: "elm,state,text,hidden";
1266          source: "elm";
1267          script {
1268             new st[31];
1269             new Float:vl;
1270             get_state(PART:"elm.swallow.icon", st, 30, vl);
1271             if (!strcmp(st, "visible"))
1272               {
1273                  set_state(PART:"elm.swallow.icon", "icononly", 0.0);
1274                  set_state(PART:"padding_icon_text", "icononly", 0.0);
1275               }
1276             set_state(PART:"elm.swallow.label", "default", 0.0);
1277          }
1278       }
1279       program { name: "icon_show";
1280          signal: "elm,state,icon,visible";
1281          source: "elm";
1282          script {
1283             new st[31];
1284             new Float:vl;
1285             get_state(PART:"elm.swallow.label", st, 30, vl);
1286             if (!strcmp(st, "normal"))
1287               {
1288                  set_state(PART:"elm.swallow.icon", "visible", 0.0);
1289                  set_state(PART:"padding_icon_text", "visible", 0.0);
1290               }
1291             else
1292               {
1293                  set_state(PART:"elm.swallow.icon", "icononly", 0.0);
1294                  set_state(PART:"padding_icon_text", "icononly", 0.0);
1295               }
1296          }
1297       }
1298       program { name: "icon_hide";
1299          signal: "elm,state,icon,hidden";
1300          source: "elm";
1301          action:  STATE_SET "default" 0.0;
1302          target: "elm.swallow.icon";
1303       }
1304    }
1305 }
1306
1307 group { name: "elm/label/base/body_style/segment_normal";
1308    data.item: "default_font_size" "24";
1309    data.item: "min_font_size" "16";
1310    data.item: "max_font_size" "24";
1311    styles{
1312       style { name: "seg_text_body_style_normal";
1313          base: "font=SLP:style=Medium font_size=18\
1314          align=center \
1315          color="SEGMENT_CONTROL_ITEM_TITLE_BODY_TEXT_STYLE_COLOR_NORMAL_INC" wrap=char";
1316          tag:  "br" "\n";
1317          tag:  "hilight" "+ font=SLP:style=Bold";
1318          tag:  "b" "+ font=SLP:style=Bold";
1319          tag:  "tab" "\t";
1320       }
1321       style { name: "seg_text_body_style_pressed";
1322          base: "font=SLP:style=Medium font_size=18\
1323          align=center \
1324          color="SEGMENT_CONTROL_ITEM_TITLE_TEXT_STYLE_COLOR_PRESSED_INC" wrap=char";
1325          tag:  "br" "\n";
1326          tag:  "hilight" "+ font=SLP:style=Bold";
1327          tag:  "b" "+ font=SLP:style=Bold";
1328          tag:  "tab" "\t";
1329       }
1330       style { name: "seg_text_body_style_selected";
1331          base: "font=SLP:style=Medium font_size=18\
1332          align=center color="SEGMENT_CONTROL_ITEM_TITLE_BODY_TEXT_STYLE_COLOR_SELECTED_INC" \
1333          wrap=char";
1334          tag:  "br" "\n";
1335          tag:  "hilight" "+ font=SLP:style=Bold";
1336          tag:  "b" "+ font=SLP:style=Bold";
1337          tag:  "tab" "\t";
1338       }
1339       style { name: "seg_text_body_style_disabled";
1340          base: "font=SLP:style=Medium font_size=18\
1341          align=center color="SEGMENT_CONTROL_ITEM_TITLE_BODY_TEXT_STYLE_COLOR_NORMAL_INC" \
1342          wrap=char";
1343          tag:  "br" "\n";
1344          tag:  "hilight" "+ font=SLP:style=Bold";
1345          tag:  "b" "+ font=SLP:style=Bold";
1346          tag:  "tab" "\t";
1347       }
1348    }
1349    parts {
1350       part { name: "label.swallow.background";
1351          type: SWALLOW;
1352          description { state: "default" 0.0;
1353             visible: 1;
1354             rel1.relative, 0.0 0.0;
1355             rel2.relative, 1.0 1.0;
1356          }
1357       }
1358       part { name: "label.text.clip";
1359          type: RECT;
1360          description { state: "default" 0.0;
1361             visible: 1;
1362             rel1 { relative: 0 0; to: "label.swallow.background"; }
1363             rel2 { relative: 1 1; to: "label.swallow.background"; }
1364          }
1365       }
1366       part { name: "elm.text";
1367          type: TEXTBLOCK;
1368          mouse_events: 0;
1369          scale: 1;
1370          clip_to: "label.text.clip";
1371          description { state: "default" 0.0;
1372             rel1.relative, 0.0 0.0;
1373             rel2.relative, 1.0 1.0;
1374             align: 0.0 0.5;
1375             text {
1376                style: "seg_text_body_style_normal";
1377                align: 0.0 0.5;
1378                min: 1 0;
1379             }
1380          }
1381       }
1382    }
1383 }
1384
1385 group { name: "elm/label/base/body_style/segment_selected";
1386    data.item: "default_font_size" "24";
1387    data.item: "min_font_size" "16";
1388    data.item: "max_font_size" "24";
1389    parts {
1390       part { name: "label.swallow.background";
1391          type: SWALLOW;
1392          description { state: "default" 0.0;
1393             visible: 1;
1394             rel1.relative, 0.0 0.0;
1395             rel2.relative, 1.0 1.0;
1396          }
1397       }
1398       part { name: "label.text.clip";
1399          type: RECT;
1400          description { state: "default" 0.0;
1401             visible: 1;
1402             rel1 { relative: 0 0; to: "label.swallow.background"; }
1403             rel2 { relative: 1 1; to: "label.swallow.background"; }
1404          }
1405       }
1406       part { name: "elm.text";
1407          type: TEXTBLOCK;
1408          mouse_events: 0;
1409          scale: 1;
1410          clip_to: "label.text.clip";
1411          description { state: "default" 0.0;
1412             rel1.relative, 0.0 0.0;
1413             rel2.relative, 1.0 1.0;
1414             align: 0.0 0.5;
1415             text {
1416                style: "seg_text_body_style_selected";
1417                align: 0.0 0.5;
1418                min: 1 0;
1419             }
1420          }
1421       }
1422    }
1423 }
1424 group { name: "elm/label/base/body_style/segment_pressed";
1425    data.item: "default_font_size" "24";
1426    data.item: "min_font_size" "16";
1427    data.item: "max_font_size" "24";
1428    parts {
1429       part { name: "label.swallow.background";
1430          type: SWALLOW;
1431          description { state: "default" 0.0;
1432             visible: 1;
1433             rel1.relative, 0.0 0.0;
1434             rel2.relative, 1.0 1.0;
1435          }
1436       }
1437       part { name: "label.text.clip";
1438          type: RECT;
1439          description { state: "default" 0.0;
1440             visible: 1;
1441             rel1 { relative: 0 0; to: "label.swallow.background"; }
1442             rel2 { relative: 1 1; to: "label.swallow.background"; }
1443          }
1444       }
1445       part { name: "elm.text";
1446          type: TEXTBLOCK;
1447          mouse_events: 0;
1448          scale: 1;
1449          clip_to: "label.text.clip";
1450          description { state: "default" 0.0;
1451             rel1.relative, 0.0 0.0;
1452             rel2.relative, 1.0 1.0;
1453             align: 0.5 0.5;
1454             text {
1455                style: "seg_text_body_style_pressed";
1456                align: 0.5 0.5;
1457                min: 1 0;
1458             }
1459          }
1460       }
1461    }
1462 }
1463
1464 group { name: "elm/label/base/body_style/segment_disabled";
1465    data.item: "default_font_size" "24";
1466    data.item: "min_font_size" "16";
1467    data.item: "max_font_size" "24";
1468    parts {
1469       part { name: "label.swallow.background";
1470          type: SWALLOW;
1471          description { state: "default" 0.0;
1472             visible: 1;
1473             rel1.relative, 0.0 0.0;
1474             rel2.relative, 1.0 1.0;
1475          }
1476       }
1477       part { name: "label.text.clip";
1478          type: RECT;
1479          description { state: "default" 0.0;
1480             visible: 1;
1481             rel1 { relative: 0 0; to: "label.swallow.background"; }
1482             rel2 { relative: 1 1; to: "label.swallow.background"; }
1483          }
1484       }
1485       part { name: "elm.text";
1486          type: TEXTBLOCK;
1487          mouse_events: 0;
1488          scale: 1;
1489          clip_to: "label.text.clip";
1490          description { state: "default" 0.0;
1491             rel1.relative, 0.0 0.0;
1492             rel2.relative, 1.0 1.0;
1493             align: 0.0 0.5;
1494             text {
1495                style: "seg_text_body_style_disabled";
1496                align: 0.0 0.5;
1497                min: 1 0;
1498             }
1499          }
1500       }
1501    }
1502 }
1503 #undef SEGMENT_TYPE_SINGLE
1504 #undef SEGMENT_TYPE_LEFT
1505 #undef SEGMENT_TYPE_MIDDLE
1506 #undef SEGMENT_TYPE_RIGHT
1507 #undef SEGMENT_STATE_NORMAL
1508 #undef SEGMENT_STATE_PRESSED
1509 #undef SEGMENT_STATE_SELECTED
1510 #undef SEGMENT_STATUS_ENABLED
1511 #undef SEGMENT_STATUS_DISABLED