forked from enlightenment/enventor
templates: updated rectangle watchface.
Test Plan: 1. enventor 2. esc -> New 3. watchface_rect Reviewers: Hermet, Jaehyun_Cho, herb Differential Revision: https://phab.enlightenment.org/D4131
This commit is contained in:
parent
e2506983ad
commit
7668fe7b90
Binary file not shown.
After Width: | Height: | Size: 755 B |
Binary file not shown.
After Width: | Height: | Size: 938 B |
Binary file not shown.
After Width: | Height: | Size: 720 B |
Binary file not shown.
After Width: | Height: | Size: 28 KiB |
|
@ -21,6 +21,10 @@ files_DATA = ENVENTOR_EMBEDDED_IMAGE.png \
|
|||
ENVENTOR_EMBEDDED_NEEDLE_MINUTE.png \
|
||||
ENVENTOR_EMBEDDED_NEEDLE_SECOND.png \
|
||||
ENVENTOR_EMBEDDED_WATCHFACE.png \
|
||||
ENVENTOR_EMBEDDED_NEEDLE_HOUR_RECT.png \
|
||||
ENVENTOR_EMBEDDED_NEEDLE_MINUTE_RECT.png \
|
||||
ENVENTOR_EMBEDDED_NEEDLE_SECOND_RECT.png \
|
||||
ENVENTOR_EMBEDDED_WATCHFACE_RECT.png \
|
||||
enventor_logo.png
|
||||
|
||||
EXTRA_DIST = $(files_DATA)
|
||||
|
|
|
@ -35,7 +35,9 @@ files_DATA = basic.edc \
|
|||
tween.edc \
|
||||
tween.edj \
|
||||
watchface.edc \
|
||||
watchface.edj
|
||||
watchface.edj \
|
||||
watchface_rect.edc \
|
||||
watchface_rect.edj
|
||||
|
||||
EXTRA_DIST = $(files_DATA)
|
||||
|
||||
|
@ -90,5 +92,8 @@ sound.edj: Makefile sound.edc
|
|||
watchface.edj: Makefile watchface.edc
|
||||
$(EDJE_CC) $(EDJE_FLAGS) $(srcdir)/watchface.edc $(builddir)/watchface.edj
|
||||
|
||||
watchface_rect.edj: Makefile watchface_rect.edc
|
||||
$(EDJE_CC) $(EDJE_FLAGS) $(srcdir)/watchface_rect.edc $(builddir)/watchface_rect.edj
|
||||
|
||||
clean-local:
|
||||
rm -f *.edj
|
||||
|
|
|
@ -0,0 +1,199 @@
|
|||
collections {
|
||||
base_scale: 1.0;
|
||||
group { "main";
|
||||
/* TODO: Please replace embedded image files to your application image files. */
|
||||
images {
|
||||
image: "ENVENTOR_EMBEDDED_WATCHFACE_RECT.png" COMP;
|
||||
image: "ENVENTOR_EMBEDDED_NEEDLE_HOUR_RECT.png" COMP;
|
||||
image: "ENVENTOR_EMBEDDED_NEEDLE_MINUTE_RECT.png" COMP;
|
||||
image: "ENVENTOR_EMBEDDED_NEEDLE_SECOND_RECT.png" COMP;
|
||||
}
|
||||
parts {
|
||||
image { "bg";
|
||||
scale: 1;
|
||||
desc { "default";
|
||||
visible: 1;
|
||||
/* TODO: Please replace embedded image files to your application image files. */
|
||||
image.normal: "ENVENTOR_EMBEDDED_WATCHFACE_RECT.png";
|
||||
//aspect: 1 1;
|
||||
min: 300 300;
|
||||
rel1.relative: 0.5 0.5;
|
||||
rel2.relative: 0.5 0.5;
|
||||
}
|
||||
}
|
||||
text { "date";
|
||||
scale: 1;
|
||||
desc { "default";
|
||||
color: 219 219 219 255;
|
||||
fixed: 1 1;
|
||||
text {
|
||||
size: 13;
|
||||
font: "Sans";
|
||||
text: "19";
|
||||
align: 0.5 0.5;
|
||||
min: 0 0;
|
||||
}
|
||||
min: 30 30;
|
||||
align: 0.5 1.0;
|
||||
fixed: 1 1;
|
||||
rel1.to: "bg";
|
||||
rel2.to: "bg";
|
||||
rel1.relative: 0.795 0.545;
|
||||
rel2.relative: 0.795 0.545;
|
||||
}
|
||||
}
|
||||
text { "meridiem";
|
||||
scale: 1;
|
||||
desc { "default";
|
||||
color: 255 120 0 255;
|
||||
fixed: 1 1;
|
||||
text {
|
||||
size: 20;
|
||||
font: "Mono";
|
||||
text: "AM";
|
||||
}
|
||||
min: 150 0;
|
||||
fixed: 1 0;
|
||||
align: 0.9 0.5;
|
||||
rel1.to: "bg";
|
||||
rel2.to: "bg";
|
||||
rel1.relative: 0.5 0.69;
|
||||
rel2.relative: 0.5 0.69;
|
||||
}
|
||||
}
|
||||
text { "time";
|
||||
scale: 1;
|
||||
desc { "default";
|
||||
color: 250 250 250 255;
|
||||
fixed: 1 1;
|
||||
text {
|
||||
size: 20;
|
||||
font: "Mono";
|
||||
text: "12:00";
|
||||
}
|
||||
min: 150 0;
|
||||
fixed: 1 0;
|
||||
align: 0.5 0.5;
|
||||
rel1.to: "bg";
|
||||
rel2.to: "bg";
|
||||
rel1.relative: 0.5 0.69;
|
||||
rel2.relative: 0.5 0.69;
|
||||
}
|
||||
}
|
||||
image { "hour";
|
||||
scale: 1;
|
||||
nomouse;
|
||||
desc { "default";
|
||||
rel1.to: "bg";
|
||||
rel2.to: "bg";
|
||||
rel1.relative: 0.5 0.0;
|
||||
rel2.relative: 0.5 1.0;
|
||||
min: 30 0;
|
||||
fixed: 1 0;
|
||||
/* TODO: Please replace embedded image files to your application image files. */
|
||||
image.normal: "ENVENTOR_EMBEDDED_NEEDLE_HOUR_RECT.png";
|
||||
map.on: 1;
|
||||
map.rotation.z: 0;
|
||||
}
|
||||
desc { "rotated";
|
||||
inherit: "default";
|
||||
map.rotation.z: 360;
|
||||
}
|
||||
}
|
||||
image { "minute";
|
||||
scale: 1;
|
||||
nomouse;
|
||||
desc { "default";
|
||||
rel1.to: "bg";
|
||||
rel2.to: "bg";
|
||||
rel1.relative: 0.5 0.0;
|
||||
rel2.relative: 0.5 1.0;
|
||||
min: 30 0;
|
||||
fixed: 1 0;
|
||||
/* TODO: Please replace embedded image files to your application image files. */
|
||||
image.normal: "ENVENTOR_EMBEDDED_NEEDLE_MINUTE_RECT.png";
|
||||
map.on: 1;
|
||||
map.rotation.z: 0;
|
||||
}
|
||||
desc { "rotated";
|
||||
inherit: "default";
|
||||
map.rotation.z: 360;
|
||||
}
|
||||
}
|
||||
image { "second";
|
||||
scale: 1;
|
||||
nomouse;
|
||||
desc { "default";
|
||||
rel1.to: "bg";
|
||||
rel2.to: "bg";
|
||||
rel1.relative: 0.5 0.0;
|
||||
rel2.relative: 0.5 1.0;
|
||||
min: 30 0;
|
||||
fixed: 1 0;
|
||||
/* TODO: Please replace embedded image files to your application image files. */
|
||||
image.normal: "ENVENTOR_EMBEDDED_NEEDLE_SECOND_RECT.png";
|
||||
map.on: 1;
|
||||
map.rotation.z: 0;
|
||||
}
|
||||
desc { "rotated";
|
||||
inherit: "default";
|
||||
map.rotation.z: 360;
|
||||
}
|
||||
}
|
||||
programs {
|
||||
program { "load";
|
||||
signal: "load";
|
||||
source: "";
|
||||
action: STATE_SET "rotated";
|
||||
target: "bg";
|
||||
transition: LINEAR 30;
|
||||
after: "reset";
|
||||
}
|
||||
program { "reset";
|
||||
action: STATE_SET "default";
|
||||
target: "bg";
|
||||
after: "load";
|
||||
}
|
||||
program { "hour_begin";
|
||||
signal: "load";
|
||||
source: "";
|
||||
action: STATE_SET "rotated";
|
||||
target: "hour";
|
||||
transition: LINEAR 216000;
|
||||
after: "hour_reset";
|
||||
}
|
||||
program { "hour_reset";
|
||||
action: STATE_SET "default";
|
||||
target: "hour";
|
||||
after: "hour_begin";
|
||||
}
|
||||
program { "minute_begin";
|
||||
signal: "load";
|
||||
source: "";
|
||||
action: STATE_SET "rotated";
|
||||
target: "minute";
|
||||
transition: LINEAR 3600;
|
||||
after: "minute_begin";
|
||||
}
|
||||
program { "minute_reset";
|
||||
action: STATE_SET "default";
|
||||
target: "minute";
|
||||
after: "minute_begin";
|
||||
}
|
||||
program { "second_begin";
|
||||
signal: "load";
|
||||
source: "";
|
||||
action: STATE_SET "rotated";
|
||||
target: "second";
|
||||
transition: LINEAR 60;
|
||||
after: "second_reset";
|
||||
}
|
||||
program { "second_reset";
|
||||
action: STATE_SET "default";
|
||||
target: "second";
|
||||
after: "second_begin";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue