summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorCarsten Haitzler <raster@rasterman.com>2005-11-17 08:34:33 +0000
committerCarsten Haitzler <raster@rasterman.com>2005-11-17 08:34:33 +0000
commit04a3737a3c832233210ae7fbf5b8fa1fc0f5857d (patch)
treeffaab1c71dd1b25ee96a8ef2b4fb0b5baf253bbc /data
parent9fd1fdf8b896d1e376b3daf4a65b853724ca2c85 (diff)
first step - slider smart and minimal theme stuff. i need to make the gfx
proper and do a label area. SVN revision: 18516
Diffstat (limited to 'data')
-rw-r--r--data/themes/Makefile.am3
-rw-r--r--data/themes/default.edc1
-rw-r--r--data/themes/default_slider.edc383
3 files changed, 386 insertions, 1 deletions
diff --git a/data/themes/Makefile.am b/data/themes/Makefile.am
index 5760d7425..5ce963ff1 100644
--- a/data/themes/Makefile.am
+++ b/data/themes/Makefile.am
@@ -47,7 +47,8 @@ default_frame.edc \
47default_label.edc \ 47default_label.edc \
48default_button.edc \ 48default_button.edc \
49default_scrollframe.edc \ 49default_scrollframe.edc \
50default_ilist.edc 50default_ilist.edc \
51default_slider.edc
51 52
52default.edj: Makefile $(EXTRA_DIST) 53default.edj: Makefile $(EXTRA_DIST)
53 $(EDJE_CC) $(EDJE_FLAGS) \ 54 $(EDJE_CC) $(EDJE_FLAGS) \
diff --git a/data/themes/default.edc b/data/themes/default.edc
index 8ec7a26ea..d4e0b4245 100644
--- a/data/themes/default.edc
+++ b/data/themes/default.edc
@@ -56,5 +56,6 @@ collections {
56#include "default_label.edc" 56#include "default_label.edc"
57#include "default_scrollframe.edc" 57#include "default_scrollframe.edc"
58#include "default_ilist.edc" 58#include "default_ilist.edc"
59#include "default_slider.edc"
59} 60}
60 61
diff --git a/data/themes/default_slider.edc b/data/themes/default_slider.edc
new file mode 100644
index 000000000..2b6ed26e7
--- /dev/null
+++ b/data/themes/default_slider.edc
@@ -0,0 +1,383 @@
1images {
2 image: "e17_ibar_bg_v.png" COMP;
3 image: "e17_ibar_over_v.png" COMP;
4 image: "e17_sb_btd1.png" COMP;
5 image: "e17_sb_btd2.png" COMP;
6 image: "e17_sb_btu1.png" COMP;
7 image: "e17_sb_btu2.png" COMP;
8 image: "e17_sb_btl1.png" COMP;
9 image: "e17_sb_btl2.png" COMP;
10 image: "e17_sb_btr1.png" COMP;
11 image: "e17_sb_btr2.png" COMP;
12 image: "e17_sb_btu1.png" COMP;
13 image: "e17_sb_barh1.png" COMP;
14 image: "e17_sb_barh2.png" COMP;
15 image: "e17_sb_barv1.png" COMP;
16 image: "e17_sb_barv2.png" COMP;
17 image: "e17_sb_runnerh.png" COMP;
18 image: "e17_sb_runnerv.png" COMP;
19 image: "e17_scrollbar_hdrag_thumb.png" COMP;
20 image: "e17_scrollbar_vdrag_thumb.png" COMP;
21 image: "focus.png" COMP;
22}
23
24group {
25 name: "widgets/slider_vertical";
26 parts {
27 part {
28 name: "sb_vbar";
29 type: RECT;
30 mouse_events: 0;
31 description {
32 state: "default" 0.0;
33 min: 16 16;
34 }
35 }
36 part {
37 name: "sb_vbar_base";
38 type: RECT;
39 clip_to: "sb_vbar";
40 mouse_events: 1;
41 description {
42 state: "default" 0.0;
43 color: 0 0 0 0;
44 }
45 }
46 part {
47 name: "sb_vbar_runner";
48 clip_to: "sb_vbar";
49 mouse_events: 0;
50 description {
51 state: "default" 0.0;
52 max: 2 99999;
53 rel1 {
54 to: "sb_vbar_base";
55 }
56 rel2 {
57 to: "sb_vbar_base";
58 }
59 image {
60 normal: "e17_sb_runnerv.png";
61 border: 0 0 4 4;
62 }
63 fill {
64 smooth: 0;
65 }
66 }
67 }
68 part {
69 name: "sb_vbar_p1";
70 type: RECT;
71 clip_to: "sb_vbar";
72 mouse_events: 1;
73 description {
74 state: "default" 0.0;
75 color: 0 0 0 0;
76 rel2 {
77 relative: 1.0 0.0;
78 offset: -1 -1;
79 to: "slider";
80 }
81 }
82 }
83 part {
84 name: "sb_vbar_p2";
85 type: RECT;
86 clip_to: "sb_vbar";
87 mouse_events: 1;
88 description {
89 state: "default" 0.0;
90 color: 0 0 0 0;
91 rel1 {
92 relative: 0.0 1.0;
93 offset: 0 0;
94 to: "slider";
95 }
96 }
97 }
98 part {
99 name: "slider";
100 clip_to: "sb_vbar";
101 mouse_events: 1;
102 dragable {
103 x: 0 0 0;
104 y: 1 1 0;
105 confine: "sb_vbar_base";
106 }
107 description {
108 state: "default" 0.0;
109 min: 16 16;
110 rel1 {
111 relative: 0.5 0.5;
112 offset: 0 0;
113 to: "sb_vbar_base";
114 }
115 rel2 {
116 relative: 0.5 0.5;
117 offset: 0 0;
118 to: "sb_vbar_base";
119 }
120 image {
121 normal: "e17_sb_barv1.png";
122 border: 5 5 5 5;
123 }
124 }
125 description {
126 state: "clicked" 0.0;
127 inherit: "default" 0.0;
128 image {
129 normal: "e17_sb_barv2.png";
130 }
131 }
132 }
133 part {
134 name: "focus";
135 mouse_events: 0;
136 description {
137 state: "default" 0.0;
138 visible: 0;
139 color: 255 255 255 0;
140 image {
141 normal: "focus.png";
142 border: 7 7 7 7;
143 middle: 0;
144 }
145 fill {
146 smooth: 0;
147 }
148 }
149 description {
150 state: "focused" 0.0;
151 inherit: "default" 0.0;
152 visible: 1;
153 color: 255 255 255 255;
154 }
155 }
156 }
157 programs {
158 program {
159 name: "sb_vbar_p1_down";
160 signal: "mouse,down,1";
161 source: "sb_vbar_p1";
162 action: DRAG_VAL_PAGE 0.0 -1.0;
163 target: "slider";
164 }
165 program {
166 name: "sb_vbar_p2_down";
167 signal: "mouse,down,1";
168 source: "sb_vbar_p2";
169 action: DRAG_VAL_PAGE 0.0 1.0;
170 target: "slider";
171 }
172 program {
173 name: "sb_vbar_down";
174 signal: "mouse,down,1";
175 source: "slider";
176 action: STATE_SET "clicked" 0.0;
177 target: "slider";
178 }
179 program {
180 name: "sb_vbar_up";
181 signal: "mouse,up,1";
182 source: "slider";
183 action: STATE_SET "default" 0.0;
184 target: "slider";
185 }
186 program {
187 name: "focus_in";
188 signal: "focus_in";
189 source: "";
190 action: STATE_SET "focused" 0.0;
191 transition: DECELERATE 0.2;
192 target: "focus";
193 }
194 program {
195 name: "focus_out";
196 signal: "focus_out";
197 source: "";
198 action: STATE_SET "default" 0.0;
199 transition: ACCELERATE 0.5;
200 target: "focus";
201 }
202 }
203}
204group {
205 name: "widgets/slider_horizontal";
206 parts {
207 part {
208 name: "sb_hbar";
209 type: RECT;
210 mouse_events: 0;
211 description {
212 state: "default" 0.0;
213 min: 16 16;
214 }
215 }
216 part {
217 name: "sb_hbar_base";
218 type: RECT;
219 clip_to: "sb_hbar";
220 mouse_events: 1;
221 description {
222 state: "default" 0.0;
223 color: 0 0 0 0;
224 }
225 }
226 part {
227 name: "sb_hbar_runner";
228 clip_to: "sb_hbar";
229 mouse_events: 0;
230 description {
231 state: "default" 0.0;
232 max: 99999 2;
233 rel1 {
234 to: "sb_hbar_base";
235 }
236 rel2 {
237 to: "sb_hbar_base";
238 }
239 image {
240 normal: "e17_sb_runnerh.png";
241 border: 4 4 0 0;
242 }
243 fill {
244 smooth: 0;
245 }
246 }
247 }
248 part {
249 name: "sb_hbar_p1";
250 type: RECT;
251 clip_to: "sb_hbar";
252 mouse_events: 1;
253 description {
254 state: "default" 0.0;
255 color: 0 0 0 0;
256 rel2 {
257 relative: 0.0 1.0;
258 offset: -1 -1;
259 to: "slider";
260 }
261 }
262 }
263 part {
264 name: "sb_hbar_p2";
265 type: RECT;
266 clip_to: "sb_hbar";
267 mouse_events: 1;
268 description {
269 state: "default" 0.0;
270 color: 0 0 0 0;
271 rel1 {
272 relative: 1.0 0.0;
273 offset: 0 0;
274 to: "slider";
275 }
276 }
277 }
278 part {
279 name: "slider";
280 clip_to: "sb_hbar";
281 mouse_events: 1;
282 dragable {
283 x: 1 1 0;
284 y: 0 0 0;
285 confine: "sb_hbar_base";
286 }
287 description {
288 state: "default" 0.0;
289 min: 16 16;
290 rel1 {
291 relative: 0.5 0.5;
292 offset: 0 0;
293 to: "sb_hbar_base";
294 }
295 rel2 {
296 relative: 0.5 0.5;
297 offset: 0 0;
298 to: "sb_hbar_base";
299 }
300 image {
301 normal: "e17_sb_barh1.png";
302 border: 5 5 5 5;
303 }
304 }
305 description {
306 state: "clicked" 0.0;
307 inherit: "default" 0.0;
308 image {
309 normal: "e17_sb_barh2.png";
310 }
311 }
312 }
313 part {
314 name: "focus";
315 mouse_events: 0;
316 description {
317 state: "default" 0.0;
318 visible: 0;
319 color: 255 255 255 0;
320 image {
321 normal: "focus.png";
322 border: 7 7 7 7;
323 middle: 0;
324 }
325 fill {
326 smooth: 0;
327 }
328 }
329 description {
330 state: "focused" 0.0;
331 inherit: "default" 0.0;
332 visible: 1;
333 color: 255 255 255 255;
334 }
335 }
336 }
337 programs {
338 program {
339 name: "sb_hbar_p1_down";
340 signal: "mouse,down,1";
341 source: "sb_hbar_p1";
342 action: DRAG_VAL_PAGE -1.0 0.0;
343 target: "slider";
344 }
345 program {
346 name: "sb_hbar_p2_down";
347 signal: "mouse,down,1";
348 source: "sb_hbar_p2";
349 action: DRAG_VAL_PAGE 1.0 0.0;
350 target: "slider";
351 }
352 program {
353 name: "sb_hbar_down";
354 signal: "mouse,down,1";
355 source: "slider";
356 action: STATE_SET "clicked" 0.0;
357 target: "slider";
358 }
359 program {
360 name: "sb_hbar_up";
361 signal: "mouse,up,1";
362 source: "slider";
363 action: STATE_SET "default" 0.0;
364 target: "slider";
365 }
366 program {
367 name: "focus_in";
368 signal: "focus_in";
369 source: "";
370 action: STATE_SET "focused" 0.0;
371 transition: DECELERATE 0.2;
372 target: "focus";
373 }
374 program {
375 name: "focus_out";
376 signal: "focus_out";
377 source: "";
378 action: STATE_SET "default" 0.0;
379 transition: ACCELERATE 0.5;
380 target: "focus";
381 }
382 }
383}