diff --git a/data/images/ENVENTOR_EMBEDDED_SVG.svg b/data/images/ENVENTOR_EMBEDDED_SVG.svg new file mode 100644 index 0000000..a59da8d --- /dev/null +++ b/data/images/ENVENTOR_EMBEDDED_SVG.svg @@ -0,0 +1,829 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/data/images/Makefile.am b/data/images/Makefile.am index 4cc8c9f..95a8d41 100644 --- a/data/images/Makefile.am +++ b/data/images/Makefile.am @@ -39,6 +39,7 @@ files_DATA = ENVENTOR_EMBEDDED_IMAGE.png \ ENVENTOR_EMBEDDED_ICON_LOCK_DOWN.png \ ENVENTOR_EMBEDDED_BAT1.svg \ ENVENTOR_EMBEDDED_BAT2.svg \ + ENVENTOR_EMBEDDED_SVG.svg \ enventor_logo.png EXTRA_DIST = $(files_DATA) diff --git a/data/templates/Makefile.am b/data/templates/Makefile.am index 6de3bb2..85ae804 100644 --- a/data/templates/Makefile.am +++ b/data/templates/Makefile.am @@ -47,7 +47,10 @@ files_DATA = Basic.edc \ Watchface2.edc \ Watchface2.edj \ Morphing.edc \ - Morphing.edj + Morphing.edj \ + Vector.edc \ + Vector.edj + EXTRA_DIST = $(files_DATA) @@ -120,6 +123,9 @@ Watchface2.edj: Makefile Watchface2.edc Morphing.edj: Makefile Morphing.edc $(EDJE_CC) $(EDJE_FLAGS) $(srcdir)/Morphing.edc $(builddir)/Morphing.edj +Vector.edj: Makefile Vector.edc + $(EDJE_CC) $(EDJE_FLAGS) $(srcdir)/Vector.edc $(builddir)/Vector.edj + clean-local: rm -f *.edj diff --git a/data/templates/Vector.edc b/data/templates/Vector.edc new file mode 100644 index 0000000..3c6062c --- /dev/null +++ b/data/templates/Vector.edc @@ -0,0 +1,38 @@ +collections { + base_scale: 1.0; + group { "main"; + /* TODO: Please replace embedded image files to your application image files. */ + images { + vector: "ENVENTOR_EMBEDDED_SVG.svg"; + } + parts { + vector { "svg"; + desc { "default"; + /* TODO: Please replace embedded image files to your application image files. */ + image.normal: "ENVENTOR_EMBEDDED_SVG.svg"; + } + desc { "changed"; + inherit: "default"; + rel1.relative: 0.25 0.25; + rel2.relative: 0.75 0.75; + } + } + } + programs { + program { "mouse_down"; + signal: "mouse,down,1"; + source: "svg"; + action: STATE_SET "changed"; + target: "svg"; + transition: DECELERATE 0.5; + } + program { "mouse_up"; + signal: "mouse,up,1"; + source: "svg"; + action: STATE_SET "default"; + target: "svg"; + transition: DECELERATE 0.5; + } + } + } +}