2 // This file (and only this one) is licenses under public-domain. The reason
3 // is that this is meant to serve as a template for making your own themes and
4 // Elementary's LGPL license is not intended to follow. The images used do come
5 // under LGPL, but this file specifically for the structure of your theme is
6 // public-domain. This means you can take, use, re-license and otherwise
7 // have zero restrictions on using this file as a base for your theme.
9 externals.external: "elm";
13 ///////////////////////////////////////////////////////////////////////////////
14 group { name: "elm/focus_highlight/top/default";
16 image: "emo-unhappy.png" COMP;
24 public s_x, s_y, s_w, s_h; /* source */
25 public difx, dify, difw, difh;
28 public animator1(val, Float:pos) {
29 new x, y, w, h, dx, dy, dw, dh, Float:rot;
31 dx = round(float_mul(float(get_int(difx)), pos));
32 x = get_int(s_x) + dx;
33 dy = round(float_mul(float(get_int(dify)), pos));
34 y = get_int(s_y) + dy;
35 dw = round(float_mul(float(get_int(difw)), pos));
36 w = get_int(s_w) + dw;
37 dy = round(float_mul(float(get_int(difh)), pos));
38 h = get_int(s_h) + dh;
40 update_offset(x, y, w, h);
42 rot = 360.0 * pos * float(get_int(rot_dir));
43 set_state_val(PART:"shine", STATE_MAP_ROT_Z, rot);
46 emit("elm,action,focus,anim,end", "");
47 set_state(PART:"shine", "default", 0.0);
51 public update_offset(x, y, w, h) {
57 set_state_val(PART:"shine", STATE_REL1_OFFSET, x1, y1);
58 set_state_val(PART:"shine", STATE_REL2_OFFSET, x2, y2);
61 public message(Msg_Type:type, id, ...) {
62 if ((type == MSG_INT_SET) && (id == 1)) {
65 new px1, px2, py1, py2;
81 set_int(difx, x2 - x1);
82 set_int(dify, y2 - y1);
83 set_int(difw, w2 - w1);
84 set_int(difh, h2 - h1);
92 } else if (px1 > px2) {
101 set_int(rot_dir, rd);
103 custom_state(PART:"shine", "default", 0.0);
104 set_state_val(PART:"shine", STATE_REL1, 0.0, 0.0);
105 set_state_val(PART:"shine", STATE_REL2, 0.0, 0.0);
106 set_state_val(PART:"shine", STATE_MAP_ON, 1);
107 set_state_val(PART:"shine", STATE_MAP_ROT_Z, 0.0);
108 update_offset(x1, y1, w1, h1);
109 set_state(PART:"shine", "custom", 0.0);
111 anim(0.2, "animator1", 1);
120 description { state: "default" 0.0;
121 rel1.relative: 0.0 0.0;
122 rel2.relative: 1.0 1.0;
126 part { name: "shine";
130 ignore_flags: ON_HOLD;
131 description { state: "default" 0.0;
133 normal: "emo-unhappy.png";
136 rel1.relative: 1.0 0.0;
137 rel1.offset: -15 -15;
139 rel2.relative: 1.0 0.0;
142 description { state: "disabled" 0.0;
143 inherit: "default" 0.0;
148 program { name: "show";
149 signal: "elm,action,focus,show";
153 target: "hide_start";
157 program { name: "show_start";
158 action: STATE_SET "default" 0.0;
159 transition: LINEAR 0.2;
163 program { name: "show_end";
164 action: SIGNAL_EMIT "elm,action,focus,show,end" "";
166 program { name: "hide";
167 signal: "elm,action,focus,hide";
171 target: "show_start";
175 program { name: "hide_start";
176 action: STATE_SET "disabled" 0.0;
177 transition: LINEAR 0.2;
181 program { name: "hide_end";
182 action: SIGNAL_EMIT "elm,action,focus,hide,end" "";
187 ///////////////////////////////////////////////////////////////////////////////
188 group { name: "elm/focus_highlight/bottom/default";
190 part { name: "shine";
194 ignore_flags: ON_HOLD;
195 description { state: "default" 0.0;
200 description { state: "disabled" 0.0;
201 inherit: "default" 0.0;
206 program { name: "show";
207 signal: "elm,action,focus,show";
211 target: "hide_start";
215 program { name: "show_start";
216 action: STATE_SET "default" 0.0;
217 transition: LINEAR 0.2;
221 program { name: "show_end";
222 action: SIGNAL_EMIT "elm,action,focus,show,end" "";
224 program { name: "hide";
225 signal: "elm,action,focus,hide";
229 target: "show_start";
233 program { name: "hide_start";
234 action: STATE_SET "disabled" 0.0;
235 transition: LINEAR 0.2;
239 program { name: "hide_end";
240 action: SIGNAL_EMIT "elm,action,focus,hide,end" "";
245 ///////////////////////////////////////////////////////////////////////////////
246 group { name: "elm/access/base/default";
248 image: "access_glow.png" LOSSY 85;
251 part { name: "block1"; type: RECT;
253 description { state: "default" 0.0;
257 offset: -100000 -100000;
265 part { name: "block2"; type: RECT;
267 description { state: "default" 0.0;
275 offset: 100000 100000;
279 part { name: "block3"; type: RECT;
281 description { state: "default" 0.0;
287 rel2 { to_x: "base"; to_y: "block2";
293 part { name: "block4"; type: RECT;
295 description { state: "default" 0.0;
297 rel1 { to_x: "base"; to_y: "block1";
309 description { state: "default" 0.0;
310 image.normal: "access_glow.png";
311 image.border: 112 112 112 112;
312 rel1.offset: -102 -102;
313 rel2.offset: 101 101;
320 #include "widgets/bg.edc"
321 #include "widgets/border.edc"
322 #include "widgets/scroller.edc"
323 #include "widgets/label.edc"
324 #include "widgets/button.edc"
325 #include "widgets/clock.edc"
326 #include "widgets/datetime.edc"
327 #include "widgets/dayselector.edc"
328 #include "widgets/menu.edc"
329 #include "widgets/frame.edc"
330 #include "widgets/tooltip.edc"
331 #include "widgets/hover.edc"
332 #include "widgets/ctxpopup.edc"
333 #include "widgets/entry.edc"
334 #include "widgets/bubble.edc"
335 #include "widgets/photo.edc"
336 #include "widgets/thumb.edc"
337 #include "widgets/icon.edc"
338 #include "widgets/toolbar.edc"
339 #include "widgets/notify.edc"
340 #include "widgets/slideshow.edc"
341 #include "widgets/win.edc"
342 #include "widgets/list.edc"
343 #include "widgets/slider.edc"
344 #include "widgets/actionslider.edc"
345 #include "widgets/genlist.edc"
346 #include "widgets/check.edc"
347 #include "widgets/radio.edc"
348 #include "widgets/progressbar.edc"
349 #include "widgets/separator.edc"
350 #include "widgets/spinner.edc"
351 #include "widgets/index.edc"
352 #include "widgets/gengrid.edc"
353 #include "widgets/photocam.edc"
354 #include "widgets/map.edc"
355 #include "widgets/panes.edc"
356 #include "widgets/panel.edc"
357 #include "widgets/conformant.edc"
358 #include "widgets/calendar.edc"
359 #include "widgets/colorselector.edc"
360 #include "widgets/flipselector.edc"
361 #include "widgets/diskselector.edc"
362 #include "widgets/fileselector.edc"
363 #include "widgets/layout.edc"
364 #include "widgets/segment_control.edc"
365 #include "widgets/player.edc"
366 #include "widgets/video.edc"
367 #include "widgets/naviframe.edc"
368 #include "widgets/multibuttonentry.edc"
369 #include "widgets/popup.edc"
371 #include "widgets/pointer.edc"