enlightenment/data/themes/default_mixer.edc

247 lines
5.8 KiB
Plaintext

images {
image: "e17_mixer_base.png" COMP;
image: "e17_mixer_mute.png" COMP;
image: "e17_mixer_left_low.png" COMP;
image: "e17_mixer_left_medium.png" COMP;
image: "e17_mixer_left_high.png" COMP;
image: "e17_mixer_right_low.png" COMP;
image: "e17_mixer_right_medium.png" COMP;
image: "e17_mixer_right_high.png" COMP;
}
group {
name: "e/modules/mixer/main";
max: 128 128;
min: 1 1;
script {
public message(Msg_Type:type, id, ...) {
if ((type == MSG_INT_SET) && (id == 0)) {
new mute, left, right;
mute = getarg(2);
left = getarg(3);
right = getarg(4);
if (mute)
run_program(PROGRAM:"mute");
else
run_program(PROGRAM:"unmute");
if (left <= 0)
run_program(PROGRAM:"left_none");
else if (left < 33)
run_program(PROGRAM:"left_low");
else if (left < 66)
run_program(PROGRAM:"left_medium");
else if (left >= 66)
run_program(PROGRAM:"left_high");
if (right <= 0)
run_program(PROGRAM:"right_none");
else if (right < 33)
run_program(PROGRAM:"right_low");
else if (right < 66)
run_program(PROGRAM:"right_medium");
else if (right >= 66)
run_program(PROGRAM:"right_high");
}
}
}
parts {
part {
name: "base";
mouse_events: 0;
type: RECT;
description {
state: "default" 0.0;
color: 255 255 255 0;
aspect: 1 1;
aspect_preference: BOTH;
}
}
part {
name: "speaker";
mouse_events: 0;
type: IMAGE;
description {
state: "default" 0.0;
aspect: 1 1;
aspect_preference: BOTH;
rel1.to: "base";
rel2.to: "base";
image.normal: "e17_mixer_base.png";
}
}
part {
name: "left";
mouse_events: 0;
type: IMAGE;
description {
state: "default" 0.0;
visible: 0;
aspect: 1 1;
aspect_preference: BOTH;
rel1.to: "base";
rel2.to: "base";
image.normal: "e17_mixer_left_low.png";
}
description {
state: "low" 0.0;
inherit: "default" 0.0;
visible: 1;
}
description {
state: "medium" 0.0;
inherit: "default" 0.0;
visible: 1;
image.normal: "e17_mixer_left_medium.png";
}
description {
state: "high" 0.0;
inherit: "default" 0.0;
visible: 1;
image.normal: "e17_mixer_left_high.png";
}
}
part {
name: "right";
mouse_events: 0;
type: IMAGE;
description {
state: "default" 0.0;
visible: 0;
aspect: 1 1;
aspect_preference: BOTH;
rel1.to: "base";
rel2.to: "base";
image.normal: "e17_mixer_right_low.png";
}
description {
state: "low" 0.0;
inherit: "default" 0.0;
visible: 1;
}
description {
state: "medium" 0.0;
inherit: "default" 0.0;
visible: 1;
image.normal: "e17_mixer_right_medium.png";
}
description {
state: "high" 0.0;
inherit: "default" 0.0;
visible: 1;
image.normal: "e17_mixer_right_high.png";
}
}
part {
name: "mute";
mouse_events: 0;
type: IMAGE;
description {
state: "default" 0.0;
aspect: 1 1;
aspect_preference: BOTH;
visible: 0;
rel1.to: "base";
rel2.to: "base";
image.normal: "e17_mixer_mute.png";
}
description {
state: "active" 0.0;
inherit: "default" 0.0;
visible: 1;
}
}
part {
name: "over";
type: RECT;
description {
state: "default" 0.0;
rel1.to: "base";
rel2.to: "base";
color: 255 255 255 0;
}
}
}
programs {
program {
name: "mute";
action: STATE_SET "active" 0.0;
transition: LINEAR 0.1;
target: "mute";
}
program {
name: "unmute";
action: STATE_SET "default" 0.0;
transition: LINEAR 0.1;
target: "mute";
}
program {
name: "left_none";
action: STATE_SET "default" 0.0;
transition: LINEAR 0.1;
target: "left";
}
program {
name: "left_low";
action: STATE_SET "low" 0.0;
transition: LINEAR 0.1;
target: "left";
}
program {
name: "left_medium";
action: STATE_SET "medium" 0.0;
transition: LINEAR 0.1;
target: "left";
}
program {
name: "left_high";
action: STATE_SET "high" 0.0;
transition: LINEAR 0.1;
target: "left";
}
program {
name: "right_none";
action: STATE_SET "default" 0.0;
transition: LINEAR 0.1;
target: "right";
}
program {
name: "right_low";
action: STATE_SET "low" 0.0;
transition: LINEAR 0.1;
target: "right";
}
program {
name: "right_medium";
action: STATE_SET "medium" 0.0;
transition: LINEAR 0.1;
target: "right";
}
program {
name: "right_high";
action: STATE_SET "high" 0.0;
transition: LINEAR 0.1;
target: "right";
}
}
}