[Scroller] change the shadow effect of the list and add gengrid shadow effect
authorJaehwan Kim <jae.hwan.kim@samsung.com>
Tue, 19 Mar 2013 09:31:12 +0000 (18:31 +0900)
committerSungho Kwak <sungho1.kwak@samsung.com>
Thu, 21 Mar 2013 08:17:53 +0000 (17:17 +0900)
themes/images/tizen-hd/00_grid_overscrolling_bottom.png [new file with mode: 0755]
themes/images/tizen-hd/00_grid_overscrolling_left.png [new file with mode: 0755]
themes/images/tizen-hd/00_grid_overscrolling_right.png [new file with mode: 0755]
themes/images/tizen-hd/00_grid_overscrolling_top.png [new file with mode: 0755]
themes/widgets/scroller.edc

diff --git a/themes/images/tizen-hd/00_grid_overscrolling_bottom.png b/themes/images/tizen-hd/00_grid_overscrolling_bottom.png
new file mode 100755 (executable)
index 0000000..773488a
Binary files /dev/null and b/themes/images/tizen-hd/00_grid_overscrolling_bottom.png differ
diff --git a/themes/images/tizen-hd/00_grid_overscrolling_left.png b/themes/images/tizen-hd/00_grid_overscrolling_left.png
new file mode 100755 (executable)
index 0000000..77a8dc5
Binary files /dev/null and b/themes/images/tizen-hd/00_grid_overscrolling_left.png differ
diff --git a/themes/images/tizen-hd/00_grid_overscrolling_right.png b/themes/images/tizen-hd/00_grid_overscrolling_right.png
new file mode 100755 (executable)
index 0000000..6831d70
Binary files /dev/null and b/themes/images/tizen-hd/00_grid_overscrolling_right.png differ
diff --git a/themes/images/tizen-hd/00_grid_overscrolling_top.png b/themes/images/tizen-hd/00_grid_overscrolling_top.png
new file mode 100755 (executable)
index 0000000..0ddf4ec
Binary files /dev/null and b/themes/images/tizen-hd/00_grid_overscrolling_top.png differ
index beda1cd..df863fc 100644 (file)
@@ -1101,7 +1101,6 @@ group { name: "elm/scroller/base/handler";
 
 group { name: "elm/genlist/base/default";
    alias: "elm/genscroller/base/default";
-   alias: "elm/gengrid/base/default";
    alias: "elm/list/base/default";
    inherit: "elm/scroller/base/default";
 
@@ -1155,6 +1154,10 @@ group { name: "elm/genlist/base/default";
             inherit: "default" 0.0;
             color: 255 255 255 255;
          }
+         description { state: "hidden" 0.0;
+            inherit: "default" 0.0;
+            visible: 0;
+         }
       }
       part { name: "shadow_bottom";
          clip_to: "vshadow_clip";
@@ -1176,6 +1179,10 @@ group { name: "elm/genlist/base/default";
             inherit: "default" 0.0;
             color: 255 255 255 255;
          }
+         description { state: "hidden" 0.0;
+            inherit: "default" 0.0;
+            visible: 0;
+         }
       }
       part { name: "shadow_left";
          clip_to: "hshadow_clip";
@@ -1197,6 +1204,10 @@ group { name: "elm/genlist/base/default";
             inherit: "default" 0.0;
             color: 255 255 255 255;
          }
+         description { state: "hidden" 0.0;
+            inherit: "default" 0.0;
+            visible: 0;
+         }
       }
       part { name: "shadow_right";
          clip_to: "hshadow_clip";
@@ -1218,6 +1229,10 @@ group { name: "elm/genlist/base/default";
             inherit: "default" 0.0;
             color: 255 255 255 255;
          }
+         description { state: "hidden" 0.0;
+            inherit: "default" 0.0;
+            visible: 0;
+         }
       }
       part { name: "padding_jump_to_top";
          type: SPACER;
@@ -1401,21 +1416,37 @@ group { name: "elm/genlist/base/default";
       program { name: "edge_top";
          signal: "elm,edge,top";
          source: "elm";
+         script {
+            set_state(PART:"shadow_top", "edge", 0.0);
+            set_state(PART:"shadow_bottom", "hidden", 0.0);
+         }
          after: "edge_vertical";
       }
       program { name: "edge_bottom";
          signal: "elm,edge,bottom";
          source: "elm";
+         script {
+            set_state(PART:"shadow_top", "hidden", 0.0);
+            set_state(PART:"shadow_bottom", "edge", 0.0);
+         }
          after: "edge_vertical";
       }
       program { name: "edge_left";
          signal: "elm,edge,left";
          source: "elm";
+         script {
+            set_state(PART:"shadow_left", "edge", 0.0);
+            set_state(PART:"shadow_right", "hidden", 0.0);
+         }
          after: "edge_horizontal";
       }
       program { name: "edge_right";
          signal: "elm,edge,right";
          source: "elm";
+         script {
+            set_state(PART:"shadow_left", "hidden", 0.0);
+            set_state(PART:"shadow_right", "edge", 0.0);
+         }
          after: "edge_horizontal";
       }
       program { name: "edge_vertical";
@@ -1423,8 +1454,6 @@ group { name: "elm/genlist/base/default";
             new v;
             v = get_int(sh_timer);
             if (v > 0) cancel_timer(v);
-            set_state(PART:"shadow_top", "edge", 0.0);
-            set_state(PART:"shadow_bottom", "edge", 0.0);
             v = get_int(edge_timer);
             if (!v) {
                 emit("do-show-vshadow", "");
@@ -1439,8 +1468,6 @@ group { name: "elm/genlist/base/default";
             new v;
             v = get_int(sh_timer);
             if (v > 0) cancel_timer(v);
-            set_state(PART:"shadow_left", "edge", 0.0);
-            set_state(PART:"shadow_right", "edge", 0.0);
             v = get_int(edge_timer);
             if (!v) {
                 emit("do-show-hshadow", "");
@@ -1480,7 +1507,6 @@ group { name: "elm/genlist/base/default";
 
 group { name: "elm/genlist/base/handler";
    alias: "elm/genscroller/base/handler";
-   alias: "elm/gengrid/base/handler";
    alias: "elm/list/base/handler";
    inherit: "elm/scroller/base/handler";
 
@@ -1534,6 +1560,10 @@ group { name: "elm/genlist/base/handler";
             inherit: "default" 0.0;
             color: 255 255 255 255;
          }
+         description { state: "hidden" 0.0;
+            inherit: "default" 0.0;
+            visible: 0;
+         }
       }
       part { name: "shadow_bottom";
          clip_to: "vshadow_clip";
@@ -1555,6 +1585,10 @@ group { name: "elm/genlist/base/handler";
             inherit: "default" 0.0;
             color: 255 255 255 255;
          }
+         description { state: "hidden" 0.0;
+            inherit: "default" 0.0;
+            visible: 0;
+         }
       }
       part { name: "shadow_left";
          clip_to: "hshadow_clip";
@@ -1576,6 +1610,10 @@ group { name: "elm/genlist/base/handler";
             inherit: "default" 0.0;
             color: 255 255 255 255;
          }
+         description { state: "hidden" 0.0;
+            inherit: "default" 0.0;
+            visible: 0;
+         }
       }
       part { name: "shadow_right";
          clip_to: "hshadow_clip";
@@ -1597,6 +1635,10 @@ group { name: "elm/genlist/base/handler";
             inherit: "default" 0.0;
             color: 255 255 255 255;
          }
+         description { state: "hidden" 0.0;
+            inherit: "default" 0.0;
+            visible: 0;
+         }
       }
    }
    programs {
@@ -1781,21 +1823,37 @@ group { name: "elm/genlist/base/handler";
       program { name: "edge_top";
          signal: "elm,edge,top";
          source: "elm";
+         script {
+            set_state(PART:"shadow_top", "edge", 0.0);
+            set_state(PART:"shadow_bottom", "hidden", 0.0);
+         }
          after: "edge_vertical";
       }
       program { name: "edge_bottom";
          signal: "elm,edge,bottom";
          source: "elm";
+         script {
+            set_state(PART:"shadow_top", "hidden", 0.0);
+            set_state(PART:"shadow_bottom", "edge", 0.0);
+         }
          after: "edge_vertical";
       }
       program { name: "edge_left";
          signal: "elm,edge,left";
          source: "elm";
+         script {
+            set_state(PART:"shadow_left", "edge", 0.0);
+            set_state(PART:"shadow_right", "hidden", 0.0);
+         }
          after: "edge_horizontal";
       }
       program { name: "edge_right";
          signal: "elm,edge,right";
          source: "elm";
+         script {
+            set_state(PART:"shadow_left", "hidden", 0.0);
+            set_state(PART:"shadow_right", "edge", 0.0);
+         }
          after: "edge_horizontal";
       }
       program { name: "edge_vertical";
@@ -1803,8 +1861,6 @@ group { name: "elm/genlist/base/handler";
             new v;
             v = get_int(sh_timer);
             if (v > 0) cancel_timer(v);
-            set_state(PART:"shadow_top", "edge", 0.0);
-            set_state(PART:"shadow_bottom", "edge", 0.0);
             v = get_int(edge_timer);
             if (!v) {
                 emit("do-show-vshadow", "");
@@ -1819,8 +1875,6 @@ group { name: "elm/genlist/base/handler";
             new v;
             v = get_int(sh_timer);
             if (v > 0) cancel_timer(v);
-            set_state(PART:"shadow_left", "edge", 0.0);
-            set_state(PART:"shadow_right", "edge", 0.0);
             v = get_int(edge_timer);
             if (!v) {
                 emit("do-show-hshadow", "");
@@ -1857,3 +1911,104 @@ group { name: "elm/genlist/base/handler";
       }
    }
 }
+
+group { name: "elm/gengrid/base/default";
+   inherit: "elm/genlist/base/default";
+
+   images {
+       image: "00_grid_overscrolling_top.png" COMP;
+       image: "00_grid_overscrolling_bottom.png" COMP;
+       image: "00_grid_overscrolling_left.png" COMP;
+       image: "00_grid_overscrolling_right.png" COMP;
+   }
+
+   parts {
+      part { name: "shadow_top";
+         description { state: "default" 0.0;
+            min: 0 405;
+            image.normal: "00_grid_overscrolling_top.png";
+         }
+         description { state: "edge" 0.0;
+            inherit: "default" 0.0;
+            color: 255 255 255 255;
+         }
+      }
+      part { name: "shadow_bottom";
+         description { state: "default" 0.0;
+            min: 0 405;
+            image.normal: "00_grid_overscrolling_bottom.png";
+         }
+         description { state: "edge" 0.0;
+            inherit: "default" 0.0;
+            color: 255 255 255 255;
+         }
+      }
+      part { name: "shadow_left";
+         description { state: "default" 0.0;
+            min: 405 0;
+            image.normal: "00_grid_overscrolling_left.png";
+         }
+         description { state: "edge" 0.0;
+            inherit: "default" 0.0;
+            color: 255 255 255 255;
+         }
+      }
+      part { name: "shadow_right";
+         description { state: "default" 0.0;
+            min: 405 0;
+            image.normal: "00_grid_overscrolling_right.png";
+         }
+         description { state: "edge" 0.0;
+            inherit: "default" 0.0;
+            color: 255 255 255 255;
+         }
+      }
+   }
+}
+
+group { name: "elm/gengrid/base/handler";
+   inherit: "elm/genlist/base/handler";
+
+   parts {
+      part { name: "shadow_top";
+         description { state: "default" 0.0;
+            min: 0 405;
+            image.normal: "00_grid_overscrolling_top.png";
+         }
+         description { state: "edge" 0.0;
+            inherit: "default" 0.0;
+            color: 255 255 255 255;
+         }
+      }
+      part { name: "shadow_bottom";
+         description { state: "default" 0.0;
+            min: 0 405;
+            image.normal: "00_grid_overscrolling_bottom.png";
+         }
+         description { state: "edge" 0.0;
+            inherit: "default" 0.0;
+            color: 255 255 255 255;
+         }
+      }
+      part { name: "shadow_left";
+         description { state: "default" 0.0;
+            min: 405 0;
+            image.normal: "00_grid_overscrolling_left.png";
+         }
+         description { state: "edge" 0.0;
+            inherit: "default" 0.0;
+            color: 255 255 255 255;
+         }
+      }
+      part { name: "shadow_right";
+         description { state: "default" 0.0;
+            min: 405 0;
+            image.normal: "00_grid_overscrolling_right.png";
+         }
+         description { state: "edge" 0.0;
+            inherit: "default" 0.0;
+            color: 255 255 255 255;
+         }
+      }
+   }
+}