aboutsummaryrefslogtreecommitdiffstats
path: root/data/themes/edc/border.edc
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2014-02-05 13:32:29 -0500
committerMike Blumenkrantz <zmike@samsung.com>2014-02-05 13:32:29 -0500
commitb98e4d49ee0b07491638aeb2446a46a23f4db270 (patch)
tree970d4246592112413fd1116fd0cf3b671e8f239e /data/themes/edc/border.edc
parenttheme - menu - fix menu shadow to not overlap comp shadow (diff)
downloadelementary-b98e4d49ee0b07491638aeb2446a46a23f4db270.tar.gz
Revert "theme - remove shadow from border now comp provides it again"
This reverts commit 3d0eb4137359134eac2c815194a34472e2762c03. this breaks shadows completely. no more dicking with shadows until the object that they should come from gets finalized.
Diffstat (limited to 'data/themes/edc/border.edc')
-rw-r--r--data/themes/edc/border.edc46
1 files changed, 44 insertions, 2 deletions
diff --git a/data/themes/edc/border.edc b/data/themes/edc/border.edc
index 6e4a57a18..fedba2e23 100644
--- a/data/themes/edc/border.edc
+++ b/data/themes/edc/border.edc
@@ -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 {