merge with master
[profile/ivi/efl-theme-tizen.git] / themes / widgets / conformant.edc
1 /*
2  * efl-theme-tizen
3  * Copyright (c) 2012-2013 Samsung Electronics Co., Ltd.
4  *
5  * Licensed under the Apache License, Version 2.0 (the License);
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  *     http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an AS IS BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17
18
19
20 /////////////////////////////////////////////////////////////////////////////
21  group { name: "elm/conformant/base/default";
22      script {
23         public indicator_visible = 0;     //Indicator visible check
24         public indicator_opacity = 0;     //0=opaque, 1=translucent, 2=transparent
25         public indicator_overlap = 0;     //check indicator overlap/nooverlap
26         public clipboard_disable  = 0;     //check clipboard enable/disable
27         public keypad_disable = 0;  //check virtualkeypad enable/disable
28         public landscape = 0; //Landscape mode status
29         public portrait_overlap = 0; //save portrait_overlap mode
30         public portrait_opacity = 0; //save portrait_opacity
31      }
32      parts {
33         part { name: "elm.swallow.bg";
34            type: SWALLOW;
35            scale: 1;
36            description { state: "default" 0.0;
37            }
38         }
39         part { name: "elm.swallow.content";
40            type: SWALLOW;
41            scale: 1;
42            description { state: "default" 0.0; //indi:nooverlap, clipboard: enable, keypad: enable/disable
43               align: 0.5 0.5;
44               rel1.relative: 0.0 1.0;
45               rel1.to: "elm.swallow.indicator";
46               rel2.relative: 1.0 0.0;
47               rel2.to: "elm.swallow.clipboard";
48            }
49            description { state: "nooverlap_disable_clipboard_enable_keypad" 0.0; //indi:nooverlap, clipboard: disable, keypad: enable
50               inherit: "default" 0.0;
51               rel2.to: "elm.swallow.virtualkeypad";
52            }
53            description { state: "nooverlap_disable_clipboard_disable_keypad" 0.0; //indi:nooverlap, clipboard: disable, keypad: disable
54               inherit: "default" 0.0;
55               rel2.relative: 1.0 1.0;
56               rel2.to: "elm.swallow.bg";
57            }
58            description { state: "overlap_enable_clipboard" 0.0; //indi:overlap, clipboard: enable, keypad: enable/disable
59               inherit: "default" 0.0;
60               rel1.relative: 0.0 0.0;
61               rel1.to: "elm.swallow.indicator";
62            }
63            description { state: "overlap_disable_clipboard_enable_keypad" 0.0; //indi:overlap, clipboard: disable, keypad: enable
64               inherit: "default" 0.0;
65               rel1.relative: 0.0 0.0;
66               rel1.to: "elm.swallow.indicator";
67               rel2.to: "elm.swallow.virtualkeypad";
68            }
69            description { state: "overlap_disable_clipboard_disable_keypad" 0.0; //indi:overlap, clipboard: disable, keypad: enable
70               inherit: "default" 0.0;
71               rel1.relative: 0.0 0.0;
72               rel1.to: "elm.swallow.indicator";
73               rel2.relative: 1.0 1.0;
74               rel2.to: "elm.swallow.bg";
75            }
76         }
77         part { name: "elm.swallow.ug";
78            type: SWALLOW;
79            scale: 1;
80            description { state: "default" 0.0;
81               align: 0.5 0.5;
82               rel1.relative: 0.0 1.0;
83               rel1.to: "elm.swallow.indicator";
84               rel2.relative: 1.0 0.0;
85               rel2.to: "elm.swallow.clipboard";
86            }
87            description { state: "overlap" 0.0;
88               inherit: "default" 0.0;
89               align: 0.5 0.5;
90               rel1.relative: 0.0 0.0;
91               rel1.to: "elm.swallow.indicator";
92               rel2.relative: 1.0 0.0;
93               rel2.to: "elm.swallow.clipboard";
94            }
95         }
96         part { name: "indicator_bg";
97            type: RECT;
98            scale: 1;
99            description { state: "default" 0.0;
100               fixed: 0 1;
101               align: 0.5 0.0;
102               min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
103               rel2.relative: 1.0 0.0;
104               visible: 1;
105               color: CONFORMANT_INDICATOR_BG_DEFAULT_COLOR_INC;
106            }
107            description { state: "translucent" 0.0;
108               fixed: 0 1;
109               align: 0.5 0.0;
110               min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
111               rel2.relative: 1.0 0.0;
112               visible: 1;
113               color: CONFORMANT_INDICATOR_BG_TRANSLUCENT_COLOR_INC;
114            }
115            description { state: "transparent" 0.0;
116               fixed: 0 1;
117               align: 0.5 0.0;
118               min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
119               rel2.relative: 1.0 0.0;
120               visible: 1;
121               color: CONFORMANT_INDICATOR_BG_TRANSPARENT_COLOR_INC;
122            }
123             description { state: "hide" 0.0;
124               inherit: "default" 0.0;
125               visible: 0;
126               min: 0 0;
127            }
128         }
129         part { name: "elm.swallow.indicator";
130            type: SWALLOW;
131            scale: 1;
132            description { state: "default" 0.0;
133               fixed: 0 1;
134               align: 0.5 0.0;
135               min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
136               rel2.relative: 1.0 0.0;
137               visible: 1;
138            }
139             description { state: "hide" 0.0;
140               inherit: "default" 0.0;
141               visible: 0;
142               min: 0 0;
143            }
144         }
145         part { name: "access"; type: RECT;
146            repeat_events: 1;
147            description { state: "default" 0.0;
148              fixed: 1 1;
149              rel1 { relative: 0.9 0.0; to: "elm.swallow.indicator"; }
150              rel2 { relative: 1.0 1.0; to: "elm.swallow.indicator"; }
151              color: 0 0 0 0;
152              visible: 0;
153            }
154            description { state: "visible" 0.0;
155               inherit: "default" 0.0;
156               visible: 1;
157            }
158         }
159         part { name: "elm.swallow.clipboard";
160            type: SWALLOW;
161            description { state: "default" 0.0;
162               fixed: 0 1;
163               align: 0.0 1.0;
164               rel1.relative: 0.0 0.0;
165               rel1.to_y: "elm.swallow.virtualkeypad";
166               rel2.relative: 1.0 0.0;
167               rel2.to_y: "elm.swallow.virtualkeypad";
168            }
169            description { state: "disable_keypad" 0.0;
170               inherit: "default" 0.0;
171               rel1.relative: 0.0 1.0;
172               rel1.to_y: "elm.swallow.bg";
173               rel2.relative: 1.0 1.0;
174               rel2.to_y: "elm.swallow.bg";
175            }
176         }
177         part { name: "elm.swallow.virtualkeypad";
178            type: SWALLOW;
179            description { state: "default" 0.0;
180               fixed: 0 1;
181               align: 0.0 1.0;
182               rel1.relative: 0.0 1.0;
183            }
184         }
185      }
186      programs {
187         program {
188             name: "show_indicator";
189             signal: "elm,state,indicator,show";
190             source: "elm";
191             script {
192                set_int(indicator_visible, 1);
193                set_state(PART:"elm.swallow.indicator", "default", 0.0);
194                if (get_int(indicator_opacity) == 0)
195                   set_state(PART:"indicator_bg", "opaque", 0.0);
196                if (get_int(indicator_opacity) == 1)
197                   set_state(PART:"indicator_bg", "translucent", 0.0);
198                if (get_int(indicator_opacity) == 2)
199                   set_state(PART:"indicator_bg", "transparent", 0.0);
200             }
201         }
202         program {
203             name: "hide_indicator";
204             signal: "elm,state,indicator,hide";
205             source: "elm";
206             script {
207                set_int(indicator_visible, 0);
208                set_state(PART:"elm.swallow.indicator", "hide", 0.0);
209                set_state(PART:"indicator_bg", "hide", 0.0);
210             }
211         }
212         program {
213             name: "opaque_indicator";
214             signal: "elm,state,indicator,opaque";
215             source: "elm";
216             script {
217                set_int(indicator_opacity, 0);
218                if (get_int(indicator_visible) == 1)
219                   set_state(PART:"indicator_bg", "opaque", 0.0);
220             }
221         }
222         program {
223             name: "translucent_indicator";
224             signal: "elm,state,indicator,translucent";
225             source: "elm";
226             script {
227                set_int(indicator_opacity, 1);
228                if (get_int(indicator_visible) == 1)
229                   set_state(PART:"indicator_bg", "translucent", 0.0);
230             }
231         }
232         program {
233             name: "transparent_indicator";
234             signal: "elm,state,indicator,transparent";
235             source: "elm";
236             script {
237                set_int(indicator_opacity, 2);
238                if (get_int(indicator_visible) == 1)
239                   set_state(PART:"indicator_bg", "transparent", 0.0);
240             }
241         }
242         program {
243            name: "overlap_indicator";
244            signal: "elm,state,indicator,overlap";
245            source: "";
246            script {
247               set_int(indicator_overlap, 1);
248               set_state(PART:"elm.swallow.ug", "overlap", 0.0);
249               if (get_int(clipboard_disable) == 0)
250                 set_state(PART:"elm.swallow.content", "overlap_enable_clipboard", 0.0);
251               else
252                 {
253                    if (get_int(keypad_disable) == 0)
254                      set_state(PART:"elm.swallow.content", "overlap_disable_clipboard_enable_keypad", 0.0);
255                    else
256                      set_state(PART:"elm.swallow.content", "overlap_disable_clipboard_disable_keypad", 0.0);
257                 }
258           }
259         }
260         program {
261            name: "nooverlap_indicator";
262            signal: "elm,state,indicator,nooverlap";
263            source: "";
264            script {
265               set_int(indicator_overlap, 0);
266               set_state(PART:"elm.swallow.ug", "default", 0.0);
267               if (get_int(clipboard_disable) == 0)
268                 set_state(PART:"elm.swallow.content", "default", 0.0);
269               else
270                 {
271                    if (get_int(keypad_disable) == 0)
272                      set_state(PART:"elm.swallow.content", "nooverlap_disable_clipboard_enable_keypad", 0.0);
273                    else
274                      set_state(PART:"elm.swallow.content", "nooverlap_disable_clipboard_disable_keypad", 0.0);
275                 }
276            }
277         }
278         program { name: "enable_clipboard";
279            signal: "elm,state,clipboard,enable";
280            source: "";
281            script {
282               set_int(clipboard_disable, 0);
283               //set content state
284               if (get_int(indicator_overlap) == 0)
285                 set_state(PART:"elm.swallow.content", "default", 0.0);
286               else
287                 set_state(PART:"elm.swallow.content", "overlap_enable_clipboard", 0.0);
288               //set clipboard state
289               if (get_int(keypad_disable) == 1)
290                 set_state(PART:"elm.swallow.clipboard", "disable_keypad", 0.0);
291               else
292                 set_state(PART:"elm.swallow.clipboard", "default", 0.0);
293            }
294         }
295         program { name: "disable_clipboard";
296            signal: "elm,state,clipboard,disable";
297            source: "";
298            script {
299               set_int(clipboard_disable, 1);
300               set_state(PART:"elm.swallow.clipboard", "default", 0.0);
301               if (get_int(indicator_overlap) == 0)
302                 {
303                    if (get_int(keypad_disable) == 1)
304                      set_state(PART:"elm.swallow.content", "nooverlap_disable_clipboard_disable_keypad", 0.0);
305                    else
306                      set_state(PART:"elm.swallow.content", "nooverlap_disable_clipboard_enable_keypad", 0.0);
307                 }
308               else
309                 {
310                    if (get_int(keypad_disable) == 1)
311                      set_state(PART:"elm.swallow.content", "overlap_disable_clipboard_disable_keypad", 0.0);
312                    else
313                      set_state(PART:"elm.swallow.content", "overlap_disable_clipboard_enable_keypad", 0.0);
314                 }
315            }
316         }
317         program { name: "enable_virtualkeypad";
318            signal: "elm,state,virtualkeypad,enable";
319            source: "";
320            script {
321               set_int(keypad_disable, 0);
322               set_state(PART:"elm.swallow.clipboard", "default", 0.0);
323               if (get_int(clipboard_disable) == 1)
324                 {
325                    if (get_int(indicator_overlap) == 0)
326                      set_state(PART:"elm.swallow.content", "nooverlap_disable_clipboard_enable_keypad", 0.0);
327                    else
328                      set_state(PART:"elm.swallow.content", "overlap_disable_clipboard_enable_keypad", 0.0);
329                 }
330               else
331                 {
332                    if (get_int(indicator_overlap) == 0)
333                      set_state(PART:"elm.swallow.content", "default", 0.0);
334                    else
335                      set_state(PART:"elm.swallow.content", "overlap_enable_clipboard", 0.0);
336                 }
337            }
338         }
339         program { name: "disable_virtualkeypad";
340            signal: "elm,state,virtualkeypad,disable";
341            source: "";
342            script {
343               set_int(keypad_disable, 1);
344               if (get_int(clipboard_disable) == 1)
345                 {
346                    set_state(PART:"elm.swallow.clipboard", "default", 0.0);
347                    if (get_int(indicator_overlap) == 0)
348                      set_state(PART:"elm.swallow.content", "nooverlap_disable_clipboard_disable_keypad", 0.0);
349                    else
350                      set_state(PART:"elm.swallow.content", "overlap_disable_clipboard_disable_keypad", 0.0);
351                 }
352               else
353                 {
354                    set_state(PART:"elm.swallow.clipboard", "disable_keypad", 0.0);
355                    if (get_int(indicator_overlap) == 0)
356                      set_state(PART:"elm.swallow.content", "default", 0.0);
357                    else
358                      set_state(PART:"elm.swallow.content", "overlap_enable_clipboard", 0.0);
359                 }
360            }
361         }
362          program { name: "access_on";
363             signal: "elm,state,access,on";
364             source: "elm";
365             action: STATE_SET "visible" 0.0;
366             target: "access";
367          }
368          program { name: "access_off";
369             signal: "elm,state,access,off";
370             source: "elm";
371             action: STATE_SET "default" 0.0;
372             target: "access";
373          }
374          program {
375             name: "change_to_landscape";
376             signal: "elm,state,landscape";
377             source: "elm";
378             script {
379                if (get_int(landscape) == 0) {
380                   set_int(portrait_overlap, get_int(indicator_overlap));
381                   set_int(landscape, 1);
382                   set_int(portrait_opacity, get_int(indicator_visible));
383                   run_program(PROGRAM:"overlap_indicator");
384                   run_program(PROGRAM:"transparent_indicator");
385                }
386             }
387          }
388          program {
389             name: "change_to_portrait";
390             signal: "elm,state,portrait";
391             source: "elm";
392             script {
393                if (get_int(landscape) == 1) {  //content start (0, indicator height)
394                   set_int(indicator_overlap, get_int(portrait_overlap));
395                   set_int(indicator_opacity, get_int(portrait_opacity));
396                   if (get_int(indicator_overlap) == 0) { //start (0,60)
397                      run_program(PROGRAM:"nooverlap_indicator");
398                   }
399                   else { //content start (0, 0)
400                      run_program(PROGRAM:"overlap_indicator");
401                   }
402                   if (get_int(portrait_opacity) == 2) //transparent
403                      run_program(PROGRAM:"transparent_indicator");
404                   else if (get_int(portrait_opacity) == 1) //translucent
405                      run_program(PROGRAM:"translucent_indicator");
406                   else
407                      run_program(PROGRAM:"opaque_indicator");
408                   set_int(landscape, 0);
409                }
410             }
411          }
412          program { name: "landscape_mode";
413             source: "elm";
414             signal: "elm,state,orient,90";
415             action: SIGNAL_EMIT "elm,state,landscape" "elm";
416          }
417          program { name: "landscape_mode2";
418             source: "elm";
419             signal: "elm,state,orient,270";
420             action: SIGNAL_EMIT "elm,state,landscape" "elm";
421          }
422          program { name: "portrait_mode";
423             source: "elm";
424             signal: "elm,state,orient,0";
425             action: SIGNAL_EMIT "elm,state,portrait" "elm";
426          }
427          program { name: "portrait_mode2";
428             source: "elm";
429             signal: "elm,state,orient,180";
430             action: SIGNAL_EMIT "elm,state,portrait" "elm";
431          }
432      }
433   }
434  group { name: "elm/conformant/base/indicator_overlap";
435      script {
436         public indicator_visible = 0;     //Indicator visible check
437         public indicator_opacity = 0;     //0=opaque, 1=translucent, 2=transparent
438      }
439      parts {
440         part { name: "elm.swallow.bg";
441            type: SWALLOW;
442            scale: 1;
443            description { state: "default" 0.0;
444            }
445         }
446         part { name: "elm.swallow.content";
447            type: SWALLOW;
448            scale: 1;
449            description { state: "default" 0.0;
450               align: 0.5 0.5;
451               rel2.relative: 1.0 0.0;
452               rel2.to: "elm.swallow.clipboard";
453            }
454         }
455         part { name: "elm.swallow.ug";
456            type: SWALLOW;
457            scale: 1;
458            description { state: "default" 0.0;
459               align: 0.5 0.5;
460               rel1.relative: 0.0 1.0;
461               rel1.to: "elm.swallow.indicator";
462               rel2.relative: 1.0 0.0;
463               rel2.to: "elm.swallow.clipboard";
464            }
465         }
466         part { name: "indicator_bg";
467            type: RECT;
468            scale: 1;
469            description { state: "default" 0.0;
470               fixed: 0 1;
471               align: 0.5 0.0;
472               min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
473               rel2.relative: 1.0 0.0;
474               visible: 1;
475               color: CONFORMANT_INDICATOR_BG_DEFAULT_COLOR_INC;
476            }
477            description { state: "translucent" 0.0;
478               fixed: 0 1;
479               align: 0.5 0.0;
480               min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
481               rel2.relative: 1.0 0.0;
482               visible: 1;
483               color: CONFORMANT_INDICATOR_BG_TRANSLUCENT_COLOR_INC;
484            }
485            description { state: "transparent" 0.0;
486               fixed: 0 1;
487               align: 0.5 0.0;
488               min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
489               rel2.relative: 1.0 0.0;
490               visible: 1;
491               color: CONFORMANT_INDICATOR_BG_TRANSPARENT_COLOR_INC;
492            }
493             description { state: "hide" 0.0;
494               inherit: "default" 0.0;
495               visible: 0;
496               min: 0 0;
497            }
498         }
499         part { name: "elm.swallow.indicator";
500            type: SWALLOW;
501            scale: 1;
502            description { state: "default" 0.0;
503               fixed: 0 1;
504               align: 0.5 0.0;
505               min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
506               rel2.relative: 1.0 0.0;
507               visible: 1;
508            }
509             description { state: "hide" 0.0;
510               inherit: "default" 0.0;
511               visible: 0;
512               min: 0 0;
513            }
514         }
515         part { name: "elm.swallow.clipboard";
516            type: SWALLOW;
517            description { state: "default" 0.0;
518               fixed: 0 1;
519               align: 0.0 1.0;
520               rel1.relative: 0.0 0.0;
521               rel1.to_y: "elm.swallow.virtualkeypad";
522               rel2.relative: 1.0 0.0;
523               rel2.to_y: "elm.swallow.virtualkeypad";
524            }
525         }
526         part { name: "elm.swallow.virtualkeypad";
527            type: SWALLOW;
528            description { state: "default" 0.0;
529               fixed: 0 1;
530               align: 0.0 1.0;
531               rel1.relative: 0.0 1.0;
532            }
533         }
534      }
535      programs {
536         program {
537             name: "show_indicator";
538             signal: "elm,state,indicator,show";
539             source: "elm";
540             script {
541                set_int(indicator_visible, 1);
542                set_state(PART:"elm.swallow.indicator", "default", 0.0);
543                if (get_int(indicator_opacity) == 0)
544                   set_state(PART:"indicator_bg", "opaque", 0.0);
545                if (get_int(indicator_opacity) == 1)
546                   set_state(PART:"indicator_bg", "translucent", 0.0);
547                if (get_int(indicator_opacity) == 2)
548                   set_state(PART:"indicator_bg", "transparent", 0.0);
549             }
550         }
551         program {
552             name: "hide_indicator";
553             signal: "elm,state,indicator,hide";
554             source: "elm";
555             script {
556                set_int(indicator_visible, 0);
557                set_state(PART:"elm.swallow.indicator", "hide", 0.0);
558                set_state(PART:"indicator_bg", "hide", 0.0);
559             }
560         }
561         program {
562             name: "opaque_indicator";
563             signal: "elm,state,indicator,opaque";
564             source: "elm";
565             script {
566                set_int(indicator_opacity, 0);
567                if (get_int(indicator_visible) == 1)
568                   set_state(PART:"indicator_bg", "opaque", 0.0);
569             }
570         }
571         program {
572             name: "translucent_indicator";
573             signal: "elm,state,indicator,translucent";
574             source: "elm";
575             script {
576                set_int(indicator_opacity, 1);
577                if (get_int(indicator_visible) == 1)
578                   set_state(PART:"indicator_bg", "translucent", 0.0);
579             }
580         }
581         program {
582             name: "transparent_indicator";
583             signal: "elm,state,indicator,transparent";
584             source: "elm";
585             script {
586                set_int(indicator_opacity, 2);
587                if (get_int(indicator_visible) == 1)
588                   set_state(PART:"indicator_bg", "transparent", 0.0);
589             }
590         }
591      }
592   }
593
594   group { name: "elm/conformant/base/nokeypad";
595      script {
596         public indicator_visible = 0;     //Indicator visible check
597         public indicator_opacity = 0;     //0=opaque, 1=translucent, 2=transparent
598      }
599      parts {
600         part { name: "elm.swallow.bg";
601            type: SWALLOW;
602            scale: 1;
603            description { state: "default" 0.0;
604            }
605         }
606         part { name: "elm.swallow.content";
607            type: SWALLOW;
608            scale: 1;
609            description { state: "default" 0.0;
610               align: 0.5 0.5;
611               rel1.relative: 0.0 1.0;
612               rel1.to: "elm.swallow.indicator";
613            }
614         }
615         part { name: "elm.swallow.ug";
616            type: SWALLOW;
617            scale: 1;
618            description { state: "default" 0.0;
619               align: 0.5 0.5;
620               rel1.relative: 0.0 1.0;
621               rel1.to: "elm.swallow.indicator";
622            }
623         }
624         part { name: "indicator_bg";
625            type: RECT;
626            scale: 1;
627            description { state: "default" 0.0;
628               fixed: 0 1;
629               align: 0.5 0.0;
630               min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
631               rel2.relative: 1.0 0.0;
632               visible: 1;
633               color: CONFORMANT_INDICATOR_BG_DEFAULT_COLOR_INC;
634            }
635            description { state: "translucent" 0.0;
636               fixed: 0 1;
637               align: 0.5 0.0;
638               min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
639               rel2.relative: 1.0 0.0;
640               visible: 1;
641               color: CONFORMANT_INDICATOR_BG_TRANSLUCENT_COLOR_INC;
642            }
643            description { state: "transparent" 0.0;
644               fixed: 0 1;
645               align: 0.5 0.0;
646               min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
647               rel2.relative: 1.0 0.0;
648               visible: 1;
649               color: CONFORMANT_INDICATOR_BG_TRANSPARENT_COLOR_INC;
650            }
651             description { state: "hide" 0.0;
652               inherit: "default" 0.0;
653               visible: 0;
654               min: 0 0;
655            }
656         }
657         part { name: "elm.swallow.indicator";
658            type: SWALLOW;
659            scale: 1;
660            description { state: "default" 0.0;
661               fixed: 0 1;
662               align: 0.5 0.0;
663               min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
664               rel2.relative: 1.0 0.0;
665               visible: 1;
666            }
667             description { state: "hide" 0.0;
668               inherit: "default" 0.0;
669               visible: 0;
670               min: 0 0;
671            }
672         }
673      }
674      programs {
675         program {
676             name: "show_indicator";
677             signal: "elm,state,indicator,show";
678             source: "elm";
679             script {
680                set_int(indicator_visible, 1);
681                set_state(PART:"elm.swallow.indicator", "default", 0.0);
682                if (get_int(indicator_opacity) == 0)
683                   set_state(PART:"indicator_bg", "opaque", 0.0);
684                if (get_int(indicator_opacity) == 1)
685                   set_state(PART:"indicator_bg", "translucent", 0.0);
686                if (get_int(indicator_opacity) == 2)
687                   set_state(PART:"indicator_bg", "transparent", 0.0);
688             }
689         }
690         program {
691             name: "hide_indicator";
692             signal: "elm,state,indicator,hide";
693             source: "elm";
694             script {
695                set_int(indicator_visible, 0);
696                set_state(PART:"elm.swallow.indicator", "hide", 0.0);
697                set_state(PART:"indicator_bg", "hide", 0.0);
698             }
699         }
700         program {
701             name: "opaque_indicator";
702             signal: "elm,state,indicator,opaque";
703             source: "elm";
704             script {
705                set_int(indicator_opacity, 0);
706                if (get_int(indicator_visible) == 1)
707                   set_state(PART:"indicator_bg", "opaque", 0.0);
708             }
709         }
710         program {
711             name: "translucent_indicator";
712             signal: "elm,state,indicator,translucent";
713             source: "elm";
714             script {
715                set_int(indicator_opacity, 1);
716                if (get_int(indicator_visible) == 1)
717                   set_state(PART:"indicator_bg", "translucent", 0.0);
718             }
719         }
720         program {
721             name: "transparent_indicator";
722             signal: "elm,state,indicator,transparent";
723             source: "elm";
724             script {
725                set_int(indicator_opacity, 2);
726                if (get_int(indicator_visible) == 1)
727                   set_state(PART:"indicator_bg", "transparent", 0.0);
728             }
729         }
730      }
731   }