summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2016-03-02 16:55:04 -0500
committerMike Blumenkrantz <zmike@osg.samsung.com>2016-03-04 14:34:53 -0500
commit0a368a4b1f8f1db66ed1c5809e495c7368776b99 (patch)
treee93b25b41b16ebfc1aaa404dfa1f6e8e1e28684e
parent11bbceb668e5f40db95b9dd0a5466b485a82a707 (diff)
theme: add new wireless gadget theme
-rw-r--r--data/themes/Makefile.am4
-rw-r--r--data/themes/default.edc1
-rw-r--r--data/themes/edc/wireless.edc954
-rw-r--r--data/themes/img/lock_insecure.pngbin0 -> 8014 bytes
-rw-r--r--data/themes/img/lock_locked.pngbin0 -> 7054 bytes
-rw-r--r--data/themes/img/wifi_shadow.pngbin0 -> 3932 bytes
6 files changed, 959 insertions, 0 deletions
diff --git a/data/themes/Makefile.am b/data/themes/Makefile.am
index 655b55ab1..1a7627c07 100644
--- a/data/themes/Makefile.am
+++ b/data/themes/Makefile.am
@@ -90,6 +90,7 @@ edc/toolbar.edc \
90edc/transitions.edc \ 90edc/transitions.edc \
91edc/wallpaper.edc \ 91edc/wallpaper.edc \
92edc/winlist.edc \ 92edc/winlist.edc \
93edc/wireless.edc \
93edc/wizard.edc \ 94edc/wizard.edc \
94edc/xkbswitch.edc \ 95edc/xkbswitch.edc \
95\ 96\
@@ -528,6 +529,8 @@ img/led_strobe.png \
528img/led_tiny_blue.png \ 529img/led_tiny_blue.png \
529img/led_tiny_green.png \ 530img/led_tiny_green.png \
530img/led_tiny_orange.png \ 531img/led_tiny_orange.png \
532img/lock_insecure.png \
533img/lock_locked.png \
531img/logo_blue_bottom.png \ 534img/logo_blue_bottom.png \
532img/logo_blue_small_glow.png \ 535img/logo_blue_small_glow.png \
533img/logo_blue_small.png \ 536img/logo_blue_small.png \
@@ -662,6 +665,7 @@ img/vgrad_shadow_bi.png \
662img/vgrad_tall.png \ 665img/vgrad_tall.png \
663img/white_bar_vert_glow.png \ 666img/white_bar_vert_glow.png \
664img/wifi_base.png \ 667img/wifi_base.png \
668img/wifi_shadow.png \
665img/wifi_sig_1.png \ 669img/wifi_sig_1.png \
666img/wifi_sig_2.png \ 670img/wifi_sig_2.png \
667img/wifi_sig_3.png \ 671img/wifi_sig_3.png \
diff --git a/data/themes/default.edc b/data/themes/default.edc
index 3ef55182a..bab92ba10 100644
--- a/data/themes/default.edc
+++ b/data/themes/default.edc
@@ -142,6 +142,7 @@ collections {
142#include "edc/illume.edc" 142#include "edc/illume.edc"
143#include "edc/bluez4.edc" 143#include "edc/bluez4.edc"
144#include "edc/packagekit.edc" 144#include "edc/packagekit.edc"
145#include "edc/wireless.edc"
145 146
146// icons 147// icons
147#include "edc/icons.edc" 148#include "edc/icons.edc"
diff --git a/data/themes/edc/wireless.edc b/data/themes/edc/wireless.edc
new file mode 100644
index 000000000..6923ffe6a
--- /dev/null
+++ b/data/themes/edc/wireless.edc
@@ -0,0 +1,954 @@
1group { name: "e/gadget/wireless/ethernet"; nomouse;
2 images.image: "slot_horiz_top.png" COMP;
3 images.image: "slot_horiz_bottom.png" COMP;
4 images.image: "eth.png" COMP;
5 images.image: "exlclam.png" COMP;
6 images.image: "hole_tiny.png" COMP;
7 images.image: "led_tiny_orange.png" COMP;
8 images.image: "led_tiny_green.png" COMP;
9 images.image: "lock_locked.png" COMP;
10 images.image: "lock_insecure.png" COMP;
11
12 script {
13 public message(Msg_Type:type, id, ...) {
14 if ((type == MSG_INT_SET) && (id == 1)) {
15 new state = getarg(2);
16 if ((state == 1)) {
17 set_state(PART:"led", "default", 0.0);
18 run_program(PROGRAM:"connecting");
19 return;
20 }
21 else if ((state == 2)) { set_state(PART:"led", "connected", 0.0); }
22 else if ((state == 3)) { set_state(PART:"led", "online", 0.0); }
23 else { set_state(PART:"led", "default", 0.0); }
24 }
25 }
26 }
27 parts {
28 part { name: "slot_bottom";
29 description { state: "default" 0.0;
30 rel1.to: "slot";
31 rel2.relative: 1.0 0.5;
32 rel2.to: "slot";
33 min: 0 3;
34 image.normal: "slot_horiz_bottom.png";
35 fixed: 0 1;
36 }
37 }
38///////////////////////
39 part { name: "exclam_base";
40 clip_to: "clip_exclam";
41 description { state: "default" 0.0;
42 aspect: (71/144) (71/144); aspect_preference: BOTH;
43 align: 0.5 1.0;
44 rel2.relative: 1.0 0.5;
45 rel2.to_y: "slot";
46 image.normal: "exlclam.png";
47 }
48 }
49///////////////////////
50 part { name: "eth_base";
51 clip_to: "clip_eth";
52 description { state: "default" 0.0;
53 aspect: (60/144) (60/144); aspect_preference: BOTH;
54 align: 0.5 1.0;
55 rel2.relative: 1.0 0.5;
56 rel2.to_y: "slot";
57 image.normal: "eth.png";
58 }
59 }
60 part { name: "slot";
61 description { state: "default" 0.0;
62 rel1.offset: 0 -1;
63 rel1.relative: (21/160) 1.0;
64 rel2.offset: -1 -1;
65 rel2.relative: (140/160) 1.0;
66 align: 0.5 1.0;
67 min: 0 6;
68 image.normal: "slot_horiz_top.png";
69 fixed: 0 1;
70 }
71 }
72 part { name: "hole";
73 description { state: "default" 0.0;
74 rel1.offset: -4 -4;
75 rel1.relative: 1.0 1.0;
76 rel2.offset: -4 -4;
77 align: 1.0 1.0;
78 min: 4 4;
79 max: 4 4;
80 image.normal: "hole_tiny.png";
81 fixed: 1 1;
82 }
83 }
84 part { name: "clip_exclam"; type: RECT;
85 description { state: "default" 0.0;
86 visible: 1;
87 }
88 description { state: "eth" 0.0;
89 visible: 0;
90 }
91 }
92 part { name: "clip_eth"; type: RECT;
93 description { state: "default" 0.0;
94 visible: 0;
95 }
96 description { state: "eth" 0.0;
97 visible: 1;
98 }
99 }
100 part { name: "led";
101 description { state: "default" 0.0;
102 rel1.to: "hole";
103 rel2.to: "hole";
104 min: 10 10;
105 max: 10 10;
106 image.normal: "led_tiny_orange.png";
107 fixed: 1 1;
108 visible: 0;
109 }
110 description { state: "connected" 0.0;
111 inherit: "default" 0.0;
112 image.normal: "led_tiny_orange.png";
113 visible: 1;
114 }
115 description { state: "online" 0.0;
116 inherit: "default" 0.0;
117 image.normal: "led_tiny_green.png";
118 visible: 1;
119 }
120 }
121 part { name: "event"; type: RECT; mouse;
122 description { state: "default" 0.0;
123 color: 0 0 0 0;
124 }
125 }
126 }
127
128 programs {
129 program { name: "connecting";
130 action: STATE_SET "connected" 0.0;
131 target: "led";
132 in: 0.3 0.0;
133 after: "connecting2";
134 }
135 program { name: "connecting2";
136 action: STATE_SET "default" 0.0;
137 target: "led";
138 in: 0.3 0.0;
139 after: "connecting";
140 }
141 target_group: "clips" "clip_exclam" "clip_eth";
142 program {
143 signal: "e,state,error"; source: "e";
144 action: STATE_SET "default" 0.0;
145 groups: "clips";
146 }
147 program {
148 signal: "e,state,default"; source: "e";
149 action: STATE_SET "eth" 0.0;
150 groups: "clips";
151 }
152 }
153}
154
155group { name: "e/gadget/wireless/wifi"; nomouse;
156 images.image: "slot_horiz_top.png" COMP;
157 images.image: "slot_horiz_bottom.png" COMP;
158 images.image: "wifi_shadow.png" COMP;
159 images.image: "wifi_base.png" COMP;
160 images.image: "wifi_sig_1.png" COMP;
161 images.image: "wifi_sig_2.png" COMP;
162 images.image: "wifi_sig_3.png" COMP;
163 images.image: "exlclam.png" COMP;
164 images.image: "hole_tiny.png" COMP;
165 images.image: "led_tiny_orange.png" COMP;
166 images.image: "led_tiny_green.png" COMP;
167 images.image: "lock_locked.png" COMP;
168 images.image: "lock_insecure.png" COMP;
169
170 script {
171 public message(Msg_Type:type, id, ...) {
172 if ((type == MSG_INT_SET) && (id == 1)) {
173 new state = getarg(2), signl = getarg(3);
174 if (state <= 1) {
175 set_state(PART:"wifi_1", "default", 0.0);
176 set_state(PART:"wifi_2", "default", 0.0);
177 set_state(PART:"wifi_3", "default", 0.0);
178 set_state(PART:"led", "default", 0.0);
179 }
180 if (state == 1) {
181 run_program(PROGRAM:"connecting");
182 run_program(PROGRAM:"connecting_wifi");
183 return;
184 }
185 stop_programs_on(PART:"led");
186 if (signl <= 14) {
187 set_state(PART:"wifi_1", "default", 0.0);
188 set_state(PART:"wifi_2", "default", 0.0);
189 set_state(PART:"wifi_3", "default", 0.0);
190 }
191 else if (signl <= 28) {
192 set_state(PART:"wifi_1", "partly", 0.0);
193 set_state(PART:"wifi_2", "default", 0.0);
194 set_state(PART:"wifi_3", "default", 0.0);
195 }
196 else if (signl <= 42) {
197 set_state(PART:"wifi_1", "visible", 0.0);
198 set_state(PART:"wifi_2", "default", 0.0);
199 set_state(PART:"wifi_3", "default", 0.0);
200 }
201 else if (signl <= 57) {
202 set_state(PART:"wifi_1", "visible", 0.0);
203 set_state(PART:"wifi_2", "partly", 0.0);
204 set_state(PART:"wifi_3", "default", 0.0);
205 }
206 else if (signl <= 71) {
207 set_state(PART:"wifi_1", "visible", 0.0);
208 set_state(PART:"wifi_2", "visible", 0.0);
209 set_state(PART:"wifi_3", "default", 0.0);
210 }
211 else if (signl <= 85) {
212 set_state(PART:"wifi_1", "visible", 0.0);
213 set_state(PART:"wifi_2", "visible", 0.0);
214 set_state(PART:"wifi_3", "partly", 0.0);
215 }
216 else {
217 set_state(PART:"wifi_1", "visible", 0.0);
218 set_state(PART:"wifi_2", "visible", 0.0);
219 set_state(PART:"wifi_3", "visible", 0.0);
220 }
221 if ((state == 2)) { set_state(PART:"led", "connected", 0.0); }
222 else if ((state == 3)) { set_state(PART:"led", "online", 0.0); }
223 else { set_state(PART:"led", "default", 0.0); }
224 }
225 }
226 }
227 parts {
228 part { name: "slot_bottom";
229 description { state: "default" 0.0;
230 rel1.to: "slot";
231 rel2.relative: 1.0 0.5;
232 rel2.to: "slot";
233 min: 0 3;
234 image.normal: "slot_horiz_bottom.png";
235 fixed: 0 1;
236 }
237 }
238///////////////////////
239 part { name: "exclam_base";
240 clip_to: "clip_exclam";
241 description { state: "default" 0.0;
242 aspect: (71/144) (71/144); aspect_preference: BOTH;
243 align: 0.5 1.0;
244 rel2.relative: 1.0 0.5;
245 rel2.to_y: "slot";
246 image.normal: "exlclam.png";
247 }
248 }
249///////////////////////
250 part { name: "wifi_shadow";
251 clip_to: "clip_wifi";
252 description { state: "default" 0.0;
253 aspect: (160/144) (160/144); aspect_preference: BOTH;
254 align: 0.5 1.0;
255 rel2.relative: 1.0 0.5;
256 rel2.to_y: "slot";
257 image.normal: "wifi_shadow.png";
258 }
259 }
260 part { name: "wifi_base";
261 clip_to: "clip_wifi";
262 description { state: "default" 0.0;
263 aspect: (160/144) (160/144); aspect_preference: BOTH;
264 align: 0.5 1.0;
265 rel2.relative: 1.0 0.5;
266 rel2.to_y: "slot";
267 image.normal: "wifi_base.png";
268 }
269 }
270 part { name: "wifi_1";
271 clip_to: "clip_wifi";
272 description { state: "default" 0.0;
273 rel1.to: "wifi_base";
274 rel2.to: "wifi_base";
275 image.normal: "wifi_sig_1.png";
276 visible: 0;
277 }
278 description { state: "partly" 0.0;
279 inherit: "default" 0.0;
280 color: 255 255 255 128;
281 visible: 1;
282 }
283 description { state: "visible" 0.0;
284 inherit: "default" 0.0;
285 visible: 1;
286 }
287 }
288 part { name: "wifi_2";
289 clip_to: "clip_wifi";
290 description { state: "default" 0.0;
291 rel1.to: "wifi_base";
292 rel2.to: "wifi_base";
293 image.normal: "wifi_sig_2.png";
294 visible: 0;
295 }
296 description { state: "partly" 0.0;
297 inherit: "default" 0.0;
298 color: 255 255 255 128;
299 visible: 1;
300 }
301 description { state: "visible" 0.0;
302 inherit: "default" 0.0;
303 visible: 1;
304 }
305 }
306 part { name: "wifi_3";
307 clip_to: "clip_wifi";
308 description { state: "default" 0.0;
309 rel1.to: "wifi_base";
310 rel2.to: "wifi_base";
311 image.normal: "wifi_sig_3.png";
312 visible: 0;
313 }
314 description { state: "partly" 0.0;
315 inherit: "default" 0.0;
316 color: 255 255 255 128;
317 visible: 1;
318 }
319 description { state: "visible" 0.0;
320 inherit: "default" 0.0;
321 visible: 1;
322 }
323 }
324 part { name: "lock";
325 clip_to: "clip_wifi";
326 description { state: "default" 0.0; hid;
327 aspect: (160/144) (160/144); aspect_preference: BOTH;
328 align: 0.5 1.0;
329 rel2.relative: 1.0 0.5;
330 rel2.to_y: "slot";
331 image.normal: "lock_locked.png";
332 link.base: "e,state,unsecured" "e";
333 }
334 desc { "insecure"; inherit; vis;
335 image.normal: "lock_insecure.png";
336 link.base: "e,state,insecure" "e";
337 }
338 desc { "secure"; inherit; vis;
339 link.base: "e,state,secure" "e";
340 }
341 }
342//////////////////////////
343 part { name: "slot";
344 description { state: "default" 0.0;
345 rel1.offset: 0 -1;
346 rel1.relative: (21/160) 1.0;
347 rel2.offset: -1 -1;
348 rel2.relative: (140/160) 1.0;
349 align: 0.5 1.0;
350 min: 0 6;
351 image.normal: "slot_horiz_top.png";
352 fixed: 0 1;
353 }
354 }
355 part { name: "hole";
356 description { state: "default" 0.0;
357 rel1.offset: -4 -4;
358 rel1.relative: 1.0 1.0;
359 rel2.offset: -4 -4;
360 align: 1.0 1.0;
361 min: 4 4;
362 max: 4 4;
363 image.normal: "hole_tiny.png";
364 fixed: 1 1;
365 }
366 }
367 part { name: "clip_exclam"; type: RECT;
368 description { state: "default" 0.0;
369 visible: 1;
370 }
371 description { state: "wifi" 0.0;
372 visible: 0;
373 }
374 }
375 part { name: "clip_wifi"; type: RECT;
376 description { state: "default" 0.0;
377 visible: 0;
378 }
379 description { state: "wifi" 0.0;
380 visible: 1;
381 }
382 }
383 part { name: "led";
384 description { state: "default" 0.0;
385 rel1.to: "hole";
386 rel2.to: "hole";
387 min: 10 10;
388 max: 10 10;
389 image.normal: "led_tiny_orange.png";
390 fixed: 1 1;
391 visible: 0;
392 }
393 description { state: "connected" 0.0;
394 inherit: "default" 0.0;
395 image.normal: "led_tiny_orange.png";
396 visible: 1;
397 }
398 description { state: "online" 0.0;
399 inherit: "default" 0.0;
400 image.normal: "led_tiny_green.png";
401 visible: 1;
402 }
403 }
404 part { name: "event"; type: RECT; mouse;
405 description { state: "default" 0.0;
406 color: 0 0 0 0;
407 }
408 }
409 }
410 programs {
411 program { "connecting_wifi";
412 action: STATE_SET "default";
413 targets: "wifi_1" "wifi_2" "wifi_3";
414 sequence {
415 action: STATE_SET "partly";
416 target: "wifi_1";
417 transition: LINEAR 0.085;
418 action: STATE_SET "visible";
419 target: "wifi_1";
420 transition: LINEAR 0.085;
421 action: STATE_SET "partly";
422 target: "wifi_2";
423 transition: LINEAR 0.085;
424 action: STATE_SET "visible";
425 target: "wifi_2";
426 transition: LINEAR 0.085;
427 action: STATE_SET "partly";
428 target: "wifi_3";
429 transition: LINEAR 0.085;
430 action: STATE_SET "visible";
431 target: "wifi_3";
432 transition: LINEAR 0.085;
433 after: "connecting_wifi";
434 }
435 }
436 program { "connecting";
437 action: STATE_SET "connected";
438 target: "led";
439 in: 0.3 0.0;
440 sequence {
441 action: STATE_SET "default";
442 target: "led";
443 in: 0.3 0.0;
444 after: "connecting";
445 }
446 }
447 target_group: "clips" "clip_exclam" "clip_wifi";
448 program {
449 signal: "e,state,error"; source: "e";
450 action: STATE_SET "default" 0.0;
451 groups: "clips";
452 }
453 program {
454 signal: "e,state,default"; source: "e";
455 action: STATE_SET "wifi" 0.0;
456 groups: "clips";
457 }
458 }
459}
460
461group { name: "e/gadget/wireless/bluetooth"; nomouse;
462 images.image: "slot_horiz_top.png" COMP;
463 images.image: "slot_horiz_bottom.png" COMP;
464 images.image: "exlclam.png" COMP;
465 images.image: "hole_tiny.png" COMP;
466 images.image: "led_tiny_orange.png" COMP;
467 images.image: "led_tiny_green.png" COMP;
468 images.image: "bt_base.png" COMP;
469 images.image: "bt_sig_1.png" COMP;
470 images.image: "bt_sig_2.png" COMP;
471 script {
472 public message(Msg_Type:type, id, ...) {
473 if ((type == MSG_INT_SET) && (id == 1)) {
474 new state = getarg(2), signl = getarg(3);
475 if (signl <= 20) {
476 set_state(PART:"bt_1", "default", 0.0);
477 set_state(PART:"bt_2", "default", 0.0);
478 }
479 else if (signl <= 40) {
480 set_state(PART:"bt_1", "partly", 0.0);
481 set_state(PART:"bt_2", "default", 0.0);
482 }
483 else if (signl <= 60) {
484 set_state(PART:"bt_1", "visible", 0.0);
485 set_state(PART:"bt_2", "default", 0.0);
486 }
487 else if (signl <= 80) {
488 set_state(PART:"bt_1", "visible", 0.0);
489 set_state(PART:"bt_2", "partly", 0.0);
490 }
491 else {
492 set_state(PART:"bt_1", "visible", 0.0);
493 set_state(PART:"bt_2", "visible", 0.0);
494 }
495 if ((state == 2)) {
496 set_state(PART:"led", "default", 0.0);
497 run_program(PROGRAM:"connecting");
498 return;
499 }
500 else if ((state == 3)) { return; }
501 else if ((state == 4)) { set_state(PART:"led", "connected", 0.0); }
502 else if ((state == 5)) { set_state(PART:"led", "online", 0.0); }
503 else { set_state(PART:"led", "default", 0.0); }
504 }
505 }
506 }
507 parts {
508 part { name: "slot_bottom";
509 description { state: "default" 0.0;
510 rel1.to: "slot";
511 rel2.relative: 1.0 0.5;
512 rel2.to: "slot";
513 min: 0 3;
514 image.normal: "slot_horiz_bottom.png";
515 fixed: 0 1;
516 }
517 }
518///////////////////////
519 part { name: "exclam_base";
520 clip_to: "clip_exclam";
521 description { state: "default" 0.0;
522 aspect: (71/144) (71/144); aspect_preference: BOTH;
523 align: 0.5 1.0;
524 rel2.relative: 1.0 0.5;
525 rel2.to_y: "slot";
526 image.normal: "exlclam.png";
527 }
528 }
529///////////////////////
530 part { name: "bt_base";
531 clip_to: "clip_bt";
532 description { state: "default" 0.0;
533 aspect: (160/144) (160/144); aspect_preference: BOTH;
534 align: 0.5 1.0;
535 rel2.relative: 1.0 0.5;
536 rel2.to_y: "slot";
537 image.normal: "bt_base.png";
538 }
539 }
540 part { name: "bt_1";
541 clip_to: "clip_bt";
542 description { state: "default" 0.0;
543 rel1.to: "bt_base";
544 rel2.to: "bt_base";
545 image.normal: "bt_sig_1.png";
546 visible: 0;
547 }
548 description { state: "partly" 0.0;
549 inherit: "default" 0.0;
550 color: 255 255 255 128;
551 visible: 1;
552 }
553 description { state: "visible" 0.0;
554 inherit: "default" 0.0;
555 visible: 1;
556 }
557 }
558 part { name: "bt_2";
559 clip_to: "clip_bt";
560 description { state: "default" 0.0;
561 rel1.to: "bt_base";
562 rel2.to: "bt_base";
563 image.normal: "bt_sig_2.png";
564 visible: 0;
565 }
566 description { state: "partly" 0.0;
567 inherit: "default" 0.0;
568 color: 255 255 255 128;
569 visible: 1;
570 }
571 description { state: "visible" 0.0;
572 inherit: "default" 0.0;
573 visible: 1;
574 }
575 }
576///////////////////////
577 part { name: "slot";
578 description { state: "default" 0.0;
579 rel1.offset: 0 -1;
580 rel1.relative: (21/160) 1.0;
581 rel2.offset: -1 -1;
582 rel2.relative: (140/160) 1.0;
583 align: 0.5 1.0;
584 min: 0 6;
585 image.normal: "slot_horiz_top.png";
586 fixed: 0 1;
587 }
588 }
589 part { name: "hole";
590 description { state: "default" 0.0;
591 rel1.offset: -4 -4;
592 rel1.relative: 1.0 1.0;
593 rel2.offset: -4 -4;
594 align: 1.0 1.0;
595 min: 4 4;
596 max: 4 4;
597 image.normal: "hole_tiny.png";
598 fixed: 1 1;
599 }
600 }
601 part { name: "clip_exclam"; type: RECT;
602 description { state: "default" 0.0;
603 visible: 1;
604 }
605 description { state: "bt" 0.0;
606 visible: 0;
607 }
608 }
609 part { name: "clip_bt"; type: RECT;
610 description { state: "default" 0.0;
611 visible: 0;
612 }
613 description { state: "bt" 0.0;
614 visible: 1;
615 }
616 }
617 part { name: "led";
618 description { state: "default" 0.0;
619 rel1.to: "hole";
620 rel2.to: "hole";
621 min: 10 10;
622 max: 10 10;
623 image.normal: "led_tiny_orange.png";
624 fixed: 1 1;
625 visible: 0;
626 }
627 description { state: "connected" 0.0;
628 inherit: "default" 0.0;
629 image.normal: "led_tiny_orange.png";
630 visible: 1;
631 }
632 description { state: "online" 0.0;
633 inherit: "default" 0.0;
634 image.normal: "led_tiny_green.png";
635 visible: 1;
636 }
637 }
638 part { name: "event"; type: RECT; mouse;
639 description { state: "default" 0.0;
640 color: 0 0 0 0;
641 }
642 }
643 }
644 programs {
645 program { name: "connecting";
646 action: STATE_SET "connected" 0.0;
647 target: "led";
648 in: 0.3 0.0;
649 after: "connecting2";
650 }
651 program { name: "connecting2";
652 action: STATE_SET "default" 0.0;
653 target: "led";
654 in: 0.3 0.0;
655 after: "connecting";
656 }
657 program {
658 signal: "e,state,error"; source: "e";
659 action: STATE_SET "default" 0.0;
660 target: "clip_exclam";
661 target: "clip_bt";
662 }
663 program {
664 signal: "e,state,default"; source: "e";
665 action: STATE_SET "bt" 0.0;
666 target: "clip_exclam";
667 target: "clip_bt";
668 }
669 }
670}
671
672group { name: "e/gadget/wireless/cellular";
673 images.image: "slot_horiz_top.png" COMP;
674 images.image: "slot_horiz_bottom.png" COMP;
675 images.image: "exlclam.png" COMP;
676 images.image: "hole_tiny.png" COMP;
677 images.image: "led_tiny_orange.png" COMP;
678 images.image: "led_tiny_green.png" COMP;
679 images.image: "cell_base.png" COMP;
680 images.image: "cell_sig_1.png" COMP;
681 images.image: "cell_sig_2.png" COMP;
682 images.image: "cell_sig_3.png" COMP;
683 images.image: "cell_sig_4.png" COMP;
684
685 script {
686 public message(Msg_Type:type, id, ...) {
687 if ((type == MSG_INT_SET) && (id == 1)) {
688 new state = getarg(2), signl = getarg(3);
689 if (signl <= 11) {
690 set_state(PART:"cell_1", "default", 0.0);
691 set_state(PART:"cell_2", "default", 0.0);
692 set_state(PART:"cell_3", "default", 0.0);
693 set_state(PART:"cell_4", "default", 0.0);
694 }
695 else if (signl <= 22) {
696 set_state(PART:"cell_1", "partly", 0.0);
697 set_state(PART:"cell_2", "default", 0.0);
698 set_state(PART:"cell_3", "default", 0.0);
699 set_state(PART:"cell_4", "default", 0.0);
700 }
701 else if (signl <= 33) {
702 set_state(PART:"cell_1", "visible", 0.0);
703 set_state(PART:"cell_2", "default", 0.0);
704 set_state(PART:"cell_3", "default", 0.0);
705 set_state(PART:"cell_4", "default", 0.0);
706 }
707 else if (signl <= 44) {
708 set_state(PART:"cell_1", "visible", 0.0);
709 set_state(PART:"cell_2", "partly", 0.0);
710 set_state(PART:"cell_3", "default", 0.0);
711 set_state(PART:"cell_4", "default", 0.0);
712 }
713 else if (signl <= 55) {
714 set_state(PART:"cell_1", "visible", 0.0);
715 set_state(PART:"cell_2", "visible", 0.0);
716 set_state(PART:"cell_3", "default", 0.0);
717 set_state(PART:"cell_4", "default", 0.0);
718 }
719 else if (signl <= 66) {
720 set_state(PART:"cell_1", "visible", 0.0);
721 set_state(PART:"cell_2", "visible", 0.0);
722 set_state(PART:"cell_3", "partly", 0.0);
723 set_state(PART:"cell_4", "default", 0.0);
724 }
725 else if (signl <= 77) {
726 set_state(PART:"cell_1", "visible", 0.0);
727 set_state(PART:"cell_2", "visible", 0.0);
728 set_state(PART:"cell_3", "visible", 0.0);
729 set_state(PART:"cell_4", "default", 0.0);
730 }
731 else if (signl <= 88) {
732 set_state(PART:"cell_1", "visible", 0.0);
733 set_state(PART:"cell_2", "visible", 0.0);
734 set_state(PART:"cell_3", "visible", 0.0);
735 set_state(PART:"cell_4", "partly", 0.0);
736 }
737 else {
738 set_state(PART:"cell_1", "visible", 0.0);
739 set_state(PART:"cell_2", "visible", 0.0);
740 set_state(PART:"cell_3", "visible", 0.0);
741 set_state(PART:"cell_4", "visible", 0.0);
742 }
743 if ((state == 1)) {
744 set_state(PART:"led", "default", 0.0);
745 run_program(PROGRAM:"connecting");
746 return;
747 }
748 else if ((state == 2)) { set_state(PART:"led", "connected", 0.0); }
749 else if ((state == 3)) { set_state(PART:"led", "online", 0.0); }
750 else { set_state(PART:"led", "default", 0.0); }
751 }
752 }
753 }
754 parts {
755 part { name: "slot_bottom"; mouse_events: 0;
756 description { state: "default" 0.0;
757 rel1.to: "slot";
758 rel2.relative: 1.0 0.5;
759 rel2.to: "slot";
760 min: 0 3;
761 image.normal: "slot_horiz_bottom.png";
762 fixed: 0 1;
763 }
764 }
765///////////////////////
766 part { name: "exclam_base"; mouse_events: 0;
767 clip_to: "clip_exclam";
768 description { state: "default" 0.0;
769 aspect: (71/144) (71/144); aspect_preference: BOTH;
770 align: 0.5 1.0;
771 rel2.relative: 1.0 0.5;
772 rel2.to_y: "slot";
773 image.normal: "exlclam.png";
774 }
775 }
776///////////////////////
777 part { name: "cell_base"; mouse_events: 0;
778 clip_to: "clip_cell";
779 description { state: "default" 0.0;
780 aspect: (160/144) (160/144); aspect_preference: BOTH;
781 align: 0.5 1.0;
782 rel2.relative: 1.0 0.5;
783 rel2.to_y: "slot";
784 image.normal: "cell_base.png";
785 }
786 }
787 part { name: "cell_1"; mouse_events: 0;
788 clip_to: "clip_cell";
789 description { state: "default" 0.0;
790 rel1.to: "cell_base";
791 rel2.to: "cell_base";
792 image.normal: "cell_sig_1.png";
793 visible: 0;
794 }
795 description { state: "partly" 0.0;
796 inherit: "default" 0.0;
797 color: 255 255 255 128;
798 visible: 1;
799 }
800 description { state: "visible" 0.0;
801 inherit: "default" 0.0;
802 visible: 1;
803 }
804 }
805 part { name: "cell_2"; mouse_events: 0;
806 clip_to: "clip_cell";
807 description { state: "default" 0.0;
808 rel1.to: "cell_base";
809 rel2.to: "cell_base";
810 image.normal: "cell_sig_2.png";
811 visible: 0;
812 }
813 description { state: "partly" 0.0;
814 inherit: "default" 0.0;
815 color: 255 255 255 128;
816 visible: 1;
817 }
818 description { state: "visible" 0.0;
819 inherit: "default" 0.0;
820 visible: 1;
821 }
822 }
823 part { name: "cell_3"; mouse_events: 0;
824 clip_to: "clip_cell";
825 description { state: "default" 0.0;
826 rel1.to: "cell_base";
827 rel2.to: "cell_base";
828 image.normal: "cell_sig_3.png";
829 visible: 0;
830 }
831 description { state: "partly" 0.0;
832 inherit: "default" 0.0;
833 color: 255 255 255 128;
834 visible: 1;
835 }
836 description { state: "visible" 0.0;
837 inherit: "default" 0.0;
838 visible: 1;
839 }
840 }
841 part { name: "cell_4"; mouse_events: 0;
842 clip_to: "clip_cell";
843 description { state: "default" 0.0;
844 rel1.to: "cell_base";
845 rel2.to: "cell_base";
846 image.normal: "cell_sig_4.png";
847 visible: 0;
848 }
849 description { state: "partly" 0.0;
850 inherit: "default" 0.0;
851 color: 255 255 255 128;
852 visible: 1;
853 }
854 description { state: "visible" 0.0;
855 inherit: "default" 0.0;
856 visible: 1;
857 }
858 }
859///////////////////////
860 part { name: "slot"; mouse_events: 0;
861 description { state: "default" 0.0;
862 rel1.offset: 0 -1;
863 rel1.relative: (21/160) 1.0;
864 rel2.offset: -1 -1;
865 rel2.relative: (140/160) 1.0;
866 align: 0.5 1.0;
867 min: 0 6;
868 image.normal: "slot_horiz_top.png";
869 fixed: 0 1;
870 }
871 }
872 part { name: "hole"; mouse_events: 0;
873 description { state: "default" 0.0;
874 rel1.offset: -4 -4;
875 rel1.relative: 1.0 1.0;
876 rel2.offset: -4 -4;
877 align: 1.0 1.0;
878 min: 4 4;
879 max: 4 4;
880 image.normal: "hole_tiny.png";
881 fixed: 1 1;
882 }
883 }
884 part { name: "clip_exclam"; type: RECT;
885 description { state: "default" 0.0;
886 visible: 1;
887 }
888 description { state: "cell" 0.0;
889 visible: 0;
890 }
891 }
892 part { name: "clip_cell"; type: RECT;
893 description { state: "default" 0.0;
894 visible: 0;
895 }
896 description { state: "cell" 0.0;
897 visible: 1;
898 }
899 }
900 part { name: "led"; mouse_events: 0;
901 description { state: "default" 0.0;
902 rel1.to: "hole";
903 rel2.to: "hole";
904 min: 10 10;
905 max: 10 10;
906 image.normal: "led_tiny_orange.png";
907 fixed: 1 1;
908 visible: 0;
909 }
910 description { state: "connected" 0.0;
911 inherit: "default" 0.0;
912 image.normal: "led_tiny_orange.png";
913 visible: 1;
914 }
915 description { state: "online" 0.0;
916 inherit: "default" 0.0;
917 image.normal: "led_tiny_green.png";
918 visible: 1;
919 }
920 }
921 part { name: "event"; type: RECT;
922 description { state: "default" 0.0;
923 color: 0 0 0 0;
924 }
925 }
926 }
927
928 programs {
929 program { name: "connecting";
930 action: STATE_SET "connected" 0.0;
931 target: "led";
932 in: 0.3 0.0;
933 after: "connecting2";
934 }
935 program { name: "connecting2";
936 action: STATE_SET "default" 0.0;
937 target: "led";
938 in: 0.3 0.0;
939 after: "connecting";
940 }
941 program {
942 signal: "e,state,error"; source: "e";
943 action: STATE_SET "default" 0.0;
944 target: "clip_exclam";
945 target: "clip_cell";
946 }
947 program {
948 signal: "e,state,default"; source: "e";
949 action: STATE_SET "cell" 0.0;
950 target: "clip_exclam";
951 target: "clip_cell";
952 }
953 }
954}
diff --git a/data/themes/img/lock_insecure.png b/data/themes/img/lock_insecure.png
new file mode 100644
index 000000000..ddafaf7bf
--- /dev/null
+++ b/data/themes/img/lock_insecure.png
Binary files differ
diff --git a/data/themes/img/lock_locked.png b/data/themes/img/lock_locked.png
new file mode 100644
index 000000000..91d3ad892
--- /dev/null
+++ b/data/themes/img/lock_locked.png
Binary files differ
diff --git a/data/themes/img/wifi_shadow.png b/data/themes/img/wifi_shadow.png
new file mode 100644
index 000000000..b1dc20f54
--- /dev/null
+++ b/data/themes/img/wifi_shadow.png
Binary files differ