|
@ -9810,6 +9810,22 @@ collections { /* begin the collection of edje groups that are in this file */
|
||||||
#ifdef CLOCK_SECONDS
|
#ifdef CLOCK_SECONDS
|
||||||
image: "ch-s1.png" COMP;
|
image: "ch-s1.png" COMP;
|
||||||
image: "ch-s2.png" COMP;
|
image: "ch-s2.png" COMP;
|
||||||
|
#endif
|
||||||
|
image: "ch-h1-2.png" COMP;
|
||||||
|
image: "ch-h2-2.png" COMP;
|
||||||
|
image: "ch-m1-2.png" COMP;
|
||||||
|
image: "ch-m2-2.png" COMP;
|
||||||
|
#ifdef CLOCK_SECONDS
|
||||||
|
image: "ch-s1-2.png" COMP;
|
||||||
|
image: "ch-s2-2.png" COMP;
|
||||||
|
#endif
|
||||||
|
image: "ch-h1-3.png" COMP;
|
||||||
|
image: "ch-h2-3.png" COMP;
|
||||||
|
image: "ch-m1-3.png" COMP;
|
||||||
|
image: "ch-m2-3.png" COMP;
|
||||||
|
#ifdef CLOCK_SECONDS
|
||||||
|
image: "ch-s1-3.png" COMP;
|
||||||
|
image: "ch-s2-3.png" COMP;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
min: 16 16;
|
min: 16 16;
|
||||||
|
@ -9819,32 +9835,52 @@ collections { /* begin the collection of edje groups that are in this file */
|
||||||
new year, month, day, yearday, weekday, hour, minute;
|
new year, month, day, yearday, weekday, hour, minute;
|
||||||
new Float:second;
|
new Float:second;
|
||||||
new v;
|
new v;
|
||||||
|
new x, y, w, h;
|
||||||
|
|
||||||
date(year, month, day, yearday, weekday, hour, minute, second);
|
date(year, month, day, yearday, weekday, hour, minute, second);
|
||||||
|
get_geometry(PART:"hour", x, y, w, h);
|
||||||
#ifdef CLOCK_SECONDS
|
#ifdef CLOCK_SECONDS
|
||||||
v = round(second);
|
v = round(second);
|
||||||
timer(1.0 - (second - v), "clock_cb", 1);
|
timer(1.0 - (second - v), "clock_cb", 1);
|
||||||
custom_state(PART:"seconds", "default", 0.0);
|
custom_state(PART:"seconds", "default", 0.0);
|
||||||
set_state_val(PART:"seconds", STATE_MAP_ROT_Z, (v * 360.0) / 60.0);
|
set_state_val(PART:"seconds", STATE_MAP_ROT_Z, (v * 360.0) / 60.0);
|
||||||
|
if (h < 22) set_state_val(PART:"seconds", STATE_IMAGE, IMAGE:"ch-s1-3.png");
|
||||||
|
else if (h < 44) set_state_val(PART:"seconds", STATE_IMAGE, IMAGE:"ch-s1-2.png");
|
||||||
|
else set_state_val(PART:"seconds", STATE_IMAGE, IMAGE:"ch-s1.png");
|
||||||
set_state(PART:"seconds", "custom", 0.0);
|
set_state(PART:"seconds", "custom", 0.0);
|
||||||
custom_state(PART:"seconds-sh", "default", 0.0);
|
custom_state(PART:"seconds-sh", "default", 0.0);
|
||||||
set_state_val(PART:"seconds-sh", STATE_MAP_ROT_Z, (v * 360.0) / 60.0);
|
set_state_val(PART:"seconds-sh", STATE_MAP_ROT_Z, (v * 360.0) / 60.0);
|
||||||
|
if (h < 22) set_state_val(PART:"seconds-sh", STATE_IMAGE, IMAGE:"ch-s2-3.png");
|
||||||
|
else if (h < 44) set_state_val(PART:"seconds-sh", STATE_IMAGE, IMAGE:"ch-s2-2.png");
|
||||||
|
else set_state_val(PART:"seconds-sh", STATE_IMAGE, IMAGE:"ch-s2.png");
|
||||||
set_state(PART:"seconds-sh", "custom", 0.0);
|
set_state(PART:"seconds-sh", "custom", 0.0);
|
||||||
#else
|
#else
|
||||||
timer(60.0 - (second), "clock_cb", 1);
|
timer(60.0 - (second), "clock_cb", 1);
|
||||||
#endif
|
#endif
|
||||||
custom_state(PART:"minutes", "default", 0.0);
|
custom_state(PART:"minutes", "default", 0.0);
|
||||||
set_state_val(PART:"minutes", STATE_MAP_ROT_Z, (minute * 360.0) / 60.0);
|
set_state_val(PART:"minutes", STATE_MAP_ROT_Z, (minute * 360.0) / 60.0);
|
||||||
|
if (h < 22) set_state_val(PART:"minutes", STATE_IMAGE, IMAGE:"ch-m1-3.png");
|
||||||
|
else if (h < 44) set_state_val(PART:"minutes", STATE_IMAGE, IMAGE:"ch-m1-2.png");
|
||||||
|
else set_state_val(PART:"minutes", STATE_IMAGE, IMAGE:"ch-m1.png");
|
||||||
set_state(PART:"minutes", "custom", 0.0);
|
set_state(PART:"minutes", "custom", 0.0);
|
||||||
custom_state(PART:"minutes-sh", "default", 0.0);
|
custom_state(PART:"minutes-sh", "default", 0.0);
|
||||||
set_state_val(PART:"minutes-sh", STATE_MAP_ROT_Z, (minute * 360.0) / 60.0);
|
set_state_val(PART:"minutes-sh", STATE_MAP_ROT_Z, (minute * 360.0) / 60.0);
|
||||||
|
if (h < 22) set_state_val(PART:"minutes-sh", STATE_IMAGE, IMAGE:"ch-m2-3.png");
|
||||||
|
else if (h < 44) set_state_val(PART:"minutes-sh", STATE_IMAGE, IMAGE:"ch-m2-2.png");
|
||||||
|
else set_state_val(PART:"minutes-sh", STATE_IMAGE, IMAGE:"ch-m2.png");
|
||||||
set_state(PART:"minutes-sh", "custom", 0.0);
|
set_state(PART:"minutes-sh", "custom", 0.0);
|
||||||
|
|
||||||
custom_state(PART:"hour", "default", 0.0);
|
custom_state(PART:"hour", "default", 0.0);
|
||||||
set_state_val(PART:"hour", STATE_MAP_ROT_Z, ((hour + minute / 60.0) * 360.0) / 12.0);
|
set_state_val(PART:"hour", STATE_MAP_ROT_Z, ((hour + minute / 60.0) * 360.0) / 12.0);
|
||||||
|
if (h < 22) set_state_val(PART:"hour", STATE_IMAGE, IMAGE:"ch-h1-3.png");
|
||||||
|
else if (h < 44) set_state_val(PART:"hour", STATE_IMAGE, IMAGE:"ch-h1-2.png");
|
||||||
|
else set_state_val(PART:"hour", STATE_IMAGE, IMAGE:"ch-h1.png");
|
||||||
set_state(PART:"hour", "custom", 0.0);
|
set_state(PART:"hour", "custom", 0.0);
|
||||||
custom_state(PART:"hour-sh", "default", 0.0);
|
custom_state(PART:"hour-sh", "default", 0.0);
|
||||||
set_state_val(PART:"hour-sh", STATE_MAP_ROT_Z, ((hour + minute / 60.0) * 360.0) / 12.0);
|
set_state_val(PART:"hour-sh", STATE_MAP_ROT_Z, ((hour + minute / 60.0) * 360.0) / 12.0);
|
||||||
|
if (h < 22) set_state_val(PART:"hour-sh", STATE_IMAGE, IMAGE:"ch-h2-3.png");
|
||||||
|
else if (h < 44) set_state_val(PART:"hour-sh", STATE_IMAGE, IMAGE:"ch-h2-2.png");
|
||||||
|
else set_state_val(PART:"hour-sh", STATE_IMAGE, IMAGE:"ch-h2.png");
|
||||||
set_state(PART:"hour-sh", "custom", 0.0);
|
set_state(PART:"hour-sh", "custom", 0.0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -69,6 +69,18 @@ ch-m1.png \
|
||||||
ch-m2.png \
|
ch-m2.png \
|
||||||
ch-s1.png \
|
ch-s1.png \
|
||||||
ch-s2.png \
|
ch-s2.png \
|
||||||
|
ch-h1-2.png \
|
||||||
|
ch-h2-2.png \
|
||||||
|
ch-m1-2.png \
|
||||||
|
ch-m2-2.png \
|
||||||
|
ch-s1-2.png \
|
||||||
|
ch-s2-2.png \
|
||||||
|
ch-h1-3.png \
|
||||||
|
ch-h2-3.png \
|
||||||
|
ch-m1-3.png \
|
||||||
|
ch-m2-3.png \
|
||||||
|
ch-s1-3.png \
|
||||||
|
ch-s2-3.png \
|
||||||
clock_base.png \
|
clock_base.png \
|
||||||
dia_botshad.png \
|
dia_botshad.png \
|
||||||
dia_grad.png \
|
dia_grad.png \
|
||||||
|
|
After Width: | Height: | Size: 306 B |
After Width: | Height: | Size: 221 B |
After Width: | Height: | Size: 295 B |
After Width: | Height: | Size: 188 B |
After Width: | Height: | Size: 356 B |
After Width: | Height: | Size: 254 B |
After Width: | Height: | Size: 398 B |
After Width: | Height: | Size: 202 B |
After Width: | Height: | Size: 278 B |
After Width: | Height: | Size: 215 B |
After Width: | Height: | Size: 317 B |
After Width: | Height: | Size: 217 B |