diff --git a/data/images/ENVENTOR_EMBEDDED_NEEDLE_HOUR_RECT.png b/data/images/ENVENTOR_EMBEDDED_NEEDLE_HOUR_RECT.png new file mode 100644 index 0000000..445d8e0 Binary files /dev/null and b/data/images/ENVENTOR_EMBEDDED_NEEDLE_HOUR_RECT.png differ diff --git a/data/images/ENVENTOR_EMBEDDED_NEEDLE_MINUTE_RECT.png b/data/images/ENVENTOR_EMBEDDED_NEEDLE_MINUTE_RECT.png new file mode 100644 index 0000000..b76ee37 Binary files /dev/null and b/data/images/ENVENTOR_EMBEDDED_NEEDLE_MINUTE_RECT.png differ diff --git a/data/images/ENVENTOR_EMBEDDED_NEEDLE_SECOND_RECT.png b/data/images/ENVENTOR_EMBEDDED_NEEDLE_SECOND_RECT.png new file mode 100644 index 0000000..1c8de84 Binary files /dev/null and b/data/images/ENVENTOR_EMBEDDED_NEEDLE_SECOND_RECT.png differ diff --git a/data/images/ENVENTOR_EMBEDDED_WATCHFACE_RECT.png b/data/images/ENVENTOR_EMBEDDED_WATCHFACE_RECT.png new file mode 100644 index 0000000..40d56b3 Binary files /dev/null and b/data/images/ENVENTOR_EMBEDDED_WATCHFACE_RECT.png differ diff --git a/data/images/Makefile.am b/data/images/Makefile.am index 3cfa6f6..607e075 100644 --- a/data/images/Makefile.am +++ b/data/images/Makefile.am @@ -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) diff --git a/data/templates/Makefile.am b/data/templates/Makefile.am index 6d92d9c..1e2f44f 100644 --- a/data/templates/Makefile.am +++ b/data/templates/Makefile.am @@ -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 diff --git a/data/templates/watchface_rect.edc b/data/templates/watchface_rect.edc new file mode 100644 index 0000000..360b69f --- /dev/null +++ b/data/templates/watchface_rect.edc @@ -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"; + } + } + } + } +}