aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/elementary/data/themes/widgets/frame.edc
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--libraries/elementary/data/themes/widgets/frame.edc380
1 files changed, 380 insertions, 0 deletions
diff --git a/libraries/elementary/data/themes/widgets/frame.edc b/libraries/elementary/data/themes/widgets/frame.edc
new file mode 100644
index 0000000..07937fb
--- /dev/null
+++ b/libraries/elementary/data/themes/widgets/frame.edc
@@ -0,0 +1,380 @@
1group { name: "elm/frame/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 rel2.to: "elm.swallow.content";
27 rel2.offset: 9 9;
28 image {
29 normal: "frame_2.png";
30 border: 5 5 32 26;
31 middle: 0;
32 }
33 fill.smooth : 0;
34 }
35 }
36 part { name: "elm.text";
37 type: TEXT;
38 mouse_events: 0;
39 scale: 1;
40 description { state: "default" 0.0;
41 align: 0.0 0.0;
42 fixed: 0 1;
43 rel1 {
44 relative: 0.0 0.0;
45 offset: 6 6;
46 }
47 rel2 {
48 relative: 1.0 0.0;
49 offset: -7 6;
50 }
51 color: 0 0 0 64;
52 text {
53 font: "Sans:style=Bold,Edje-Vera-Bold";
54 size: 10;
55 min: 1 1;
56 max: 1 1;
57 align: 0.0 0.0;
58 }
59 }
60 }
61 part { name: "over";
62 mouse_events: 0;
63 description { state: "default" 0.0;
64 min: 2 2;
65 rel1.offset: 4 4;
66 rel2.to: "clip";
67 rel2.offset: 5 5;
68 image {
69 normal: "frame_1.png";
70 border: 2 2 28 22;
71 middle: 0;
72 }
73 fill.smooth : 0;
74 }
75 }
76 part {
77 name: "clip";
78 type: RECT;
79 description {
80 state: "default" 0.0;
81 rel1 {
82 to_y: "elm.text";
83 relative: 0.0 1.0;
84 offset: 8 2;
85 }
86 rel2.offset: -9 -9;
87 }
88 }
89 part { name: "elm.swallow.content";
90 type: SWALLOW;
91 clip_to: "clip";
92 description { state: "default" 0.0;
93 align: 0.0 1.0;
94 rel1 {
95 to_y: "elm.text";
96 relative: 0.0 1.0;
97 offset: 8 2;
98 }
99 rel2.offset: -9 -9;
100 }
101 description { state: "collapsed" 0.0;
102 inherit: "default" 0.0;
103 minmul: 1.0 0.0;
104 }
105 }
106 part { name: "event";
107 type: RECT;
108 mouse_events: 1;
109 ignore_flags: ON_HOLD;
110 description { state: "default" 0.0;
111 color: 0 0 0 0;
112 rel1.to_y: "elm.text";
113 rel2.to_y: "elm.text";
114 }
115 }
116 }
117 programs {
118 program { name: "collapse";
119 action: STATE_SET "collapsed" 0.0;
120 target: "elm.swallow.content";
121 transition: BOUNCE 0.5 1.0 3;
122 after: "signal";
123 }
124 program { name: "expand";
125 action: STATE_SET "default" 0.0;
126 target: "elm.swallow.content";
127 transition: BOUNCE 0.5 1.0 3;
128 after: "signal";
129 }
130 program { name: "click";
131 signal: "mouse,up,1";
132 source: "event";
133 action: SIGNAL_EMIT "elm,action,click" "elm";
134 }
135 program { name: "toggle";
136 signal: "elm,action,toggle";
137 source: "elm";
138 script {
139 new st[31];
140 new Float:vl;
141 get_state(PART:"elm.swallow.content", st, 30, vl);
142 if (!strcmp(st, "default"))
143 run_program(PROGRAM:"collapse");
144 else
145 run_program(PROGRAM:"expand");
146 }
147 }
148 program { name: "switch";
149 signal: "elm,action,switch";
150 source: "elm";
151 script {
152 new st[31];
153 new Float:vl;
154 get_state(PART:"elm.swallow.content", st, 30, vl);
155 if (!strcmp(st, "default"))
156 set_state(PART:"elm.swallow.content", "collapsed", 0.0);
157 else
158 set_state(PART:"elm.swallow.content", "default", 0.0);
159 }
160 }
161 program { name: "signal";
162 action: SIGNAL_EMIT "elm,anim,done" "elm";
163 }
164 }
165}
166
167group { name: "elm/frame/base/pad_small";
168 parts {
169 part { name: "b0";
170 mouse_events: 0;
171 type: RECT;
172 scale: 1;
173 description { state: "default" 0.0;
174 visible: 0;
175 min: 4 4;
176 max: 4 4;
177 align: 0.0 0.0;
178 }
179 }
180 part { name: "b1";
181 mouse_events: 0;
182 type: RECT;
183 scale: 1;
184 description { state: "default" 0.0;
185 visible: 0;
186 min: 4 4;
187 max: 4 4;
188 align: 1.0 1.0;
189 }
190 }
191 part { name: "elm.swallow.content";
192 type: SWALLOW;
193 description { state: "default" 0.0;
194 rel1 {
195 to: "b0";
196 relative: 1.0 1.0;
197 offset: 0 0;
198 }
199 rel2 {
200 to: "b1";
201 relative: 0.0 0.0;
202 offset: -1 -1;
203 }
204 }
205 }
206 }
207}
208
209group { name: "elm/frame/base/pad_medium";
210 parts {
211 part { name: "b0";
212 mouse_events: 0;
213 type: RECT;
214 scale: 1;
215 description { state: "default" 0.0;
216 visible: 0;
217 min: 8 8;
218 max: 8 8;
219 align: 0.0 0.0;
220 }
221 }
222 part { name: "b1";
223 mouse_events: 0;
224 type: RECT;
225 scale: 1;
226 description { state: "default" 0.0;
227 visible: 0;
228 min: 8 8;
229 max: 8 8;
230 align: 1.0 1.0;
231 }
232 }
233 part { name: "elm.swallow.content";
234 type: SWALLOW;
235 description { state: "default" 0.0;
236 rel1 {
237 to: "b0";
238 relative: 1.0 1.0;
239 offset: 0 0;
240 }
241 rel2 {
242 to: "b1";
243 relative: 0.0 0.0;
244 offset: -1 -1;
245 }
246 }
247 }
248 }
249}
250
251group { name: "elm/frame/base/pad_large";
252 parts {
253 part { name: "b0";
254 mouse_events: 0;
255 type: RECT;
256 scale: 1;
257 description { state: "default" 0.0;
258 visible: 0;
259 min: 16 16;
260 max: 16 16;
261 align: 0.0 0.0;
262 }
263 }
264 part { name: "b1";
265 mouse_events: 0;
266 type: RECT;
267 scale: 1;
268 description { state: "default" 0.0;
269 visible: 0;
270 min: 16 16;
271 max: 16 16;
272 align: 1.0 1.0;
273 }
274 }
275 part { name: "elm.swallow.content";
276 type: SWALLOW;
277 description { state: "default" 0.0;
278 rel1 {
279 to: "b0";
280 relative: 1.0 1.0;
281 offset: 0 0;
282 }
283 rel2 {
284 to: "b1";
285 relative: 0.0 0.0;
286 offset: -1 -1;
287 }
288 }
289 }
290 }
291}
292
293group { name: "elm/frame/base/pad_huge";
294 parts {
295 part { name: "b0";
296 mouse_events: 0;
297 type: RECT;
298 scale: 1;
299 description { state: "default" 0.0;
300 visible: 0;
301 min: 32 32;
302 max: 32 32;
303 align: 0.0 0.0;
304 }
305 }
306 part { name: "b1";
307 mouse_events: 0;
308 type: RECT;
309 scale: 1;
310 description { state: "default" 0.0;
311 visible: 0;
312 min: 32 32;
313 max: 32 32;
314 align: 1.0 1.0;
315 }
316 }
317 part { name: "elm.swallow.content";
318 type: SWALLOW;
319 description { state: "default" 0.0;
320 rel1 {
321 to: "b0";
322 relative: 1.0 1.0;
323 offset: 0 0;
324 }
325 rel2 {
326 to: "b1";
327 relative: 0.0 0.0;
328 offset: -1 -1;
329 }
330 }
331 }
332 }
333}
334
335group { name: "elm/frame/base/outdent_top";
336 images {
337 image: "outdent-top.png" COMP;
338 }
339 parts {
340 part { name: "base0";
341 mouse_events: 0;
342 description { state: "default" 0.0;
343 image.normal: "outdent-top.png";
344 image.border: 0 0 0 13;
345 fill.smooth: 0;
346 }
347 }
348 part { name: "elm.swallow.content";
349 type: SWALLOW;
350 description { state: "default" 0.0;
351 rel1.offset: 2 2;
352 rel2.offset: -3 -13;
353 }
354 }
355 }
356}
357
358group { name: "elm/frame/base/outdent_bottom";
359 images {
360 image: "outdent-bottom.png" COMP;
361 }
362 parts {
363 part { name: "base0";
364 mouse_events: 0;
365 description { state: "default" 0.0;
366 image.normal: "outdent-bottom.png";
367 image.border: 0 0 13 0;
368 fill.smooth: 0;
369 }
370 }
371 part { name: "elm.swallow.content";
372 type: SWALLOW;
373 description { state: "default" 0.0;
374 rel1.offset: 2 12;
375 rel2.offset: -3 -3;
376 }
377 }
378 }
379}
380