adapt analog clock to use same tacho bg thing - just now add a clock

base too with hour marks. color hands in edje - not in image to reduce
image waste.



SVN revision: 79751
This commit is contained in:
Carsten Haitzler 2012-11-27 16:10:03 +00:00
parent cf7f76c329
commit 8b31dabaa9
58 changed files with 149 additions and 156 deletions

View File

@ -119,48 +119,7 @@ img/cell_sig_1.png \
img/cell_sig_2.png \
img/cell_sig_3.png \
img/cell_sig_4.png \
img/clock_h2.png \
img/clock_h3.png \
img/clock_h4.png \
img/clock_h5.png \
img/clock_h6.png \
img/clock_h7.png \
img/clock_h.png \
img/clock_hs2.png \
img/clock_hs3.png \
img/clock_hs4.png \
img/clock_hs5.png \
img/clock_hs6.png \
img/clock_hs7.png \
img/clock_hs.png \
img/clock_m2.png \
img/clock_m3.png \
img/clock_m4.png \
img/clock_m5.png \
img/clock_m6.png \
img/clock_m7.png \
img/clock_m.png \
img/clock_ms2.png \
img/clock_ms3.png \
img/clock_ms4.png \
img/clock_ms5.png \
img/clock_ms6.png \
img/clock_ms7.png \
img/clock_ms.png \
img/clock_s2.png \
img/clock_s3.png \
img/clock_s4.png \
img/clock_s5.png \
img/clock_s6.png \
img/clock_s7.png \
img/clock_s.png \
img/clock_ss2.png \
img/clock_ss3.png \
img/clock_ss4.png \
img/clock_ss5.png \
img/clock_ss6.png \
img/clock_ss7.png \
img/clock_ss.png \
img/clock_base.png \
img/col_sel_end_bottom.png \
img/col_sel_end_left.png \
img/col_sel_end_right.png \
@ -306,9 +265,14 @@ img/sym_up_light_normal.png \
img/sym_up_light_selected.png \
img/tacho_base.png \
img/tacho_hand_big.png \
img/tacho_hand_big2.png \
img/tacho_hand_big3.png \
img/tacho_hand_big4.png \
img/tacho_hand_big_shadow.png \
img/tacho_hand_small_max.png \
img/tacho_hand_small_min.png \
img/tacho_hand_small_min2.png \
img/tacho_hand_small_min3.png \
img/tacho_hand_small_min4.png \
img/tacho_hand_small_shadow.png \
img/vert_bar_inset.png \
img/vert_glow_run.png \

View File

@ -530,39 +530,35 @@ group { name: "e/modules/clock/digital";
}
group { name: "e/modules/clock/main";
images {
image: "hole_tiny.png" COMP;
image: "hole_pixel.png" COMP;
#define SET(_NAME) \
set { name: _NAME; \
image { image: _NAME".png" COMP; size: 26 83 99999 99999; } \
image { image: _NAME"2.png" COMP; size: 23 71 26 82; } \
image { image: _NAME"3.png" COMP; size: 19 58 22 70; } \
image { image: _NAME"4.png" COMP; size: 15 45 18 57; } \
image { image: _NAME"5.png" COMP; size: 11 33 14 44; } \
image { image: _NAME"6.png" COMP; size: 7 20 10 32; } \
image { image: _NAME"7.png" COMP; size: 0 0 6 19; } \
}
SET("clock_h")
SET("clock_hs")
SET("clock_m")
SET("clock_ms")
SET("clock_s")
SET("clock_ss")
#undef SET
set { name: "knob";
image { image: "knob_sz_24.png" COMP; size: 31 31 32 32; }
image { image: "knob_sz_22.png" COMP; size: 29 29 30 30; }
image { image: "knob_sz_20.png" COMP; size: 27 27 28 28; }
image { image: "knob_sz_18.png" COMP; size: 25 25 26 26; }
image { image: "knob_sz_16.png" COMP; size: 23 23 24 24; }
image { image: "knob_sz_14.png" COMP; size: 21 21 22 22; }
image { image: "knob_sz_12.png" COMP; size: 19 19 20 20; }
image { image: "knob_sz_10.png" COMP; size: 17 17 18 18; }
image { image: "knob_sz_08.png" COMP; size: 15 15 16 16; }
image { image: "knob_sz_06.png" COMP; size: 13 13 14 14; }
image { image: "knob_sz_04.png" COMP; size: 0 0 12 12; }
}
images.image: "clock_base.png" COMP;
images.image: "inset_round_hilight.png" COMP;
images.image: "inset_round_shadow.png" COMP;
images.image: "inset_round_shading.png" COMP;
set { name: "tacho_hand_big";
image { image: "tacho_hand_big.png" COMP; size: 73 73 99999 99999; }
image { image: "tacho_hand_big2.png" COMP; size: 37 37 72 72; }
image { image: "tacho_hand_big3.png" COMP; size: 19 19 36 36; }
image { image: "tacho_hand_big4.png" COMP; size: 0 0 18 18; }
}
images.image: "tacho_hand_big_shadow.png" COMP;
set { name: "tacho_hand_small_min";
image { image: "tacho_hand_small_min.png" COMP; size: 73 73 99999 99999; }
image { image: "tacho_hand_small_min2.png" COMP; size: 37 37 72 72; }
image { image: "tacho_hand_small_min3.png" COMP; size: 19 19 36 36; }
image { image: "tacho_hand_small_min4.png" COMP; size: 0 0 18 18; }
}
set { name: "knob";
image { image: "knob_sz_24.png" COMP; size: 31 31 32 32; }
image { image: "knob_sz_22.png" COMP; size: 29 29 30 30; }
image { image: "knob_sz_20.png" COMP; size: 27 27 28 28; }
image { image: "knob_sz_18.png" COMP; size: 25 25 26 26; }
image { image: "knob_sz_16.png" COMP; size: 23 23 24 24; }
image { image: "knob_sz_14.png" COMP; size: 21 21 22 22; }
image { image: "knob_sz_12.png" COMP; size: 19 19 20 20; }
image { image: "knob_sz_10.png" COMP; size: 17 17 18 18; }
image { image: "knob_sz_08.png" COMP; size: 15 15 16 16; }
image { image: "knob_sz_06.png" COMP; size: 13 13 14 14; }
image { image: "knob_sz_04.png" COMP; size: 0 0 12 12; }
}
min: 16 16;
max: 160 160;
@ -616,88 +612,125 @@ group { name: "e/modules/clock/main";
color: 0 0 0 0;
}
}
part { name: "base"; type: SPACER;
part { name: "base-sh";
description { state: "default" 0.0;
rel1.offset: -1 -1;
rel2.offset: 0 0;
aspect: 1.0 1.0;
}
}
part { name: "base-sh"; type: SPACER;
description { state: "default" 0.0;
rel1.offset: 0 1;
rel1.to: "base";
rel2.offset: -1 0;
rel1.offset: 0 -1;
rel2.to: "base";
rel2.offset: -1 -2;
image.normal: "inset_round_shadow.png";
}
}
#define POINT(_NAME, _SZ, _IMG, _X, _Y) \
part { name: _NAME; \
description { state: "default" 0.0; \
rel1.relative: _X _Y; \
rel1.to: "base"; \
rel2.relative: _X _Y; \
rel2.to: "base"; \
min: _SZ _SZ; \
max: _SZ _SZ; \
fixed: 1 1; \
image.normal: "hole_"_IMG".png"; \
} \
part { name: "base-hi";
description { state: "default" 0.0;
rel1.to: "base";
rel1.offset: 0 1;
rel2.to: "base";
rel2.offset: -1 0;
image.normal: "inset_round_hilight.png";
}
}
POINT("h-12", 4, "tiny", 0.500, 0.100)
POINT("h-01", 3, "pixel", 0.700, 0.154)
POINT("h-02", 3, "pixel", 0.846, 0.300)
POINT("h-03", 4, "tiny", 0.900, 0.500)
POINT("h-04", 3, "pixel", 0.846, 0.700)
POINT("h-05", 3, "pixel", 0.700, 0.846)
POINT("h-06", 4, "tiny", 0.500, 0.900)
POINT("h-07", 3, "pixel", 0.300, 0.846)
POINT("h-08", 3, "pixel", 0.154, 0.700)
POINT("h-09", 4, "tiny", 0.100, 0.500)
POINT("h-10", 3, "pixel", 0.154, 0.300)
POINT("h-11", 3, "pixel", 0.300, 0.154)
#undef POINT
#define HAND(_NAME, _IMG) \
part { name: _NAME"-sh"; mouse_events: 0; \
description { state: "default" 0.0; \
rel1.to: "base-sh"; \
rel1.relative: (65/160) 0; \
rel2.to: "base-sh"; \
rel2.relative: (95/160) (95/160); \
image.normal: _IMG"s"; \
map.on: 1; \
map.rotation.center: "base-sh"; \
color: 255 255 255 128; \
} \
description { state: "hidden" 0.0; \
inherit: "default" 0.0; \
visible: 0; \
} \
} \
part { name: _NAME; mouse_events: 0; \
description { state: "default" 0.0; \
rel1.to: "base"; \
rel1.relative: (65/160) 0; \
rel2.to: "base"; \
rel2.relative: (95/160) (95/160); \
image.normal: _IMG; \
map.on: 1; \
map.rotation.center: "base"; \
} \
description { state: "hidden" 0.0; \
inherit: "default" 0.0; \
visible: 0; \
} \
part { name: "base";
description { state: "default" 0.0;
rel1.relative: (25/380) (25/380);
rel2.relative: (365/380) (365/380);
aspect: 1.0 1.0; aspect_preference: BOTH;
image.normal: "clock_base.png";
}
}
HAND("seconds", "clock_s")
HAND("minutes", "clock_m")
HAND("hours", "clock_h")
#undef HAND
part { name: "seconds-sh"; mouse_events: 0;
description { state: "default" 0.0;
image.normal: "tacho_hand_big_shadow.png";
rel1.to: "hours-sh";
rel2.to: "hours-sh";
map {
on: 1;
rotation.center: "seconds-sh";
}
}
description { state: "hidden" 0.0;
inherit: "default" 0.0;
visible: 0;
}
}
part { name: "seconds"; mouse_events: 0;
description { state: "default" 0.0;
image.normal: "tacho_hand_big";
color: 255 0 0 255;
rel1.to: "base";
rel2.to: "base";
map {
on: 1;
rotation.center: "base";
}
}
description { state: "hidden" 0.0;
inherit: "default" 0.0;
visible: 0;
}
}
part { name: "minutes-sh"; mouse_events: 0;
description { state: "default" 0.0;
image.normal: "tacho_hand_big_shadow.png";
rel1.to: "hours-sh";
rel2.to: "hours-sh";
map {
on: 1;
rotation.center: "minutes-sh";
}
}
}
part { name: "minutes"; mouse_events: 0;
description { state: "default" 0.0000;
color: 255 255 255 255;
image.normal: "tacho_hand_big";
rel1.to: "base";
rel2.to: "base";
map {
on: 1;
rotation.center: "base";
}
}
}
part { name: "hours-sh"; mouse_events: 0;
description { state: "default" 0.0;
image.normal: "tacho_hand_small_shadow.png";
rel1.to: "hours";
rel1.relative: 0.0 (15/380);
rel1.offset: 0 1;
rel2.to: "hours";
rel2.relative: 1.0 (395/380);
rel2.offset: -1 0;
map {
on: 1;
rotation.center: "hours-sh";
}
}
}
part { name: "hours"; mouse_events: 0;
description { state: "default" 0.0;
image.normal: "tacho_hand_small_min";
color: 255 255 255 255;
rel1.to: "base";
rel2.to: "base";
map {
on: 1;
rotation.center: "base";
}
}
}
part { name: "over"; mouse_events: 0;
description { state: "default" 0.0;
rel1.to: "base";
rel2.to: "base";
image.normal: "inset_round_shading.png";
}
}
part { name: "knob"; type: SPACER;
description { state: "default" 0.0;
rel1.relative: (18/40) (18/40);
rel1.relative: (140/340) (140/340);
rel1.to: "base";
rel2.relative: (22/40) (22/40);
rel2.relative: (205/340) (205/340);
rel2.to: "base";
min: 4 4;
step: 2 2;

View File

@ -10,12 +10,6 @@ group { name: "e/modules/cpufreq/main";
image { image: "tacho_hand_big4.png" COMP; size: 0 0 18 18; }
}
images.image: "tacho_hand_big_shadow.png" COMP;
set { name: "tacho_hand_small_max";
image { image: "tacho_hand_small_max.png" COMP; size: 73 73 99999 99999; }
image { image: "tacho_hand_small_max2.png" COMP; size: 37 37 72 72; }
image { image: "tacho_hand_small_max3.png" COMP; size: 19 19 36 36; }
image { image: "tacho_hand_small_max4.png" COMP; size: 0 0 18 18; }
}
set { name: "tacho_hand_small_min";
image { image: "tacho_hand_small_min.png" COMP; size: 73 73 99999 99999; }
image { image: "tacho_hand_small_min2.png" COMP; size: 37 37 72 72; }
@ -251,6 +245,7 @@ group { name: "e/modules/cpufreq/main";
clip_to: "fade_clip";
description { state: "default" 0.0;
image.normal: "tacho_hand_small_min";
color: 51 153 255 255;
rel1.to: "base";
rel2.to: "base";
map {
@ -265,7 +260,6 @@ group { name: "e/modules/cpufreq/main";
image.normal: "tacho_hand_small_shadow.png";
rel1.to: "meter_sh";
rel2.to: "meter_sh";
rel2.relative: 1.0+(2.0/64.0) 1.0+(2.0/64.0);
map {
on: 1;
rotation.center: "meter_max_sh";
@ -275,7 +269,8 @@ group { name: "e/modules/cpufreq/main";
part { name: "meter_max"; mouse_events: 0;
clip_to: "fade_clip";
description { state: "default" 0.0;
image.normal: "tacho_hand_small_max";
image.normal: "tacho_hand_small_min";
color: 255 153 51 255;
rel1.to: "base";
rel2.to: "base";
map {
@ -303,6 +298,7 @@ group { name: "e/modules/cpufreq/main";
part { name: "meter"; mouse_events: 0;
clip_to: "fade_clip";
description { state: "default" 0.0000;
color: 255 0 0 255;
image.normal: "tacho_hand_big";
rel1.to: "base";
rel2.to: "base";

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 139 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 218 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 150 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 133 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 207 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 143 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 131 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 689 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 572 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 500 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 405 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 323 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 234 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 164 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 147 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 226 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 157 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 129 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 217 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 131 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 140 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 709 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 602 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 492 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 397 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 317 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 231 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 168 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 164 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 275 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 189 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 172 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 227 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 135 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 141 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 707 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 593 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 499 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 403 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 324 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 230 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 160 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 473 B

After

Width:  |  Height:  |  Size: 457 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 259 B

After

Width:  |  Height:  |  Size: 260 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 167 B

After

Width:  |  Height:  |  Size: 166 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 113 B

After

Width:  |  Height:  |  Size: 114 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 523 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 304 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 182 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 116 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 523 B

After

Width:  |  Height:  |  Size: 507 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 304 B

After

Width:  |  Height:  |  Size: 279 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 182 B

After

Width:  |  Height:  |  Size: 181 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 116 B

After

Width:  |  Height:  |  Size: 116 B