Remove the mobile specific indicator
[platform/core/uifw/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_effect = 0;     //Indicator need effect
24         public indicator_visible = 0;     //Indicator visible check
25         public indicator_opacity = 0;     //0=opaque, 1=translucent, 2=transparent
26         public indicator_overlap = 0;     //check indicator overlap/nooverlap
27         public clipboard_disable  = 0;     //check clipboard enable/disable
28         public keypad_disable = 0;  //check virtualkeypad enable/disable
29         public landscape = 0; //Landscape mode status
30         public portrait_overlap = 0; //save portrait_overlap mode
31         public portrait_opacity = 0; //save portrait_opacity
32      }
33      parts {
34         part { name: "elm.swallow.bg";
35            type: SWALLOW;
36            scale: 1;
37            description { state: "default" 0.0;
38            }
39         }
40         part { name: "indicator_base";
41            type: RECT;
42            scale: 1;
43            mouse_events: 0;
44            description { state: "default" 0.0;
45               fixed: 0 1;
46               align: 0.5 0.0;
47               min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
48               rel2.relative: 1.0 0.0;
49               visible: 0;
50            }
51            description { state: "hide" 0.0;
52               inherit: "default" 0.0;
53               min: 0 0;
54            }
55         }
56         part { name: "indicator_overlap_base";
57            type: RECT;
58            description { state: "default" 0.0; //nooverlap
59               rel1 { relative: 0.0 0.0; to: "indicator_base"; }
60               rel2 { relative: 1.0 1.0; to: "indicator_base"; }
61               visible: 0;
62            }
63            description { state: "overlap" 0.0; //content start (0,0)
64               inherit: "default" 0.0;
65               rel2 { relative: 1.0 0.0; to: "indicator_base"; }
66            }
67         }
68         part { name: "elm.swallow.content";
69            type: SWALLOW;
70            scale: 1;
71            description { state: "default" 0.0; //sip: enable
72               align: 0.5 0.5;
73               rel1.relative: 0.0 1.0;
74               rel1.to: "indicator_overlap_base";
75               rel2.relative: 1.0 0.0;
76               rel2.to: "sip_area";
77            }
78            description { state: "disable_sip" 0.0; //sip: disable
79               inherit: "default" 0.0;
80               rel2.relative: 1.0 1.0;
81               rel2.to: "elm.swallow.bg";
82            }
83         }
84         part { name: "elm.swallow.ug";
85            type: SWALLOW;
86            scale: 1;
87            description { state: "default" 0.0;
88               align: 0.5 0.5;
89               rel1.relative: 0.0 1.0;
90               rel1.to: "indicator_overlap_base";
91               rel2.relative: 1.0 0.0;
92               rel2.to: "sip_area";
93            }
94            description { state: "disable_sip" 0.0; //sip: disable
95               inherit: "default" 0.0;
96               rel2.relative: 1.0 1.0;
97               rel2.to: "elm.swallow.bg";
98            }
99         }
100         part { name: "indicator_clipper";
101            type: RECT;
102            description { state: "default" 0.0;
103               rel1 { relative: 0.0 0.0; to: "indicator_base"; }
104               rel2 { relative: 1.0 1.0; to: "indicator_base"; }
105               visible: 1;
106            }
107            description { state: "hide" 0.0;
108               inherit: "default" 0.0;
109               rel1 { relative: 0.0 -1.0; to: "indicator_base"; }
110               rel2 { relative: 1.0  0.0; to: "indicator_base"; }
111            }
112         }
113         part { name: "indicator_bg";
114            type: RECT;
115            mouse_events: 0;
116            clip_to: "indicator_clipper";
117            description { state: "default" 0.0;
118               rel1 { relative: 0.0 0.0; to: "indicator_clipper"; }
119               rel2 { relative: 1.0 1.0; to: "indicator_clipper"; }
120               color: CONFORMANT_INDICATOR_BG_DEFAULT_COLOR_INC;
121            }
122            description { state: "translucent" 0.0;
123               inherit: "default" 0.0;
124               color: CONFORMANT_INDICATOR_BG_TRANSLUCENT_COLOR_INC;
125            }
126         }
127         part { name: "elm.swallow.indicator";
128            type: SWALLOW;
129            scale: 1;
130            clip_to: "indicator_clipper";
131            description { state: "default" 0.0;
132               rel1 { relative: 0.0 0.0; to: "indicator_clipper"; }
133               rel2 { relative: 1.0 1.0; to: "indicator_clipper"; }
134            }
135         }
136         part { name: "sip_area";
137            type: RECT;
138            description { state: "default" 0.0;
139               fixed: 0 1;
140               min: 0 0;
141               rel1.relative: 0.0 0.0;
142               rel1.to_y: "elm.swallow.virtualkeypad";
143               rel2.relative: 1.0 1.0;
144               rel2.to_y: "elm.swallow.virtualkeypad";
145               visible: 0;
146            }
147            description { state: "clipboard_on" 0.0;
148               inherit: "default" 0.0;
149               rel1.to_y: "elm.swallow.clipboard";
150               rel2.to_y: "elm.swallow.clipboard";
151            }
152         }
153         part { name: "elm.swallow.clipboard";
154            type: SWALLOW;
155            description { state: "default" 0.0;
156               fixed: 0 1;
157               align: 0.0 1.0;
158               rel1.relative: 0.0 1.0;
159            }
160         }
161         part { name: "elm.swallow.virtualkeypad";
162            type: SWALLOW;
163            description { state: "default" 0.0;
164               fixed: 0 1;
165               align: 0.0 1.0;
166               rel1.relative: 0.0 1.0;
167            }
168         }
169         part { name: "elm.swallow.indicator_event";
170            type: SWALLOW;
171            description { state: "default" 0.0;
172               rel1 { relative: 0.0 0.0; to: "indicator_base"; }
173               rel2 { relative: 1.0 1.0; to: "indicator_base"; }
174            }
175         }
176      }
177      programs {
178         program {
179             name: "hide_indicator";
180             signal: "elm,state,indicator,hide";
181             source: "elm";
182             script {
183                set_int(indicator_visible, 0);
184                set_state(PART:"indicator_base", "hide", 0.0);
185             }
186         }
187         program {
188             name: "show_indicator_transition"; //show indicator using effect
189             action: STATE_SET "default" 0.0;
190             target: "indicator_clipper";
191             transition: DECELERATE 0.5;
192         }
193         program {
194             name: "hide_indicator_transition"; //show indicator using effect
195             action: STATE_SET "hide" 0.0;
196             target: "indicator_clipper";
197             transition: DECELERATE 0.5;
198         }
199         program {
200             name: "show_indicator_effect"; //show indicator using effect
201             signal: "indicator,show,effect";
202             source: "elm";
203             script {
204                if (get_int(indicator_visible) == 1)
205                  run_program(PROGRAM:"show_indicator_transition");
206             }
207         }
208         program {
209             name: "hide_indicator_effect"; //show indicator using effect
210             signal: "indicator,hide,effect";
211             source: "elm";
212             script {
213                if (get_int(indicator_visible) == 1)
214                  run_program(PROGRAM:"hide_indicator_transition");
215             }
216         }
217         program {
218             name: "opaque_state";
219             script {
220                set_state(PART:"indicator_bg", "default", 0.0);
221                set_state(PART:"indicator_clipper", "default", 0.0);
222                set_state(PART:"indicator_overlap_base", "default", 0.0);
223             }
224         }
225         program {
226             name: "translucent_state";
227             script {
228                set_state(PART:"indicator_bg", "translucent", 0.0);
229                set_state(PART:"indicator_clipper", "default", 0.0);
230                set_state(PART:"indicator_overlap_base", "overlap", 0.0);
231             }
232         }
233         program {
234             name: "transparent_state";
235             script {
236                set_state(PART:"indicator_bg", "default", 0.0);
237                set_state(PART:"indicator_clipper", "hide", 0.0);
238                set_state(PART:"indicator_overlap_base", "overlap", 0.0);
239             }
240         }
241         program {
242             name: "opaque_indicator";
243             signal: "elm,state,indicator,opaque";
244             source: "elm";
245             script {
246               set_int(indicator_opacity, 0);
247               if ((get_int(indicator_visible) == 1) && (get_int(landscape) == 0))
248                 run_program(PROGRAM:"opaque_state");
249             }
250         }
251         program {
252             name: "translucent_indicator";
253             signal: "elm,state,indicator,translucent";
254             source: "elm";
255             script {
256                set_int(indicator_opacity, 1);
257                if ((get_int(indicator_visible) == 1) && (get_int(landscape) == 0))
258                  run_program(PROGRAM:"translucent_state");
259             }
260         }
261         program {
262             name: "transparent_indicator";
263             signal: "elm,state,indicator,transparent";
264             source: "elm";
265             script {
266                set_int(indicator_opacity, 2);
267                if (get_int(indicator_visible) == 1)
268                  run_program(PROGRAM:"transparent_state");
269             }
270         }
271         program {
272            name: "overlap_indicator";
273            signal: "elm,state,indicator,overlap";
274            source: "elm";
275            script {
276               set_int(indicator_overlap, 1);
277               set_state(PART:"indicator_overlap_base", "overlap", 0.0);
278           }
279         }
280         program {
281            name: "nooverlap_indicator";
282            signal: "elm,state,indicator,nooverlap";
283            source: "elm";
284            script {
285               //Only portrait state get nooverlap mode
286               set_int(indicator_overlap, 0);
287               if (get_int(indicator_visible) == 1)
288                 if (get_int(indicator_opacity) == 0) { //only opaque can be nooverlap
289                   if (get_int(landscape) == 0) { //landscape should be overlap
290                     set_state(PART:"indicator_overlap_base", "default", 0.0);
291                   }
292                 }
293            }
294         }
295         program { name: "enable_clipboard";
296            signal: "elm,state,clipboard,enable";
297            source: "";
298            script {
299               set_int(clipboard_disable, 0);
300               //set content state
301               set_state(PART:"elm.swallow.content", "default", 0.0);
302            }
303         }
304         program { name: "disable_clipboard";
305            signal: "elm,state,clipboard,disable";
306            source: "";
307            script {
308               set_int(clipboard_disable, 1);
309               set_state(PART:"sip_area", "default", 0.0);
310               if (get_int(keypad_disable) == 1)
311                 set_state(PART:"elm.swallow.content", "disable_sip", 0.0);
312               else
313                 set_state(PART:"elm.swallow.content", "default", 0.0);
314            }
315         }
316         program { name: "enable_virtualkeypad";
317            signal: "elm,state,virtualkeypad,enable";
318            source: "";
319            script {
320               set_int(keypad_disable, 0);
321               set_state(PART:"elm.swallow.content", "default", 0.0);
322            }
323         }
324         program { name: "disable_virtualkeypad";
325            signal: "elm,state,virtualkeypad,disable";
326            source: "";
327            script {
328               set_int(keypad_disable, 1);
329               if (get_int(clipboard_disable) == 1)
330                 {
331                    set_state(PART:"sip_area", "clipboard_on", 0.0);
332                    set_state(PART:"elm.swallow.content", "disable_sip", 0.0);
333                 }
334               else
335                 set_state(PART:"elm.swallow.content", "default", 0.0);
336            }
337         }
338         program {
339             name: "change_to_landscape";
340             signal: "elm,state,landscape";
341             source: "elm";
342             script {
343                if (get_int(landscape) == 0) { 
344                  set_int(landscape, 1);
345                  if (get_int(indicator_visible) == 1)
346                    run_program(PROGRAM:"transparent_state");
347                }
348             }
349          }
350          program {
351             name: "change_to_portrait";
352             signal: "elm,state,portrait";
353             source: "elm";
354             script {
355                if (get_int(indicator_visible) == 1) { 
356                  if (get_int(landscape) == 1) {  //content start (0, indicator height)
357                     set_int(landscape, 0);
358                     if (get_int(indicator_opacity) == 2)
359                       run_program(PROGRAM:"transparent_state");
360                     else if (get_int(indicator_opacity) == 1)
361                       run_program(PROGRAM:"translucent_state");
362                     else 
363                       run_program(PROGRAM:"opaque_state");
364                  }
365                }
366             }
367          }
368          program { name: "landscape_mode";
369             source: "elm";
370             signal: "elm,state,orient,90";
371             action: SIGNAL_EMIT "elm,state,landscape" "elm";
372          }
373          program { name: "landscape_mode2";
374             source: "elm";
375             signal: "elm,state,orient,270";
376             action: SIGNAL_EMIT "elm,state,landscape" "elm";
377          }
378          program { name: "portrait_mode";
379             source: "elm";
380             signal: "elm,state,orient,0";
381             action: SIGNAL_EMIT "elm,state,portrait" "elm";
382          }
383          program { name: "portrait_mode2";
384             source: "elm";
385             signal: "elm,state,orient,180";
386             action: SIGNAL_EMIT "elm,state,portrait" "elm";
387         }
388         program {
389             name: "clipboard_on";
390             signal: "elm,state,clipboard,on";
391             source: "elm";
392             action: STATE_SET "clipboard_on" 0.0;
393             target: "sip_area";
394         }
395         program {
396             name: "clipboard_off";
397             signal: "elm,state,clipboard,off";
398             source: "elm";
399             action: STATE_SET "default" 0.0;
400             target: "sip_area";
401         }
402      }
403   }
404  group { name: "elm/conformant/base/indicator_overlap";
405      script {
406         public indicator_visible = 0;     //Indicator visible check
407         public indicator_opacity = 0;     //0=opaque, 1=translucent, 2=transparent
408      }
409      parts {
410         part { name: "elm.swallow.bg";
411            type: SWALLOW;
412            scale: 1;
413            description { state: "default" 0.0;
414            }
415         }
416         part { name: "elm.swallow.content";
417            type: SWALLOW;
418            scale: 1;
419            description { state: "default" 0.0;
420               align: 0.5 0.5;
421               rel2.relative: 1.0 0.0;
422               rel2.to: "sip_area";
423            }
424         }
425         part { name: "elm.swallow.ug";
426            type: SWALLOW;
427            scale: 1;
428            description { state: "default" 0.0;
429               align: 0.5 0.5;
430               rel1.relative: 0.0 1.0;
431               rel1.to: "elm.swallow.indicator";
432               rel2.relative: 1.0 0.0;
433               rel2.to: "sip_area";
434            }
435         }
436         part { name: "indicator_bg";
437            type: RECT;
438            scale: 1;
439            description { state: "default" 0.0;
440               fixed: 0 1;
441               align: 0.5 0.0;
442               min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
443               rel2.relative: 1.0 0.0;
444               visible: 1;
445               color: CONFORMANT_INDICATOR_BG_DEFAULT_COLOR_INC;
446            }
447            description { state: "translucent" 0.0;
448               fixed: 0 1;
449               align: 0.5 0.0;
450               min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
451               rel2.relative: 1.0 0.0;
452               visible: 1;
453               color: CONFORMANT_INDICATOR_BG_TRANSLUCENT_COLOR_INC;
454            }
455            description { state: "transparent" 0.0;
456               fixed: 0 1;
457               align: 0.5 0.0;
458               min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
459               rel2.relative: 1.0 0.0;
460               visible: 1;
461               color: CONFORMANT_INDICATOR_BG_DEFAULT_COLOR_INC;
462            }
463             description { state: "hide" 0.0;
464               inherit: "default" 0.0;
465               visible: 0;
466               min: 0 0;
467            }
468         }
469         part { name: "elm.swallow.indicator";
470            type: SWALLOW;
471            scale: 1;
472            description { state: "default" 0.0;
473               fixed: 0 1;
474               align: 0.5 0.0;
475               min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
476               rel2.relative: 1.0 0.0;
477               visible: 1;
478            }
479             description { state: "hide" 0.0;
480               inherit: "default" 0.0;
481               visible: 0;
482               min: 0 0;
483            }
484         }
485         part { name: "sip_area";
486            type: RECT;
487            description { state: "default" 0.0;
488               fixed: 0 1;
489               min: 0 0;
490               rel1.relative: 0.0 0.0;
491               rel1.to_y: "elm.swallow.virtualkeypad";
492               rel2.relative: 1.0 1.0;
493               rel2.to_y: "elm.swallow.virtualkeypad";
494               visible: 0;
495            }
496            description { state: "clipboard_on" 0.0;
497               inherit: "default" 0.0;
498               rel1.to_y: "elm.swallow.clipboard";
499               rel2.to_y: "elm.swallow.clipboard";
500            }
501         }
502         part { name: "elm.swallow.clipboard";
503            type: SWALLOW;
504            description { state: "default" 0.0;
505               fixed: 0 1;
506               align: 0.0 1.0;
507               rel1.relative: 0.0 1.0;
508            }
509         }
510         part { name: "elm.swallow.virtualkeypad";
511            type: SWALLOW;
512            description { state: "default" 0.0;
513               fixed: 0 1;
514               align: 0.0 1.0;
515               rel1.relative: 0.0 1.0;
516            }
517         }
518      }
519      programs {
520         program {
521             name: "hide_indicator";
522             signal: "elm,state,indicator,hide";
523             source: "elm";
524             script {
525                set_int(indicator_visible, 0);
526                set_state(PART:"elm.swallow.indicator", "hide", 0.0);
527                set_state(PART:"indicator_bg", "hide", 0.0);
528             }
529         }
530         program {
531             name: "opaque_indicator";
532             signal: "elm,state,indicator,opaque";
533             source: "elm";
534             script {
535                set_int(indicator_opacity, 0);
536                if (get_int(indicator_visible) == 1)
537                   set_state(PART:"indicator_bg", "opaque", 0.0);
538             }
539         }
540         program {
541             name: "translucent_indicator";
542             signal: "elm,state,indicator,translucent";
543             source: "elm";
544             script {
545                set_int(indicator_opacity, 1);
546                if (get_int(indicator_visible) == 1)
547                   set_state(PART:"indicator_bg", "translucent", 0.0);
548             }
549         }
550         program {
551             name: "transparent_indicator";
552             signal: "elm,state,indicator,transparent";
553             source: "elm";
554             script {
555                set_int(indicator_opacity, 2);
556                if (get_int(indicator_visible) == 1)
557                   set_state(PART:"indicator_bg", "transparent", 0.0);
558             }
559         }
560         program {
561             name: "clipboard_on";
562             signal: "elm,state,clipboard,on";
563             source: "elm";
564             action: STATE_SET "clipboard_on" 0.0;
565             target: "sip_area";
566         }
567         program {
568             name: "clipboard_off";
569             signal: "elm,state,clipboard,off";
570             source: "elm";
571             action: STATE_SET "default" 0.0;
572             target: "sip_area";
573         }
574      }
575   }
576
577   group { name: "elm/conformant/base/nokeypad";
578      script {
579         public indicator_visible = 0;     //Indicator visible check
580         public indicator_opacity = 0;     //0=opaque, 1=translucent, 2=transparent
581      }
582      parts {
583         part { name: "elm.swallow.bg";
584            type: SWALLOW;
585            scale: 1;
586            description { state: "default" 0.0;
587            }
588         }
589         part { name: "elm.swallow.content";
590            type: SWALLOW;
591            scale: 1;
592            description { state: "default" 0.0;
593               align: 0.5 0.5;
594               rel1.relative: 0.0 1.0;
595               rel1.to: "elm.swallow.indicator";
596            }
597         }
598         part { name: "elm.swallow.ug";
599            type: SWALLOW;
600            scale: 1;
601            description { state: "default" 0.0;
602               align: 0.5 0.5;
603               rel1.relative: 0.0 1.0;
604               rel1.to: "elm.swallow.indicator";
605            }
606         }
607         part { name: "indicator_bg";
608            type: RECT;
609            scale: 1;
610            description { state: "default" 0.0;
611               fixed: 0 1;
612               align: 0.5 0.0;
613               min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
614               rel2.relative: 1.0 0.0;
615               visible: 1;
616               color: CONFORMANT_INDICATOR_BG_DEFAULT_COLOR_INC;
617            }
618            description { state: "translucent" 0.0;
619               fixed: 0 1;
620               align: 0.5 0.0;
621               min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
622               rel2.relative: 1.0 0.0;
623               visible: 1;
624               color: CONFORMANT_INDICATOR_BG_TRANSLUCENT_COLOR_INC;
625            }
626            description { state: "transparent" 0.0;
627               fixed: 0 1;
628               align: 0.5 0.0;
629               min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
630               rel2.relative: 1.0 0.0;
631               visible: 1;
632               color: CONFORMANT_INDICATOR_BG_TRANSPARENT_COLOR_INC;
633            }
634             description { state: "hide" 0.0;
635               inherit: "default" 0.0;
636               visible: 0;
637               min: 0 0;
638            }
639         }
640         part { name: "elm.swallow.indicator";
641            type: SWALLOW;
642            scale: 1;
643            description { state: "default" 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            }
650             description { state: "hide" 0.0;
651               inherit: "default" 0.0;
652               visible: 0;
653               min: 0 0;
654            }
655         }
656      }
657      programs {
658         program {
659             name: "hide_indicator";
660             signal: "elm,state,indicator,hide";
661             source: "elm";
662             script {
663                set_int(indicator_visible, 0);
664                set_state(PART:"elm.swallow.indicator", "hide", 0.0);
665                set_state(PART:"indicator_bg", "hide", 0.0);
666             }
667         }
668         program {
669             name: "opaque_indicator";
670             signal: "elm,state,indicator,opaque";
671             source: "elm";
672             script {
673                set_int(indicator_opacity, 0);
674                if (get_int(indicator_visible) == 1)
675                   set_state(PART:"indicator_bg", "opaque", 0.0);
676             }
677         }
678         program {
679             name: "translucent_indicator";
680             signal: "elm,state,indicator,translucent";
681             source: "elm";
682             script {
683                set_int(indicator_opacity, 1);
684                if (get_int(indicator_visible) == 1)
685                   set_state(PART:"indicator_bg", "translucent", 0.0);
686             }
687         }
688         program {
689             name: "transparent_indicator";
690             signal: "elm,state,indicator,transparent";
691             source: "elm";
692             script {
693                set_int(indicator_opacity, 2);
694                if (get_int(indicator_visible) == 1)
695                   set_state(PART:"indicator_bg", "transparent", 0.0);
696             }
697         }
698      }
699   }
700   group { name: "elm/conformant/base/without_resize";
701      script {
702         public indicator_visible = 0;     //Indicator visible check
703         public indicator_opacity = 0;     //0=opaque, 1=translucent, 2=transparent
704      }
705      parts {
706         part { name: "elm.swallow.bg";
707            type: SWALLOW;
708            scale: 1;
709            description { state: "default" 0.0;
710            }
711         }
712         part { name: "elm.swallow.indicator_area";
713            type: SWALLOW;
714            scale: 1;
715            description { state: "default" 0.0;
716               fixed: 0 1;
717               align: 0.5 0.0;
718               min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
719               rel2.relative: 1.0 0.0;
720               visible: 1;
721            }
722         }
723         part { name: "elm.swallow.content";
724            type: SWALLOW;
725            scale: 1;
726            description { state: "default" 0.0;
727               align: 0.5 0.5;
728               rel1.relative: 0.0 1.0;
729               rel1.to: "elm.swallow.indicator_area";
730            }
731         }
732         part { name: "indicator_bg";
733            type: RECT;
734            scale: 1;
735            description { state: "default" 0.0;
736               fixed: 0 1;
737               align: 0.5 0.0;
738               min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
739               rel2.relative: 1.0 0.0;
740               visible: 1;
741               color: CONFORMANT_INDICATOR_BG_DEFAULT_COLOR_INC;
742            }
743            description { state: "translucent" 0.0;
744               fixed: 0 1;
745               align: 0.5 0.0;
746               min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
747               rel2.relative: 1.0 0.0;
748               visible: 1;
749               color: CONFORMANT_INDICATOR_BG_TRANSLUCENT_COLOR_INC;
750            }
751            description { state: "transparent" 0.0;
752               fixed: 0 1;
753               align: 0.5 0.0;
754               min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
755               rel2.relative: 1.0 0.0;
756               visible: 1;
757               color: CONFORMANT_INDICATOR_BG_TRANSPARENT_COLOR_INC;
758            }
759             description { state: "hide" 0.0;
760               inherit: "default" 0.0;
761               visible: 0;
762               min: 0 0;
763            }
764         }
765         part { name: "elm.swallow.indicator";
766            type: SWALLOW;
767            scale: 1;
768            description { state: "default" 0.0;
769               fixed: 0 1;
770               align: 0.5 0.0;
771               min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
772               rel2.relative: 1.0 0.0;
773               visible: 1;
774            }
775             description { state: "hide" 0.0;
776               inherit: "default" 0.0;
777               visible: 0;
778               min: 0 0;
779            }
780         }
781      }
782      programs {
783         program {
784             name: "hide_indicator";
785             signal: "elm,state,indicator,hide";
786             source: "elm";
787             script {
788                set_int(indicator_visible, 0);
789                set_state(PART:"elm.swallow.indicator", "hide", 0.0);
790                set_state(PART:"indicator_bg", "hide", 0.0);
791             }
792         }
793         program {
794             name: "opaque_indicator";
795             signal: "elm,state,indicator,opaque";
796             source: "elm";
797             script {
798                set_int(indicator_opacity, 0);
799                if (get_int(indicator_visible) == 1)
800                   set_state(PART:"indicator_bg", "opaque", 0.0);
801             }
802         }
803         program {
804             name: "translucent_indicator";
805             signal: "elm,state,indicator,translucent";
806             source: "elm";
807             script {
808                set_int(indicator_opacity, 1);
809                if (get_int(indicator_visible) == 1)
810                   set_state(PART:"indicator_bg", "translucent", 0.0);
811             }
812         }
813         program {
814             name: "transparent_indicator";
815             signal: "elm,state,indicator,transparent";
816             source: "elm";
817             script {
818                set_int(indicator_opacity, 2);
819                if (get_int(indicator_visible) == 1)
820                   set_state(PART:"indicator_bg", "transparent", 0.0);
821             }
822         }
823      }
824   }