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