Revert "theme - remove shadow from border now comp provides it again"
authorMike Blumenkrantz <zmike@samsung.com>
Wed, 5 Feb 2014 18:32:29 +0000 (13:32 -0500)
committerMike Blumenkrantz <zmike@samsung.com>
Wed, 5 Feb 2014 18:32:29 +0000 (13:32 -0500)
This reverts commit 3d0eb4137359134eac2c815194a34472e2762c03.

this breaks shadows completely. no more dicking with shadows until the object that they should come from gets finalized.

data/themes/edc/border.edc

index 6e4a57a..fedba2e 100644 (file)
@@ -20,8 +20,34 @@ group { name: "e/widgets/border/default/border";
    images.image: "glow_round_corners_small.png" COMP;
    images.image: "knob_round_small_busy.png" COMP;
    images.image: "screen_circular_shadow.png" COMP;
+   images.image: "win_shadow.png" COMP;
    data.item: "shadow" "1";
    parts {
+      part { name: "shadow_clip"; type: RECT; mouse_events: 0;
+         description { state: "default";
+            rel1.to: "shadow";
+            rel2.to: "shadow";
+         }
+         description { state: "hidden";
+            visible: 0;
+         }
+      }
+      part { name: "shadow"; mouse_events: 0; clip_to: "shadow_clip";
+         description { state: "default" 0.0;
+            image.normal: "win_shadow.png";
+            image.border: 14 14 14 14;
+            image.middle: 0;
+            rel1.to: "top";
+            rel1.offset: -7 -3;
+            rel2.to: "bottom";
+            rel2.offset: 6 11;
+            fill.smooth: 0;
+         }
+         description { state: "shaded";
+            inherit: "default";
+            rel2.to: "top";
+         }
+      }
       part { name: "client_clip"; type: RECT; mouse_events: 0;
          description { state: "default" 0.0;
             rel1.to_y: "e.swallow.client";
@@ -512,6 +538,16 @@ group { name: "e/widgets/border/default/border";
    }
    programs {
       program {
+         signal: "e,state,shadow,on"; source: "e";
+         action: STATE_SET "default" 0.0;
+         target: "shadow_clip";
+      }
+      program {
+         signal: "e,state,shadow,off"; source: "e";
+         action: STATE_SET "hidden" 0.0;
+         target: "shadow_clip";
+      }
+      program {
          signal: "e,state,focused"; source: "e";
          action: STATE_SET "focused" 0.0;
          target: "top";
@@ -587,10 +623,15 @@ group { name: "e/widgets/border/default/border";
          action: STATE_SET "default" 0.0;
          target: "knob_spinner";
       }
-      program {
-         signal: "e,state,shaded"; source: "e";
+      program { name: "shade_hide";
          action: STATE_SET "hidden" 0.0;
          target: "client_clip";
+      }
+      program {
+         signal: "e,state,shaded"; source: "e";
+         action: STATE_SET "shaded" 0.0;
+         target: "shadow";
+         after: "shade_hide";
          after: "shading";
       }
       program { name: "shading";
@@ -618,6 +659,7 @@ group { name: "e/widgets/border/default/border";
          signal: "e,state,unshading"; source: "e";
          action: STATE_SET "default" 0.0;
          target: "e.swallow.client";
+         target: "shadow";
          target: "client_clip";
       }
 //      program {