}
}
}
+ group { name: "elm/conformant/base/without_resize";
+ script {
+ public indicator_visible = 0; //Indicator visible check
+ public indicator_opacity = 0; //0=opaque, 1=translucent, 2=transparent
+ }
+ parts {
+ part { name: "elm.swallow.bg";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ }
+ }
+ part { name: "elm.swallow.indicator_area";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 0 1;
+ align: 0.5 0.0;
+ min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
+ rel2.relative: 1.0 0.0;
+ visible: 1;
+ }
+ }
+ part { name: "elm.swallow.content";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ align: 0.5 0.5;
+ rel1.relative: 0.0 1.0;
+ rel1.to: "elm.swallow.indicator_area";
+ }
+ }
+ part { name: "indicator_bg";
+ type: RECT;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 0 1;
+ align: 0.5 0.0;
+ min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
+ rel2.relative: 1.0 0.0;
+ visible: 1;
+ color: CONFORMANT_INDICATOR_BG_DEFAULT_COLOR_INC;
+ }
+ description { state: "translucent" 0.0;
+ fixed: 0 1;
+ align: 0.5 0.0;
+ min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
+ rel2.relative: 1.0 0.0;
+ visible: 1;
+ color: CONFORMANT_INDICATOR_BG_TRANSLUCENT_COLOR_INC;
+ }
+ description { state: "transparent" 0.0;
+ fixed: 0 1;
+ align: 0.5 0.0;
+ min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
+ rel2.relative: 1.0 0.0;
+ visible: 1;
+ color: CONFORMANT_INDICATOR_BG_TRANSPARENT_COLOR_INC;
+ }
+ description { state: "hide" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ min: 0 0;
+ }
+ }
+ part { name: "elm.swallow.indicator";
+ type: SWALLOW;
+ scale: 1;
+ description { state: "default" 0.0;
+ fixed: 0 1;
+ align: 0.5 0.0;
+ min: 0 LAYOUT_INDICATOR_HEIGHT_INC;
+ rel2.relative: 1.0 0.0;
+ visible: 1;
+ }
+ description { state: "hide" 0.0;
+ inherit: "default" 0.0;
+ visible: 0;
+ min: 0 0;
+ }
+ }
+ }
+ programs {
+ program {
+ name: "show_indicator";
+ signal: "elm,state,indicator,show";
+ source: "elm";
+ script {
+ set_int(indicator_visible, 1);
+ set_state(PART:"elm.swallow.indicator", "default", 0.0);
+ if (get_int(indicator_opacity) == 0)
+ set_state(PART:"indicator_bg", "opaque", 0.0);
+ if (get_int(indicator_opacity) == 1)
+ set_state(PART:"indicator_bg", "translucent", 0.0);
+ if (get_int(indicator_opacity) == 2)
+ set_state(PART:"indicator_bg", "transparent", 0.0);
+ }
+ }
+ program {
+ name: "hide_indicator";
+ signal: "elm,state,indicator,hide";
+ source: "elm";
+ script {
+ set_int(indicator_visible, 0);
+ set_state(PART:"elm.swallow.indicator", "hide", 0.0);
+ set_state(PART:"indicator_bg", "hide", 0.0);
+ }
+ }
+ program {
+ name: "opaque_indicator";
+ signal: "elm,state,indicator,opaque";
+ source: "elm";
+ script {
+ set_int(indicator_opacity, 0);
+ if (get_int(indicator_visible) == 1)
+ set_state(PART:"indicator_bg", "opaque", 0.0);
+ }
+ }
+ program {
+ name: "translucent_indicator";
+ signal: "elm,state,indicator,translucent";
+ source: "elm";
+ script {
+ set_int(indicator_opacity, 1);
+ if (get_int(indicator_visible) == 1)
+ set_state(PART:"indicator_bg", "translucent", 0.0);
+ }
+ }
+ program {
+ name: "transparent_indicator";
+ signal: "elm,state,indicator,transparent";
+ source: "elm";
+ script {
+ set_int(indicator_opacity, 2);
+ if (get_int(indicator_visible) == 1)
+ set_state(PART:"indicator_bg", "transparent", 0.0);
+ }
+ }
+ }
+ }