- name: "show_indicator"; //show indicator using effect
- signal: "elm,state,indicator,show";
- source: "elm";
- script {
- set_int(indicator_visible, 1);
- set_state(PART:"indicator_base", "default", 0.0);
- //it is possible app call show after opacity call
- /////Portrait
- if (get_int(landscape) == 0) {
- if (get_int(indicator_opacity) == 0)
- run_program(PROGRAM:"opaque_state");
- if (get_int(indicator_opacity) == 1)
- run_program(PROGRAM:"translucent_state");
- if (get_int(indicator_opacity) == 2)
- run_program(PROGRAM:"transparent_state");
- }
- /////Landscape
- else
- run_program(PROGRAM:"transparent_state");
- }
- }
- program {