raster pushed a commit to branch master.
commit a4041305b84bd6c30a57335a0cc9731557a009f1
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date: Thu Jul 11 18:27:35 2013 +0900
add elm photo theme.
---
edje/dark.edc | 2 +-
edje/edc/elm/photo.edc | 91 ++++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 92 insertions(+), 1 deletion(-)
diff --git a/edje/dark.edc b/edje/dark.edc
index 5f1919b..9dcc9ce 100644
--- a/edje/dark.edc
+++ b/edje/dark.edc
@@ -24,7 +24,7 @@ collections {
#include "edc/elm/icon.edc"
#include "edc/elm/video.edc"
#include "edc/elm/access.edc"
-//#include "edc/elm/photo.edc"
+#include "edc/elm/photo.edc"
//#include "edc/elm/focus.edc"
//#include "edc/elm/datetime.edc"
//#include "edc/elm/player.edc"
diff --git a/edje/edc/elm/photo.edc b/edje/edc/elm/photo.edc
new file mode 100644
index 0000000..410be46
--- /dev/null
+++ b/edje/edc/elm/photo.edc
@@ -0,0 +1,91 @@
+group { name: "elm/photo/base/default";
+ images.image: "win_shadow.png" COMP;
+ parts {
+ part { name: "shadow"; mouse_events: 0;
+ description { state: "default" 0.0;
+ image.normal: "win_shadow.png";
+ image.border: 14 14 14 14;
+ image.middle: 0;
+ rel1.to: "base";
+ rel1.offset: -7 -3;
+ rel2.to: "base";
+ rel2.offset: 6 11;
+ fill.smooth: 0;
+ }
+ }
+ part { name: "base"; type: RECT;
+ description { state: "default" 0.0;
+ rel1.offset: 7 7;
+ rel2.offset: -8 -8;
+ color: 255 255 255 255;
+ }
+ }
+ part { name: "clip"; type: RECT;
+ description { state: "default" 0.0;
+ rel1.to: "base";
+ rel1.offset: 4 4;
+ rel2.to: "base";
+ rel2.offset: -5 -5;
+ }
+ }
+ part { name: "bg"; type: RECT;
+ description { state: "default" 0.0;
+ rel1.to: "clip";
+ rel2.to: "clip";
+ color: 48 48 48 255;
+ }
+ }
+ part { name: "elm.swallow.content"; type: SWALLOW;
+ clip_to: "clip";
+ description { state: "default" 0.0;
+ rel1.to: "clip";
+ rel2.to: "clip";
+ }
+ }
+ }
+}
+
+group { name: "elm/photo/base/shadow";
+ inherit: "elm/photo/base/default";
+ script {
+ public message(Msg_Type:type, id, ...) {
+ if ((type == MSG_INT_SET) && (id == 0)) {
+ new w, h;
+ w = getarg(2); h = getarg(3);
+ if ((w > 0) && (h > 0)) {
+ custom_state(PART:"size", "default", 0.0);
+ set_state_val(PART:"size", STATE_MIN, w, h);
+ set_state_val(PART:"size", STATE_REL1, 0.5, 0.5);
+ set_state_val(PART:"size", STATE_REL2, 0.5, 0.5);
+ set_state_val(PART:"size", STATE_REL1_OFFSET, 0, 0);
+ set_state_val(PART:"size", STATE_REL2_OFFSET, -1, -1);
+ set_state(PART:"size", "custom", 0.0);
+ } else {
+ set_state(PART:"size", "default", 0.0);
+ }
+ }
+ }
+ }
+ parts {
+ part { name: "size"; type: SWALLOW;
+ description { state: "default" 0.0;
+ rel1.offset: 7 7;
+ rel2.offset: -8 -8;
+ }
+ }
+ part { name: "base"; type: RECT;
+ description { state: "default" 0.0;
+ rel1.to: "size";
+ rel1.offset: 0 0;
+ rel2.to: "size";
+ rel2.offset: -1 -1;
+ }
+ }
+ part { name: "clip";
+ description { state: "default" 0.0;
+ rel1.offset: 0 0;
+ rel2.offset: -1 -1;
+ }
+ }
+ }
+}
--
------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk