summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmitesh Singh <amitesh.sh@samsung.com>2018-04-11 19:52:09 +0900
committerAmitesh Singh <amitesh.sh@samsung.com>2018-04-11 20:00:21 +0900
commitdda15b88e37b271f1fb4069dae84cd6b131afd9b (patch)
tree253b279e124ed7622303d44402191c93c3b1562c
parent34afc8bdfae33b63b81bd4afb7c482cf0cb816d4 (diff)
theme: spin button - remove elm spin btn inheritance.
-rw-r--r--data/elementary/themes/edc/efl/spin_button.edc307
1 files changed, 294 insertions, 13 deletions
diff --git a/data/elementary/themes/edc/efl/spin_button.edc b/data/elementary/themes/edc/efl/spin_button.edc
index 40e9492..4d502e3 100644
--- a/data/elementary/themes/edc/efl/spin_button.edc
+++ b/data/elementary/themes/edc/efl/spin_button.edc
@@ -206,23 +206,304 @@ group { "efl/spin_button:vertical";
206 } 206 }
207} 207}
208 208
209group { "efl/spin_button/inc_button"; 209group { name: "efl/spin_button/inc_button";
210 inherit: "elm/button/base/spinner/increase/default"; 210 images.image: "sym_right_light_normal.png" COMP;
211} 211 images.image: "sym_right_glow_normal.png" COMP;
212 images.image: "sym_right_dark_normal.png" COMP;
213 script {
214 public mouse_down = 0;
215 public multi_down = 0;
216 }
217 parts {
218 part { name: "arrow.image";
219 scale: 1;
220 description { state: "default" 0.0;
221 min: 15 15;
222 max: 15 15;
223 color_class: "F032L1";
224 image.normal: "sym_right_light_normal.png";
225 }
226 description { state: "pressed" 0.0;
227 inherit: "default" 0.0;
228 image.normal: "sym_right_glow_normal.png";
229 }
230 description { state: "disabled" 0.0;
231 inherit: "default" 0.0;
232 image.normal: "sym_right_dark_normal.png";
233 }
234 }
235 part { name: "over";
236 type: RECT;
237 repeat_events: 1;
238 description { state: "default" 0.0;
239 color: 0 0 0 0;
240 }
241 }
242 part { name: "disabler";
243 type: RECT;
244 description { state: "default" 0.0;
245 color: 0 0 0 0;
246 visible: 0;
247 }
248 description { state: "disabled" 0.0;
249 inherit: "default" 0.0;
250 visible: 1;
251 }
252 }
253 }
254 programs {
255 program { name: "button_press";
256 signal: "mouse,down,1";
257 source: "over";
258 script {
259 if ((get_int(multi_down) == 0) &&
260 (get_int(mouse_down) == 0)) {
261 set_int(mouse_down, 1);
262 run_program(PROGRAM:"button_press2");
263 }
264 }
265 }
266 program { name: "button_press2";
267 action: SIGNAL_EMIT "elm,action,press" "";
268 after: "button_press_anim";
269 }
270 program { name: "button_press_anim";
271 action: STATE_SET "pressed" 0.0;
272 target: "arrow.image";
273 }
274 program { name: "button_unpress";
275 signal: "mouse,up,1";
276 source: "over";
277 script {
278 if (get_int(mouse_down) == 1) {
279 set_int(mouse_down, 0);
280 run_program(PROGRAM:"button_unpress2");
281 run_program(PROGRAM:"button_unpress_anim");
282 }
283 }
284 }
285 program { name: "button_unpress2";
286 action: SIGNAL_EMIT "elm,action,unpress" "";
287 }
288 program { name: "button_unpress_anim";
289 action: STATE_SET "default" 0.0;
290 target: "arrow.image";
291 }
292 program { name: "button_click";
293 signal: "mouse,clicked,1";
294 source: "over";
295 script {
296 if (get_int(multi_down) == 0) {
297 run_program(PROGRAM:"button_click2");
298 }
299 }
300 }
301 program { name: "action_unpressed";
302 signal: "elm,action,unpressed";
303 source: "elm";
304 after: "button_unpress_anim";
305 }
306 program { name: "action_pressed";
307 signal: "elm,action,pressed";
308 source: "elm";
309 after: "button_press_anim";
310 }
311 program { name: "button_click2";
312 action: SIGNAL_EMIT "elm,action,click" "";
313 }
314 program { name: "access_pressed";
315 signal: "elm,action,anim,activate";
316 source: "elm";
317 action: STATE_SET "pressed" 0.0;
318 target: "arrow.image";
319 after: "access_pressed_anim";
320 }
321 program { name: "access_pressed_anim";
322 action: STATE_SET "default" 0.0;
323 transition: DECELERATE 0.1;
324 target: "arrow.image";
325 }
326 program { name: "disable";
327 signal: "elm,state,disabled";
328 source: "elm";
329 action: STATE_SET "disabled" 0.0;
330 target: "arrow.image";
331 target: "disabler";
332 }
333 program { name: "enable";
334 signal: "elm,state,enabled";
335 source: "elm";
336 action: STATE_SET "default" 0.0;
337 target: "arrow.image";
338 target: "disabler";
339 }
340 program {
341 name: "multi_down";
342 signal: "elm,action,multi,down";
343 source: "elm";
344 script {
345 set_int(multi_down, 1);
346 }
347 }
348 program {
349 name: "multi_up";
350 signal: "elm,action,multi,up";
351 source: "elm";
352 script {
353 set_int(multi_down, 0);
354 }
355 }
356 }
357 }
212 358
213group { "efl/spin_button/dec_button"; 359group { name: "efl/spin_button/dec_button";
214 inherit: "elm/button/base/spinner/decrease/default"; 360 inherit: "efl/spin_button/inc_button";
361 images.image: "sym_left_light_normal.png" COMP;
362 images.image: "sym_left_glow_normal.png" COMP;
363 images.image: "sym_left_dark_normal.png" COMP;
364 parts {
365 part { name: "arrow.image";
366 scale: 1;
367 description { state: "default" 0.0;
368 min: 15 15;
369 max: 15 15;
370 image.normal: "sym_left_light_normal.png";
371 }
372 description { state: "pressed" 0.0;
373 inherit: "default" 0.0;
374 image.normal: "sym_left_glow_normal.png";
375 }
376 description { state: "disabled" 0.0;
377 inherit: "default" 0.0;
378 image.normal: "sym_left_dark_normal.png";
379 }
380 }
381 }
215} 382}
216 383
217group { "efl/spin_button/text_button"; 384group { name: "efl/spin_button/text_button";
218 inherit: "elm/button/base/spinner/default"; 385 alias: "efl/spin_button/text_button:vertical";
219 alias: "efl/spin_button/text_button:vertical"; 386 parts {
387 part { name: "bg";
388 type: SPACER;
389 scale: 1;
390 description { state: "default" 0.0;
391 }
392 }
393 part { name: "elm.text";
394 type: TEXT;
395 scale: 1;
396 effect: SHADOW BOTTOM;
397 description { state: "default" 0.0;
398 color: FN_COL_DEFAULT;
399 color_class: "spinner";
400 rel1.to: "bg";
401 rel2.to: "bg";
402 text { font: FN; size: 10;
403 min: 1 1;
404 text_class: "spinner";
405 ellipsis: -1;
406 }
407 }
408 description { state: "disabled" 0.0;
409 inherit: "default" 0.0 ;
410 color: FN_COL_DISABLE;
411 color_class: "spinner_disabled";
412 }
413 }
414 part { name: "over";
415 type: RECT;
416 repeat_events: 1;
417 description { state: "default" 0.0;
418 color: 0 0 0 0;
419 }
420 }
421 part { name: "disabler";
422 type: RECT;
423 description { state: "default" 0.0;
424 color: 0 0 0 0;
425 visible: 0;
426 }
427 description { state: "disabled" 0.0;
428 inherit: "default" 0.0;
429 visible: 1;
430 }
431 }
432 }
433 programs {
434 program { name: "button_click";
435 signal: "mouse,clicked,1";
436 source: "over";
437 script {
438 run_program(PROGRAM:"button_click2");
439 }
440 }
441 program { name: "button_click2";
442 action: SIGNAL_EMIT "elm,action,click" "";
443 }
444 program { name: "disable";
445 signal: "elm,state,disabled";
446 source: "elm";
447 action: STATE_SET "disabled" 0.0;
448 target: "disabler";
449 target: "elm.text";
450 }
451 program { name: "enable";
452 signal: "elm,state,enabled";
453 source: "elm";
454 action: STATE_SET "default" 0.0;
455 target: "disabler";
456 target: "elm.text";
457 }
458 }
220} 459}
221 460
222group { "efl/spin_button/inc_button:vertical"; 461group { name: "efl/spin_button/inc_button:vertical";
223 inherit: "elm/button/base/spinner/increase/vertical"; 462 inherit: "efl/spin_button/inc_button";
463 images.image: "sym_up_light_normal.png" COMP;
464 images.image: "sym_up_glow_normal.png" COMP;
465 images.image: "sym_up_dark_normal.png" COMP;
466 parts {
467 part { name: "arrow.image";
468 scale: 1;
469 description { state: "default" 0.0;
470 min: 15 15;
471 max: 15 15;
472 image.normal: "sym_up_light_normal.png";
473 }
474 description { state: "pressed" 0.0;
475 inherit: "default" 0.0;
476 image.normal: "sym_up_glow_normal.png";
477 }
478 description { state: "disabled" 0.0;
479 inherit: "default" 0.0;
480 image.normal: "sym_up_dark_normal.png";
481 }
482 }
483 }
224} 484}
225 485
226group { "efl/spin_button/dec_button:vertical"; 486group { name: "efl/spin_button/dec_button:vertical";
227 inherit: "elm/button/base/spinner/decrease/vertical"; 487 inherit: "efl/spin_button/dec_button";
228} \ No newline at end of file 488 images.image: "sym_down_light_normal.png" COMP;
489 images.image: "sym_down_glow_normal.png" COMP;
490 images.image: "sym_down_dark_normal.png" COMP;
491 parts {
492 part { name: "arrow.image";
493 scale: 1;
494 description { state: "default" 0.0;
495 min: 15 15;
496 max: 15 15;
497 image.normal: "sym_down_light_normal.png";
498 }
499 description { state: "pressed" 0.0;
500 inherit: "default" 0.0;
501 image.normal: "sym_down_glow_normal.png";
502 }
503 description { state: "disabled" 0.0;
504 inherit: "default" 0.0;
505 image.normal: "sym_down_dark_normal.png";
506 }
507 }
508 }
509 }