new battery gfx. from todo.

SVN revision: 60480
This commit is contained in:
Carsten Haitzler 2011-06-19 05:32:28 +00:00
parent e0eeb1def3
commit 5f28496f92
16 changed files with 116 additions and 328 deletions

View File

@ -11141,16 +11141,10 @@ collections {
group { group {
name: "e/modules/battery/main"; name: "e/modules/battery/main";
images { images {
image: "bat_content1.png" COMP; image: "batt_base.png" COMP;
image: "bat_content2.png" COMP; image: "batt_level.png" COMP;
image: "bat_content3.png" COMP; image: "batt_over.png" COMP;
image: "bat_content1b.png" COMP; image: "batt_power.png" COMP;
image: "bat_content2b.png" COMP;
image: "bat_content3b.png" COMP;
image: "bat_over.png" COMP;
image: "bat_shadow.png" COMP;
image: "power.png" COMP;
image: "power_glow.png" COMP;
} }
min: 16 16; min: 16 16;
max: 128 128; max: 128 128;
@ -11183,388 +11177,191 @@ collections {
b = 0; b = 0;
} }
custom_state(PART:"fill", "default", 0.0); custom_state(PART:"fill", "default", 0.0);
set_state_val(PART:"fill", STATE_REL1, 0.0, 1.0 - val); set_state_val(PART:"fill", STATE_COLOR, r, g, b, 255);
set_state_val(PART:"fill", STATE_COLOR, r, g, b, 255);
set_state_val(PART:"fill", STATE_COLOR, r, g, b, 255);
set_state(PART:"fill", "custom", 0.0); set_state(PART:"fill", "custom", 0.0);
custom_state(PART:"bfill1", "default", 0.0);
custom_state(PART:"bfill2", "default", 0.0); custom_state(PART:"fill_clip", "default", 0.0);
custom_state(PART:"bfill3", "default", 0.0); set_state_val(PART:"fill_clip", STATE_REL1, 0.0, 1.0 - val);
set_state_val(PART:"bfill1", STATE_COLOR, r, g, b, 255); set_state(PART:"fill_clip", "custom", 0.0);
set_state_val(PART:"bfill2", STATE_COLOR, r, g, b, 255);
set_state_val(PART:"bfill3", STATE_COLOR, r, g, b, 255);
set_state(PART:"bfill1", "custom", 0.0);
set_state(PART:"bfill2", "custom", 0.0);
set_state(PART:"bfill3", "custom", 0.0);
} }
} }
} }
parts { parts {
part { part { name: "fade_clip";
name: "fill_zone";
type: RECT; type: RECT;
description { mouse_events: 0;
state: "default" 0.0; description { state: "default" 0.0;
visible: 0;
rel1 {
to: "over";
relative: 0.0 0.25;
}
rel2 {
to: "over";
relative: 1.0 0.84375;
}
}
}
part {
name: "fill";
type: RECT;
description {
state: "default" 0.0;
visible: 0;
rel1.to: "fill_zone";
rel1.relative: 0.0 0.5;
rel2.to: "fill_zone";
}
}
part {
name: "fade_clip";
type: RECT;
description {
state: "default" 0.0;
color: 255 255 255 255; color: 255 255 255 255;
} }
description { description { state: "faded" 0.0;
state: "faded" 0.0;
color: 255 255 255 160; color: 255 255 255 160;
} }
} }
part { part { name: "info_clip";
name: "pulse_clip";
type: RECT; type: RECT;
mouse_events: 0;
clip_to: "fade_clip"; clip_to: "fade_clip";
description { description { state: "default" 0.0;
state: "default" 0.0; color: 255 255 255 0;
}
description { state: "visible" 0.0;
color: 255 255 255 255; color: 255 255 255 255;
} }
description { }
state: "faded" 1.0; part { name: "pulse_clip";
type: RECT;
mouse_events: 0;
clip_to: "fade_clip";
description { state: "default" 0.0;
color: 255 255 255 255; color: 255 255 255 255;
} }
description { description { state: "faded" 1.0;
state: "faded" 0.0; color: 255 255 255 255;
}
description { state: "faded" 0.0;
color: 255 255 255 0; color: 255 255 255 0;
} }
} }
part { part { name: "fill_region";
name: "shadow";
mouse_events: 0; mouse_events: 0;
clip_to: "pulse_clip"; type: RECT;
description { description { state: "default" 0.0;
state: "default" 0.0;
aspect: 1.0 1.0;
aspect_preference: BOTH;
image.normal: "bat_shadow.png";
}
}
part {
name: "bfill1";
mouse_events: 0;
clip_to: "pulse_clip";
description {
state: "default" 0.0;
aspect: 3.0 3.0;
aspect_preference: HORIZONTAL;
align: 0.5 1.0;
rel1 {
to: "fill";
relative: 0.125 0.0;
offset: 0 -1;
}
rel2 {
to: "fill";
relative: 0.875 0.0;
offset: -1 -1;
}
image.normal: "bat_content1.png";
}
}
part {
name: "bfill2";
mouse_events: 0;
clip_to: "pulse_clip";
description {
state: "default" 0.0;
rel1 {
to: "fill";
relative: 0.125 0.0;
}
rel2 {
to: "fill";
relative: 0.875 1.0;
}
image.normal: "bat_content2.png";
}
}
part {
name: "bfill3";
mouse_events: 0;
clip_to: "pulse_clip";
description {
state: "default" 0.0;
rel1 {
to: "fill";
relative: 0.125 1.0;
}
rel2 {
to: "over";
relative: 0.875 0.96875;
}
image.normal: "bat_content3.png";
}
}
part {
name: "bfill1b";
mouse_events: 0;
clip_to: "pulse_clip";
description {
state: "default" 0.0;
rel1.to: "bfill1";
rel2.to: "bfill1";
image.normal: "bat_content1b.png";
}
}
part {
name: "bfill2b";
mouse_events: 0;
clip_to: "pulse_clip";
description {
state: "default" 0.0;
rel1.to: "bfill2";
rel2.to: "bfill2";
image.normal: "bat_content2b.png";
}
}
part {
name: "bfill3b";
mouse_events: 0;
clip_to: "pulse_clip";
description {
state: "default" 0.0;
rel1.to: "bfill3";
rel2.to: "bfill3";
image.normal: "bat_content3b.png";
}
}
part {
name: "over";
clip_to: "pulse_clip";
description {
state: "default" 0.0;
aspect: 1.0 1.0;
aspect_preference: BOTH;
image.normal: "bat_over.png";
}
}
part {
name: "power_glow";
mouse_events: 0;
description {
state: "default" 0.0;
rel1.to: "power";
rel2.to: "power";
image.normal: "power_glow.png";
visible: 0; visible: 0;
rel1.relative: 0.0 (26/128);
rel2.relative: 1.0 ((128-14)/128);
} }
description {
state: "active" 0.0;
inherit: "default" 0.0;
visible: 1;
color: 255 255 255 0;
} }
description { part { name: "fill_clip";
state: "active2" 0.0; type: RECT;
inherit: "default" 0.0; mouse_events: 0;
visible: 1; clip_to: "pulse_clip";
description { state: "default" 0.0;
rel1.to: "fill_region";
rel1.relative: 0.0 0.5;
rel2.to: "fill_region";
color: 255 255 255 255; color: 255 255 255 255;
} }
} }
part { part { name: "base";
name: "power"; clip_to: "pulse_clip";
mouse_events: 0; description { state: "default" 0.0;
description {
state: "default" 0.0;
aspect: 1.0 1.0; aspect: 1.0 1.0;
aspect_preference: BOTH; aspect_preference: BOTH;
rel1 { image.normal: "batt_base.png";
to: "over";
relative: 0.0 0.35;
} }
rel2 {
to: "over";
relative: 1.0 0.86875;
} }
image.normal: "power.png"; part { name: "fill";
mouse_events: 0;
clip_to: "fill_clip";
description { state: "default" 0.0;
rel1.to: "base";
rel2.to: "base";
image.normal: "batt_level.png";
}
}
part { name: "over";
mouse_events: 0;
clip_to: "pulse_clip";
description { state: "default" 0.0;
rel1.to: "base";
rel2.to: "base";
image.normal: "batt_over.png";
}
}
part { name: "power";
mouse_events: 0;
description { state: "default" 0.0;
rel1.to: "base";
rel2.to: "base";
image.normal: "batt_power.png";
visible: 0; visible: 0;
} }
description { description { state: "visible" 0.0;
state: "active" 0.0;
inherit: "default" 0.0; inherit: "default" 0.0;
visible: 1; visible: 1;
} }
} }
part { part { name: "e.text.reading";
name: "e.text.reading";
mouse_events: 0; mouse_events: 0;
type: TEXT; type: TEXT;
scale: 1; scale: 1;
clip_to: "info_clip";
effect: OUTLINE; effect: OUTLINE;
clip_to: "fade_clip"; description { state: "default" 0.0;
description { align: 1.0 0.5;
state: "default" 0.0; rel1.relative: 0.5 0.0;
align: 0.5 0.0; rel2.relative: 1.0 0.3;
rel1 { color: 0 0 0 255;
relative: 0.5 0.0; color2: 255 255 255 128;
}
rel2 {
relative: 0.5 0.0;
}
color: 255 255 255 0;
color2: 0 0 0 0;
color3: 0 0 0 0;
color_class: "module_label"; color_class: "module_label";
text { text {
font: "Sans:style=Bold"; font: "Sans";
size: 8; size: 8;
min: 1 1; min: 1 1;
align: 0.5 0.0; align: 1.0 0.5;
text_class: "module_small"; text_class: "module_small";
} }
} }
description {
state: "visible" 0.0;
inherit: "default" 0.0;
color: 255 255 255 255;
color2: 0 0 0 128;
color3: 0 0 0 32;
} }
} part { name: "e.text.time";
part {
name: "e.text.time";
mouse_events: 0; mouse_events: 0;
type: TEXT; type: TEXT;
scale: 1; scale: 1;
clip_to: "info_clip";
effect: OUTLINE; effect: OUTLINE;
clip_to: "fade_clip"; description { state: "default" 0.0;
description { align: 1.0 0.5;
state: "default" 0.0; rel1.relative: 0.5 0.3;
align: 0.5 1.0; rel2.relative: 1.0 0.6;
rel1 { color: 0 0 0 255;
relative: 0.5 1.0; color2: 255 255 255 128;
}
rel2 {
relative: 0.5 1.0;
}
color: 255 255 255 0;
color2: 0 0 0 0;
color3: 0 0 0 0;
color_class: "module_label"; color_class: "module_label";
text { text {
font: "Sans:style=Bold"; font: "Sans";
size: 8; size: 8;
min: 1 1; min: 1 1;
align: 0.5 1.0; align: 1.0 0.5;
text_class: "module_small"; text_class: "module_small";
} }
} }
description {
state: "visible" 0.0;
inherit: "default" 0.0;
color: 255 255 255 255;
color2: 0 0 0 128;
color3: 0 0 0 32;
}
} }
} }
programs { programs {
program { program { name: "hover1";
name: "hover1";
signal: "mouse,in"; signal: "mouse,in";
source: "over"; source: "base";
action: STATE_SET "visible" 0.0; action: STATE_SET "visible" 0.0;
transition: LINEAR 0.3; transition: LINEAR 0.3;
target: "e.text.reading"; target: "info_clip";
target: "e.text.time";
} }
program { program { name: "hover2";
name: "hover2";
signal: "mouse,out"; signal: "mouse,out";
source: "over"; source: "base";
action: STATE_SET "default" 0.0; action: STATE_SET "default" 0.0;
transition: LINEAR 1.0; transition: LINEAR 0.3;
target: "e.text.reading"; target: "info_clip";
target: "e.text.time";
} }
program { program { name: "charge";
name: "charge";
signal: "e,state,charging"; signal: "e,state,charging";
source: "e"; source: "e";
action: STATE_SET "default" 0.0; action: STATE_SET "visible" 0.0;
target: "fade_clip";
}
program {
name: "charge2";
signal: "e,state,charging";
source: "e";
action: STATE_SET "active" 0.0;
target: "power"; target: "power";
target: "power_glow";
after: "charge3";
} }
program { program { name: "discharge";
name: "charge3";
action: STATE_SET "active2" 0.0;
in: 1.0 0.0;
target: "power_glow";
after: "charge4";
}
program {
name: "charge4";
action: STATE_SET "active" 0.0;
in: 1.0 0.0;
target: "power_glow";
after: "charge3";
}
program {
name: "discharge";
signal: "e,state,discharging";
source: "e";
action: STATE_SET "default" 0.0;
target: "fade_clip";
}
program {
name: "discharge2";
signal: "e,state,discharging"; signal: "e,state,discharging";
source: "e"; source: "e";
action: STATE_SET "default" 0.0; action: STATE_SET "default" 0.0;
target: "power"; target: "power";
target: "power_glow";
} }
program { program { name: "unknown";
name: "discharge3";
signal: "e,state,discharging";
source: "e";
action: ACTION_STOP;
target: "charge3";
target: "charge4";
}
program {
name: "unknown";
signal: "e,state,unknown"; signal: "e,state,unknown";
source: "e"; source: "e";
action: STATE_SET "faded" 0.0; action: STATE_SET "faded" 0.0;
target: "fade_clip"; target: "fade_clip";
} }
program { program { name: "pulse";
name: "pulse";
signal: "e,action,pulse,start"; signal: "e,action,pulse,start";
source: "e"; source: "e";
action: STATE_SET "faded" 0.0; action: STATE_SET "faded" 0.0;
@ -11572,16 +11369,12 @@ collections {
after: "pulse2"; after: "pulse2";
target: "pulse_clip"; target: "pulse_clip";
} }
program { program { name: "pulse2";
name: "pulse2";
signal: "pulse2";
source: "e";
action: STATE_SET "faded" 1.0; action: STATE_SET "faded" 1.0;
transition: ACCELERATE 0.1; transition: ACCELERATE 0.1;
target: "pulse_clip"; target: "pulse_clip";
} }
program { program { name: "pulsestop";
name: "pulsestop";
signal: "e,action,pulse,stop"; signal: "e,action,pulse,stop";
source: "e"; source: "e";
action: STATE_SET "default" 0.0; action: STATE_SET "default" 0.0;

View File

@ -9,14 +9,6 @@ arrow_right.png \
arrow_up.png \ arrow_up.png \
ball.png \ ball.png \
base_bg.png \ base_bg.png \
bat_content1b.png \
bat_content1.png \
bat_content2b.png \
bat_content2.png \
bat_content3b.png \
bat_content3.png \
bat_over.png \
bat_shadow.png \
bd_bottom.png \ bd_bottom.png \
bd_button_close_focused.png \ bd_button_close_focused.png \
bd_button_close_shadow.png \ bd_button_close_shadow.png \
@ -362,8 +354,6 @@ pointer_glint_12.png \
pointer_glow.png \ pointer_glow.png \
pointer_mono.png \ pointer_mono.png \
pointer.png \ pointer.png \
power_glow.png \
power.png \
radio_base.png \ radio_base.png \
radio_on.png \ radio_on.png \
radio_sel.png \ radio_sel.png \
@ -456,4 +446,9 @@ flip_t.png \
flip_colon.png \ flip_colon.png \
bulb-0.png \ bulb-0.png \
bulb-1.png \ bulb-1.png \
bulb-2.png bulb-2.png \
batt_base.png \
batt_level.png \
batt_over.png \
batt_power.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1010 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 159 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 157 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 682 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 479 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 324 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 290 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB