summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Faure <billiob@gmail.com>2013-08-28 14:34:42 +0200
committerBoris Faure <billiob@gmail.com>2013-08-28 14:34:42 +0200
commit6be10294133d89530d21c9160a9ecc2886c42da1 (patch)
tree9628ec883f418ea17d9a0caac1db718300cbdd38
parente93d8bab70304120e2d489aa8f4b42c88e65c6d7 (diff)
themes: use default theme as base for solarized
-rw-r--r--data/themes/Makefile.am9
-rw-r--r--data/themes/default.edc100
-rw-r--r--data/themes/solarized.edc981
3 files changed, 102 insertions, 988 deletions
diff --git a/data/themes/Makefile.am b/data/themes/Makefile.am
index a9bf1b9..803b094 100644
--- a/data/themes/Makefile.am
+++ b/data/themes/Makefile.am
@@ -34,15 +34,16 @@ black.edj: Makefile black.edc mild.edc
34 $(top_srcdir)/data/themes/black.edc \ 34 $(top_srcdir)/data/themes/black.edc \
35 $(top_builddir)/data/themes/black.edj 35 $(top_builddir)/data/themes/black.edj
36 36
37solarized.edj: Makefile solarized.edc 37solarized.edj: Makefile default.edc
38 $(EDJE_CC) $(EDJE_FLAGS) \ 38 $(EDJE_CC) $(EDJE_FLAGS) \
39 $(top_srcdir)/data/themes/solarized.edc \ 39 -DSOLARIZED=1 \
40 $(top_srcdir)/data/themes/default.edc \
40 $(top_builddir)/data/themes/solarized.edj 41 $(top_builddir)/data/themes/solarized.edj
41 42
42solarized_light.edj: Makefile solarized.edc 43solarized_light.edj: Makefile default.edc
43 $(EDJE_CC) $(EDJE_FLAGS) \ 44 $(EDJE_CC) $(EDJE_FLAGS) \
44 -DSOLARIZED_LIGHT=1 \ 45 -DSOLARIZED_LIGHT=1 \
45 $(top_srcdir)/data/themes/solarized.edc \ 46 $(top_srcdir)/data/themes/default.edc \
46 $(top_builddir)/data/themes/solarized_light.edj 47 $(top_builddir)/data/themes/solarized_light.edj
47 48
48mustang.edj: Makefile mustang.edc 49mustang.edj: Makefile mustang.edc
diff --git a/data/themes/default.edc b/data/themes/default.edc
index 42e3f2a..16970ef 100644
--- a/data/themes/default.edc
+++ b/data/themes/default.edc
@@ -1,3 +1,43 @@
1#ifdef SOLARIZED
2
3#define S_yellow 181 137 0 255
4#define S_orange 203 75 22 255
5#define S_red 220 50 47 255
6#define S_magenta 211 54 130 255
7#define S_violet 108 113 196 255
8#define S_blue 38 139 210 255
9#define S_cyan 42 161 152 255
10#define S_green 133 153 0 255
11
12#ifndef SOLARIZED_LIGHT
13/* Dark */
14
15#define S_base03 0 43 54 255
16#define S_base02 7 54 66 255
17#define S_base01 88 110 117 255
18#define S_base00 101 123 131 255
19#define S_base0 131 148 150 255
20#define S_base0_shine 141 148 150 128
21#define S_base1 147 161 161 255
22#define S_base2 238 232 213 255
23#define S_base3 253 246 227 255
24
25#else
26/* Light */
27
28#define S_base03 253 246 227 255
29#define S_base02 238 232 213 255
30#define S_base01 147 161 161 255
31#define S_base00 131 148 150 255
32#define S_base0 101 123 131 255
33#define S_base0_shine 111 123 131 128
34#define S_base1 88 110 117 255
35#define S_base2 7 54 66 255
36#define S_base3 0 43 54 255
37
38#endif
39#endif
40
1collections { 41collections {
2 42
3////////////////////////////////////////////////////////////////////////////// 43//////////////////////////////////////////////////////////////////////////////
@@ -80,6 +120,56 @@ collections {
80 120
81 //// the background and general container for the terminal 121 //// the background and general container for the terminal
82 group { name: "terminology/background"; 122 group { name: "terminology/background";
123#ifdef SOLARIZED
124 color_classes {
125 color_class { name: "color-0"; color: S_base0; }
126 color_class { name: "color-1"; color: S_base02; }
127 color_class { name: "color-2"; color: S_red; }
128 color_class { name: "color-3"; color: S_green; }
129 color_class { name: "color-4"; color: S_yellow; }
130 color_class { name: "color-5"; color: S_blue; }
131 color_class { name: "color-6"; color: S_magenta; }
132 color_class { name: "color-7"; color: S_cyan; }
133 color_class { name: "color-8"; color: S_base2; }
134 color_class { name: "color-11"; color: S_base0; }
135
136 color_class { name: "color-13"; color: S_base03; }
137 color_class { name: "color-14"; color: S_orange; }
138 color_class { name: "color-15"; color: S_base01; }
139 color_class { name: "color-16"; color: S_base00; }
140 color_class { name: "color-17"; color: S_base0; }
141 color_class { name: "color-18"; color: S_violet; }
142 color_class { name: "color-19"; color: S_base1; }
143 color_class { name: "color-20"; color: S_base3; }
144
145 color_class { name: "color-25"; color: S_base03; }
146 color_class { name: "color-26"; color: S_orange; }
147 color_class { name: "color-27"; color: S_base01; }
148 color_class { name: "color-28"; color: S_base00; }
149 color_class { name: "color-29"; color: S_base0; }
150 color_class { name: "color-30"; color: S_violet; }
151 color_class { name: "color-31"; color: S_base1; }
152 color_class { name: "color-32"; color: S_base3; }
153
154 color_class { name: "256color-0"; color: S_base02; } // COL_BLACK
155 color_class { name: "256color-1"; color: S_red; } // COL_RED
156 color_class { name: "256color-2"; color: S_green; } // COL_GREEN
157 color_class { name: "256color-3"; color: S_yellow; } // COL_YELLOW
158 color_class { name: "256color-4"; color: S_blue; } // COL_BLUE
159 color_class { name: "256color-5"; color: S_magenta; } // COL_MAGENTA
160 color_class { name: "256color-6"; color: S_cyan; } // COL_CYAN
161 color_class { name: "256color-7"; color: S_base2; } // COL_WHITE
162
163 color_class { name: "256color-8"; color: S_base03; } // COL_BLACK
164 color_class { name: "256color-9"; color: S_orange; } // COL_RED
165 color_class { name: "256color-10"; color: S_base01; } // COL_GREEN
166 color_class { name: "256color-11"; color: S_base00; } // COL_YELLOW
167 color_class { name: "256color-12"; color: S_base0; } // COL_BLUE
168 color_class { name: "256color-13"; color: S_violet; } // COL_MAGENTA
169 color_class { name: "256color-14"; color: S_base1; } // COL_CYAN
170 color_class { name: "256color-15"; color: S_base3; } // COL_WHITE
171 }
172#endif
83 images { 173 images {
84 image: "bg_bevel.png" COMP; 174 image: "bg_bevel.png" COMP;
85 image: "bg_shine.png" COMP; 175 image: "bg_shine.png" COMP;
@@ -118,10 +208,14 @@ collections {
118 part { name: "base"; type: RECT; 208 part { name: "base"; type: RECT;
119 mouse_events: 1; 209 mouse_events: 1;
120 description { state: "default" 0.0; 210 description { state: "default" 0.0;
211#ifndef SOLARIZED
121 color: 32 32 32 255; 212 color: 32 32 32 255;
122 } 213#else
123 description { state: "translucent" 0.0; 214 color: S_base03;
124 inherit: "default" 0.0; 215#endif
216 }
217 description { state: "translucent" 0.0;
218 inherit: "default" 0.0;
125 visible: 0; 219 visible: 0;
126 } 220 }
127 } 221 }
diff --git a/data/themes/solarized.edc b/data/themes/solarized.edc
deleted file mode 100644
index f5d9fe3..0000000
--- a/data/themes/solarized.edc
+++ /dev/null
@@ -1,981 +0,0 @@
1
2
3
4#define S_yellow 181 137 0 255
5#define S_orange 203 75 22 255
6#define S_red 220 50 47 255
7#define S_magenta 211 54 130 255
8#define S_violet 108 113 196 255
9#define S_blue 38 139 210 255
10#define S_cyan 42 161 152 255
11#define S_green 133 153 0 255
12
13#ifndef SOLARIZED_LIGHT
14/* Dark */
15
16#define S_base03 0 43 54 255
17#define S_base02 7 54 66 255
18#define S_base01 88 110 117 255
19#define S_base00 101 123 131 255
20#define S_base0 131 148 150 255
21#define S_base0_shine 141 148 150 128
22#define S_base1 147 161 161 255
23#define S_base2 238 232 213 255
24#define S_base3 253 246 227 255
25
26#else
27/* Light */
28
29#define S_base03 253 246 227 255
30#define S_base02 238 232 213 255
31#define S_base01 147 161 161 255
32#define S_base00 131 148 150 255
33#define S_base0 101 123 131 255
34#define S_base0_shine 111 123 131 128
35#define S_base1 88 110 117 255
36#define S_base2 7 54 66 255
37#define S_base3 0 43 54 255
38
39#endif
40
41collections {
42
43//////////////////////////////////////////////////////////////////////////////
44 //// the background and general container for the terminal
45 group { name: "terminology/background";
46 color_classes {
47 color_class { name: "color-0"; color: S_base0; }
48 color_class { name: "color-1"; color: S_base02; }
49 color_class { name: "color-2"; color: S_red; }
50 color_class { name: "color-3"; color: S_green; }
51 color_class { name: "color-4"; color: S_yellow; }
52 color_class { name: "color-5"; color: S_blue; }
53 color_class { name: "color-6"; color: S_magenta; }
54 color_class { name: "color-7"; color: S_cyan; }
55 color_class { name: "color-8"; color: S_base2; }
56 color_class { name: "color-11"; color: S_base0; }
57
58 color_class { name: "color-13"; color: S_base03; }
59 color_class { name: "color-14"; color: S_orange; }
60 color_class { name: "color-15"; color: S_base01; }
61 color_class { name: "color-16"; color: S_base00; }
62 color_class { name: "color-17"; color: S_base0; }
63 color_class { name: "color-18"; color: S_violet; }
64 color_class { name: "color-19"; color: S_base1; }
65 color_class { name: "color-20"; color: S_base3; }
66
67 color_class { name: "color-25"; color: S_base03; }
68 color_class { name: "color-26"; color: S_orange; }
69 color_class { name: "color-27"; color: S_base01; }
70 color_class { name: "color-28"; color: S_base00; }
71 color_class { name: "color-29"; color: S_base0; }
72 color_class { name: "color-30"; color: S_violet; }
73 color_class { name: "color-31"; color: S_base1; }
74 color_class { name: "color-32"; color: S_base3; }
75
76 color_class { name: "256color-0"; color: S_base02; } // COL_BLACK
77 color_class { name: "256color-1"; color: S_red; } // COL_RED
78 color_class { name: "256color-2"; color: S_green; } // COL_GREEN
79 color_class { name: "256color-3"; color: S_yellow; } // COL_YELLOW
80 color_class { name: "256color-4"; color: S_blue; } // COL_BLUE
81 color_class { name: "256color-5"; color: S_magenta; } // COL_MAGENTA
82 color_class { name: "256color-6"; color: S_cyan; } // COL_CYAN
83 color_class { name: "256color-7"; color: S_base2; } // COL_WHITE
84
85 color_class { name: "256color-8"; color: S_base03; } // COL_BLACK
86 color_class { name: "256color-9"; color: S_orange; } // COL_RED
87 color_class { name: "256color-10"; color: S_base01; } // COL_GREEN
88 color_class { name: "256color-11"; color: S_base00; } // COL_YELLOW
89 color_class { name: "256color-12"; color: S_base0; } // COL_BLUE
90 color_class { name: "256color-13"; color: S_violet; } // COL_MAGENTA
91 color_class { name: "256color-14"; color: S_base1; } // COL_CYAN
92 color_class { name: "256color-15"; color: S_base3; } // COL_WHITE
93 }
94 images {
95 image: "bg_bevel.png" COMP;
96 image: "bg_shine.png" COMP;
97 image: "bg_glint.png" COMP;
98 image: "bg_shadow.png" COMP;
99 image: "bg_led_glow.png" COMP;
100 image: "bg_led_base.png" COMP;
101 image: "bg_led.png" COMP;
102 image: "bg_led_strobe.png" COMP;
103 image: "pm_shadow.png" COMP;
104 image: "pm_overlay.png" COMP;
105 image: "pm_fill.png" COMP;
106 }
107 parts {
108 ////////////////////////////////////////////////////////////////////
109 // background handling
110 part { name: "shadow";
111 mouse_events: 0;
112 description { state: "default" 0.0;
113 image.normal: "bg_shadow.png";
114 fill.smooth: 0;
115 visible: 0;
116 }
117 description { state: "translucent" 0.0;
118 inherit: "default" 0.0;
119 visible: 1;
120 }
121 }
122 part { name: "base"; type: RECT;
123 mouse_events: 1;
124 description { state: "default" 0.0;
125 color: S_base03;
126 }
127 description { state: "translucent" 0.0;
128 inherit: "default" 0.0;
129 visible: 0;
130 }
131 }
132 part { name: "fade"; type: RECT;
133 description { state: "default" 0.0;
134 }
135 description { state: "translucent" 0.0;
136 inherit: "default" 0.0;
137 color: 255 255 255 128;
138 }
139 }
140 part { name: "terminology.background"; type: SWALLOW;
141 clip_to: "fade";
142 description { state: "default" 0.0;
143 }
144 description { state: "image" 0.0;
145 inherit: "default" 0.0;
146 }
147 description { state: "scale" 0.0;
148 inherit: "default" 0.0;
149 }
150 description { state: "edje" 0.0;
151 inherit: "default" 0.0;
152 }
153 description { state: "movie" 0.0;
154 inherit: "default" 0.0;
155 }
156 }
157 program { name: "trans_on";
158 signal: "translucent,on";
159 source: "terminology";
160 action: STATE_SET "translucent" 0.0;
161 target: "base";
162 target: "shadow";
163 target: "fade";
164 }
165 program { name: "trans_off";
166 signal: "translucent,off";
167 source: "terminology";
168 action: STATE_SET "default" 0.0;
169 target: "base";
170 target: "shadow";
171 target: "fade";
172 }
173 program { name: "media_off";
174 signal: "media,off";
175 source: "terminology";
176 action: STATE_SET "default" 0.0;
177 target: "terminology.background";
178 }
179 program { name: "media_img";
180 signal: "media,image";
181 source: "terminology";
182 action: STATE_SET "image" 0.0;
183 target: "terminology.background";
184 }
185 program { name: "media_scale";
186 signal: "media,scale";
187 source: "terminology";
188 action: STATE_SET "scale" 0.0;
189 target: "terminology.background";
190 }
191 program { name: "media_edje";
192 signal: "media,edje";
193 source: "terminology";
194 action: STATE_SET "edje" 0.0;
195 target: "terminology.background";
196 }
197 program { name: "media_mov";
198 signal: "media,movie";
199 source: "terminology";
200 action: STATE_SET "movie" 0.0;
201 target: "terminology.background";
202 }
203
204 ////////////////////////////////////////////////////////////////////
205 // actual text grid for chars, cursors, selectiond etc. goes here
206 part { name: "terminology.content"; type: SWALLOW;
207 description { state: "default" 0.0;
208 rel1.offset: 1 2;
209 rel2.offset: -2 -2;
210 }
211 }
212
213 ////////////////////////////////////////////////////////////////////
214 // overlayed prettiness
215 part { name: "bevel";
216 mouse_events: 0;
217 description { state: "default" 0.0;
218 rel1.offset: 0 0;
219 rel2.offset: -1 -1;
220 image.normal: "bg_bevel.png";
221 image.border: 3 3 5 3;
222 image.middle: 0;
223 fill.smooth: 0;
224 visible: 1;
225 }
226 }
227 part { name: "glintclip"; type: RECT;
228 mouse_events: 1;
229 description { state: "default" 0.0;
230 }
231 }
232 part { name: "glint";
233 mouse_events: 0;
234 clip_to: "glintclip";
235 description { state: "default" 0.0;
236 fixed: 1 1;
237 min: 79 5;
238 max: 79 5;
239 rel1 {
240 relative: 0.0 0.0;
241 offset: 0 1;
242 }
243 rel2 {
244 relative: 1.0 0.0;
245 offset: -1 1;
246 }
247 image.normal: "bg_glint.png";
248 }
249 }
250 part { name: "shine";
251 mouse_events: 0;
252 description { state: "default" 0.0;
253 rel1.offset: 0 1;
254 rel2.offset: -1 -1;
255 image.normal: "bg_shine.png";
256 fill.smooth: 0;
257 align: 0.5 0.0;
258 aspect: (255/120) (255/120);
259 aspect_preference: HORIZONTAL;
260 color: S_base0_shine;
261 visible: 0;
262 }
263 description { state: "focused" 0.0;
264 inherit: "default" 0.0;
265 visible: 1;
266 }
267 }
268 program { name: "focus_in";
269 signal: "focus,in";
270 source: "terminology";
271 action: STATE_SET "focused" 0.0;
272 target: "shine";
273 }
274 program { name: "focus_out";
275 signal: "focus,out";
276 source: "terminology";
277 action: STATE_SET "default" 0.0;
278 target: "shine";
279 }
280
281
282 ////////////////////////////////////////////////////////////////////
283 // a place terminology will place an entry box for internal commands
284 part { name: "cmdclip"; type: RECT;
285 description { state: "default" 0.0;
286 rel1.to: "terminology.cmdbox";
287 rel1.offset: -100 -100;
288 rel2.to: "terminology.cmdbox";
289 rel2.offset: 99 99;
290 color: 255 255 255 0;
291 visible: 0;
292 }
293 description { state: "visible" 0.0;
294 inherit: "default" 0.0;
295 color: 255 255 255 255;
296 visible: 1;
297 }
298 }
299 part { name: "cmdback"; type: RECT;
300 clip_to: "cmdclip";
301 description { state: "default" 0.0;
302 color: 255 255 255 255;
303 rel1.to: "terminology.cmdbox";
304 rel1.offset: -2 -2;
305 rel2.to: "terminology.cmdbox";
306 rel2.offset: 1 1;
307 }
308 }
309 part { name: "terminology.cmdbox"; type: SWALLOW;
310 clip_to: "cmdclip";
311 description { state: "default" 0.0;
312 fixed: 1 1;
313 min: 8 8;
314 rel1.relative: 0.0 1.0;
315 rel1.offset: 8 9;
316 rel2.offset: -9 9;
317 align: 0.5 0.0;
318 }
319 description { state: "visible" 0.0;
320 inherit: "default" 0.0;
321 rel1.offset: 8 -9;
322 rel2.offset: -9 -9;
323 align: 0.5 1.0;
324 }
325 }
326 program { name: "cmdshow0";
327 signal: "cmdbox,show";
328 source: "terminology";
329 action: STATE_SET "visible" 0.0;
330 transition: DECELERATE 0.4;
331 target: "cmdclip";
332 }
333 program { name: "cmdshow";
334 signal: "cmdbox,show";
335 source: "terminology";
336 action: STATE_SET "visible" 0.0;
337 transition: SPRING 0.4 0.5 4;
338 target: "terminology.cmdbox";
339 }
340 program { name: "cmdhide";
341 signal: "cmdbox,hide";
342 source: "terminology";
343 action: STATE_SET "default" 0.0;
344 transition: ACCELERATE 0.5;
345 target: "terminology.cmdbox";
346 target: "cmdclip";
347 }
348
349 ////////////////////////////////////////////////////////////////////
350 // visual bell - spinning red siren light
351 part { name: "bell_glow";
352 mouse_events: 0;
353 description { state: "default" 0.0;
354 fixed: 1 1;
355 visible: 0;
356 color: 255 255 255 0;
357 rel1.to: "bell_base";
358 rel2.to: "bell_base";
359 min: 1600 1600;
360 fill.smooth: 0;
361 image.normal: "bg_led_glow.png";
362 }
363 description { state: "visible" 0.0;
364 inherit: "default" 0.0;
365 visible: 1;
366 color: 255 255 255 255;
367 }
368 description { state: "done" 0.0;
369 inherit: "default" 0.0;
370 visible: 0;
371 color: 255 255 255 0;
372 min: 0 0;
373 }
374 }
375 part { name: "bell_base";
376 mouse_events: 0;
377 description { state: "default" 0.0;
378 fixed: 1 1;
379 visible: 0;
380 color: 255 255 255 0;
381 min: 32 32;
382 max: 32 32;
383 rel2.offset: -1 -1;
384 align: 1.0 1.0;
385 image.normal: "bg_led_base.png";
386 }
387 description { state: "visible" 0.0;
388 inherit: "default" 0.0;
389 visible: 1;
390 color: 255 255 255 255;
391 }
392 }
393 part { name: "bell";
394 mouse_events: 0;
395 description { state: "default" 0.0;
396 fixed: 1 1;
397 visible: 0;
398 color: 255 255 255 0;
399 rel1.to: "bell_base";
400 rel2.to: "bell_base";
401 image.normal: "bg_led.png";
402 }
403 description { state: "visible" 0.0;
404 inherit: "default" 0.0;
405 visible: 1;
406 color: 255 255 255 255;
407 }
408 }
409 part { name: "bell_strobe";
410 mouse_events: 0;
411 description { state: "default" 0.0;
412 fixed: 1 1;
413 visible: 0;
414 color: 255 255 255 0;
415 rel1.to: "bell";
416 rel2.to: "bell";
417 image.normal: "bg_led_strobe.png";
418 map {
419 on: 1;
420 smooth: 1;
421 rotation.center: "bell";
422 }
423 }
424 description { state: "spin" 0.0;
425 inherit: "default" 0.0;
426 visible: 1;
427 color: 255 255 255 255;
428 map.rotation.z: 36.0;
429 }
430 description { state: "spin_done" 0.0;
431 inherit: "default" 0.0;
432 visible: 0;
433 color: 255 255 255 0;
434 map.rotation.z: 684.0;
435 }
436 }
437 program { name: "bell0";
438 signal: "bell";
439 source: "terminology";
440 action: STATE_SET "default" 0.0;
441 target: "bell_base";
442 target: "bell";
443 target: "bell_strobe";
444 target: "bell_glow";
445 after: "bell";
446 }
447 program { name: "bell";
448 action: STATE_SET "visible" 0.0;
449 target: "bell_base";
450 target: "bell_glow";
451 after: "bell2";
452 }
453 program { name: "bell2";
454 action: STATE_SET "visible" 0.0;
455 transition: DECELERATE 0.1;
456 target: "bell";
457 target: "bell_glow";
458 after: "bell3";
459 after: "bell3.1";
460 }
461 program { name: "bell3";
462 action: STATE_SET "spin" 0.0;
463 transition: LINEAR 0.1;
464 target: "bell_strobe";
465 after: "bell4.0";
466 after: "bell4.1";
467 after: "bell4.2";
468 }
469 program { name: "bell3.1";
470 action: STATE_SET "done" 0.0;
471 transition: DECELERATE 0.5;
472 target: "bell_glow";
473 }
474 program { name: "bell4.0";
475 action: STATE_SET "default" 0.0;
476 transition: ACCELERATE 1.2;
477 target: "bell";
478 }
479 program { name: "bell4.1";
480 action: STATE_SET "default" 0.0;
481 transition: ACCELERATE 1.6;
482 target: "bell_base";
483 }
484 program { name: "bell4.2";
485 action: STATE_SET "spin_done" 0.0;
486 transition: LINEAR 0.9;
487 target: "bell_strobe";
488 }
489
490 ////////////////////////////////////////////////////////////////////
491 // popup media over the terminal (until dismissed)
492 part { name: "popmedia_clip"; type: RECT;
493 mouse_events: 1;
494 description { state: "default" 0.0;
495 fixed: 1 1;
496 visible: 0;
497 color: 255 255 255 0;
498 }
499 description { state: "visible" 0.0;
500 inherit: "default" 0.0;
501 visible: 1;
502 color: 255 255 255 255;
503 }
504 }
505 part { name: "popmedia_shadow";
506 mouse_events: 0;
507 description { state: "default" 0.0;
508 fixed: 1 1;
509 rel1 {
510 to: "terminology.popmedia";
511 }
512 rel2 {
513 to: "terminology.popmedia";
514 }
515 image.normal: "pm_shadow.png";
516 image.border: 64 64 64 64;
517 image.border_scale_by: 0.1;
518 fill.smooth: 0;
519 visible: 0;
520 }
521 description { state: "visible" 0.0;
522 inherit: "default" 0.0;
523 rel1.offset: -32 -32;
524 rel2.offset: 31 31;
525 image.border_scale_by: 1.0;
526 visible: 1;
527 }
528 }
529 part { name: "popmedia_fill";
530 mouse_events: 0;
531 description { state: "default" 0.0;
532 fixed: 1 1;
533 rel1.to: "terminology.popmedia";
534 rel2.to: "terminology.popmedia";
535 image.normal: "pm_fill.png";
536 fill {
537 size.relative: 0.0 0.0;
538 size.offset: 64 64;
539 }
540 }
541 }
542 part { name: "terminology.popmedia"; type: SWALLOW;
543 clip_to: "popmedia_clip";
544 description { state: "default" 0.0;
545 fixed: 1 1;
546 rel1.relative: 0.5 0.5;
547 rel2.relative: 0.5 0.5;
548 visible: 0;
549 }
550 description { state: "image" 0.0;
551 inherit: "default" 0.0;
552 rel1.relative: 0.1 0.1;
553 rel2.relative: 0.9 0.9;
554 visible: 1;
555 }
556 description { state: "scale" 0.0;
557 inherit: "default" 0.0;
558 rel1.relative: 0.1 0.1;
559 rel2.relative: 0.9 0.9;
560 visible: 1;
561 }
562 description { state: "edje" 0.0;
563 inherit: "default" 0.0;
564 rel1.relative: 0.1 0.1;
565 rel2.relative: 0.9 0.9;
566 visible: 1;
567 }
568 description { state: "movie" 0.0;
569 inherit: "default" 0.0;
570 rel1.relative: 0.1 0.1;
571 rel2.relative: 0.9 0.9;
572 visible: 1;
573 }
574 }
575 part { name: "popmedia_overlay";
576 mouse_events: 0;
577 description { state: "default" 0.0;
578 fixed: 1 1;
579 rel1.to: "terminology.popmedia";
580 rel2.to: "terminology.popmedia";
581 image.normal: "pm_overlay.png";
582 fill.smooth: 0;
583 visible: 0;
584 }
585 description { state: "visible" 0.0;
586 inherit: "default" 0.0;
587 visible: 1;
588 }
589 }
590 part { name: "popmedia_bevel";
591 mouse_events: 0;
592 description { state: "default" 0.0;
593 fixed: 1 1;
594 rel1.to: "terminology.popmedia";
595 rel2.to: "terminology.popmedia";
596 image.normal: "bg_bevel.png";
597 image.border: 3 3 5 3;
598 image.middle: 0;
599 fill.smooth: 0;
600 visible: 0;
601 }
602 description { state: "visible" 0.0;
603 inherit: "default" 0.0;
604 visible: 1;
605 }
606 }
607 part { name: "popmedia_glintclip"; type: RECT;
608 mouse_events: 0;
609 description { state: "default" 0.0;
610 fixed: 1 1;
611 visible: 0;
612 }
613 description { state: "visible" 0.0;
614 inherit: "default" 0.0;
615 visible: 1;
616 }
617 }
618 part { name: "popmedia_glint";
619 mouse_events: 0;
620 clip_to: "popmedia_glintclip";
621 description { state: "default" 0.0;
622 fixed: 1 1;
623 min: 79 5;
624 max: 79 5;
625 rel1 {
626 to: "terminology.popmedia";
627 relative: 0.0 0.0;
628 offset: 0 0;
629 }
630 rel2 {
631 to: "terminology.popmedia";
632 relative: 1.0 0.0;
633 offset: -1 0;
634 }
635 image.normal: "bg_glint.png";
636 visible: 0;
637 }
638 description { state: "visible" 0.0;
639 inherit: "default" 0.0;
640 visible: 1;
641 }
642 }
643 part { name: "popmedia_shine";
644 mouse_events: 0;
645 description { state: "default" 0.0;
646 fixed: 1 1;
647 rel1.to: "terminology.popmedia";
648 rel2.to: "terminology.popmedia";
649 image.normal: "bg_shine.png";
650 fill.smooth: 0;
651 align: 0.5 0.0;
652 aspect: (255/120) (255/120);
653 aspect_preference: HORIZONTAL;
654 visible: 0;
655 }
656 description { state: "visible" 0.0;
657 inherit: "default" 0.0;
658 visible: 1;
659 }
660 }
661 part { name: "popmedia_dismiss"; type: RECT;
662 mouse_events: 1;
663 description { state: "default" 0.0;
664 fixed: 1 1;
665 color: 0 0 0 0;
666 visible: 0;
667 }
668 description { state: "visible" 0.0;
669 inherit: "default" 0.0;
670 visible: 1;
671 }
672 }
673 program { name: "popmedia_dismiss";
674 signal: "mouse,clicked,*";
675 source: "popmedia_dismiss";
676 action: STATE_SET "default" 0.0;
677 transition: DECELERATE 0.5;
678 target: "terminology.popmedia";
679 target: "popmedia_clip";
680 target: "popmedia_dismiss";
681 target: "popmedia_shadow";
682 target: "popmedia_fill";
683 target: "popmedia_overlay";
684 target: "popmedia_bevel";
685 target: "popmedia_glint";
686 target: "popmedia_glintclip";
687 target: "popmedia_shine";
688 after: "popmedia_dismiss2";
689 }
690 program { name: "popmedia_dismiss2";
691 action: SIGNAL_EMIT "popmedia,done" "terminology";
692 }
693 program { name: "popmedia_off";
694 signal: "popmedia,off";
695 source: "terminology";
696 action: STATE_SET "default" 0.0;
697 transition: DECELERATE 0.2;
698 target: "terminology.popmedia";
699 target: "popmedia_clip";
700 target: "popmedia_dismiss";
701 target: "popmedia_shadow";
702 target: "popmedia_fill";
703 target: "popmedia_overlay";
704 target: "popmedia_bevel";
705 target: "popmedia_glint";
706 target: "popmedia_glintclip";
707 target: "popmedia_shine";
708 after: "popmedia_dismiss2";
709 }
710 program { name: "popmedia_img";
711 signal: "popmedia,image";
712 source: "terminology";
713 action: STATE_SET "image" 0.0;
714 transition: DECELERATE 0.2;
715 target: "terminology.popmedia";
716 }
717 program { name: "popmedia_scale";
718 signal: "popmedia,scale";
719 source: "terminology";
720 action: STATE_SET "scale" 0.0;
721 transition: DECELERATE 0.2;
722 target: "terminology.popmedia";
723 }
724 program { name: "popmedia_edje";
725 signal: "popmedia,edje";
726 source: "terminology";
727 action: STATE_SET "edje" 0.0;
728 transition: DECELERATE 0.2;
729 target: "terminology.popmedia";
730 }
731 program { name: "popmedia_mov";
732 signal: "popmedia,movie";
733 source: "terminology";
734 action: STATE_SET "movie" 0.0;
735 transition: DECELERATE 0.2;
736 target: "terminology.popmedia";
737 }
738 program { name: "popmedia_img2";
739 signal: "popmedia,image";
740 source: "terminology";
741 action: STATE_SET "visible" 0.0;
742 transition: DECELERATE 0.2;
743 target: "popmedia_clip";
744 target: "popmedia_dismiss";
745 target: "popmedia_shadow";
746 target: "popmedia_fill";
747 target: "popmedia_overlay";
748 target: "popmedia_bevel";
749 target: "popmedia_glint";
750 target: "popmedia_glintclip";
751 target: "popmedia_shine";
752 }
753 program { name: "popmedia_scale2";
754 signal: "popmedia,scale";
755 source: "terminology";
756 action: STATE_SET "visible" 0.0;
757 transition: DECELERATE 0.2;
758 target: "popmedia_clip";
759 target: "popmedia_dismiss";
760 target: "popmedia_shadow";
761 target: "popmedia_fill";
762 target: "popmedia_overlay";
763 target: "popmedia_bevel";
764 target: "popmedia_glint";
765 target: "popmedia_glintclip";
766 target: "popmedia_shine";
767 }
768 program { name: "popmedia_edje2";
769 signal: "popmedia,edje";
770 source: "terminology";
771 action: STATE_SET "visible" 0.0;
772 transition: DECELERATE 0.2;
773 target: "popmedia_clip";
774 target: "popmedia_dismiss";
775 target: "popmedia_shadow";
776 target: "popmedia_fill";
777 target: "popmedia_overlay";
778 target: "popmedia_bevel";
779 target: "popmedia_glint";
780 target: "popmedia_glintclip";
781 target: "popmedia_shine";
782 }
783 program { name: "popmedia_mov2";
784 signal: "popmedia,movie";
785 source: "terminology";
786 action: STATE_SET "visible" 0.0;
787 transition: DECELERATE 0.2;
788 target: "popmedia_clip";
789 target: "popmedia_dismiss";
790 target: "popmedia_shadow";
791 target: "popmedia_fill";
792 target: "popmedia_overlay";
793 target: "popmedia_bevel";
794 target: "popmedia_glint";
795 target: "popmedia_glintclip";
796 target: "popmedia_shine";
797 }
798
799 ////////////////////////////////////////////////////////////////////
800 // overlayed options and controls
801 part { name: "terminology.about"; type: SWALLOW;
802 scale: 1;
803 description { state: "default" 0.0;
804 fixed: 1 1;
805 min: 198 198;
806 max: 198 198;
807 align: 0.5 0.0;
808 visible: 0;
809 rel1.relative: 0.0 1.0;
810 rel2.relative: 1.0 1.0;
811 }
812 description { state: "visible" 0.0;
813 inherit: "default" 0.0;
814 visible: 1;
815 align: 0.5 0.5;
816 rel1.relative: 0.0 0.0;
817 rel2.relative: 1.0 1.0;
818 }
819 }
820 program { name: "ab_show";
821 signal: "about,show";
822 source: "terminology";
823 action: STATE_SET "visible" 0.0;
824 transition: SPRING 1.2 2.0 6;
825 target: "terminology.about";
826 }
827 program { name: "ab_hide";
828 signal: "about,hide";
829 source: "terminology";
830 action: STATE_SET "default" 0.0;
831 transition: DECELERATE 0.6;
832 target: "terminology.about";
833 }
834
835 ////////////////////////////////////////////////////////////////////
836 // swallow to hold invisile rect to click on to dismiss things
837 part { name: "terminology.dismiss"; type: SWALLOW;
838 description { state: "default" 0.0;
839 }
840 }
841
842 ////////////////////////////////////////////////////////////////////
843 // overlayed options and controls
844 part { name: "terminology.optdetails"; type: SWALLOW;
845 scale: 1;
846 description { state: "default" 0.0;
847 fixed: 1 1;
848 min: 40 40;
849 align: 0.0 0.5;
850 visible: 0;
851 rel1 {
852 relative: 1.0 0.02;
853 offset: 8 8;
854 }
855 rel2 {
856 relative: 1.0 0.98;
857 offset: 8 -9;
858 }
859 }
860 description { state: "visible" 0.0;
861 inherit: "default" 0.0;
862 visible: 1;
863 align: 1.0 0.5;
864 rel1 {
865 relative: 0.1 0.02;
866 offset: 8 8;
867 }
868 rel2 {
869 to_x: "terminology.options";
870 relative: 0.0 0.98;
871 offset: -9 -9;
872 }
873 }
874 }
875 program { name: "opdt_show";
876 signal: "optdetails,show";
877 source: "terminology";
878 action: STATE_SET "visible" 0.0;
879 transition: DECELERATE 0.4;
880 target: "terminology.optdetails";
881 }
882 program { name: "opdt_hide";
883 signal: "optdetails,hide";
884 source: "terminology";
885 action: STATE_SET "default" 0.0;
886 transition: DECELERATE 0.2;
887 target: "terminology.optdetails";
888 after: "opdt_hide2";
889 }
890 program { name: "opdt_hide2";
891 action: SIGNAL_EMIT "optdetails,hide,done" "terminology";
892 }
893
894 part { name: "terminology.options"; type: SWALLOW;
895 scale: 1;
896 description { state: "default" 0.0;
897 fixed: 1 1;
898 align: 0.0 0.5;
899 visible: 0;
900 rel1 {
901 relative: 1.0 0.02;
902 offset: 8 8;
903 }
904 rel2 {
905 relative: 1.0 0.98;
906 offset: 8 -9;
907 }
908 }
909 description { state: "visible" 0.0;
910 inherit: "default" 0.0;
911 visible: 1;
912 align: 1.0 0.5;
913 rel1 {
914 offset: -9 8;
915 }
916 rel2 {
917 offset: -9 -9;
918 }
919 }
920 }
921 program { name: "op_show";
922 signal: "options,show";
923 source: "terminology";
924 action: STATE_SET "visible" 0.0;
925 transition: DECELERATE 0.4;
926 target: "terminology.options";
927 }
928 program { name: "op_hide";
929 signal: "options,hide";
930 source: "terminology";
931 action: STATE_SET "default" 0.0;
932 transition: DECELERATE 0.6;
933 target: "terminology.options";
934 }
935
936 part { name: "terminology.controls"; type: SWALLOW;
937 scale: 1;
938 description { state: "default" 0.0;
939 fixed: 1 1;
940 min: 10 10;
941 align: 0.0 0.5;
942 visible: 0;
943 rel1 {
944 relative: 1.0 0.5;
945 offset: 8 8;
946 }
947 rel2 {
948 relative: 1.0 0.5;
949 offset: 8 -9;
950 }
951 }
952 description { state: "visible" 0.0;
953 inherit: "default" 0.0;
954 visible: 1;
955 align: 1.0 0.5;
956 rel1 {
957 relative: 1.0 0.5;
958 offset: -9 8;
959 }
960 rel2 {
961 offset: -9 -9;
962 }
963 }
964 }
965 program { name: "ct_show";
966 signal: "controls,show";
967 source: "terminology";
968 action: STATE_SET "visible" 0.0;
969 transition: DECELERATE 0.3;
970 target: "terminology.controls";
971 }
972 program { name: "ct_hide";
973 signal: "controls,hide";
974 source: "terminology";
975 action: STATE_SET "default" 0.0;
976 transition: DECELERATE 0.5;
977 target: "terminology.controls";
978 }
979 }
980 }
981}