aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/elementary/data/themes/widgets/photo.edc
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--libraries/elementary/data/themes/widgets/photo.edc150
1 files changed, 150 insertions, 0 deletions
diff --git a/libraries/elementary/data/themes/widgets/photo.edc b/libraries/elementary/data/themes/widgets/photo.edc
new file mode 100644
index 0000000..399450c
--- /dev/null
+++ b/libraries/elementary/data/themes/widgets/photo.edc
@@ -0,0 +1,150 @@
1group { 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 image: "head.png" COMP;
7 }
8 parts {
9 part { name: "base0";
10 mouse_events: 0;
11 description { state: "default" 0.0;
12 image.normal: "dia_grad.png";
13 rel1.to: "over";
14 rel2.to: "over";
15 fill {
16 smooth: 0;
17 size {
18 relative: 0.0 1.0;
19 offset: 64 0;
20 }
21 }
22 }
23 }
24 part { name: "base";
25 mouse_events: 0;
26 description { state: "default" 0.0;
27 image {
28 normal: "frame_2.png";
29 border: 5 5 32 26;
30 middle: 0;
31 }
32 fill.smooth : 0;
33 }
34 }
35 part { name: "head";
36 mouse_events: 0;
37 description { state: "default" 0.0;
38 rel1.offset: 4 4;
39 rel2.offset: -5 -5;
40 aspect: 1.0 1.0;
41 aspect_preference: BOTH;
42 image.normal: "head.png";
43 }
44 }
45 part { name: "clip";
46 mouse_events: 0;
47 type: RECT;
48 description { state: "default" 0.0;
49 rel1.offset: 4 4;
50 rel2.offset: -5 -5;
51 color: 255 255 255 255;
52 }
53 }
54 part { name: "elm.swallow.content";
55 type: SWALLOW;
56 clip_to: "clip";
57 description { state: "default" 0.0;
58 rel1.offset: 4 4;
59 rel2.offset: -5 -5;
60 }
61 }
62 part { name: "over";
63 mouse_events: 0;
64 description { state: "default" 0.0;
65 rel1.offset: 4 4;
66 rel2.offset: -5 -5;
67 image {
68 normal: "frame_1.png";
69 border: 2 2 28 22;
70 middle: 0;
71 }
72 fill.smooth: 0;
73 }
74 }
75 }
76}
77
78group { name: "elm/photo/base/shadow";
79 images {
80 image: "shadow.png" COMP;
81 image: "black.png" COMP;
82 }
83 script {
84 public message(Msg_Type:type, id, ...) {
85 if( (type==MSG_INT_SET) && (id==0) )
86 {
87 new w;
88 new h;
89
90 custom_state(PART:"size", "default", 0.0);
91
92 w = getarg(2);
93 h = getarg(3);
94 set_state_val(PART:"size", STATE_REL1_OFFSET, - w/2, - h/2);
95 set_state_val(PART:"size", STATE_REL2_OFFSET, w/2 + 1, h/2 + 1);
96 set_state(PART:"size", "custom", 0.0);
97 }
98 }
99 }
100 parts {
101 part { name: "size";
102 type: SWALLOW;
103 description { state: "default" 0.0;
104 rel1.relative: 0.5 0.5;
105 rel2.relative: 0.5 0.5;
106 }
107 }
108 part {
109 name: "shadow";
110 type: IMAGE;
111 repeat_events: 1;
112 description {
113 state: "default" 0.0;
114 rel1.to: "size";
115 rel2.to: "size";
116 rel1.relative: -0.06 -0.06;
117 rel2.relative: 1.07 1.07;
118 image.normal: "shadow.png";
119 }
120 }
121
122
123 part { name: "elm.swallow.content";
124 type: SWALLOW;
125 description { state: "default" 0.0;
126 rel1.offset: 3 3;
127 rel2.offset: -3 -3;
128 fixed: 1 1;
129 }
130 }
131
132 part {
133 name: "border";
134 type: IMAGE;
135 repeat_events: 1;
136 description {
137 state: "default" 0.0;
138 visible: 1;
139 color: 0 0 0 255;
140 rel1.to: "size";
141 rel2.to: "size";
142 image.normal: "black.png";
143 image.border: 1 1 1 1;
144 image.middle: 0;
145 }
146 }
147 }
148}
149
150///////////////////////////////////////////////////////////////////////////////