forked from enlightenment/enlightenment
and adjust backlight bulb to be more bluey and glow expands as it
lights up.. and a bit smaller screw liens line up nicely. SVN revision: 79777
This commit is contained in:
parent
037cff8ebd
commit
588e03f36d
|
@ -19,6 +19,7 @@ macros.edc \
|
|||
edc/about-e.edc \
|
||||
edc/about-theme.edc \
|
||||
edc/background.edc \
|
||||
edc/backlight.edc \
|
||||
edc/border.edc \
|
||||
edc/button.edc \
|
||||
edc/check.edc \
|
||||
|
@ -110,6 +111,10 @@ img/big_arrow_right.png \
|
|||
img/big_arrow_right_shadow.png \
|
||||
img/big_arrow_up.png \
|
||||
img/big_arrow_up_shadow.png \
|
||||
img/bulb_glow.png \
|
||||
img/bulb_off.png \
|
||||
img/bulb_on.png \
|
||||
img/bulb_over.png \
|
||||
img/bt_base.png \
|
||||
img/bt_sig_1.png \
|
||||
img/bt_sig_2.png \
|
||||
|
|
|
@ -54,9 +54,9 @@ collections {
|
|||
#include "edc/notification.edc"
|
||||
#include "edc/cpufreq.edc"
|
||||
#include "edc/temperature.edc"
|
||||
#include "edc/backlight.edc"
|
||||
|
||||
// port unchanged stuff so this can work as a replacement
|
||||
#include "edc/O/backlight.edc"
|
||||
#include "edc/O/battery.edc"
|
||||
#include "edc/O/border_icons.edc"
|
||||
#include "edc/O/conf_gad.edc"
|
||||
|
@ -66,6 +66,7 @@ collections {
|
|||
#include "edc/O/illume_gad.edc"
|
||||
#include "edc/O/mixer.edc"
|
||||
#include "edc/O/wallpaper.edc"
|
||||
//#include "edc/O/backlight.edc"
|
||||
//#include "edc/O/temperature.edc"
|
||||
//#include "edc/O/cpufreq.edc"
|
||||
//#include "edc/O/gadman.edc"
|
||||
|
|
|
@ -0,0 +1,65 @@
|
|||
group { name: "e/modules/backlight/main";
|
||||
images.image: "bulb_glow.png" COMP;
|
||||
images.image: "bulb_off.png" COMP;
|
||||
images.image: "bulb_on.png" COMP;
|
||||
images.image: "bulb_over.png" COMP;
|
||||
min: 16 16;
|
||||
max: 152 152;
|
||||
script {
|
||||
public message(Msg_Type:type, id, ...) {
|
||||
if ((type == MSG_FLOAT) && (id == 0)) {
|
||||
new Float:val;
|
||||
val = getfarg(2);
|
||||
set_tween_state(PART:"glow", val, "default", 0.0, "full", 0.0);
|
||||
set_tween_state(PART:"glow2", val, "default", 0.0, "full", 0.0);
|
||||
}
|
||||
}
|
||||
}
|
||||
parts {
|
||||
part { name: "glow";
|
||||
description { state: "default" 0.0;
|
||||
rel1.to: "base";
|
||||
rel1.relative: (76/152) (69/152);
|
||||
rel2.to: "base";
|
||||
rel2.relative: (76/152) (69/152);
|
||||
image.normal: "bulb_glow.png";
|
||||
color: 255 255 255 0;
|
||||
max: 138 138;
|
||||
}
|
||||
description { state: "full" 0.0;
|
||||
inherit: "default" 0.0;
|
||||
rel1.relative: (7/152) (0/152);
|
||||
rel2.relative: (145/152) (138/152);
|
||||
color: 255 255 255 255;
|
||||
}
|
||||
}
|
||||
part { name: "base";
|
||||
description { state: "default" 0.0;
|
||||
rel1.relative: (4/160) (4/160);
|
||||
rel2.relative: (156/160) (156/160);
|
||||
aspect: 1.0 1.0; aspect_preference: BOTH;
|
||||
image.normal: "bulb_off.png";
|
||||
}
|
||||
}
|
||||
part { name: "glow2";
|
||||
description { state: "default" 0.0;
|
||||
rel1.to: "base";
|
||||
rel2.to: "base";
|
||||
image.normal: "bulb_on.png";
|
||||
color: 255 255 255 0;
|
||||
}
|
||||
description { state: "full" 0.0;
|
||||
inherit: "default" 0.0;
|
||||
color: 255 255 255 255;
|
||||
}
|
||||
}
|
||||
part { name: "over";
|
||||
description { state: "default" 0.0;
|
||||
rel1.to: "base";
|
||||
rel2.to: "base";
|
||||
image.normal: "bulb_over.png";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Binary file not shown.
After Width: | Height: | Size: 11 KiB |
Binary file not shown.
After Width: | Height: | Size: 2.9 KiB |
Binary file not shown.
After Width: | Height: | Size: 3.7 KiB |
Binary file not shown.
After Width: | Height: | Size: 1.8 KiB |
Loading…
Reference in New Issue