summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorFlavio Ceolin <flavio.ceolin@gmail.com>2013-09-01 19:41:13 -0300
committerFlavio Ceolin <flavio.ceolin@gmail.com>2014-04-03 16:23:04 -0300
commit196cdb70b84958dd827797f86e78abd798e48cf7 (patch)
treefa94c67c0794b8dd8d64b8e216daccc20801c584 /data
parentc984cf740b8625571a5d1617e0c3911fc27c11f9 (diff)
Adding common code
Init/shutdown used libraries and including common headers.
Diffstat (limited to 'data')
-rw-r--r--data/themes/default.edc6
-rw-r--r--data/themes/images/inset_round_hilight.pngbin0 -> 1383 bytes
-rw-r--r--data/themes/images/inset_round_shading.pngbin0 -> 6801 bytes
-rw-r--r--data/themes/images/inset_round_shadow.pngbin0 -> 2050 bytes
-rw-r--r--data/themes/images/led_dot_white.pngbin0 -> 525 bytes
-rw-r--r--data/themes/images/module_icon.pngbin0 -> 4940 bytes
-rw-r--r--data/themes/images/speaker.pngbin0 -> 19745 bytes
-rw-r--r--data/themes/main.edc24
-rw-r--r--data/themes/mixer.edc245
-rw-r--r--data/themes/naviframe.edc155
-rw-r--r--data/themes/playbacks.edc199
-rw-r--r--data/xml/module.desktop.in12
12 files changed, 641 insertions, 0 deletions
diff --git a/data/themes/default.edc b/data/themes/default.edc
new file mode 100644
index 0000000..dfc410b
--- /dev/null
+++ b/data/themes/default.edc
@@ -0,0 +1,6 @@
1collections {
2
3#include "main.edc"
4#include "naviframe.edc"
5#include "playbacks.edc"
6}
diff --git a/data/themes/images/inset_round_hilight.png b/data/themes/images/inset_round_hilight.png
new file mode 100644
index 0000000..c2cf394
--- /dev/null
+++ b/data/themes/images/inset_round_hilight.png
Binary files differ
diff --git a/data/themes/images/inset_round_shading.png b/data/themes/images/inset_round_shading.png
new file mode 100644
index 0000000..e56ac25
--- /dev/null
+++ b/data/themes/images/inset_round_shading.png
Binary files differ
diff --git a/data/themes/images/inset_round_shadow.png b/data/themes/images/inset_round_shadow.png
new file mode 100644
index 0000000..37e1e89
--- /dev/null
+++ b/data/themes/images/inset_round_shadow.png
Binary files differ
diff --git a/data/themes/images/led_dot_white.png b/data/themes/images/led_dot_white.png
new file mode 100644
index 0000000..4c1883e
--- /dev/null
+++ b/data/themes/images/led_dot_white.png
Binary files differ
diff --git a/data/themes/images/module_icon.png b/data/themes/images/module_icon.png
new file mode 100644
index 0000000..e14cb7b
--- /dev/null
+++ b/data/themes/images/module_icon.png
Binary files differ
diff --git a/data/themes/images/speaker.png b/data/themes/images/speaker.png
new file mode 100644
index 0000000..3db381c
--- /dev/null
+++ b/data/themes/images/speaker.png
Binary files differ
diff --git a/data/themes/main.edc b/data/themes/main.edc
new file mode 100644
index 0000000..47eb3ff
--- /dev/null
+++ b/data/themes/main.edc
@@ -0,0 +1,24 @@
1group {
2 name: "elm/layout/main/default";
3
4 parts {
5 part {
6 name: "bg";
7 type: RECT;
8 mouse_events: 1;
9 description {
10 state: "default";
11 color: 0 0 0 0;
12 }
13 }
14
15 part {
16 name: "main_content";
17 type: SWALLOW;
18 mouse_events: 1;
19 description {
20 state: "default";
21 }
22 }
23 }
24}
diff --git a/data/themes/mixer.edc b/data/themes/mixer.edc
new file mode 100644
index 0000000..75fd82b
--- /dev/null
+++ b/data/themes/mixer.edc
@@ -0,0 +1,245 @@
1collections {
2 group {
3 name: "icon";
4 max: 24 24;
5 images {
6 image: "module_icon.png" COMP;
7 }
8 parts {
9 part {
10 name: "image";
11 mouse_events: 0;
12 type: IMAGE;
13 description {
14 state: "default" 0.0;
15 image.normal: "module_icon.png";
16 }
17 }
18 }
19 }
20
21 group { name: "e/modules/mixer/main";
22 images.image: "speaker.png" COMP;
23 images.image: "inset_round_hilight.png" COMP;
24 images.image: "inset_round_shadow.png" COMP;
25 images.image: "inset_round_shading.png" COMP;
26 images.image: "led_dot_white.png" COMP;
27 max: 160 160;
28 min: 16 16;
29 script {
30 public message(Msg_Type:type, id, ...) {
31 if ((type == MSG_INT_SET) && (id == 0)) {
32 new m, l, r;
33
34 m = getarg(2);
35 l = getarg(3);
36 r = getarg(4);
37
38 if (m) {
39 run_program(PROGRAM:"mute");
40 } else {
41 run_program(PROGRAM:"unmute");
42 }
43
44 if (l <= 0) {
45 run_program(PROGRAM:"l0-off");
46 run_program(PROGRAM:"l1-off");
47 run_program(PROGRAM:"l2-off");
48 run_program(PROGRAM:"l3-off");
49 run_program(PROGRAM:"l4-off");
50 } else if (l <= 20) {
51 run_program(PROGRAM:"l0-on");
52 run_program(PROGRAM:"l1-off");
53 run_program(PROGRAM:"l2-off");
54 run_program(PROGRAM:"l3-off");
55 run_program(PROGRAM:"l4-off");
56 } else if (l <= 40) {
57 run_program(PROGRAM:"l0-on");
58 run_program(PROGRAM:"l1-on");
59 run_program(PROGRAM:"l2-off");
60 run_program(PROGRAM:"l3-off");
61 run_program(PROGRAM:"l4-off");
62 } else if (l <= 60) {
63 run_program(PROGRAM:"l0-on");
64 run_program(PROGRAM:"l1-on");
65 run_program(PROGRAM:"l2-on");
66 run_program(PROGRAM:"l3-off");
67 run_program(PROGRAM:"l4-off");
68 } else if (l <= 80) {
69 run_program(PROGRAM:"l0-on");
70 run_program(PROGRAM:"l1-on");
71 run_program(PROGRAM:"l2-on");
72 run_program(PROGRAM:"l3-on");
73 run_program(PROGRAM:"l4-off");
74 } else {
75 run_program(PROGRAM:"l0-on");
76 run_program(PROGRAM:"l1-on");
77 run_program(PROGRAM:"l2-on");
78 run_program(PROGRAM:"l3-on");
79 run_program(PROGRAM:"l4-on");
80 }
81
82 if (r <= 0) {
83 run_program(PROGRAM:"r0-off");
84 run_program(PROGRAM:"r1-off");
85 run_program(PROGRAM:"r2-off");
86 run_program(PROGRAM:"r3-off");
87 run_program(PROGRAM:"r4-off");
88 } else if (r <= 20) {
89 run_program(PROGRAM:"r0-on");
90 run_program(PROGRAM:"r1-off");
91 run_program(PROGRAM:"r2-off");
92 run_program(PROGRAM:"r3-off");
93 run_program(PROGRAM:"r4-off");
94 } else if (r <= 40) {
95 run_program(PROGRAM:"r0-on");
96 run_program(PROGRAM:"r1-on");
97 run_program(PROGRAM:"r2-off");
98 run_program(PROGRAM:"r3-off");
99 run_program(PROGRAM:"r4-off");
100 } else if (r <= 60) {
101 run_program(PROGRAM:"r0-on");
102 run_program(PROGRAM:"r1-on");
103 run_program(PROGRAM:"r2-on");
104 run_program(PROGRAM:"r3-off");
105 run_program(PROGRAM:"r4-off");
106 } else if (r <= 80) {
107 run_program(PROGRAM:"r0-on");
108 run_program(PROGRAM:"r1-on");
109 run_program(PROGRAM:"r2-on");
110 run_program(PROGRAM:"r3-on");
111 run_program(PROGRAM:"r4-off");
112 } else {
113 run_program(PROGRAM:"r0-on");
114 run_program(PROGRAM:"r1-on");
115 run_program(PROGRAM:"r2-on");
116 run_program(PROGRAM:"r3-on");
117 run_program(PROGRAM:"r4-on");
118 }
119 }
120 }
121 }
122 parts {
123 part { name: "base-sh";
124 description { state: "default" 0.0;
125 rel1.to: "base";
126 rel1.offset: 0 -1;
127 rel2.to: "base";
128 rel2.offset: -1 -2;
129 image.normal: "inset_round_shadow.png";
130 }
131 }
132 part { name: "base-hi";
133 description { state: "default" 0.0;
134 rel1.to: "base";
135 rel1.offset: 0 1;
136 rel2.to: "base";
137 rel2.offset: -1 0;
138 image.normal: "inset_round_hilight.png";
139 }
140 }
141 part { name: "base";
142 description { state: "default" 0.0;
143 rel1.relative: (25/380) (25/380);
144 rel2.relative: (365/380) (365/380);
145 aspect: 1.0 1.0; aspect_preference: BOTH;
146 image.normal: "speaker.png";
147 }
148 }
149 part { name: "state"; type: RECT;
150 description { state: "default" 0.0;
151 rel1.relative: -1.0 -1.0;
152 rel2.relative: 2.0 2.0;
153 color: 51 153 255 255;
154 }
155 description { state: "mute" 0.0;
156 inherit: "default" 0.0;
157 color: 255 153 51 255;
158 }
159 }
160#define LED(_NAME, _BASE, _X, _SIZE) \
161 part { name: _NAME; type: RECT; \
162 clip_to: "state"; \
163 description { state: "default" 0.0; \
164 rel1.relative: ((_BASE+(_X*8))/160) (80/160); \
165 rel2.relative: ((_BASE+(_X*8))/160) (80/160); \
166 min: 1 1; \
167 max: 1 1; \
168 visible: 0; \
169 color: 255 255 255 0; \
170 } \
171 description { state: "active" 0.0; \
172 inherit: "default" 0.0; \
173 visible: 1; \
174 color: 255 255 255 255; \
175 } \
176 } \
177 part { name: _NAME"g"; \
178 clip_to: "state"; \
179 description { state: "default" 0.0; \
180 rel1.to: _NAME; \
181 rel2.to: _NAME; \
182 image.normal: "led_dot_white.png"; \
183 min: _SIZE _SIZE; \
184 visible: 0; \
185 color: 255 255 255 0; \
186 } \
187 description { state: "active" 0.0; \
188 inherit: "default" 0.0; \
189 visible: 1; \
190 color: 255 255 255 255; \
191 } \
192 }
193 LED("r0", 99, 0, 1)
194 LED("r1", 99, 1, 9)
195 LED("r2", 99, 2, 15)
196 LED("r3", 99, 3, 21)
197 LED("r4", 99, 4, 27)
198 LED("l0", 61, 0, 1)
199 LED("l1", 61, -1, 9)
200 LED("l2", 61, -2, 15)
201 LED("l3", 61, -3, 21)
202 LED("l4", 61, -4, 27)
203#undef LED
204 part { name: "over"; type: RECT;
205 description { state: "default" 0.0;
206 color: 255 255 255 0;
207 }
208 }
209 }
210 programs {
211 program { name: "mute";
212 action: STATE_SET "mute" 0.0;
213 transition: LINEAR 0.3;
214 target: "state";
215 }
216 program { name: "unmute";
217 action: STATE_SET "default" 0.0;
218 transition: LINEAR 0.2;
219 target: "state";
220 }
221#define PROG(_NAME) \
222 program { name: _NAME"-on"; \
223 action: STATE_SET "active" 0.0; \
224 target: _NAME; \
225 target: _NAME"g"; \
226 } \
227 program { name: _NAME"-off"; \
228 action: STATE_SET "default" 0.0; \
229 target: _NAME; \
230 target: _NAME"g"; \
231 }
232 PROG("r0")
233 PROG("r1")
234 PROG("r2")
235 PROG("r3")
236 PROG("r4")
237 PROG("l0")
238 PROG("l1")
239 PROG("l2")
240 PROG("l3")
241 PROG("l4")
242#undef PROG
243 }
244 }
245}
diff --git a/data/themes/naviframe.edc b/data/themes/naviframe.edc
new file mode 100644
index 0000000..0afeb0b
--- /dev/null
+++ b/data/themes/naviframe.edc
@@ -0,0 +1,155 @@
1group {
2 name:"elm/naviframe/base/no_transition";
3 parts {
4 part {
5 name: "base";
6 type: RECT;
7 description {
8 state: "default" 0.0;
9 }
10 }
11 }
12}
13
14group {
15 name: "elm/naviframe/item/basic/no_transition";
16 parts {
17 part {
18 name: "clip";
19 type: RECT;
20 description {
21 state: "default" 0.0;
22 }
23 }
24 part {
25 name: "base";
26 type: SPACER;
27 description {
28 state: "default" 0.0;
29 }
30 description {
31 state: "prev" 0.0;
32 inherit: "default" 0.0;
33 rel1.relative: -1.0 0.0;
34 rel2.relative: 0.0 1.0;
35 }
36 description {
37 state: "next" 0.0;
38 inherit: "default" 0.0;
39 rel1.relative: 1.0 0.0;
40 rel2.relative: 2.0 1.0;
41 }
42 }
43 part {
44 name: "elm.swallow.content";
45 type: SWALLOW;
46 clip_to: "elements_clip";
47 description {
48 state: "default" 0.0;
49 rel1.to: "base";
50 rel2.to: "base";
51 }
52 }
53 part {
54 name: "elements_clip";
55 type: RECT;
56 clip_to: "clip";
57 description {
58 state: "default" 0.0;
59 rel1.to: "base";
60 rel2.to: "base";
61 }
62 description {
63 state: "hidden" 0.0;
64 inherit: "default" 0.0;
65 color: 255 255 255 0;
66 visible: 0;
67 }
68 description { state: "next" 0.0;
69 inherit: "hidden" 0.0;
70 }
71 description { state: "prev" 0.0;
72 inherit: "hidden" 0.0;
73 }
74 }
75 }
76 programs {
77 program {
78 signal: "elm,state,visible"; source: "elm";
79 action: STATE_SET "default" 0.0;
80 target: "elm.swallow.content";
81 target: "elements_clip";
82 }
83 program {
84 signal: "elm,state,cur,pushed"; source: "elm";
85 action: STATE_SET "default" 0.0;
86 target: "base";
87 target: "elements_clip";
88 after: "pushed2";
89 }
90 program {
91 name: "pushed2";
92 action: STATE_SET "prev" 0.0;
93 target: "base";
94 target: "elements_clip";
95 after: "pushed3";
96 }
97 program {
98 name: "pushed3";
99 action: SIGNAL_EMIT "elm,action,pushed,finished" "elm";
100 }
101 program {
102 signal: "elm,state,cur,popped"; source: "elm";
103 action: STATE_SET "default" 0.0;
104 target: "base";
105 target: "elements_clip";
106 after: "popped2";
107 }
108 program {
109 name: "popped2";
110 action: STATE_SET "next" 0.0;
111 target: "base";
112 target: "elements_clip";
113 after: "popped3";
114 }
115 program {
116 name: "popped3";
117 action: SIGNAL_EMIT "elm,action,popped,finished" "elm";
118 }
119 program {
120 signal: "elm,state,new,pushed"; source: "elm";
121 action: STATE_SET "next" 0.0;
122 target: "base";
123 target: "elements_clip";
124 after: "pushedb2";
125 }
126 program {
127 name: "pushedb2";
128 action: STATE_SET "default" 0.0;
129 target: "base";
130 target: "elements_clip";
131 after: "pushedb3";
132 }
133 program {
134 name: "pushedb3";
135 action: SIGNAL_EMIT "elm,action,show,finished" "elm";
136 }
137 program {
138 signal: "elm,state,prev,popped"; source: "elm";
139 action: STATE_SET "prev" 0.0;
140 target: "base";
141 target: "elements_clip";
142 after: "poppedb2";
143 }
144 program { name: "poppedb2";
145 action: STATE_SET "default" 0.0;
146 target: "base";
147 target: "elements_clip";
148 after: "poppedb3";
149 }
150 program {
151 name: "poppedb3";
152 action: SIGNAL_EMIT "elm,action,show,finished" "elm";
153 }
154 }
155}
diff --git a/data/themes/playbacks.edc b/data/themes/playbacks.edc
new file mode 100644
index 0000000..302d38c
--- /dev/null
+++ b/data/themes/playbacks.edc
@@ -0,0 +1,199 @@
1#define ADD_SPACER(_name, _min_x, _min_y, _max_x, _max_y, _align_x, \
2 _align_y, _rel1_to_x, _rel1_to_y, _rel1_x, _rel1_y, \
3 _rel2_to_x, _rel2_to_y, _rel2_x, _rel2_y) \
4 part { \
5 name: _name; \
6 type: SPACER; \
7 scale: 1; \
8 description { \
9 state: "default" 0.0; \
10 min: _min_x _min_y; \
11 max: _max_x _max_y; \
12 fixed: 1 1; \
13 align: _align_x _align_y; \
14 rel1 { \
15 to_x: _rel1_to_x; \
16 to_y: _rel1_to_y; \
17 relative: _rel1_x _rel1_y; \
18 } \
19 rel2 { \
20 to_x: _rel2_to_x; \
21 to_y: _rel2_to_y; \
22 relative: _rel2_x _rel2_y; \
23 } \
24 }
25
26group {
27 name: "elm/layout/playbacks/default";
28 alias: "elm/layout/sinks/default";
29 alias: "elm/layout/sources/default";
30
31 parts {
32 part {
33 name: "bg";
34 type: RECT;
35 mouse_events: 1;
36 description {
37 state: "default";
38 color: 0 0 0 0;
39 }
40 }
41
42 part {
43 name: "list";
44 type: SWALLOW;
45 description {
46 state: "default";
47 }
48 }
49 }
50}
51
52group {
53 name: "elm/genlist/item/playbacks/default";
54 alias: "elm/genlist/item/sinks/default";
55 alias: "elm/genlist/item/sources/default";
56
57 data {
58 item: "texts" "name";
59 item: "contents" "slider mute icon hover";
60 }
61
62 color_classes {
63 color_class {
64 name: "playback_name";
65 color: 0 0 0 255;
66 }
67 }
68
69 parts {
70 part {
71 name: "base";
72 type: RECT;
73 mouse_events: 1;
74 scale: 1;
75 description {
76 state: "default";
77 min: 0 120;
78 max: -1 -1;
79 color: 64 64 64 255;
80 }
81 description {
82 state: "odd";
83 min: 0 120;
84 max: -1 -1;
85 color: 56 56 56 255;
86 }
87 }
88 part {
89 name: "mute";
90 type: SWALLOW;
91 scale: 1;
92 description {
93 state: "default";
94 align: 1.0 0.0;
95 fixed: 1 1;
96 rel1.relative: 1.0 0.0;
97 rel2.relative: 1.0 0.0;
98 }
99 }
100
101 part {
102 name: "hover";
103 type: SWALLOW;
104 scale: 1;
105 description {
106 state: "default";
107 align: 1.0 0.0;
108 fixed: 1 1;
109 rel1 {
110 relative: 0.0 0.0;
111 to: "mute";
112 }
113 rel2 {
114 relative: 0.0 0.0;
115 to: "mute";
116 }
117 }
118 }
119
120 part {
121 name: "icon";
122 type: SWALLOW;
123 scale: 1;
124 description {
125 state: "default";
126 align: 0.0 0.0;
127 fixed: 1 1;
128 min: 40 40;
129 max: 40 40;
130 rel1.relative: 0.0 0.0;
131 rel2.relative: 0.0 0.0;
132 }
133 }
134
135 ADD_SPACER("spacer.icon", 20, 20, 20, 20, 0.0, 0.5, "icon", "icon",
136 1.0, 0.0, "icon", "icon", 1.0, 1.0)
137
138 part {
139 name: "name";
140 type: TEXT;
141 mouse_events: 0;
142 scale: 1;
143 description {
144 state: "default";
145 align: 0.0 0.5;
146 fixed: 1 1;
147 rel1 {
148 to: "spacer.icon";
149 relative: 1.0 0.0;
150 }
151 rel2 {
152 to_x: "hover";
153 to_y: "spacer.icon";
154 relative: 0.0 1.0;
155 }
156 color_class: "playback_name";
157 text {
158 size: 10;
159 align: 0.0 0.5;
160 min: 1 1;
161 }
162 }
163
164 ADD_SPACER("spacer.mute", 0, 20, 0, 20, 0.0, 0.0, "base", "mute",
165 0.0, 1.0, "base", "mute", 0.0, 1.0)
166
167 part {
168 name: "slider";
169 type: SWALLOW;
170 scale: 1;
171 description {
172 state: "default";
173 fixed: 1 1;
174 align: 0.5 0.0;
175 rel1 {
176 to_y: "spacer.mute";
177 relative: 0.0 1.0;
178 }
179 rel2 {
180 to: "base";
181 relative: 1.0 1.0;
182 }
183 }
184 }
185 }
186
187 programs {
188 program {
189 signal: "elm,state,odd"; source: "elm";
190 action: STATE_SET "odd" 1.0;
191 target: "base";
192 }
193 program {
194 signal: "elm,state,even"; source: "elm";
195 action: STATE_SET "default" 0.0;
196 target: "base";
197 }
198 }
199}
diff --git a/data/xml/module.desktop.in b/data/xml/module.desktop.in
new file mode 100644
index 0000000..bd1441c
--- /dev/null
+++ b/data/xml/module.desktop.in
@@ -0,0 +1,12 @@
1[Desktop Entry]
2Encoding=UTF-8
3Type=Link
4Version=1.0
5Name=Pulse Mixer
6Comment=A module to control audio volume and streams.
7Icon=e-module-mixer
8Exec=enlightenment
9StartupNotify=true
10X-Enlightenment-IconClass=epulse-mixer,gadget
11X-Enlightenment-ModuleType=utils
12X-Enlightenment-WaitExit=false