Piano / res / edje /

buttons.edc

  1. ///////////////////////////////////////////////////////////////////////////////////////
  2.  
  3. #define BUTTON_CIRCLE_STYLES(style_name, button_circle_normal, button_circle_press) \
  4. group { name: "elm/button/base/circle/"style_name; \
  5. images { \
  6. image: button_circle_normal COMP; \
  7. image: button_circle_press COMP; \
  8. } \
  9. parts { \
  10. part { name: "button_image"; \
  11. scale: 1; \
  12. description { state: "default" 0.0; \
  13. image.normal: button_circle_normal; \
  14. color: 255 255 255 255; \
  15. } \
  16. description { \
  17. state: "clicked" 0.0; \
  18. inherit: "default" 0.0; \
  19. image.normal: button_circle_press; \
  20. } \
  21. description { \
  22. state: "disabled" 0.0; \
  23. inherit: "default" 0.0; \
  24. color: 255 255 255 128; \
  25. } \
  26. } \
  27. } \
  28. programs { \
  29. program { name: "clicked"; \
  30. signal: "clicked"; \
  31. source: "*"; \
  32. action: STATE_SET "clicked" 0.0; \
  33. target: "button_image"; \
  34. } \
  35. program { name: "default"; \
  36. signal: "default"; \
  37. source: "*"; \
  38. action: STATE_SET "default" 0.0; \
  39. target: "button_image"; \
  40. } \
  41. } \
  42. }
  43.  
  44. collections
  45. {
  46. ///////////////////////////////////////////////////////////////////////////////////////
  47. BUTTON_CIRCLE_STYLES("button_white", "white.png", "white_pressed.png");
  48. BUTTON_CIRCLE_STYLES("button_white_pressed", "white_pressed.png", "white.png");
  49. BUTTON_CIRCLE_STYLES("button_black", "black.png", "black_pressed.png");
  50. BUTTON_CIRCLE_STYLES("button_black_pressed", "black_pressed.png", "black.png");
  51. ///////////////////////////////////////////////////////////////////////////////////////
  52. }