[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 group { name: "elm/segment_control/item/default";
47    data.item: "label.wrap.part" "label.bg";
48
49    images {
50       image: "00_winset_btn_sge_normal.png" COMP;
51       image: "00_winset_btn_sge_normal_left.png" COMP;
52       image: "00_winset_btn_sge_normal_centre.png" COMP;
53       image: "00_winset_btn_sge_normal_right.png" COMP;
54       image: "00_winset_btn_sge_press_normal.png" COMP;
55       image: "00_winset_btn_sge_press_left.png" COMP;
56       image: "00_winset_btn_sge_press_center.png" COMP;
57       image: "00_winset_btn_sge_press_right.png" COMP;
58       }
59    parts {
60       part { name: "segment";
61          mouse_events: 1;
62          scale: 1;
63          description { state: "default" 0.0;
64             min: 1 1;
65             visible: 0;
66             image {
67                normal: "00_winset_btn_sge_normal.png";
68                border: 5 5 5 5;
69                border_scale: 1;
70                middle: 1;
71             }
72          }
73          description { state: "default_single" 0.0;
74             inherit: "default" 0.0;
75             visible: 1;
76             image {
77                normal: "00_winset_btn_sge_normal.png";
78                border: 5 5 5 5;
79             }
80          }
81          description { state: "default_left" 0.0;
82             inherit: "default" 0.0;
83             visible: 1;
84             image {
85                normal: "00_winset_btn_sge_normal_left.png";
86                border:  5 3 5 5;
87             }
88          }
89          description { state: "default_right" 0.0;
90             inherit: "default" 0.0;
91             visible: 1;
92             image {
93                normal: "00_winset_btn_sge_normal_right.png";
94                border: 3 5 5 5;
95             }
96          }
97          description { state: "default_middle" 0.0;
98             inherit: "default" 0.0;
99             visible: 1;
100             image {
101             normal: "00_winset_btn_sge_normal_centre.png";
102             border: 2 2 7 7;
103             }
104          }
105          description { state: "pressed_single" 0.0;
106             inherit: "default" 0.0;
107             visible: 1;
108             image {
109                normal: "00_winset_btn_sge_press_normal.png";
110                border: 5 5 5 5;
111             }
112          }
113          description { state: "pressed_left" 0.0;
114             inherit: "default" 0.0;
115             visible: 1;
116             image {
117                normal: "00_winset_btn_sge_press_left.png";
118                border:  5 3 5 5;
119             }
120          }
121          description { state: "pressed_right" 0.0;
122             inherit: "default" 0.0;
123             visible: 1;
124             image {
125                normal: "00_winset_btn_sge_press_right.png";
126                border: 3 5 5 5;
127             }
128          }
129          description { state: "pressed_middle" 0.0;
130             inherit: "default" 0.0;
131             visible: 1;
132             image {
133                normal: "00_winset_btn_sge_press_center.png";
134                border: 2 2 7 7;
135             }
136          }
137          description { state: "selected_single" 0.0;
138             inherit: "default" 0.0;
139             visible: 1;
140             image {
141                normal: "00_winset_btn_sge_press_normal.png";
142                border: 5 5 5 5;
143             }
144          }
145          description { state: "selected_left" 0.0;
146             inherit: "default" 0.0;
147             visible: 1;
148             image {
149                normal: "00_winset_btn_sge_press_left.png";
150                border:  5 3 5 5;
151             }
152          }
153          description { state: "selected_right" 0.0;
154             inherit: "default" 0.0;
155             visible: 1;
156             image {
157                normal: "00_winset_btn_sge_press_right.png";
158                border: 3 5 5 5;
159             }
160          }
161          description { state: "selected_middle" 0.0;
162             inherit: "default" 0.0;
163             visible: 1;
164             image {
165                normal: "00_winset_btn_sge_press_center.png";
166                border: 2 2 7 7;
167             }
168          }
169       }
170       part { name: "padding_left";
171          type: RECT;
172          scale: 1;
173          mouse_events: 0;
174          description { state: "default" 0.0;
175             align: 0.0 0.0;
176             rel1.relative: 0.0 0.0;
177             rel2.relative: 0.0 1.0;
178             min: 2 2;
179             max: 2 2;
180             fixed: 1 0;
181             color: 0 0 0 0;
182          }
183       }
184       part { name: "padding_right";
185          type: RECT;
186          scale: 1;
187          mouse_events: 0;
188          description { state: "default" 0.0;
189             align: 1.0 0.0;
190             rel1.relative: 1.0 0.0;
191             rel2.relative: 1.0 1.0;
192             min: 2 2;
193             max: 2 2;
194             fixed: 1 0;
195             color: 0 0 0 0;
196          }
197       }
198       part { name: "padding_top";
199          type: RECT;
200          scale: 1;
201          mouse_events: 0;
202          description { state: "default" 0.0;
203             align: 0.0 0.0;
204             rel1.relative: 0.0 0.0;
205             rel2.relative: 1.0 0.0;
206             min: 2 2;
207             max: 2 2;
208             fixed: 0 1;
209             color: 0 0 0 0;
210          }
211       }
212       part { name: "padding_bottom";
213          type: RECT;
214          scale: 1;
215          mouse_events: 0;
216          description { state: "default" 0.0;
217             align: 1.0 1.0;
218             rel1.relative: 0.0 1.0;
219             rel2.relative: 1.0 1.0;
220             min: 2 2;
221             max: 2 2;
222             fixed: 0 1;
223             color: 0 0 0 0;
224          }
225       }
226       part { name: "icon.bg";
227          type: RECT;
228          scale: 1;
229          mouse_events: 0;
230          description { state: "default" 0.0;
231             visible: 1;
232             fixed: 1 0;
233             rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
234             rel2 {relative: 1.0 1.0; to: "elm.swallow.icon"; }
235             align: 0.0 0.5;
236             color: 0 0 0 0;
237          }
238       }
239       part { name: "padding_icon_text";
240          type: RECT;
241          scale: 1;
242          mouse_events: 0;
243          description { state: "default" 0.0; //when only icon or no icon is there
244             align: 0.0 0.0;
245             rel1 { relative: 1.0 0.0; to: "icon.bg"; }
246             rel2 { relative: 1.0 1.0; to: "icon.bg"; }
247             fixed: 1 0;
248             min: 0 0;
249             color: 0 0 0 0;
250          }
251          description { state: "icononly" 0.0;
252             inherit: "default" 0.0;
253          }
254          description { state: "visible" 0.0; //when icon is visible
255             align: 0.0 0.0;
256             rel1 { relative: 1.0 0.0; to: "icon.bg"; }
257             rel2 { relative: 1.0 1.0; to: "icon.bg"; }
258             fixed: 1 0;
259             min: 2 0;
260             color: 0 0 0 0;
261          }
262       }
263       part { name: "elm.swallow.icon";
264          type: SWALLOW;
265          scale: 1;
266          description { state: "default" 0.0;
267             visible: 0;
268             align: 0.0 0.5;
269             rel1 {relative: 1.0 1.0; to_x: "padding_left"; to_y: "padding_top"; }
270             rel2 {relative: 0.0 0.0; to_y: "padding_bottom"; }
271             fixed: 1 0;
272             aspect: 1.0 1.0;
273             aspect_preference: BOTH;
274          }
275          description { state: "visible" 0.0;
276             inherit: "default" 0.0;
277             visible: 1;
278             rel2 {relative: 0.3 0.0; to_y: "padding_bottom"; }
279          }
280          description { state: "icononly" 0.0;;
281             inherit: "default" 0.0;
282             visible: 1;
283             rel2 {relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
284             align: 0.5 0.5;
285          }
286       }
287       part { name: "label.bg";
288          repeat_events: 1;
289          scale: 1;
290          description { state: "default" 0.0;
291             rel1 { relative: 1.0 1.0; to_x: "padding_icon_text"; to_y: "padding_top"; }
292             rel2 { relative: 0.0 0.0; to_x: "padding_right"; to_y: "padding_bottom"; }
293          }
294       }
295       part { name: "elm.swallow.label";
296          type: SWALLOW;
297          mouse_events: 0;
298          scale: 1;
299          clip_to: "label.bg";
300          description { state: "default" 0.0;
301             visible: 0;
302             fixed: 1 1;
303             min: 1 1;
304             align: 0.0 0.5;
305             rel1 { relative: 1.0 1.0; to_x: "padding_icon_text";}
306             rel2 { relative: 0.0 0.0; to_x: "padding_right";}
307          }
308          description { state: "visible" 0.0;
309             inherit: "default" 0.0;
310             visible: 1;
311          }
312       }
313       part { name: "disabler";
314          repeat_events: 0;
315          scale: 1;
316          description { state: "default" 0.0;
317             visible: 0;
318             fixed: 1 1;
319             min: 1 1;
320             align: 0.0 0.5;
321             rel1 { relative: 0.0 0.0; to: "segment";}
322             rel2 { relative: 1.0 1.0; to: "segment";}
323             color: 255 255 255 150;
324          }
325          description { state: "disabled_single" 0.0;
326             inherit: "default" 0.0;
327             visible: 1;
328             image {
329                normal: "00_button_02_normal.png";
330                border: 7 7 7 7;
331             }
332          }
333          description { state: "disabled_left" 0.0;
334             inherit: "default" 0.0;
335             visible: 1;
336             image {
337                normal: "00_winset_btn_sge_normal_left.png";
338                border:  6 1 7 7;
339             }
340          }
341          description { state: "disabled_right" 0.0;
342             inherit: "default" 0.0;
343             visible: 1;
344             image {
345                normal: "00_winset_btn_sge_normal_right.png";
346                border: 1 6 7 7;
347             }
348          }
349          description { state: "disabled_middle" 0.0;
350             inherit: "default" 0.0;
351             visible: 1;
352             image {
353                normal: "00_winset_btn_sge_normal_centre.png";
354                border: 2 2 2 2;
355             }
356          }
357       }
358    }
359    programs {
360       script {
361          public seg_type; // 1-Single, 2-Left, 3-Middle, 4-Right.
362          public seg_state; // 1-Normal/Default, 2-Pressed, 3-Selected.
363          public seg_status;// 0-Enabled/Default, 1-Disabled
364
365          public update_state() {
366             new type, state, disabled;
367             type = get_int(seg_type);
368             state = get_int(seg_state);
369             disabled = get_int(seg_status);
370
371             if( state ==1 )
372               {
373                  if(type == 1)
374                    set_state(PART:"segment", "default_single", 0.0);
375                  else if(type == 2)
376                    set_state(PART:"segment", "default_left", 0.0);
377                  else if(type == 3)
378                    set_state(PART:"segment", "default_middle", 0.0);
379                  else if(type == 4)
380                    set_state(PART:"segment", "default_right", 0.0);
381               }
382             else if( state == 2 )
383               {
384                  if(type == 1)
385                    set_state(PART:"segment", "pressed_single", 0.0);
386                  else if(type == 2)
387                    set_state(PART:"segment", "pressed_left", 0.0);
388                  else if(type == 3)
389                    set_state(PART:"segment", "pressed_middle", 0.0);
390                   else if(type == 4)
391                    set_state(PART:"segment", "pressed_right", 0.0);
392               }
393             else if( state == 3 )
394               {
395                  if(type == 1)
396                    set_state(PART:"segment", "selected_single", 0.0);
397                  else if(type == 2)
398                    set_state(PART:"segment", "selected_left", 0.0);
399                  else if(type == 3)
400                    set_state(PART:"segment", "selected_middle", 0.0);
401                  else if(type == 4)
402                    set_state(PART:"segment", "selected_right", 0.0);
403               }
404             if( disabled == 1 )
405               {
406                  if(type == 1)
407                    set_state(PART:"disabler", "disabled_single", 0.0);
408                  else if(type == 2)
409                    set_state(PART:"disabler", "disabled_left", 0.0);
410                  else if(type == 3)
411                    set_state(PART:"disabler", "disabled_middle", 0.0);
412                  else if(type == 4)
413                    set_state(PART:"disabler", "disabled_right", 0.0);
414               }
415          }
416       }
417       program {
418          name: "segment_type_s";
419          signal: "elm,type,segment,single";
420          source: "elm";
421          script {
422             set_int(seg_status, 0);
423             set_int(seg_type, 1);
424             update_state();
425          }
426       }
427       program {
428          name: "segment_type_l";
429          signal: "elm,type,segment,left";
430          source: "elm";
431          script {
432             set_int(seg_status, 0);
433             set_int(seg_type, 2);
434             update_state();
435          }
436       }
437       program {
438          name: "segment_type_m";
439          signal: "elm,type,segment,middle";
440          source: "elm";
441          script {
442             set_int(seg_status, 0);
443             set_int(seg_type, 3);
444             update_state();
445          }
446       }
447       program {
448          name: "segment_type_r";
449          signal: "elm,type,segment,right";
450          source: "elm";
451          script {
452             set_int(seg_status, 0);
453             set_int(seg_type, 4);
454             update_state();
455          }
456       }
457       program {
458          name: "normal_segment";
459          signal: "elm,state,segment,normal";
460          source: "elm";
461          script {
462             set_int(seg_status, 0);
463             set_int(seg_state, 1);
464             update_state();
465          }
466       }
467       program {
468          name: "pressed_segment";
469          signal: "elm,state,segment,pressed";
470          source: "elm";
471          script {
472             set_int(seg_status, 0);
473             set_int(seg_state, 2);
474             update_state();
475          }
476       }
477       program {
478          name: "selected_segment";
479          signal: "elm,state,segment,selected";
480          source: "elm";
481          script {
482             set_int(seg_status, 0);
483             set_int(seg_state, 3);
484             update_state();
485          }
486       }
487       program { name: "disable_segment";
488          signal: "elm,state,disabled";
489          source: "elm";
490          script {
491             set_int(seg_status, 1);
492             update_state();
493          }
494       }
495       program { name: "enable_segment";
496          signal: "elm,state,enabled";
497          source: "elm";
498          script {
499             set_int(seg_status, 0);
500             update_state();
501          }
502       }
503       program { name: "text_show";
504          signal: "elm,state,text,visible";
505          source: "elm";
506          script {
507             new st[31];
508             new Float:vl;
509             new st1[31];
510             new Float:vl1;
511             get_state(PART:"elm.swallow.icon", st, 30, vl);
512             get_state(PART:"elm.swallow.label", st1, 30, vl1);
513             if (!strcmp(st, "icononly"))
514               {
515                  set_state(PART:"elm.swallow.icon", "visible", 0.0);
516                  set_state(PART:"padding_icon_text", "visible", 0.0);
517               }
518             set_state(PART:"elm.swallow.label", "visible", 0.0);
519          }
520       }
521       program { name: "text_hide";
522          signal: "elm,state,text,hidden";
523          source: "elm";
524          script {
525             new st[31];
526             new Float:vl;
527             get_state(PART:"elm.swallow.icon", st, 30, vl);
528             if (!strcmp(st, "visible"))
529               {
530                  set_state(PART:"elm.swallow.icon", "icononly", 0.0);
531                  set_state(PART:"padding_icon_text", "icononly", 0.0);
532               }
533             set_state(PART:"elm.swallow.label", "default", 0.0);
534          }
535       }
536       program { name: "icon_show";
537          signal: "elm,state,icon,visible";
538          source: "elm";
539          script {
540             new st[31];
541             new Float:vl;
542             get_state(PART:"elm.swallow.label", st, 30, vl);
543             if (!strcmp(st, "normal"))
544               {
545                  set_state(PART:"elm.swallow.icon", "visible", 0.0);
546                  set_state(PART:"padding_icon_text", "visible", 0.0);
547               }
548             else
549               {
550                  set_state(PART:"elm.swallow.icon", "icononly", 0.0);
551                  set_state(PART:"padding_icon_text", "icononly", 0.0);
552               }
553          }
554       }
555       program { name: "icon_hide";
556          signal: "elm,state,icon,hidden";
557          source: "elm";
558          action:  STATE_SET "default" 0.0;
559          target: "elm.swallow.icon";
560       }
561    }
562 }
563
564 group { name: "elm/label/base/segment_normal";
565    data.item: "default_font_size" "24";
566    data.item: "min_font_size" "16";
567    data.item: "max_font_size" "24";
568    styles{
569       style { name: "seg_text_style_normal";
570          base: "font=SLP:style=Medium font_size=18 style=shadow \
571          shadow_color="SEGMENT_CONTROL_ITEM_TITLE_TEXT_SHADOW_STYLE_COLOR_NORMAL_INC" \
572          align=center \
573          color="SEGMENT_CONTROL_ITEM_TITLE_TEXT_STYLE_COLOR_NORMAL_INC" wrap=char";
574          tag:  "br" "\n";
575          tag:  "hilight" "+ font=SLP:style=Bold";
576          tag:  "b" "+ font=SLP:style=Bold";
577          tag:  "tab" "\t";
578       }
579       style { name: "seg_text_style_pressed";
580          base: "font=SLP:style=Medium font_size=18 style=shadow \
581          shadow_color="SEGMENT_CONTROL_ITEM_TITLE_TEXT_SHADOW_STYLE_COLOR_NORMAL_INC" \
582          align=center \
583          color="SEGMENT_CONTROL_ITEM_TITLE_TEXT_STYLE_COLOR_PRESSED_INC" wrap=char";
584          tag:  "br" "\n";
585          tag:  "hilight" "+ font=SLP:style=Bold";
586          tag:  "b" "+ font=SLP:style=Bold";
587          tag:  "tab" "\t";
588       }
589       style { name: "seg_text_style_selected";
590          base: "font=SLP:style=Medium font_size=18 style=shadow \
591          shadow_color="SEGMENT_CONTROL_ITEM_TITLE_TEXT_SHADOW_STYLE_COLOR_SELECTED_INC" \
592          align=center color="SEGMENT_CONTROL_ITEM_TITLE_TEXT_STYLE_COLOR_SELECTED_INC" \
593          wrap=char";
594          tag:  "br" "\n";
595          tag:  "hilight" "+ font=SLP:style=Bold";
596          tag:  "b" "+ font=SLP:style=Bold";
597          tag:  "tab" "\t";
598       }
599       style { name: "seg_text_style_disabled";
600          base: "font=SLP:style=Medium font_size=18 style=shadow \
601          shadow_color="SEGMENT_CONTROL_ITEM_TITLE_TEXT_SHADOW_STYLE_COLOR_SELECTED_INC" \
602          align=center color="SEGMENT_CONTROL_ITEM_TITLE_TEXT_STYLE_COLOR_DISABLED_INC" \
603          wrap=char";
604          tag:  "br" "\n";
605          tag:  "hilight" "+ font=SLP:style=Bold";
606          tag:  "b" "+ font=SLP:style=Bold";
607          tag:  "tab" "\t";
608       }
609    }
610    parts {
611       part { name: "label.swallow.background";
612          type: SWALLOW;
613          description { state: "default" 0.0;
614             visible: 1;
615             rel1.relative, 0.0 0.0;
616             rel2.relative, 1.0 1.0;
617          }
618       }
619       part { name: "label.text.clip";
620          type: RECT;
621          description { state: "default" 0.0;
622             visible: 1;
623             rel1 { relative: 0 0; to: "label.swallow.background"; }
624             rel2 { relative: 1 1; to: "label.swallow.background"; }
625          }
626       }
627       part { name: "elm.text";
628          type: TEXTBLOCK;
629          mouse_events: 0;
630          scale: 1;
631          clip_to: "label.text.clip";
632          description { state: "default" 0.0;
633             rel1.relative, 0.0 0.0;
634             rel2.relative, 1.0 1.0;
635             align: 0.0 0.5;
636             text {
637                style: "seg_text_style_normal";
638                align: 0.0 0.5;
639                min: 1 0;
640             }
641          }
642       }
643    }
644 }
645
646 group { name: "elm/label/base/segment_selected";
647    data.item: "default_font_size" "24";
648    data.item: "min_font_size" "16";
649    data.item: "max_font_size" "24";
650    parts {
651       part { name: "label.swallow.background";
652          type: SWALLOW;
653          description { state: "default" 0.0;
654             visible: 1;
655             rel1.relative, 0.0 0.0;
656             rel2.relative, 1.0 1.0;
657          }
658       }
659       part { name: "label.text.clip";
660          type: RECT;
661          description { state: "default" 0.0;
662             visible: 1;
663             rel1 { relative: 0 0; to: "label.swallow.background"; }
664             rel2 { relative: 1 1; to: "label.swallow.background"; }
665          }
666       }
667       part { name: "elm.text";
668          type: TEXTBLOCK;
669          mouse_events: 0;
670          scale: 1;
671          clip_to: "label.text.clip";
672          description { state: "default" 0.0;
673             rel1.relative, 0.0 0.0;
674             rel2.relative, 1.0 1.0;
675             align: 0.0 0.5;
676             text {
677                style: "seg_text_style_selected";
678                align: 0.0 0.5;
679                min: 1 0;
680             }
681          }
682       }
683    }
684 }
685 group { name: "elm/label/base/segment_pressed";
686    data.item: "default_font_size" "24";
687    data.item: "min_font_size" "16";
688    data.item: "max_font_size" "24";
689    parts {
690       part { name: "label.swallow.background";
691          type: SWALLOW;
692          description { state: "default" 0.0;
693             visible: 1;
694             rel1.relative, 0.0 0.0;
695             rel2.relative, 1.0 1.0;
696          }
697       }
698       part { name: "label.text.clip";
699          type: RECT;
700          description { state: "default" 0.0;
701             visible: 1;
702             rel1 { relative: 0 0; to: "label.swallow.background"; }
703             rel2 { relative: 1 1; to: "label.swallow.background"; }
704          }
705       }
706       part { name: "elm.text";
707          type: TEXTBLOCK;
708          mouse_events: 0;
709          scale: 1;
710          clip_to: "label.text.clip";
711          description { state: "default" 0.0;
712             rel1.relative, 0.0 0.0;
713             rel2.relative, 1.0 1.0;
714             align: 0.0 0.5;
715             text {
716                style: "seg_text_style_pressed";
717                align: 0.0 0.5;
718                min: 1 0;
719             }
720          }
721       }
722    }
723 }
724
725 group { name: "elm/label/base/segment_disabled";
726    data.item: "default_font_size" "24";
727    data.item: "min_font_size" "16";
728    data.item: "max_font_size" "24";
729    parts {
730       part { name: "label.swallow.background";
731          type: SWALLOW;
732          description { state: "default" 0.0;
733             visible: 1;
734             rel1.relative, 0.0 0.0;
735             rel2.relative, 1.0 1.0;
736          }
737       }
738       part { name: "label.text.clip";
739          type: RECT;
740          description { state: "default" 0.0;
741             visible: 1;
742             rel1 { relative: 0 0; to: "label.swallow.background"; }
743             rel2 { relative: 1 1; to: "label.swallow.background"; }
744          }
745       }
746       part { name: "elm.text";
747          type: TEXTBLOCK;
748          mouse_events: 0;
749          scale: 1;
750          clip_to: "label.text.clip";
751          description { state: "default" 0.0;
752             rel1.relative, 0.0 0.0;
753             rel2.relative, 1.0 1.0;
754             align: 0.0 0.5;
755             text {
756                style: "seg_text_style_disabled";
757                align: 0.0 0.5;
758                min: 1 0;
759             }
760          }
761       }
762    }
763 }