Initialize Tizen 2.3
[framework/uifw/elementary.git] / mobile / data / themes / widgets / photo.edc
1 group { name: "elm/photo/base/default";
2    images {
3       image: "frame_1.png" COMP;
4       image: "frame_2.png" COMP;
5       image: "dia_grad.png" COMP;
6    }
7    parts {
8       part { name: "base0";
9          mouse_events:  0;
10          description { state: "default" 0.0;
11             image.normal: "dia_grad.png";
12             rel1.to: "over";
13             rel2.to: "over";
14             fill {
15                smooth: 0;
16                size {
17                   relative: 0.0 1.0;
18                   offset: 64 0;
19                }
20             }
21          }
22       }
23       part { name: "base";
24          mouse_events:  0;
25          description { state:    "default" 0.0;
26             image {
27                normal: "frame_2.png";
28                border: 5 5 32 26;
29                middle: 0;
30             }
31             fill.smooth : 0;
32          }
33       }
34       part { name: "clip";
35          mouse_events:  0;
36          type: RECT;
37          description { state:    "default" 0.0;
38             rel1.offset: 4 4;
39             rel2.offset: -5 -5;
40             color: 255 255 255 255;
41          }
42       }
43       part { name: "elm.swallow.content";
44          type: SWALLOW;
45          clip_to: "clip";
46          description { state: "default" 0.0;
47             rel1.offset: 4 4;
48             rel2.offset: -5 -5;
49          }
50       }
51       part { name: "over";
52          mouse_events:  0;
53          description { state:    "default" 0.0;
54             rel1.offset: 4 4;
55             rel2.offset: -5 -5;
56             image {
57                normal: "frame_1.png";
58                border: 2 2 28 22;
59                middle: 0;
60             }
61             fill.smooth: 0;
62          }
63       }
64    }
65 }
66
67 group { name: "elm/photo/base/shadow";
68    images {
69       image: "shadow.png" COMP;
70       image: "black.png" COMP;
71    }
72    script {
73       public message(Msg_Type:type, id, ...) {
74          if( (type==MSG_INT_SET) && (id==0) )
75          {
76             new w;
77             new h;
78
79             custom_state(PART:"size", "default", 0.0);
80
81             w = getarg(2);
82             h = getarg(3);
83             set_state_val(PART:"size", STATE_REL1_OFFSET, - w/2, - h/2);
84             set_state_val(PART:"size", STATE_REL2_OFFSET, w/2 + 1, h/2 + 1);
85             set_state(PART:"size", "custom", 0.0);
86          }
87       }
88    }
89    parts {
90       part { name: "size";
91          type: SWALLOW;
92          description { state: "default" 0.0;
93             rel1.relative: 0.5 0.5;
94             rel2.relative: 0.5 0.5;
95          }
96       }
97       part {
98          name: "shadow";
99          type: IMAGE;
100          repeat_events: 1;
101          description {
102             state: "default" 0.0;
103             rel1.to: "size";
104             rel2.to: "size";
105             rel1.relative: -0.06 -0.06;
106             rel2.relative: 1.07 1.07;
107             image.normal: "shadow.png";
108          }
109       }
110
111
112       part { name: "elm.swallow.content";
113          type: SWALLOW;
114          description { state: "default" 0.0;
115             rel1.offset: 3 3;
116             rel2.offset: -3 -3;
117             fixed: 1 1;
118          }
119       }
120
121       part {
122          name: "border";
123          type: IMAGE;
124          repeat_events: 1;
125          description {
126             state: "default" 0.0;
127             visible: 1;
128             color: 0 0 0 255;
129             rel1.to: "size";
130             rel2.to: "size";
131             image.normal: "black.png";
132             image.border: 1 1 1 1;
133             image.middle: 0;
134          }
135       }
136    }
137 }
138
139 ///////////////////////////////////////////////////////////////////////////////