summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorMike Blumenkrantz <m.blumenkran@samsung.com>2013-04-25 11:21:22 +0100
committerMike Blumenkrantz <m.blumenkran@samsung.com>2013-04-25 11:21:22 +0100
commit47283e55188a7470138b3a96eb640bea5571b5e2 (patch)
tree63731a12f23b89f240a0f7f4860ed9c51f92585e /data
parent7777b5d738dfe6010251bf16adeae8c5218400f9 (diff)
add deskmirror, a new widget which breaks evas in a number of terrifying ways
to experience the terror, uncomment the define in e_deskmirror.h
Diffstat (limited to 'data')
-rw-r--r--data/themes/Makefile.am1
-rw-r--r--data/themes/default.edc1
-rw-r--r--data/themes/edc/deskmirror.edc406
3 files changed, 408 insertions, 0 deletions
diff --git a/data/themes/Makefile.am b/data/themes/Makefile.am
index 0be183e8d..8018c6762 100644
--- a/data/themes/Makefile.am
+++ b/data/themes/Makefile.am
@@ -37,6 +37,7 @@ edc/connman.edc \
37edc/cpufreq.edc \ 37edc/cpufreq.edc \
38edc/cslider.edc \ 38edc/cslider.edc \
39edc/desklock.edc \ 39edc/desklock.edc \
40edc/deskmirror.edc \
40edc/deskpreview.edc \ 41edc/deskpreview.edc \
41edc/dialog.edc \ 42edc/dialog.edc \
42edc/edgebindings.edc \ 43edc/edgebindings.edc \
diff --git a/data/themes/default.edc b/data/themes/default.edc
index c90f99b77..39c566ba5 100644
--- a/data/themes/default.edc
+++ b/data/themes/default.edc
@@ -4,6 +4,7 @@ collections {
4#include "colorclasses.edc" 4#include "colorclasses.edc"
5// desktop in general 5// desktop in general
6#include "edc/comp.edc" 6#include "edc/comp.edc"
7#include "edc/deskmirror.edc"
7#include "edc/background.edc" 8#include "edc/background.edc"
8#include "edc/shelf.edc" 9#include "edc/shelf.edc"
9#include "edc/border.edc" 10#include "edc/border.edc"
diff --git a/data/themes/edc/deskmirror.edc b/data/themes/edc/deskmirror.edc
new file mode 100644
index 000000000..e79de0373
--- /dev/null
+++ b/data/themes/edc/deskmirror.edc
@@ -0,0 +1,406 @@
1group { name: "e/deskmirror/frame/default";
2 alias: "e/deskmirror/frame/dialog";
3 script {
4 public message(Msg_Type:type, id, ...) {
5 /* set scale */
6 new sc;
7
8 sc = getarg(2);
9 custom_state(PART:"title2", "default", 0.0);
10 custom_state(PART:"top", "default", 0.0);
11 custom_state(PART:"e.text.title", "default", 0.0);
12 custom_state(PART:"bottom", "default", 0.0);
13 set_state_val(PART:"title2", STATE_REL1, 0, 0.0 - sc);
14 set_state_val(PART:"top", STATE_REL1, 0, 0.0 - sc);
15 set_state_val(PART:"e.text.title", STATE_REL1, 0, 0.0 - sc);
16 set_state_val(PART:"bottom", STATE_REL2, 1, sc);
17 set_state(PART:"title2", "custom", 0.0);
18 set_state(PART:"top", "custom", 0.0);
19 set_state(PART:"e.text.title", "custom", 0.0);
20 set_state(PART:"e.swallow.client", "custom", 0.0);
21 set_state(PART:"bottom", "custom", 0.0);
22 }
23 }
24 parts {
25 part { name: "client_clip"; type: RECT;
26 description { state: "default" 0.0;
27 rel1.to_y: "e.swallow.client";
28 rel2.to_y: "e.swallow.client";
29 }
30 }
31 part { name: "e.swallow.client"; type: SWALLOW;
32 clip_to: "client_clip";
33 description { state: "default" 0.0;
34 rel1.to_y: "top";
35 rel1.relative: 0 1;
36 }
37 }
38 part { name: "top";
39 description { state: "default" 0.0;
40 color_class: "border_top";
41 image.normal: "vgrad_med_lighter.png";
42 fill.smooth: 0;
43 TILED_HORIZ(120)
44 rel2.to_y: "title2";
45 rel2.offset: -1 -4;
46 min: 0 1;
47 }
48 }
49 part { name: "bevel"; mouse_events: 0;
50 description { state: "default" 0.0;
51 image.normal: "bevel_out.png";
52 image.border: 1 1 1 1;
53 image.middle: 0;
54 rel1.to: "top";
55 rel2.to: "top";
56 fill.smooth: 0;
57 }
58 }
59 part { name: "e.text.title"; type: TEXT; mouse_events: 0;
60 scale: 1;
61 effect: SHADOW BOTTOM;
62 description { state: "default" 0.0;
63 color_class: "border_title";
64 rel1.offset: 1 3;
65 rel2.relative: 1.0 0.0;
66 rel2.offset: -2 3;
67 align: 0.5 0.0;
68 color: 21 21 21 255;
69 color3: 255 255 255 25;
70 text { font: "Sans:style=Bold";
71 fit: 0 1;
72 text_class: "title_bar";
73 align: 0.5 0.0;
74 min: 0 1;
75 }
76 fixed: 0 1;
77 }
78 }
79 part { name: "title2"; type: TEXT; mouse_events: 0;
80 scale: 1;
81 effect: SOFT_SHADOW BOTTOM;
82 description { state: "default" 0.0;
83 color_class: "border_title_active";
84 rel1.offset: 1 2;
85 rel2.relative: 1.0 0.0;
86 rel2.offset: -1 2;
87 align: 0.5 0.0;
88 color: 255 255 255 255;
89 color3: 0 0 0 18;
90 text { font: "Sans:style=Bold";
91 fit: 0 1;
92 text_source: "e.text.title";
93 text_class: "title_bar";
94 align: 0.5 0.0;
95 min: 0 1;
96 }
97 visible: 0;
98 fixed: 0 1;
99 }
100 }
101 part { name: "bottom"; type: RECT; mouse_events: 0;
102 description { state: "default" 0.0;
103 color_class: "border_bottom";
104 rel1.to_y: "e.swallow.client";
105 rel1.relative: 0.0 1.0;
106 rel1.offset: 0 -3;
107 min: 0 1;
108 color: 64 64 64 255;
109 fixed: 0 1;
110 }
111 }
112 part { name: "bevel2"; mouse_events: 0;
113 description { state: "default" 0.0;
114 image.normal: "bevel_dark_out.png";
115 image.border: 1 1 1 1;
116 image.middle: 0;
117 rel1.to: "bottom";
118 rel2.to: "bottom";
119 fill.smooth: 0;
120 }
121 }
122 part { name: "shadow";
123 mouse_events: 0;
124 description { state: "default" 0.0;
125 image.normal: "win_shadow.png";
126 image.border: 14 14 14 14;
127 image.middle: 0;
128 rel1.to: "top";
129 rel1.offset: -7 -3;
130 rel2.to: "bottom";
131 rel2.offset: 6 11;
132 fill.smooth: 0;
133 }
134 }
135 }
136 programs {
137 program { name: "shon";
138 signal: "e,state,shadow,on"; source: "e";
139 script {
140 custom_state(PART:"shadow", "default", 0.0);
141 set_state_val(PART:"shadow", STATE_VISIBLE, 1);
142 set_state(PART:"shadow", "custom", 0.0);
143 }
144 }
145 program { name: "shoff";
146 signal: "e,state,shadow,off"; source: "e";
147 script {
148 custom_state(PART:"shadow", "default", 0.0);
149 set_state_val(PART:"shadow", STATE_VISIBLE, 0);
150 set_state(PART:"shadow", "custom", 0.0);
151 }
152 }
153 program {
154 name: "focus";
155 signal: "e,state,focused"; source: "e";
156 script {
157 custom_state(PART:"top", "default", 0.0);
158 set_state_val(PART:"top", STATE_IMAGE, get_image_id("vgrad_med_dark.png"));
159 set_state(PART:"top", "custom", 0.0);
160 custom_state(PART:"title2", "default", 0.0);
161 set_state_val(PART:"title2", STATE_VISIBLE, 1);
162 set_state(PART:"title2", "custom", 0.0);
163 custom_state(PART:"e.text.title", "default", 0.0);
164 set_state_val(PART:"e.text.title", STATE_VISIBLE, 0);
165 set_state(PART:"e.text.title", "custom", 0.0);
166 }
167 }
168 program {
169 name: "unfocus";
170 signal: "e,state,unfocused"; source: "e";
171 script {
172 custom_state(PART:"top", "default", 0.0);
173 set_state_val(PART:"top", STATE_IMAGE, get_image_id("vgrad_med_lighter.png"));
174 set_state(PART:"top", "custom", 0.0);
175 custom_state(PART:"title2", "default", 0.0);
176 set_state_val(PART:"title2", STATE_VISIBLE, 0);
177 set_state(PART:"title2", "custom", 0.0);
178 custom_state(PART:"e.text.title", "default", 0.0);
179 set_state_val(PART:"e.text.title", STATE_VISIBLE, 1);
180 set_state(PART:"e.text.title", "custom", 0.0);
181 }
182 }
183 program {
184 name: "shade";
185 signal: "e,state,shaded"; source: "e";
186 script {
187 custom_state(PART:"e.swallow.client", "default", 0.0);
188 set_state_val(PART:"e.swallow.client", STATE_MAX, 1, 1);
189 set_state_val(PART:"e.swallow.client", STATE_VISIBLE, 0);
190 set_state(PART:"e.swallow.client", "custom", 0.0);
191 custom_state(PART:"client_clip", "default", 0.0);
192 set_state_val(PART:"client_clip", STATE_REL1_TO, get_part_id("top"), get_part_id("top"));
193 set_state_val(PART:"client_clip", STATE_REL2_TO, get_part_id("top"), get_part_id("top"));
194 set_state(PART:"client_clip", "custom", 0.0);
195 custom_state(PART:"bottom", "default", 0.0);
196 set_state_val(PART:"bottom", STATE_VISIBLE, 0);
197 set_state_val(PART:"bottom", STATE_MIN, 0, 0);
198 set_state_val(PART:"bottom", STATE_REL1_OFFSET, 0, 0);
199 set_state(PART:"bottom", "custom", 0.0);
200 custom_state(PART:"bevel2", "default", 0.0);
201 set_state_val(PART:"bevel2", STATE_VISIBLE, 0);
202 set_state_val(PART:"bevel2", STATE_MIN, 0, 0);
203 set_state(PART:"bevel2", "custom", 0.0);
204 custom_state(PART:"shadow", "default", 0.0);
205 set_state_val(PART:"shadow", STATE_REL2_TO, get_part_id("top"), get_part_id("top"));
206 set_state(PART:"shadow", "custom", 0.0);
207 }
208 }
209 program {
210 signal: "e,state,maximize*"; source: "e";
211 script {
212 custom_state(PART:"bottom", "default", 0.0);
213 set_state_val(PART:"bottom", STATE_VISIBLE, 0);
214 set_state_val(PART:"bottom", STATE_MIN, 0, 0);
215 set_state_val(PART:"bottom", STATE_REL1_OFFSET, 0, 0);
216 set_state(PART:"bottom", "custom", 0.0);
217 custom_state(PART:"bevel2", "default", 0.0);
218 set_state_val(PART:"bevel2", STATE_VISIBLE, 0);
219 set_state_val(PART:"bevel2", STATE_MIN, 0, 0);
220 set_state(PART:"bevel2", "custom", 0.0);
221 }
222 }
223 program {
224 signal: "e,state,unmaximize*"; source: "e";
225 after: "unshade";
226 }
227 program {
228 signal: "e,state,unshaded"; source: "e";
229 after: "unshade";
230 }
231 program {
232 name: "unshade";
233 signal: "e,state,unshading"; source: "e";
234 script {
235 custom_state(PART:"e.swallow.client", "default", 0.0);
236 set_state_val(PART:"e.swallow.client", STATE_MAX, 99999, 99999);
237 set_state_val(PART:"e.swallow.client", STATE_VISIBLE, 1);
238 set_state(PART:"e.swallow.client", "custom", 0.0);
239 custom_state(PART:"client_clip", "default", 0.0);
240 set_state_val(PART:"client_clip", STATE_REL1_TO, get_part_id("e.swallow.client"), get_part_id("e.swallow.client"));
241 set_state_val(PART:"client_clip", STATE_REL2_TO, get_part_id("e.swallow.client"), get_part_id("e.swallow.client"));
242 set_state(PART:"client_clip", "custom", 0.0);
243 custom_state(PART:"bottom", "default", 0.0);
244 set_state_val(PART:"bottom", STATE_VISIBLE, 1);
245 set_state_val(PART:"bottom", STATE_MIN, 0, 1);
246 set_state_val(PART:"bottom", STATE_REL1_OFFSET, 0, -3);
247 set_state(PART:"bottom", "custom", 0.0);
248 custom_state(PART:"bevel2", "default", 0.0);
249 set_state_val(PART:"bevel2", STATE_VISIBLE, 1);
250 set_state_val(PART:"bevel2", STATE_MIN, 0, 1);
251 set_state(PART:"bevel2", "custom", 0.0);
252 custom_state(PART:"shadow", "default", 0.0);
253 set_state_val(PART:"shadow", STATE_REL2_TO, get_part_id("bottom"), get_part_id("bottom"));
254 set_state(PART:"shadow", "custom", 0.0);
255 }
256 }
257 program {
258 signal: "e,action,maximize*"; source: "e";
259 action: STATE_SET "max" 0.0;
260 target: "e.swallow.client";
261 target: "bottom";
262 target: "bevel2";
263 }
264 program {
265 signal: "e,action,unmaximize*"; source: "e";
266 action: STATE_SET "default" 0.0;
267 target: "e.swallow.client";
268 target: "bottom";
269 target: "bevel2";
270 }
271 }
272}
273
274group { name: "e/deskmirror/frame/noresize";
275 inherit: "e/deskmirror/frame/default";
276 parts {
277 part { name: "e.swallow.client"; type: SWALLOW;
278 description { state: "default" 0.0;
279 rel2.relative: 1.0 1.0;
280 }
281 }
282 part { name: "bottom"; type: RECT;
283 description { state: "default" 0.0;
284 color_class: "border_bottom";
285 rel1.relative: 0.0 1.0;
286 rel1.offset: 0 -1;
287 rel2.relative: 1.0 1.0;
288 min: 0 0;
289 fixed: 0 1;
290 visible: 0;
291 }
292 }
293 part { name: "bevel2";
294 description { state: "default" 0.0;
295 visible: 0;
296 }
297 }
298 }
299}
300
301group { name: "e/deskmirror/frame/noresize_dialog";
302 inherit: "e/deskmirror/frame/default";
303 parts {
304 part { name: "e.swallow.client"; type: SWALLOW;
305 description { state: "default" 0.0;
306 rel2.relative: 1.0 1.0;
307 }
308 }
309 part { name: "bottom"; type: RECT;
310 description { state: "default" 0.0;
311 color_class: "border_bottom";
312 rel1.relative: 0.0 1.0;
313 rel1.offset: 0 -1;
314 rel2.relative: 1.0 1.0;
315 min: 0 0;
316 fixed: 0 1;
317 visible: 0;
318 }
319 }
320 part { name: "bevel2";
321 description { state: "default" 0.0;
322 visible: 0;
323 }
324 }
325 }
326}
327
328group { name: "e/deskmirror/frame/pixel";
329 parts {
330 part { name: "client_clip"; type: RECT;
331 description { state: "default" 0.0;
332 rel1.to_y: "e.swallow.client";
333 rel2.to_y: "e.swallow.client";
334 }
335 }
336 part { name: "e.swallow.client"; type: SWALLOW;
337 clip_to: "client_clip";
338 description { state: "default" 0.0;
339 rel1.offset: 1 1;
340 rel2.offset: -2 -2;
341 }
342 }
343 part { name: "top"; type: RECT;
344 description { state: "default" 0.0;
345 color: 0 0 0 255;
346 align: 0.0 0.0;
347 max: 99999 1;
348 }
349 description { state: "focused" 0.0;
350 inherit: "default" 0.0;
351 color: 51 153 255 255;
352 }
353 }
354 part { name: "bottom"; type: RECT;
355 description { state: "default" 0.0;
356 color: 0 0 0 255;
357 align: 0.0 1.0;
358 max: 99999 1;
359 }
360 description { state: "focused" 0.0;
361 inherit: "default" 0.0;
362 color: 51 153 255 255;
363 }
364 }
365 part { name: "left"; type: RECT;
366 description { state: "default" 0.0;
367 color: 0 0 0 255;
368 align: 0.0 0.0;
369 max: 1 99999;
370 }
371 description { state: "focused" 0.0;
372 inherit: "default" 0.0;
373 color: 51 153 255 255;
374 }
375 }
376 part { name: "right"; type: RECT;
377 description { state: "default" 0.0;
378 color: 0 0 0 255;
379 align: 1.0 0.0;
380 max: 1 99999;
381 }
382 description { state: "focused" 0.0;
383 inherit: "default" 0.0;
384 color: 51 153 255 255;
385 }
386 }
387 }
388 programs {
389 program {
390 signal: "e,state,focused"; source: "e";
391 action: STATE_SET "focused" 0.0;
392 target: "top";
393 target: "bottom";
394 target: "left";
395 target: "right";
396 }
397 program {
398 signal: "e,state,unfocused"; source: "e";
399 action: STATE_SET "default" 0.0;
400 target: "top";
401 target: "bottom";
402 target: "left";
403 target: "right";
404 }
405 }
406}