add new style in conformant for quick panel and apptary
authorJiyoun Park <jy0703.park@samsung.com>
Fri, 29 Mar 2013 02:58:48 +0000 (11:58 +0900)
committerSungho Kwak <sungho1.kwak@samsung.com>
Tue, 2 Apr 2013 10:08:24 +0000 (19:08 +0900)
they should not resized when indicator show/hide

Change-Id: Ied830f822583c0fadb19dae8c01a9c2efb1de1ac

themes/widgets/conformant.edc

index 1735fe3..8dafb7e 100644 (file)
         }
      }
   }
+  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);
+            }
+        }
+     }
+  }