forked from enlightenment/enventor
template: add a vector morphing example.
This commit is contained in:
parent
44ba41d27b
commit
f847e936db
|
@ -0,0 +1,3 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" stroke-linejoin="round" viewBox="50 -100 500 500">
|
||||
<path fill="none" stroke="black" stroke-width="10" d="M 212,220 C 197,171 156,153 123,221 109,157 120,109 159,63.6 190,114 234,115 254,89.8 260,82.3 268,69.6 270,60.3 273,66.5 275,71.6 280,75.6 286,79.5 294,79.8 300,79.8 306,79.8 314,79.5 320,75.6 325,71.6 327,66.5 330,60.3 332,69.6 340,82.3 346,89.8 366,115 410,114 441,63.6 480,109 491,157 477,221 444,153 403,171 388,220 366,188 316,200 300,248 284,200 234,188 212,220 Z"/>
|
||||
</svg>
|
After Width: | Height: | Size: 532 B |
|
@ -0,0 +1,3 @@
|
|||
<svg xmlns="http://www.w3.org/2000/svg" stroke-linejoin="round" viewBox="50 -100 500 500">
|
||||
<path fill="none" stroke="black" stroke-width="10" d="M 213,222 C 219,150 165,139 130,183 125,123 171,73.8 247,51.6 205,78 236,108 280,102 281,90.3 282,79 286,68.2 287,72 288,75.8 289,79.7 293,79.7 296,79.7 300,79.7 304,79.7 307,79.7 311,79.7 312,75.8 313,72 314,68.2 318,79 319,90.3 320,102 364,108 395,78 353,51.6 429,73.8 475,123 470,183 435,139 381,150 387,222 364,176 315,172 300,248 285,172 236,176 213,222 Z">
|
||||
</svg>
|
After Width: | Height: | Size: 533 B |
|
@ -37,6 +37,8 @@ files_DATA = ENVENTOR_EMBEDDED_IMAGE.png \
|
|||
ENVENTOR_EMBEDDED_ICON_DOCK_DOWN.png \
|
||||
ENVENTOR_EMBEDDED_ICON_LOCK.png \
|
||||
ENVENTOR_EMBEDDED_ICON_LOCK_DOWN.png \
|
||||
ENVENTOR_EMBEDDED_BAT1.svg \
|
||||
ENVENTOR_EMBEDDED_BAT2.svg \
|
||||
enventor_logo.png
|
||||
|
||||
EXTRA_DIST = $(files_DATA)
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
MAINTAINERCLEANFILES = Makefile.in
|
||||
|
||||
EDJE_CC = @edje_cc@
|
||||
EDJE_FLAGS = -id $(top_srcdir)/data/images -sd $(top_srcdir)/data/sounds
|
||||
EDJE_FLAGS = -id $(top_srcdir)/data/images -sd $(top_srcdir)/data/sounds -beta
|
||||
|
||||
filesdir = $(datadir)/$(PACKAGE)/templates
|
||||
files_DATA = Basic.edc \
|
||||
|
@ -45,7 +45,9 @@ files_DATA = Basic.edc \
|
|||
Watchface.edc \
|
||||
Watchface.edj \
|
||||
Watchface2.edc \
|
||||
Watchface2.edj
|
||||
Watchface2.edj \
|
||||
Morphing.edc \
|
||||
Morphing.edj
|
||||
|
||||
EXTRA_DIST = $(files_DATA)
|
||||
|
||||
|
@ -115,6 +117,10 @@ Watchface.edj: Makefile Watchface.edc
|
|||
Watchface2.edj: Makefile Watchface2.edc
|
||||
$(EDJE_CC) $(EDJE_FLAGS) $(srcdir)/Watchface2.edc $(builddir)/Watchface2.edj
|
||||
|
||||
Morphing.edj: Makefile Morphing.edc
|
||||
$(EDJE_CC) $(EDJE_FLAGS) $(srcdir)/Morphing.edc $(builddir)/Morphing.edj
|
||||
|
||||
|
||||
clean-local:
|
||||
rm -f *.edj
|
||||
rm -f $(datadir)/$(PACKAGE)/templates/*edj
|
||||
|
|
|
@ -0,0 +1,37 @@
|
|||
collections {
|
||||
base_scale: 1.0;
|
||||
group { "main";
|
||||
/* TODO: Please replace embedded image files to your application image files. */
|
||||
images {
|
||||
vector: "ENVENTOR_EMBEDDED_BAT1.svg";
|
||||
vector: "ENVENTOR_EMBEDDED_BAT2.svg";
|
||||
}
|
||||
parts {
|
||||
vector { "svg";
|
||||
desc { "default";
|
||||
/* TODO: Please replace embedded image files to your application image files. */
|
||||
image.normal: "ENVENTOR_EMBEDDED_BAT1.svg";
|
||||
}
|
||||
desc { "changed";
|
||||
/* TODO: Please replace embedded image files to your application image files. */
|
||||
image.normal: "ENVENTOR_EMBEDDED_BAT2.svg";
|
||||
}
|
||||
}
|
||||
}
|
||||
programs {
|
||||
program { "load";
|
||||
signal: "load";
|
||||
action: STATE_SET "changed";
|
||||
target: "svg";
|
||||
transition: LINEAR 1;
|
||||
after: "rewind";
|
||||
}
|
||||
program { "rewind";
|
||||
action: STATE_SET "default";
|
||||
target: "svg";
|
||||
transition: LINEAR 1;
|
||||
after: "load";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue